Skip navigation.

A Swedish wolf in Norway

Miscellaneous technobabble from a Swede in Norway.

Tweaking the language file format

, ,

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.

Stating the obviousNo revolutionary changes in the world of mobile browsing this week

Comments

Pink 31. March 2006, 06:16

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.

nafmo 4. April 2006, 19:31

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.

MarcusHassmann 24. July 2008, 09:34

The script isnn't downloadable because url http://people.opera.com/peter/translation/remapper/ isn't found.
Is there a new download link?

nafmo 25. July 2008, 08:04

Unfortunately not. The files were removed from people.opera.com when I left Opera Software, and I didn’t retain any copies of them.

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

Download Opera, the fastest and most secure browser
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31