Page 3 of 4

Re: pfind

Posted: Fri 10 Aug 2012, 12:11
by zigbert
L18L wrote:
zigbert wrote:$TEXTDOMAIN=pfilesearch in your pFind. I guess it's because there only can be one text domain, and code from pFilesearch is embedded into pFind.
Good guess!
That was before Barry changed momanager.
Now everything is possible:
I will separate them and make a version 5.03
TEXTDOMAIN=pfind
and pfilesearch using TEXTDOMAIN=pfilesearch containing the messages from pfilesearch only.
Thank you.
I will be back Tuesday (probably).


Sigmund

Re: pfind

Posted: Fri 10 Aug 2012, 14:06
by L18L
L18L wrote:I will separate them and make a version 5.03
TEXTDOMAIN=pfind
done
included is german pfind.mo so you can test changinging of GUI language

for testers only, delete /root/.pfind/pfindrc :arrow:

a lot of warnings like:
/usr/local/pfind/func: line 4: /tmp/pfind-TREE6413: Datei oder Verzeichnis nicht gefunden <-- not found
cat: /tmp/pfind-treeitems6413: Datei oder Verzeichnis nicht gefunden <-- not found

Posted: Mon 13 Aug 2012, 09:23
by zigbert
Ok, updated stuff


Thank you guys
Sigmund

Posted: Sat 18 Aug 2012, 08:18
by zigbert
I have started on the next cycle of pMusic, and will add gettext to it

pburn

Posted: Sun 26 Aug 2012, 19:51
by rodin.s
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.

Re: pburn

Posted: Sun 26 Aug 2012, 19:54
by zigbert
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

Posted: Sun 26 Aug 2012, 20:47
by vicmz
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.

Re: pburn

Posted: Mon 27 Aug 2012, 19:16
by L18L
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 :wink:

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/man ... E-variable

Hope that helps :)

Re: pburn

Posted: Mon 27 Aug 2012, 20:13
by rodin.s
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.

Posted: Tue 28 Aug 2012, 06:16
by zigbert
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: Select all

#set variables
. $CONFIG 2> /dev/null
export LANGUAGE="$MY_LANGUAGE"
[ "$MY_LANGUAGE" = "auto" ] && export LANGUAGE="${LANG%%_*}"

Russian for pfilesearch and pfind, gettext for pmirror

Posted: Sun 02 Sep 2012, 18:17
by rodin.s
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.

Posted: Sun 02 Sep 2012, 18:25
by vovchik
Dear rodin.s,

Thanks for all your work.

With kind regards,
vovchik

Posted: Mon 03 Sep 2012, 16:01
by zigbert
rodin.s
This is great stuff


Thank you
Sigmund

Pburn

Posted: Wed 05 Sep 2012, 20:59
by rodin.s
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: Select all

 . $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.

Posted: Thu 06 Sep 2012, 15:19
by zigbert
rodin.s
I think a better solution would be to switch line 279 and 280.

From

Code: Select all

. $HOME/.pburn/pburnhlp-$LANGUAGE #read help text (preferable in installed language)
export LANGUAGE=$TMP_LANG
To

Code: Select all

export LANGUAGE=$TMP_LANG
. $HOME/.pburn/pburnhlp-$LANGUAGE #read help text (preferable in installed language)

Please test
Sigmund

pBurn

Posted: Thu 06 Sep 2012, 18:21
by rodin.s
No, it still doesn't work:

Code: Select all

# 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.

Posted: Thu 06 Sep 2012, 19:12
by zigbert
I see

Code: Select all

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 ?

pburn help

Posted: Thu 06 Sep 2012, 20:57
by L18L
How would you like this /usr/share/doc/pburn :?:

Liquid design
ideal for small screens

pBurn

Posted: Thu 06 Sep 2012, 21:07
by rodin.s
Yes, with that code pBurn works.
And I quess I like that doc design.

Re: pBurn

Posted: Thu 06 Sep 2012, 21:15
by L18L
rodin.s wrote:And I quess I like that doc design.
Easier to translate to /usr/share/doc/help/<language>/pburn.html