Tweaking the language file format
Published: 2006-03-27 09:03:16
Due to some unforeseen problems with the new language file numbering introduced in the previous weekly build, the build from 24th March changes it again somewhat. The good news is that language files created by using the remapping script I introduced last week still works. For the techies in the audience, the difference between the two numbering systems is that we changed the number from an unsigned 32-bit integer to a signed 32-bit integer. Thus any number over 2147483647 becomes a negative value.
However, to make it easier to keep track of the changes, I have created a new remapping script that uses the new numbering scheme. It works the same as the previous one, the only change is the remapping table.
If anyone has the resources to make an on-line remapper, where you can upload an old language file and have the numbers changed, please feel free to do so. If you send me the URL I will be happy to link to it.
Tags: browsers opera translation
Comments
- Date: 2006-04-04 21:04:57
- Name: nafmo
You don't really need to, as Opera will think that the large positive number is the same as the large negative one. If you really want to, you need to do something on the lines of
print unpack("l", pack("L", $value));
in Perl-speak, or
scanf("%u", &value); printf("%d", value);
in C. I.e, interpret the 32-bit unsigned value as a 32-bit signed instead.
- Date: 2008-07-24 11:07:35
- Name: MarcusHassmann
The script isnn't downloadable because url http://people.opera.com/peter/translation/remapper/ isn't found.
Is there a new download link?
- Date: 2008-07-25 10:07:52
- Name: nafmo
Unfortunately not. The files were removed from people.opera.com when I left Opera Software, and I didn’t retain any copies of them.
This was originally posted on My Opera at
http://my.opera.com/nafmo/blog/show.dml/197345
Please note that links may be outdated and any information included here
may be obsolete.
← Updating language files for Opera 9 | No revolutionary changes in the world of mobile browsing this week → | Back to the post index | Back to the archive index | Peter's homepage
Is it possible to remap 8303 language file to 8326.
I remaped old language file with first remaper and added 30 new strings, and now I have to remap old file again and find this new strings.
And MakeLngFile from Marco Rizzi doesn't work with negative numbering.