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 Wed 11 Dec 2019, 16:53
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
bootmanager buttons - no translations [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
xanad


Joined: 28 Feb 2014
Posts: 400
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Wed 21 Oct 2015, 05:13    Post subject:  bootmanager buttons - no translations [SOLVED]
Subject description: xdialog, I think...
 

Hi all,
Completing a translation I found myself faced with a problem, that I can not solve.
Some buttons are not translated. Inside the script of bootmanager, gettext is right. In /LC_MESSAGES, there is the translated file xdialog.mo. But they do not work ...
Any suggestions?
Thank you in advance.



ps: Other programs have the same problem.

_________________
www.xanad.tk Html5 Parallax

Last edited by xanad on Thu 22 Oct 2015, 15:53; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Wed 21 Oct 2015, 07:21    Post subject: Re: bootmanager buttons - no translations
Subject description: xdialog, I think...
 

xanad wrote:
Hi all,
Completing a translation I found myself faced with a problem, that I can not solve.
Some buttons are not translated. Inside the script of bootmanager, gettext is right. In /LC_MESSAGES, there is the translated file xdialog.mo. But they do not work ...
Any suggestions?
Thank you in advance.

ps: Other programs have the same problem.

Looks like that these are old Xdialogs that were never fully gettext.
In the extra SFS loading case for example look at ~line 195 of bootmanager it should have
Code:
--ok-label \"$(gettext 'OK')\"
same for --cancel-label. Unfortunately, Xdialog does not have --help-label Crying or Very sad so you can use a different approach providing an Xdialog.po/mo that should also cover OK and Cancel.

If you identify and correct all these instances pleeeease provide a patch for woof-CE since you'll have done all the work so we will not need to rediscover the wheel next time.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 400
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Thu 22 Oct 2015, 05:13    Post subject:  

Hi mavrothal,
Quote:
--ok-label \"$(gettext 'OK')\"

ok, it only works with OK and Cancel, not with Help, Add and Remove Crying or Very sad
Quote:
different approach

dont work in Tahr, other path?

I found this thread, it may be useful?
http://ftp.vim.org/ibiblio/distributions/fatdog/arm/sources/alpha4/src-blfs/apps/Xdialog-extra-button.patch
extract:
Code:
#ifdef FRENCH            /* french translations without NLS */
 #   define OK "OK"
 #   define CANCEL "Annuler"
+#   define EXTRA "Supplémentaire"
 #   define YES "Oui"
 #   define NO "Non"
 #   define HELP "Aide"
@@ -76,6 +77,7 @@
 #   define HIDE_TYPING "Masquer la saisie"
 #else
 #   define OK _("OK")
+#   define EXTRA _("Extra")
 #   define CANCEL _("Cancel")
 #   define YES _("Yes")
 #   define NO _("No")

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Thu 22 Oct 2015, 07:21    Post subject:  

xanad wrote:

Quote:
different approach

dont work in Tahr, other path?

I found this thread, it may be useful?
http://ftp.vim.org/ibiblio/distributions/fatdog/arm/sources/alpha4/src-blfs/apps/Xdialog-extra-button.patch
extract:
Code:
#ifdef FRENCH            /* french translations without NLS */
 #   define OK "OK"
 #   define CANCEL "Annuler"
+#   define EXTRA "Supplémentaire"
 #   define YES "Oui"
 #   define NO "Non"
 #   define HELP "Aide"
@@ -76,6 +77,7 @@
 #   define HIDE_TYPING "Masquer la saisie"
 #else
 #   define OK _("OK")
+#   define EXTRA _("Extra")
 #   define CANCEL _("Cancel")
 #   define YES _("Yes")
 #   define NO _("No")


This is in the source code, so you'll need to recompile Xdialog.

You may want to check with L18L and/or Bert about the exact process and the paths for the Xdialog nls of builtins.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 400
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Thu 22 Oct 2015, 15:52    Post subject:  

Hi mavrothal,
solved Very Happy view attachments
puppy has a very outdated version...

Et Voilà

xdialog-2.3.1-x86_64.pet
Description 
pet

 Download 
Filename  xdialog-2.3.1-x86_64.pet 
Filesize  36.08 KB 
Downloaded  207 Time(s) 
xdialog-2.3.1-i486.pet
Description 
pet

 Download 
Filename  xdialog-2.3.1-i486.pet 
Filesize  33.11 KB 
Downloaded  220 Time(s) 

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Thu 22 Oct 2015, 23:18    Post subject:  

xanad wrote:
Hi mavrothal,
solved Very Happy view attachments
puppy has a very outdated version...

Nice.
However, every puppy I checked from Precise onwards reports Xdialog 2.3.1, like the attached pet Confused ,
How is this different? Is it compiled differently (how)? Has a different source code (where is it)?

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 400
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Fri 23 Oct 2015, 02:46    Post subject:  

Alien version (Jun 2015) from slackware repo:
http://www.slackware.com/~alien/slackbuilds/xdialog/

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Fri 23 Oct 2015, 03:03    Post subject:  

xanad wrote:
Alien version (Jun 2015) from slackware repo:
http://www.slackware.com/~alien/slackbuilds/xdialog/

Good find.
But this is actually the same Xdialog from the source of 2007 that all puppies since then have!
What this Slackware package has is the .mo files for a number of languages including Italian. You can just add /usr/share/locale/it from the package to your language pet and it should work in any puppy without the rest of the stuff Wink

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
xanad


Joined: 28 Feb 2014
Posts: 400
Location: 2 locations: MonteRosa Alp and Milano

PostPosted: Fri 23 Oct 2015, 03:46    Post subject:  

mavrothal wrote:
xanad wrote:
Alien version (Jun 2015) from slackware repo:
http://www.slackware.com/~alien/slackbuilds/xdialog/

Good find.
You can just add /usr/share/locale/it from the package to your language pet and it should work in any puppy without the rest of the stuff Wink


Sorry, It does not work for me. Not so.

_________________
www.xanad.tk Html5 Parallax
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Fri 23 Oct 2015, 07:23    Post subject:  

xanad wrote:

Sorry, It does not work for me. Not so.

You are right!
I do not know where 666phil got/compiled Xdialog for Tahrpup64 (is not in the Ubuntu repos), but indeed it does not work.
However, if you compile Xdialog from source in Tahr and provide the mo files, works fine.
You may want to alert 666phil on that.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0907s ][ Queries: 13 (0.0301s) ][ GZIP on ]