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 30 Sep 2014, 07:55
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
about func scipts
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
nilsonmorales


Joined: 15 Apr 2011
Posts: 490
Location: El salvador

PostPosted: Thu 11 Jul 2013, 02:24    Post subject:  about func scipts  

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.

_________________
My blog


Back to top
View user's profile Send private message MSN Messenger 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Thu 11 Jul 2013, 02:41    Post subject:  

Quote:
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!

Laughing

Got it?

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 490
Location: El salvador

PostPosted: Thu 11 Jul 2013, 02:48    Post subject:  

didn't know
ok now is clear, thank you

_________________
My blog


Back to top
View user's profile Send private message MSN Messenger 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 11 Jul 2013, 09:55    Post subject: Re: about func scipts
Subject description: about TEXTDOMAIN
 

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.
Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 490
Location: El salvador

PostPosted: Thu 11 Jul 2013, 10:19    Post subject:  

Ahhh got it , thank you L18L
R-H-S and L18L congrats, great job in puppylinux

_________________
My blog


Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
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.0459s ][ Queries: 11 (0.0031s) ][ GZIP on ]