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 22 Oct 2014, 08:14
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Project: Puppy-menu translation-utility
Moderators: Lobster, MU, raffy
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send_private_message Visit_website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: 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
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0496s ][ Queries: 12 (0.0114s) ][ GZIP on ]