Ability to switch between supported languages

Ask for help about FlashGot, no registration needed to post
Post Reply
George

Ability to switch between supported languages

Post by George »

I have noticed that, although Flashgot supports many languages, choosing the one you like is not an option.

I'm using the greek version of Firefox, on greek Win XP, as I share my computer with family members who do not speak english. But, when it comes to programs I use exclusively, I prefer using the english language.
As a result, Flashgot uses greek by default and, strangely, I cannot switch it.

Is there a manual way, or a workaround, that could help me do the switch? e.g. if the translation files are stored somewhere, maybe I could just delete the greek one... you get the point.

Btw, thank you Giorgio for making these great Firefox addons (especially NoScript).
Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0
George

Re: Ability to switch between supported languages

Post by George »

Did it myself, eventually. So, it's ok, don't bother.

For those that might be interested, it's quick and dirty:

You need to remove all locales, except the one you're interested in. In my case, I kept "en-US".

Locate the .xpi file that contains the Flashgot addon. The xpi file is actually a zip archive. Search there for Win XP:

C:\Documents and Settings\<User name>\Application Data\Mozilla\Firefox\Profiles\<Profile>\extensions

Unpack the xpi, and edit the following files with a text editor (e.g. WordPad):

chrome.manifest (resides inside the "chrome" folder)
install.js
install.rdf
flashgot.jar

In "chrome.manifest", find and remove all lines starting with "locale", except the one you need.

In "install.js", find the line starting with "const APP_LOCALES", and remove unwanted locale references. Be careful not to break the syntax: locales need to be inside quotes, separated by commas, reside inside brackets, with the whole declaration ending with a semicolon.

In "install.rdf", again, find the lines starting with "<em:locale>", and remove unwanted locale references.

Finaly, open "flashgot.jar" with an archiver (it's a zip file again). I used 7zip, and tested WinRAR, too. They both worked fine.
Go into the "locale" folder, and delete all unwanted locale subfolders. The .jar file will be automatically updated by the archiver.

Now, use the archiver to pack all the files extracted from the xpi, into a zip archive. Rename the zip archive appropriately to match the name and extension of the original xpi file, and put the renamed file back into the Firefox extensions folder.

Flashgot should now use the language you desire.

I know it's a bit of an overkill to do this just to switch to another language, but I can't stand the translated terms (it's not a bad translation, it's just the confusing terms that have prevailed, they totally and absolutely suck).

Thanks again for your extensions Giorgio. I hope you will give us a language option in the future.
Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0
User avatar
therube
Ambassador
Posts: 7971
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Ability to switch between supported languages

Post by therube »

Note that the language will revert on update.

What if you used different Profiles? One for you, one for all the others.

Otherwise maybe something here, Language packs.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a2) Gecko/20120202 Firefox/12.0a2 SeaMonkey/2.9a2
George

Re: Ability to switch between supported languages

Post by George »

You were right. The solution was there all along and I just wouldn't see it, as I've never used Firefox profiles.
Actually, the solution lies within both your suggestions. I'm posting it here since it could be useful to someone
who bumps on it.

First, one has to install the desired language packs from the link you provided. Then, create another
profile and set the locale to the language you prefer. This is done through "about:config", by modifying the
value of "general.useragent.locale".

Finally, a shortcut to each profile can be created by using the following line in it's target field:
"C:\Program Files\Mozilla Firefox\firefox.exe" -P "Profile Name"

Another solution -that also requires the language packs- would be one of the locale switcher add-ons, and it
seems only one of them is getting updated:
https://addons.mozilla.org/en-US/firefo ... -switcher/

Thanks for your help.
Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0
George

Re: Ability to switch between supported languages

Post by George »

Sorry for double-posting, here's the proper addon link: Locale Switcher 3
Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0
Post Reply