This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7574 - Genlang produces lng files with ID number gaps in some cases
Attached to Project:
Rockbox
Opened by Nils Wallménius (nls) - Friday, 10 August 2007, 15:41 GMT+2
Last edited by Daniel Stenberg (bagder) - Saturday, 11 August 2007, 00:10 GMT+2
Opened by Nils Wallménius (nls) - Friday, 10 August 2007, 15:41 GMT+2
Last edited by Daniel Stenberg (bagder) - Saturday, 11 August 2007, 00:10 GMT+2
|
DetailsIf I run the following genlang command on the attached testlang.lang file it produces a .lng file with an ID gap. Yes gets ID 0, No gets 1 but Off gets ID 3 and there's no string with ID 2.
./genlang -b=testlang.lng -e=testlang.lang -t=player -i=1 testlang.lang |
This task depends upon
Closed by Daniel Stenberg (bagder)
Saturday, 11 August 2007, 00:10 GMT+2
Reason for closing: Fixed
Additional comments about closing: Committed a fix right now: r14274
Saturday, 11 August 2007, 00:10 GMT+2
Reason for closing: Fixed
Additional comments about closing: Committed a fix right now: r14274
In order to correct this, the way IDs are generated by counting english.lang entries must take into account whether we're building for a specific target or upgrading a .lang file.
When invoked with -p and -b, it must not count entries which evaluate to 'none' for that target, with -u it has to count all entries.