New files 'gettextized' for everyone 2015

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#76 Post by xanad »

:D works fine.

Code: Select all

LANG=$LANG_USER
is better than

Code: Select all

export TEXTDOMAIN=petget___installpkg.sh
PS: I noticed that all buttons (yes,no,cancel,etc) are untranslatable :roll:
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#77 Post by mavrothal »

xanad wrote: PS: I noticed that all buttons (yes,no,cancel,etc) are untranslatable :roll:
Where? Which script?
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#78 Post by xanad »

mavrothal wrote:
xanad wrote: PS: I noticed that all buttons (yes,no,cancel,etc) are untranslatable :roll:
Where? Which script?
gtkdialog
ex:

Image

Code: Select all

<button>
      '"`/usr/lib/gtkdialog/xml_button-icon yes`"'
      <label>" '$(gettext 'Yes')' "</label>
      <action>EXIT:yes</action>
    </button>
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#79 Post by mavrothal »

xanad wrote:

Code: Select all

<button>
      '"`/usr/lib/gtkdialog/xml_button-icon yes`"'
      <label>" '$(gettext 'Yes')' "</label>
      <action>EXIT:yes</action>
    </button>
These are coming from /usr/lib/gtkdialog/box_yesno. Right?
So you have the "yes" string translation in libstardust.mo and still fails? :?

BTW the latest momanager picks up /usr/lib/gtkdialog/ fine. No need for links to bin.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#80 Post by xanad »

These are coming from /usr/lib/gtkdialog/box_yesno. Right?
So you have the "yes" string translation in libstardust.mo and still fails?
yes
BTW the latest momanager picks up /usr/lib/gtkdialog/ fine. No need for links to bin.
ok, well
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#81 Post by mavrothal »

xanad wrote:
BTW the latest momanager picks up /usr/lib/gtkdialog/ fine. No need for links to bin.
ok, well
Translating libsturdust with the new momanager does the trick :D
Attachments
New_Momanager.png
(18.94 KiB) Downloaded 611 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#82 Post by xanad »

Hi mavrothal

:D Now it all seems ok, over time if there are other discrepancies we will see them do.
Thanks for your time and I'm very puzzled to have been the first to translate ppm v2 and find the impossibility of translation in some parts. it is clear that it has never been translated by those who drafted some scripts. Using gettext is valid if it is translated as a test. If it is not translated (at least in their own language) you can not understand the problems. Now ppm is very complete and very useful, thanks again. :wink:
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#83 Post by ASRI éducation »

xanad wrote:Hi mavrothal

:D Now it all seems ok, over time if there are other discrepancies we will see them do.
Thanks for your time and I'm very puzzled to have been the first to translate ppm v2 and find the impossibility of translation in some parts. it is clear that it has never been translated by those who drafted some scripts. Using gettext is valid if it is translated as a test. If it is not translated (at least in their own language) you can not understand the problems. Now ppm is very complete and very useful, thanks again. :wink:
Thank you for this new version.
I must soon test this development !
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#84 Post by xanad »

xdialog 2.3.1 gettexted
32 and 64 bit versions

http://murga-linux.com/puppy/viewtopic. ... 958#868958
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#85 Post by BarryK »

xanad,
Hi, I was wondering, have you looked at pcdripper?

http://murga-linux.com/puppy/viewtopic.php?t=24157

I had a very quick look at 3.9.4, the method of translation is very unusual, I don't understand it.

Maybe we should "normalise" it?
[url]https://bkhome.org/news/[/url]

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#86 Post by xanad »

BarryK wrote:xanad,
Hi, I was wondering, have you looked at pcdripper?

http://murga-linux.com/puppy/viewtopic.php?t=24157

I had a very quick look at 3.9.4, the method of translation is very unusual, I don't understand it.

Maybe we should "normalise" it?
ok, I just downloaded the file, now I look at it ...
Last edited by xanad on Sun 15 Nov 2015, 12:24, edited 2 times in total.
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#87 Post by 01micko »

I think we should be using james' Xdialog updates. It includes all of amigo's patches and some new ones. Even I fixed the long standing bug of not being able to use a mono font in a textbox in GTK2. (IIRC).

https://chiselapp.com/user/jamesbond/re ... alog/index

http://murga-linux.com/puppy/viewtopic.php?t=100571
Puppy Linux Blog - contact me for access

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#88 Post by xanad »

xanad wrote:
BarryK wrote:xanad,
Hi, I was wondering, have you looked at pcdripper?

http://murga-linux.com/puppy/viewtopic.php?t=24157

I had a very quick look at 3.9.4, the method of translation is very unusual, I don't understand it.

Maybe we should "normalise" it?
ok, I just downloaded the file, now I look at it ...
I found the way, but is a long text replacement... after gettext ... and after the test ... after translation...
When I finished I send it.
PS: all translations previously created will be useless.
----
EDIT:
First part of the job.
Pcdripper attached version 'normalized'. I hope it's all right.
Soon I start with gettext.
    Attachments
    pcd_mod.tar.gz
    (14.71 KiB) Downloaded 468 times
    [url]http://www.xanad.tk[/url] Html5 Parallax

    User avatar
    xanad
    Posts: 400
    Joined: Fri 28 Feb 2014, 14:56
    Location: 2 locations: MonteRosa Alp and Milano
    Contact:

    #89 Post by xanad »

    Hi Barry.,
    I have to solve others problems with gettext.
    For now I solved almost everything.

    textdomain problems:
    from line 1109 to 1137
    from line 1264 to 1296
    from line 1315 to 1383
    from line 1445 to 1513
    - same problem

    and
    from line 2417 to 2435

    I try again
    Attachments
    pcd-mods.tar.gz
    (14.74 KiB) Downloaded 472 times
    [url]http://www.xanad.tk[/url] Html5 Parallax

    User avatar
    xanad
    Posts: 400
    Joined: Fri 28 Feb 2014, 14:56
    Location: 2 locations: MonteRosa Alp and Milano
    Contact:

    #90 Post by xanad »

    previous post modified
    [url]http://www.xanad.tk[/url] Html5 Parallax

    User avatar
    don570
    Posts: 5528
    Joined: Wed 10 Mar 2010, 19:58
    Location: Ontario

    #91 Post by don570 »

    Uextract 3.13 has been gettexted
    pl and Russian by SFR

    The script that has been gettexted is hidden in folder Uextract

    http://www.murga-linux.com/puppy/viewtopic.php?t=87864

    ____________________________________________________

    User avatar
    xanad
    Posts: 400
    Joined: Fri 28 Feb 2014, 14:56
    Location: 2 locations: MonteRosa Alp and Milano
    Contact:

    #92 Post by xanad »

    pcdripper gettext.
    It is a file for me complicated. My solution is this. I added gettext, but are recognized by momanager 73 lines instead of 89. But by manually creating from scratch the .pot everything works. So it is preferable to directly translate the .pot. Other solutions?
    Attachments
    pcdripper-mod.tar.gz
    (16.63 KiB) Downloaded 529 times
    [url]http://www.xanad.tk[/url] Html5 Parallax

    User avatar
    rerwin
    Posts: 2017
    Joined: Wed 24 Aug 2005, 22:50
    Location: Maine, USA

    Snap2 internationalized and released!

    #93 Post by rerwin »

    BarryK on February 27, 2020 in his blog wrote:Lutz (L18L in the forum) has been running into problems with a German translation of Snap2. He cannot get it to work. It seems that although Snap2 was gettexted, it hasn't actually been tested.
    EDIT 3/26/2020: Get the released new version of internationalized snap2 here:
    http://www.murga-linux.com/puppy/viewto ... 82#1053782
    (End of edit)

    I have replaced with eval_gettext, instances of gettext usage that contain variables.

    I am unable to test translations, so need someone implementing them to test the attached experimental package with a translation file.

    Snap2 appears in EasyOS/Pup but apparently not in woofCE pups, although peebee maintains the english-only version adapted for woofCE (as version 4.26) for Pups.

    Please work with me (here or by PM) to correct any remaining translation issues. But I cannot help regarding messages about missing widget components.
    Richard

    UPDATE 3/1/20: Beta candidate attached, along with the xgettext output generated from the scripts for review only. I cannot test beyond that, so please let me know if anything further needs to be changed or added.

    UPDATE 3/7/20: Final beta uploaded. It now includes an internationalized Help component derived from the readme.txt file, and fixes for the widget warning messages, as well as peebee's fix in version 4.26.

    UPDATE 3/10/20: New 'final' beta uploaded. Most of the tests of user selections were not internationalized, so failed.

    UPDATE 3/17/20: Uploaded beta with further refinements and some operational testing.

    UPDATE 3/19/20: Uploaded beta with operation corrections and message simplification.

    UPDATE 3/20/20: Uploaded beta with scrolling top section and internationalized desktop file. Note that the scroll bar goes to the end, but page-down, page-up and the mouse wheel work for scrolling.

    UPDATE 3/20/20: Uploaded beta with corrected message that did not translate, replacing 20200320 version.

    UPDATE 3/25/20: Uploaded release candidate which fixes occasional "broken pipe' messages and contains further internationalization.

    UPDATE 3/26/20: Uploaded the final release to the thread, " snap2 rotating snapshot backups for Puppy," in Advanced Topics » Additional Software (PETs, n' stuff) » Utilities:
    http://www.murga-linux.com/puppy/viewto ... 82#1053782

    Since its messages differ from the release candidate, I am removing the RC.
    Last edited by rerwin on Thu 26 Mar 2020, 20:10, edited 12 times in total.

    User avatar
    L18L
    Posts: 3479
    Joined: Sat 19 Jun 2010, 18:56
    Location: www.eussenheim.de/

    Re: Snap2 and eval_gettext

    #94 Post by L18L »

    Hi Richard,

    glad you are going to take that bull by the horns
    rerwin wrote:...
    I am unable to test translations, so need someone implementing them to test the attached experimental package with a translation file.
    ...
    Problem is not the translation, it is the code.
    Real example: Help button at the main window. (gettext Help)
    But there is no other gettext Help in the script
    It is an offer without action.

    Here ismy offer for you and all English-(only)-developers:
    Use a pseudo language to test your code (see image please)
    launch momanager create non-English ... in EasyOS or EasyPup
    choose Matching TEXTDMAIN: "snap2"
    Create (or Edit)

    Start with just 1 translation
    e.g.

    Code: Select all

    msgid "Help"
    msgstr "xHelpX"
    test
    next translations
    test..........................
    But I cannot help regarding messages about missing widgit components.
    MeToo :lol: :wink:
    Attachments
    english_translated_to_XenglishX.png
    I am NOT the inventor of this method.
    It is used by web designers since long timeas
    (51.92 KiB) Downloaded 380 times

    User avatar
    rerwin
    Posts: 2017
    Joined: Wed 24 Aug 2005, 22:50
    Location: Maine, USA

    snap2-4.27 candidate uploaded

    #95 Post by rerwin »

    esmourguit in a PM to me wrote:I send you the french .po and .mo files of snap2 on which you worked.
    They seem to work.
    Thank you very much for your work.
    Thank you for trying my version of snap2 and sending me your translations.

    I have now hopefully concluded my updates and have uploaded a candidate for version 4.27 of the snap2 package.
    http://www.murga-linux.com/puppy/viewto ... 73#1051473
    It contains fixes for the warning messages, the update from version 4.26 by peebee, and a new internationalized Help script, snap2help.

    For anyone who has started translating for the previous (20200301) package, I am attaching a difference listing of xgettext outputs, so that your translations can be edited with the minor changes.

    As I am inexperienced with using snap2, could someone familiar with using it please try 4.27 and let me know whether there are any remaining problems with it. I may try it myself but that will take some time, and I do not want to delay providing 4.27.
    Richard
    Attachments
    diff-snap2_mo_files.gz
    Minor differences in text strings between versions 20200301 and 20200307.
    (649 Bytes) Downloaded 125 times

    Post Reply