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 Fri 22 Aug 2014, 04:17
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Desksetup, i18n'd (internationalised)
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Mon 08 Aug 2011, 11:15    Post subject:  Desksetup, i18n'd (internationalised)
Subject description: updated nicely, but I need some help
 

I have the excellent 'desksetup-0.4' from 01micko installed, found here: http://www.murga-linux.com/puppy/viewtopic.php?p=488133#488133

I also have Puppy-desktop-NLS, found here: http://www.murga-linux.com/puppy/viewtopic.php?t=63533

Puppy-desktop-NLS translates the English text found in PuppyPin to the current language, so ROX desktop icons are localised. That is nice Smile

Desksetup gives users a choice of ROX desktop icon layouts - you can easily choose to have all icons, none, or only the most important icons. This is a great tool.

I have updated Desksetup to work on all Puppies, and so that X is not restarted after I update my icons.. Only ROX is restarted Smile

I edited Desksetup so that it updates the desktop icon labels with the correct locale.. fixmenus_on_locale already does this, so I stole the code from there and put it into desksetup.

EDIT: OK, I have nearly got it working perfect, but at times, it will still revert the ROX icons to english... Cannot find why as yet.

Anyway, here's the GUI to translate into other languages, please:

Code:
# english

Loc_icons_frame="Desktop Icons"
Loc_icons_msg1="Choose a desktop layout"

Loc_icons_traditional_label="Traditional - full desktop icons"
Loc_icons_traditional_tt="This is the standard Puppy desktop that has been a tradition since Barry Kauler started Puppy in 2003, for purists"
Loc_icons_minimal_label="Minimal - only essential desktop icons"
Loc_icons_minimal_tt="This includes just the file, browse, edit, console and play icons, for those who move fast"
Loc_icons_bare_label="Bare - no desktop icons"
Loc_icons_bare="There will be no application icons on the desktop, this is for minimalists"
Loc_icons_custom_label="Custom - choose your saved profile"
Loc_icons_custom_tt="This will display your saved custom pinboard"
Loc_icons_customsave_label="Click this button to save your custom arrangement"
Loc_icons_customsave_tt="Clicking here will save your desktop changes to a customised file. Be aware that this omits drive icons"

Loc_drives_frame="Drive Icons"
Loc_drives_msg2="Choose a drive icon layout"

Loc_drives_clean_label="Clean - no drive icons"
Loc_drives_clean_tt="This is for minimalist bare desktops, there will be no drive icons at all"
Loc_drives_traditional_label="Traditional - an icon for each partition"
Loc_drives_traditional_tt="This is the default for all puppies, each partition will have it's own icon and so will plugged drives"
Loc_drives_lean_label="Lean - only root drive icons"
Loc_drives_lean_tt="There will be only the root of the drives on the desktop"
Loc_drives_minimal_label="Minimal - one drive icon"
Loc_drives_minimal_tt="There will be only 1 drive icon which starts Pmount"

Loc_apply_tt="Clicking Apply will save your changes and restart the ROX pinboard."
Loc_apply_btn="Apply"
Loc_close_btn="Cancel"

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4230
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Oct 2013, 17:50    Post subject: Re: Desksetup, i18n'd (internationalised)
Subject description: updated nicely, but I need some help
 

sc0ttman wrote:
(...)
EDIT: OK, I have nearly got it working perfect, but at times, it will still revert the ROX icons to english... Cannot find why as yet.
(...)


Hi, sc0ttman.

How are you? Sorry for not answering before, I just chanced upon your
thread now while searching for the desksetup script.

What does
Code:
echo $LANG

say before and after you test your script?

Solution: I believe that your script should change the language code on
the last line, before restarting rox. Or perhaps independently. For ex.,
Code:
LANG=fr_CA

or
Code:
LANG=es_AR

etc., and re-instate
Code:
LANG=en_NZ

or whatever your default language code is, when you've finished testing.

If you don't change the $LANG variable in your tests and provide for a
change in your script, those strings will forever be in the developer's
language! Wink

I hope this helps.

Best regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
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.0530s ][ Queries: 12 (0.0043s) ][ GZIP on ]