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 Thu 24 Jul 2014, 11:27
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 Posts_count  
Author Message
nilsonmorales


Joined: 15 Apr 2011
Posts: 461
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 MSNM 
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: 461
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 MSNM 
L18L

Joined: 19 Jun 2010
Posts: 2504
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 11 Jul 2013, 09:55    Post_subject: Re: about func scipts
Sub_title: 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: 461
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 MSNM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0469s ][ Queries: 11 (0.0029s) ][ GZIP on ]