Page 1 of 1
about func scipts
Posted: Thu 11 Jul 2013, 06:24
by nilsonmorales
what happen with script with same name,
ex.
/usr/local/pequalizer/func
and
/usr/local/pfind/func
the .mo file in /usr/share/locale/yourlang/LC_MESSAGES/ will rewrite the .mo
then just one will work
what can i do?
tnx in advance.
Posted: Thu 11 Jul 2013, 06:41
by R-S-H
what happen with script with same name,
ex.
/usr/local/pequalizer/func
and
/usr/local/pfind/func
the .mo file in /usr/share/locale/yourlang/LC_MESSAGES/ will rewrite the .mo
then just one will work
Why should it do that?
The pequalizer has a pequalizer.mo and pfind should have pfind.mo!
The .mo file is always named after the application, not after its function or sub-scripts!
Got it?
Posted: Thu 11 Jul 2013, 06:48
by nilsonmorales
didn't know
ok now is clear, thank you
Re: about func scipts
Posted: Thu 11 Jul 2013, 13:55
by L18L
nilsonmorales wrote:what happen with script with same name,
ex.
/usr/local/pequalizer/func
and
/usr/local/pfind/func
the .mo file in /usr/share/locale/yourlang/LC_MESSAGES/ will rewrite the .mo
then just one will work
what can i do?
tnx in advance.
Let us look what happened:
/usr/local/pequalizer/func wrote:#!/bin/bash
#pEqualizer
export TEXTDOMAIN=pequalizer
and
/usr/local/pfind/func wrote:#!/bin/bash
PID=$$
export TEXTDOMAIN=pfind
It is the TEXTDOMAIN that counts and gives the mo file a name: TEXTDOMAIN.mo.
Posted: Thu 11 Jul 2013, 14:19
by nilsonmorales
Ahhh got it , thank you L18L
R-H-S and L18L congrats, great job in puppylinux