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 Fri 28 Nov 2014, 01:46
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Remove_builtin: buttons translation + Xdialog.mo... [SOLVED]
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [18 Posts]   Goto page: Previous 1, 2
Author Message
Bert


Joined: 30 Jun 2006
Posts: 976

PostPosted: Sat 25 May 2013, 12:20    Post subject:  

Hi L18L,

I read your comment on Barry's blog:

Quote:
While talking about momanager...
... we have found out that Xdialog uses Xdialog.mo in /usr/local/share/locale


I would like to add that this is not the case on my box. I had xdialog.mo in /usr/share/locale/nl/LC_MESSAGES only and Xdialog ran translated.

Only after that did I add the .mo to /usr/local/share/locale...

I just checked, by removing the .mo from /usr/local/etc and xdialog is still running translated.

I think rodin.s gave the second location only for Slacko.

Hope this is useful Wink

_________________


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

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Sat 25 May 2013, 13:26    Post subject: Re: Xdialog
Subject description: solution
 

L18L wrote:
...Thus there is something to play with for me the next days.....
Game over Laughing

Xdialog had found its Xdialog.mo in default location before.
Recent Xdialogs must have been compiled without --prefix=/usr
thus it searches its Xdialog.mo in /usr/local/share/locale/

Having the same file in that 2 different locations is on the safe side.
Also sufficient is to have just a symlink in /usr/local/share/locale/....
Not really a hack... Wink

Create it in command line for nl:
ln -s /usr/share/locale/nl/LC_MESSAGES/Xdialog.mo /usr/share/doc/langpack-template/usr/local/share/locale/nl/LC_MESSAGES/Xdialog.mo

The other issue was edit Xdialog.po in momanager

Find in /usr/sbin/momanager line which contains
Code:
    LANG=${ORIGLANG} rxvt -e intltool-update --dist --gettext-package=${ATEXTDOMAIN} --output-file=${ATEXTDOMAIN}.po ${ATEXTDOMAIN}1

put a # at beginning of that line so it looks like:
Code:
    #LANG=${ORIGLANG} rxvt -e intltool-update --dist --gettext-package=${ATEXTDOMAIN} --output-file=${ATEXTDOMAIN}.po ${ATEXTDOMAIN}1
and append the following line:
Code:
    LANG=${ORIGLANG} rxvt -e msgmerge ${ATEXTDOMAIN}1.po ${ATEXTDOMAIN}.pot --output-file=${ATEXTDOMAIN}.po ; #130525

..and also ROX-Filer can be edited if you apply this change.


I do not want to make another momanager because I am hoping that all these changes will find their way into woof soon.
http://bkhome.org/blog2/?viewDetailed=00260

Bert,
please change the title to indicate that Xdialog is concerned.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

PostPosted: Sat 25 May 2013, 13:40    Post subject:  

Bert wrote:
Hi L18L,

I read your comment on Barry's blog:

Quote:
While talking about momanager...
... we have found out that Xdialog uses Xdialog.mo in /usr/local/share/locale


I would like to add that this is not the case on my box. I had xdialog.mo in /usr/share/locale/nl/LC_MESSAGES only and Xdialog ran translated.

Only after that did I add the .mo to /usr/local/share/locale...

I just checked, by removing the .mo from /usr/local/etc and xdialog is still running translated.

I think rodin.s gave the second location only for Slacko.

Hope this is useful Wink

Sorry I did not see this post before.

Yes, it is good to know that Barry has the correctly compiled Xdialog.
...and the symlink is the solution with the lowest memory usage.

All your posts are useful., thank you. Cool
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [18 Posts]   Goto page: Previous 1, 2
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.0595s ][ Queries: 12 (0.0107s) ][ GZIP on ]