You are here

PA.com Launcher Language Help

8 posts / 0 new
Last post
zomby_mann_zakk
Offline
Last seen: 12 years 2 months ago
Joined: 2010-09-12 20:43
PA.com Launcher Language Help

hello,

I have currently found how the language is transfered to the application, through the registry. How is this handled or is it even supported? thanks in advanced.

The key is located in "HKCU\Software\Arora-browser.org\Arora\LanguageManager" and the value is "en_US" by default

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

That's nothing to do with the Installer - it's a Launcher question. I've renamed the thread.

Take a look at Apps using PAL for examples of language switching and some registry stuff.

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

zomby_mann_zakk
Offline
Last seen: 12 years 2 months ago
Joined: 2010-09-12 20:43
Thank You

I was unaware that the launcher actually changed the language and not the installer, I guess i got confused because of the installer asking which language you want. Thank You again for your time

zomby_mann_zakk
Offline
Last seen: 12 years 2 months ago
Joined: 2010-09-12 20:43
No Success

I have been able to get the launcher to work partially with language using [RegistryValueWrite], but that requires the person to change the appnameportable.ini in order have the language that they desire. I have tried editing appnameportable.reg in the launcher but when it fails or starts up under the default "en_US" it is deleted by the program. I also tried sending %PAL:CustomLanguage% and a custom variable that mirrors %PAL:CustomLanguage%, but it doesn't sent the value I get a key that looks like this:

[HKEY_CURRENT_USER\Software\arora-browser.org\Arora\LanguageManager]

but it is supposed to look like this:

[HKEY_CURRENT_USER\Software\arora-browser.org\Arora\LanguageManager]
"Language"=%language%

is there a way that I can incorporate another file lets say language.ini, have [language] read it and correct it to the selected language on the and then have the contents of that file sent through the registry?

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

The easiest way tends to be to deal with the .reg file as an INI file.

I hope you meant %PAL:LanguageCustom%, not %PAL:CustomLanguage%?

It's supposed to look like "Language"="value". Key and value are both quoted.

[FileWrite1]
File=%PAL:DataDir%\settings\arora.reg
Type=INI
Section=HKEY_CURRENT_USER\Software\arora-browser.org\Arora\LanguageManager
Key='"Language"'
Value='"%PAL:LanguageCustom"'

[LanguageFile]
File=%PAL:DataDir%\settings\arora.reg
Type=INI
Section=HKEY_CURRENT_USER\Software\arora-browser.org\Arora\LanguageManager
Key='"Language"'

Really, I need to see your code to be able to say what you've got wrong.

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

zomby_mann_zakk
Offline
Last seen: 12 years 2 months ago
Joined: 2010-09-12 20:43
yes

I mean %PAL:LanguageCustom% and I do agree that sounds much easier than the code I was attempting to use this is what I used:

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\Arora\locale\%PAL:LanguageCustom%.qm
DefaultIfNotExists=en_US

[LanguageFile]
Type=ConfigRead
File=%PAL:DataDir%\settings\AroraPortable.reg
Section=HKCU\software\arora-browser.org\Arora\LanguageManager
Key="language"

[RegistryValueWrite]
HKCU\software\arora-browser.org\Arora\LanguageManager\Language=REG_SZ:%PAL:LanguageCustom%

I see where my code would lead to problems and how your code will effectively help the configuration of the reg file

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

[LanguageFile]:Type=ConfigRead requires "Entry"; Section and Key are for Type=INI. The file is also written using HKEY_CURRENT_USER, not HKCU. If you just changed those two, it should work.

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

zomby_mann_zakk
Offline
Last seen: 12 years 2 months ago
Joined: 2010-09-12 20:43
Now up and Working

thanks to your help I fixed the errors that I made and language is now up and running

Log in or register to post comments