WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] how to test a new locale tcz file  (Read 2459 times)

aus9

  • Guest
[SOLVED] how to test a new locale tcz file
« on: November 03, 2012, 09:27:39 AM »
Hi

I am at a loss to know how to check a new package-locale.tcz (not yet submitted)
so here is what I tested for an existing package
Code: [Select]
tc@box:~$ locale -a
C
POSIX
tc@box:~$ tce-load -i glib2-locale
/etc/sysconfig/tcedir/optional/glib2-locale.tcz: OK
tc@box:~$ locale -a
C
POSIX
tc@box:~$ tce-load -i glib2
glib2 is already installed!

any clues would be appreciated.

cheers

gordon

----

Trivia, I know how to change locale in the debian world and have been spoilt using US keyboard and aussie English
« Last Edit: November 03, 2012, 08:09:43 PM by aus9 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: how to test a new locale tcz file
« Reply #1 on: November 03, 2012, 04:52:56 PM »
See the getlocale.tcz extension. But you'd still need to find something that outputs glib2 strings - I think they're mostly errors, so may be a bit hard to find.
The only barriers that can stop you are the ones you create yourself.

aus9

  • Guest
Re: how to test a new locale tcz file
« Reply #2 on: November 03, 2012, 07:27:10 PM »
No need to reply.....notes to myself, for testing purposes

firstly when I made my selections I chose fr_FR.UTF-8 as my lang=string, silly me

In testing my new package, happens to be terminal luckily it gave me an error straight away
as per image and the locale command borked a bit due to wrong string

I shall reboot shortly and look at using string from
Code: [Select]
ls /usr/share/i18n/locales/

If I want different keyboard layout
Code: [Select]
ls /usr/share/i18n/charmaps/

reboot same error hmmmm no its the name of string that matters. reboot and try again but
Code: [Select]
locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8
fr_FR.utf8

but I think I know the name of string to try

« Last Edit: November 03, 2012, 08:01:14 PM by aus9 »

aus9

  • Guest
Re: how to test a new locale tcz file
« Reply #3 on: November 03, 2012, 08:09:17 PM »
curaga


Thanks heaps....I just needed to get the string right.
------------------------------------------------------------------------
woo hoo

firstly notes to myself but I hope it helps others

get your locale command working first
Code: [Select]
locale
LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=
tc@box:~$ locale -a
C
en_US.utf8
fr_FR.utf8
POSIX

then I tested my new package and success as per image,
its an image in French no need to see just a note to myself