Desksetup, i18n'd (internationalised)

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Desksetup, i18n'd (internationalised)

#1 Post by sc0ttman »

I have the excellent 'desksetup-0.4' from 01micko installed, found here: http://www.murga-linux.com/puppy/viewto ... 133#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 :)

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 :)

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: Select all

# 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"
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: Desksetup, i18n'd (internationalised)

#2 Post by musher0 »

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: Select all

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: Select all

LANG=fr_CA
or

Code: Select all

LANG=es_AR
etc., and re-instate

Code: Select all

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
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply