| Author |
Message |
zigbert

Joined: 29 Mar 2006 Posts: 5291 Location: Valåmoen, Norway
|
Posted: Sun 26 Aug 2012, 15:54 Post_subject:
Re: pburn |
|
| rodin.s wrote: | | Pburn doesn't switch to Russian automatically. But it does when 'ru' is selected in Preferences. Usually gettext doesn't need this manual language switching. The language of an application is defined by global locale settings of the system. | Does this occur only for pBurn or is it so for all the zigbert gettext apps?
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 645
|
Posted: Sun 26 Aug 2012, 16:47 Post_subject:
|
|
To me that only happens with Pburn so far, Pmusic and Pprocess are usually set to the same language of the system. I don't know about the others, I haven't tried them yet.
_________________ OpenboxPlus 1.5.3|Puppy Linux en español|Wiki en español
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1800 Location: Burghaslach, Germany
|
Posted: Mon 27 Aug 2012, 15:16 Post_subject:
Re: pburn Sub_title: LANGUAGE |
|
| zigbert wrote: | | rodin.s wrote: | | Pburn doesn't switch to Russian automatically. But it does when 'ru' is selected in Preferences. Usually gettext doesn't need this manual language switching. The language of an application is defined by global locale settings of the system. | Does this occur only for pBurn or is it so for all the zigbert gettext apps?
Sigmund |
Running pburn from latest precise 5.2.69
added
echo LANGUAGE=$LANGUAGE
to line 271 of /usr/local/pburn/pburn
| my console wrote: | # pburn
LANGUAGE=auto
EXIT="Ready"
|
gettext is using a LANGUAGE named auto here but for auto there is no pburn.mo
gettext uses automagically user´s language from LANG
-> the option auto has to be removed from the list of available languages
LANGUAGE is a system variable, do use it in its intended purpose only: http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable
Hope that helps
|
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 327 Location: Ukraine
|
Posted: Mon 27 Aug 2012, 16:13 Post_subject:
Re: pburn |
|
| zigbert wrote: | | Does this occur only for pBurn or is it so for all the zigbert gettext apps? |
Yes, it happens in pBurn only.
Interesting explanation from L18L.
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5291 Location: Valåmoen, Norway
|
Posted: Tue 28 Aug 2012, 02:16 Post_subject:
|
|
Ok, I have changed $LANGUAGE to $MY_LANGUAGE, and added 2 lines after reading rc file. I had no idea gettext relies on $LANGUAGE.
| Code: | #set variables
. $CONFIG 2> /dev/null
export LANGUAGE="$MY_LANGUAGE"
[ "$MY_LANGUAGE" = "auto" ] && export LANGUAGE="${LANG%%_*}" |
| Description |
|

Download |
| Filename |
pburn-3.7.5.pet |
| Filesize |
67.08 KB |
| Downloaded |
186 Time(s) |
_________________ Stardust resources
|
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 327 Location: Ukraine
|
Posted: Sun 02 Sep 2012, 14:17 Post_subject:
Russian for pfilesearch and pfind, gettext for pmirror |
|
I was making Russian remastering of Slacko and I have added gettext to pMirror for it. Also there are Russian mo-files for pfind and pfilesearch made in momanager in Precise-5.2.72.
| Description |
gettext in pMirror
|

Download |
| Filename |
pmirror.tar.gz |
| Filesize |
4.78 KB |
| Downloaded |
181 Time(s) |
| Description |
pfilesearch.mo and pmiror.mo for Russian
|

Download |
| Filename |
MoManager-ru_UA-WOOF.tar.gz |
| Filesize |
8.95 KB |
| Downloaded |
177 Time(s) |
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Sun 02 Sep 2012, 14:25 Post_subject:
|
|
Dear rodin.s,
Thanks for all your work.
With kind regards,
vovchik
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5291 Location: Valåmoen, Norway
|
Posted: Mon 03 Sep 2012, 12:01 Post_subject:
|
|
rodin.s
This is great stuff
Thank you
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 327 Location: Ukraine
|
Posted: Wed 05 Sep 2012, 16:59 Post_subject:
Pburn |
|
One small problem with pBurn-3.7.5. Sometimes it doesn't start. Problem is in line 279 of /usr/local/pburn/pburn. I have changed it like this:
| Code: | | . $HOME/.pburn/pburnhlp-auto #$LANGUAGE #read help text (preferable in installed language) |
It seems that pburnhlp-auto is expecting auto from $LANGUAGE, file pburnhlp-ru is not found and pBurn doesn't start.
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5291 Location: Valåmoen, Norway
|
Posted: Thu 06 Sep 2012, 11:19 Post_subject:
|
|
rodin.s
I think a better solution would be to switch line 279 and 280.
From
| Code: | . $HOME/.pburn/pburnhlp-$LANGUAGE #read help text (preferable in installed language)
export LANGUAGE=$TMP_LANG |
To
| Code: | export LANGUAGE=$TMP_LANG
. $HOME/.pburn/pburnhlp-$LANGUAGE #read help text (preferable in installed language) |
Please test
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 327 Location: Ukraine
|
Posted: Thu 06 Sep 2012, 14:21 Post_subject:
pBurn |
|
No, it still doesn't work:
| Code: | # pburn
/usr/local/pburn/pburn: line 280: /root/.pburn/pburnhlp-ru: No such file or directory |
Maybe it would work with file pburnhlp-ru. But if there's no such file it should switch to auto.
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5291 Location: Valåmoen, Norway
|
Posted: Thu 06 Sep 2012, 15:12 Post_subject:
|
|
I see
| Code: | export LANGUAGE=$TMP_LANG
[ -s $HOME/.pburn/pburnhlp-$LANGUAGE ] && . $HOME/.pburn/pburnhlp-$LANGUAGE || $HOME/.pburn/pburnhlp-auto #read help text (preferable in installed language) |
Better ?
_________________ Stardust resources
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1800 Location: Burghaslach, Germany
|
Posted: Thu 06 Sep 2012, 16:57 Post_subject:
pburn help Sub_title: doc |
|
How would you like this /usr/share/doc/pburn
Liquid design
ideal for small screens
| Description |
this one has a width of 440px |
| Filesize |
29.75 KB |
| Viewed |
380 Time(s) |

|
| Description |
|
| Filesize |
33.63 KB |
| Viewed |
280 Time(s) |

|
|
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 327 Location: Ukraine
|
Posted: Thu 06 Sep 2012, 17:07 Post_subject:
pBurn |
|
Yes, with that code pBurn works.
And I quess I like that doc design.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1800 Location: Burghaslach, Germany
|
Posted: Thu 06 Sep 2012, 17:15 Post_subject:
Re: pBurn |
|
| rodin.s wrote: | | And I quess I like that doc design. |
Easier to translate to /usr/share/doc/help/<language>/pburn.html
| Description |
|

Download |
| Filename |
pburn.html.gz |
| Filesize |
18.45 KB |
| Downloaded |
234 Time(s) |
|
|
Back to top
|
|
 |
|