Page 1 of 1
Remove_builtin: buttons translation + Xdialog.mo... [SOLVED]
Posted: Thu 23 May 2013, 20:09
by Bert
Situation:
It looks like the two buttons have no localisation entry in the .po.
Is there something we can do?
It's not that important, but it would be nice to get this 100% translated.
Thanks!
Posted: Fri 24 May 2013, 08:09
by rodin.s
Translated here. You need files: gtk20.mo, gtk20-properties.mo or so.
Remove_builtin: buttons translation
Posted: Fri 24 May 2013, 10:28
by L18L
Xdialog.mo has
Cancel and
Help but does not use it.
cancel-label "$gettext 'Cancel'" works
but there is
no help-label
I have gtk20.mo and the same problem as Bert.
added gtk20-properties.mo, gtk+.mo gtk-engines.mo without success.
What else could be "
or so" ?
Posted: Fri 24 May 2013, 10:39
by Bert
Yes, I too have gtk20.mo and gtk20-properties.mo available.
Gtk20-properties has 'cancel button', but not 'cancel' at first sight.
EDIT: changed the 'cancel-button' to 'cancel'. No effect.
Posted: Fri 24 May 2013, 14:21
by rodin.s
So, it's Xdialog. Test line for it:
Code: Select all
Xdialog --buildlist "test" 0 0 5 abc abc off def def on
Are buttons translated? In my case - yes.
I put Xdialog.mo in two places: /usr/share/locale/ru/LC_MESSAGES/ and /usr/local/share/locale/ru/LC_MESAGES (for Slacko).
Posted: Fri 24 May 2013, 14:36
by Bert
Posted: Fri 24 May 2013, 14:47
by rodin.s
I guess you need Xdialog.mo in one (or better both) of those locations...
Posted: Fri 24 May 2013, 14:54
by Bert
Please don't laugh now..
You are right rodin s.
I don't have the mo anywhere
I'm sorry
Remove_builtin: buttons translation
Posted: Fri 24 May 2013, 15:13
by L18L
rodin.s wrote:So, it's Xdialog. Test line for it:
Code: Select all
Xdialog --buildlist "test" 0 0 5 abc abc off def def on
Are buttons translated? In my case - yes.
I put Xdialog.mo in two places: /usr/share/locale/ru/LC_MESSAGES/ and /usr/
local/share/locale/ru/LC_MESAGES (for Slacko).
Very useful, thank you.
I had Xdialog.mo in default TEXTDOMAINDIR
moved it to /usr/local/share/locale/de/LC_MESSAGES/
and....
success
Bert
I search a Dutch one for you
wait a moment
found Xdialog.po on the web (charset changed to UTF-8 by me):
Code: Select all
# Dutch Translation.
# Copyright (C) 2003 Free Software Foundation, Inc.
# James Briggs <james@ActionMessage.com>, 2003.
#
msgid ""
msgstr ""
"Project-Id-Version: Xdialog v2.1.2\n"
"POT-Creation-Date: 2002-03-21 13:29+0100\n"
"PO-Revision-Date: 2003-12-03 01:00-0800\n"
"Last-Translator: James Briggs <james@ActionMessage.com>\n"
"Language-Team: Dutch\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/interface.h:80
msgid "OK"
msgstr "OK"
#: src/interface.h:81
msgid "Cancel"
msgstr "Stop"
#: src/interface.h:82
msgid "Yes"
msgstr "Ja"
#: src/interface.h:83
msgid "No"
msgstr "Nee"
#: src/interface.h:84
msgid "Help"
msgstr "Help"
#: src/interface.h:85
msgid "Previous"
msgstr "Vorige"
#: src/interface.h:86
msgid "Next"
msgstr "Volgende"
#: src/interface.h:87
msgid "Print"
msgstr "Print"
#: src/interface.h:88
msgid "Add"
msgstr "Voeg"
#: src/interface.h:89
msgid "Remove"
msgstr "Verwijder"
#: src/interface.h:90
msgid "Hours : Minutes : Seconds"
msgstr "Uren : Minuten : Seconden"
#: src/interface.h:91
msgid "Time stamp"
msgstr "Tijd zegel"
#: src/interface.h:92
msgid "Date - Time"
msgstr "Date - Tijd"
#: src/interface.h:93
msgid "Log message"
msgstr ""
#: src/interface.h:94
msgid "Hide typing"
msgstr ""
Posted the link in our thread
PortableObjectTemplate Files
Posted: Fri 24 May 2013, 15:44
by Bert
Thank you!
Xdialog
Posted: Fri 24 May 2013, 15:56
by L18L
Bert,
does it work after using momanager?
I mean there could be some issues because of different location of mo file.
Your job as tester will not be finished before you report success
Posted: Fri 24 May 2013, 16:21
by Bert
Posted: Fri 24 May 2013, 16:32
by Bert
So I've put the Xdialog.mo in the two places:
/usr/share/locale/nl/LC_MESSAGES/
AND
/usr/local/share/locale/nl/LC_MESSAGES/
Will Momanager see both when creating the pet?
Xdialog
Posted: Fri 24 May 2013, 17:11
by L18L
At first I have been trying to use symlinks....
Then with Xdialog.mo in both locations, Xdialo.pot in /usr/share/doc/nls/Xdialog/
changed all charset to UTF-8 but
-> momanager cannot merge ( red bad news )
Thus there is something to play with for me the next days.....
Posted: Fri 24 May 2013, 19:46
by Bert
Alternatively, we could just add /usr/local/share/locale/nl/LC_MESSAGES/xdialog.mo manually, couldn't we?
(in my case, crack open the new pet created by MoManager, add the above and dir2pet again.)
(or try to find info on L18L's hacks.sh and how to use it
)
Posted: Sat 25 May 2013, 16:20
by Bert
Hi L18L,
I read your comment on Barry's blog:
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
Re: Xdialog
Posted: Sat 25 May 2013, 17:26
by L18L
L18L wrote:...Thus there is something to play with for me the next days.....
Game over
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...
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: Select all
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: Select all
#LANG=${ORIGLANG} rxvt -e intltool-update --dist --gettext-package=${ATEXTDOMAIN} --output-file=${ATEXTDOMAIN}.po ${ATEXTDOMAIN}1
and append the following line:
Code: Select all
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.
Posted: Sat 25 May 2013, 17:40
by L18L
Bert wrote:Hi L18L,
I read your comment on Barry's blog:
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
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.