Updating language files for Opera 9
Thursday, 23. March 2006, 08:36:58
This change helps us in such a way that we can work in parallel adding language file in a much cleaner fashion than before, but unfortunately also means that Opera 9 will be incompatible with all previous language files. In a way, this is good, as using an older language file can cause problems, but is also bad as it causes all the unofficial translations to stop working, and puts the people providing these files in a problematic position when they want to update the translation to a newer version.
For this purpose, I have written a script that remaps the language file from the old numbering system to the new one. It is a simple Perl script that reads the old language file and changes all the numbers over to the new one. If you do not, or cannot, use Perl, you should still be able to make use of the remapping table.
Update: read about the changes in the 24th March weekly




sabio # 23. March 2006, 12:28
Is it a regression or intentional behavior? How do I make Opera load non-english.lng file?
(Of cause, I've updated DB.version, Build.Win, Version.Win in there to match those of english.lng)
nafmo # 23. March 2006, 12:43
juanan # 23. March 2006, 14:03
AbilioKID # 23. March 2006, 21:58
esfahan # 24. March 2006, 08:23
All people who published them must now distinguish between before and after build 8303 ?
nafmo # 24. March 2006, 08:30
KozAKi # 24. March 2006, 11:45
thank you
Note for people that have problem using it :
I converted the Opera-8.5x French .lng file doing :
1) Conversion :
---------------
- DL Peter's perl script
- put the script along with new english.lng & 8.5x French lng files in a directory that has user read & write rights
- Then launched the script :
$ perl remaplanguagefile.pl ouw852_fr.lng
It will stop at each lines existing in the old .lng file but not in new 9.0 english.lng file. Therewhile I edit the old file doing :
$ gvimdiff english.lng ouw852_fr.lng --> erase those lines.
This way, every comment is preserved, on opposite to Abilio_KID (otherwise very good) localized files
2) Update resulting ouw852_fr.lng.remap files with new 9.0 content :
--------------------------------------------------------------------
$ gvimdiff english.lng ouw852_fr.lng --> Change version & add new lines using powerfull gvimdiff features
$ mv ouw852_fr.lng ouw90_fr.lng
3) Make Opera 9.0 use the new ouw90_fr.lng :
--------------------------------------------
# mv ouw90_fr.lng /usr/share/opera/locale/
In Opera, type opera:config in the URL box, expand "User Prefs" & @ "Language File", browse to /usr/share/opera/locale/ouw90_fr.lng
Restart Opera.
Now you got everything back to French in your Opera 9.0
Le fichier de langue en français pour Opera 9.0 sera disponible rapidement sur le tutoriel Opera que je tiens à jour
esfahan # 24. March 2006, 14:00
If people use different Opera versions you must provide 2 buttons instead of one. That's horrible for all the people who develop toolbars for download by toolbar.ini or direct download by opera:button-link
jasisz # 24. March 2006, 19:20
unal # 24. March 2006, 19:52
And will you provide a new script for recent changes?
Anonymous # 24. March 2006, 20:59
Would it be possible to make this Perl script operate on-line somewhere, so we can run it in a web-based environment? Upload old file, copy the conversion from a textarea or something?
nafmo # 24. March 2006, 21:16
aleksandaraleksandar # 24. March 2006, 22:40
Mongoose # 25. March 2006, 10:21
Anonymous # 29. March 2006, 17:19
Should we change our language file's related lines to "-" value?
Anonymous # 8. April 2006, 14:48
Remapping for me required to remove some lines (most of them about licensing) from the language file (de), then the remapping script ran through, but still opera didn't accept the remapped file.
What I had to do manually is to change the Version.Linux line in the [Info] section from 8.50 to 9.0. Maybe you can add this to your perl script.
nafmo # 11. April 2006, 08:06
anonymous: The remapping script only lists strings that are currently available, it will fail if you try to remap a language file with removed strings.
nadavkav # 25. April 2006, 07:36
kindly,
nadav :-)
zih3r # 4. May 2006, 15:52
Can someone please remapp croatian language file
http://www.ziher-net.com/shared_files/Private/croatian.lng
and send me remapped file to info (at) ziher-net.com
I don't have/understand Perl.
nafmo # 5. May 2006, 06:27
zih3r # 5. May 2006, 09:38
Thank you! Now I must add few new lines and this will be wonderful! And collect new Opera users of course, here in Croatia!
Yury_T # 18. May 2006, 13:57
nafmo # 22. May 2006, 13:29
Yury_T # 29. June 2006, 07:45
nafmo # 29. June 2006, 14:26
MarcusHassmann # 24. July 2008, 09:15
Is there a new download link?