The time now is Mon 20 May 2013, 13:23
All times are UTC - 4 |
| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 10 May 2006, 01:49 Post subject:
Project: Puppy-menu translation-utility |
|
The vietnamese Hacao-linux translated the Puppy-menu "manually".
This means the file /root/.jwmrc was translated "by hand".
This becomes very hard work, if you want to upgrade to a newer Puppyversion, as that overwrites the menu with a new, english one.
So I wrote a tool, that uses a external file for the translation.
If you upgrade Puppy, simply run the "translator" again, to localize your menu.
A german languagefile is included, other languages must be added by users.
http://www.murga.org/~puppy/viewtopic.php?t=7165
Mark
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Wed 10 May 2006, 12:10 Post subject:
|
|
An added advantage is that your tool could be easily modified to enter the translated text into the .desktop files for the XDG menus.
So if people start using your tool the transition would be way easier.
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Thu 11 May 2006, 10:25 Post subject:
|
|
The XDG menu implementation is localization ready!
As simple as
1. Add a new "Name" property qualified with the locale string and with the translated text for each of the languages. e.g.
Name=<text in English (default)>
Name[es]=<text in Spanish>
Name[de]=<text in German>
etc..
2. Save the .desktop or .directory files with an UTF-8 encoding.
Leafpad has this capability. When you select "Save as..." it allows to change the encoding. Accented characters appear in the JWM menu correctly. Another alternative is to add the translation to all files and then run them by the iconv utility to change the encoding to UTF-8.
Now the menu will show in the corresponding language according to the Locale selected for Puppy.
This means that a language package could have a script to insert the corresponding translations inbto the .desktop/directory files.
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
|
|
Back to top
|
|
 |
|
|
|
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.0379s ][ Queries: 12 (0.0055s) ][ GZIP on ] |