You are here

Language Variable Documentation

5 posts / 0 new
Last post
dagardner
dagardner's picture
Offline
Last seen: 5 years 5 months ago
Developer
Joined: 2007-09-20 14:41
Language Variable Documentation

Is there documentation that lists all of the language variables for the PortableApps platform? The best I was able to find was Chris Morgan post in Language Environment Variables, but doesn't have all of the languages and it is more than a year old, so I wasn't sure if something had changed.

I'm working on Zekr Portable, and it requires the languages to be specified in a format similar to en_US, de_DE, fr_FR, etc. I don't now if that is readily available from the platform, or if I will have to parse it myself for the available languages.

Thanks in advance

Mark Sikkema
Offline
Last seen: 13 years 3 months ago
Developer
Joined: 2009-07-20 14:55
You can find the exact

You can find the exact language codes for the variables in 'X:\PortableApps\PortableApps.com\App\Locale\*.locale' . Just add 'PortableApps.com' in front of the value-name to get the environment variable name!
For example, Afrikaans.locale:

LocaleID=1078
LocaleWinName=LANG_AFRIKAANS
LocaleCode2=af
LocaleCode3=afr
LanguageCode=af
Localeglibc=af

PAL adds an extra one (I believe it's coming with PAM 2.0 as well):

PortableApps.comLocaleName=AFRIKAANS (this just chops of 'LANG_' from LocaleWinName)

Formerly Gringoloco
Windows XP Pro sp3 x32

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
LocaleName

LocaleName is (or rather will be, in 2.0 Beta 5 and later) mixed case, e.g. Afrikaans, PortugueseBR.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
Table of values

A complete table of values is now available in the PortableApps.com Launcher manual. This is just the Platform 2.0 Beta 4 list (with a few modifications, the bugfixes which I've mentioned in its thread); 2.0 Beta 5 will be Unicode and will have a slightly different language set.

http://portableapps.chrismorgan.info/portableapps/launcher/docs/topics/l...

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

dagardner
dagardner's picture
Offline
Last seen: 5 years 5 months ago
Developer
Joined: 2007-09-20 14:41
That's it!

That's the kind of thing I was looking for. Thanks!

Log in or register to post comments