about func scipts

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

about func scipts

#1 Post 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.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#2 Post 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!

:lol:

Got it?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#3 Post by nilsonmorales »

didn't know
ok now is clear, thank you
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: about func scipts

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

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#5 Post by nilsonmorales »

Ahhh got it , thank you L18L
R-H-S and L18L congrats, great job in puppylinux
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

Post Reply