Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 00:39
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Question about gettext! [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [38 Posts]   Goto page: Previous 1, 2, 3
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1825
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 28 Jan 2012, 12:18    Post subject:  

Hello,
Wary 5.2.2:
Adding line inside /etc/profile doesn't work! (Don't know if I copied the line at the right place, as mentioned above!)
This works when completing /Startup/retrovol_tray:
Quote:
#!/bin/sh

#exec retrovol -hide ${BGOPT} #BGOPT is exported from /usr/sbin/delayedrun.

#retrovol 0.10, -bg option no longer needed...
export OUTPUT_CHARSET=UTF-8
exec retrovol -hide


Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 28 Jan 2012, 13:03    Post subject: export OUTPUT_CHARSET=UTF-8
Subject description: permanent
 

Argolance wrote:
Is there a right place to put the line?

Sorry, my quick shot /etc/profile is not good for this.
echo $OUTPUT_CHARSET shows UTF-8 but retrovol has been started earlier.

I did not find a file called xinitrc in my running slacko so I have put
Code:
OUTPUT_CHARSET=UTF-8
export OUTPUT_CHARSET
at the beginning of /usr/sbin/delayedrun and it works (showing correct messages from beginning without utf8 locale)

I am sure Barry will put that code into the right location if there is a better one than delayedrun. The entire system can benefit from this and not just retrovol.

______________________

Time for a retrovol_NLS.pet Question

_______________________

Edited after seen Argolance´s last post:
There is no Startup/retrovol_tray in slacko !!!
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1825
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 28 Jan 2012, 14:11    Post subject:  

Hello,
Quote:
I did not find a file called xinitrc in my running slacko
/root/.xinitrc? (hidden file)
Quote:
Time for a retrovol_NLS
I sent the French UTF-8 mo and po files to Pizzasgood (=> http://www.murga-linux.com/puppy/viewtopic.php?t=50744)
Quote:
The entire system can benefit from this and not just retrovol.

Yes! It is ok! ... and better! Will test when back home.

Best regards

_________________

Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 28 Jan 2012, 14:28    Post subject: export OUTPUT_CHARSET=UTF-8
Subject description: permanent
 

Argolance wrote:
/root/.xinitrc? (hidden file)

Very Happy Embarassed Embarassed Embarassed Very Happy

Yes, and delayedrun is launched near the end of /root/.xinitrc Embarassed
So the best location seems to be the beginning of /root/.xinitrc or even PUPSTATE which could be launched from sort of fido/.xinitrc, too.

Argolance wrote:
I sent the French UTF-8 mo and po files to Pizzasgood (=> http://www.murga-linux.com/puppy/viewtopic.php?t=50744)
And so will I Smile
Thank you.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 29 Jan 2012, 06:47    Post subject: gettext with and without utf8
Subject description: bugfix for chooselocale
 

L18L wrote:
I have been playing with retrovol with and without utf8 in latest slacko.

1st problem was:
Could not change to my locale without utf8
...

Started with utf8

# locale -a
C
de_DE.utf8
en_US
POSIX
#
----------------
chooselocale: choose de_DE without utf8

# 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

C
de_DE.utf8
en_US
en_US.utf8
POSIX
#

----------------
Bugfix in /usr/sbin/chooselocale:
#120129 enabling adding locale without utf8 using regexp. L18L

#if [ "`locale -a | grep "${LANGCHOICE}${UTF8}"`" = "" ];then
if [ "`locale -a | grep -E "${LANGCHOICE}${UTF8}$"`" = "" ];then #120129
----------------

chooselocale: choose de_DE without utf8

# locale -a
C
de_DE
de_DE.utf8
en_US
en_US.utf8
POSIX
#
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1825
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 29 Jan 2012, 08:02    Post subject:  

Hello L18L,
Quote:
#120129 enabling adding locale without utf8 using regexp. L18L

#if [ "`locale -a | grep "${LANGCHOICE}${UTF8}"`" = "" ];then
if [ "`locale -a | grep -E "${LANGCHOICE}${UTF8}$"`" = "" ];then #120129
If I well undertood, this has to be copied into /usr/sbin/chooselocale? And this instead of all the different "solutions" called above? But where?

... And what about the commented line? What is it used for? then... then what?
Sorry to ask so many questions...

Thank you!

_________________

Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 29 Jan 2012, 08:24    Post subject: bugfix for chooselocale  

Hello Argolance,

yes, edit /usr/sbin/chooselocale
find the line
Code:
if [ "`locale -a | grep "${LANGCHOICE}${UTF8}"`" = "" ];then

it is something like 147 and replace it by:
Code:
if [ "`locale -a | grep -E "${LANGCHOICE}${UTF8}$"`" = "" ];then


No, this is just a bugfix which enables you now to choose for example fr_FR if you have started using fr_FR.UTF-8

The other issue was to have OUTPUT_CHARSET=UTF-8 permanent.
Put
Code:
export OUTPUT_CHARSET=UTF-8
into /root/.xinitrc

Cordialment Smile
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1825
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 29 Jan 2012, 09:36    Post subject:  

Thank you a lot: now, all is just and perfect indeed!

Herzlich! Wink Very Happy

_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 3 of 3 [38 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0874s ][ Queries: 13 (0.0247s) ][ GZIP on ]