Commit Graph

10 Commits (3254155930feb807f81031ebfdc9acedbe33745e)

Author SHA1 Message Date
peter1138 136359ecbd (svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working. 18 years ago
belugas 09a143d985 (svn r4888) CodeChange : Newgrf : little cleanup and additions
-Add 4 new langIDs (Afrikaans, greek, ukrainian,croatian)
-Only allocate memory when the string will be inserted
-In order to avoid the UTF-8 marker, compare based on length of defined iso_code (thanks peter1138)
-Synch with lang files iso_code cleanup
18 years ago
peter1138 bdcbe2af5c (svn r4832) - NewGRF: add support for original string ID to newgrf text handling. So far, this is used for vehicles when no English or American translation is provided. 18 years ago
peter1138 d7bc0293b1 (svn r4557) - NewGRF: translate from TTDPatch control codes to our own, instead of just simple validation. We still perform
validation on any unhandled character.
18 years ago
peter1138 baebc8d47e (svn r4550) - NewGRF: update string system to new rules: a grf version of less than 6 uses the old scheme, of 7 or more uses the new scheme. (Moving targets, yay...) 18 years ago
Darkvater 5a8d992eaa (svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P 18 years ago
peter1138 a0a2feeda5 (svn r4497) - NewGRF minor fixes: (Rubidium)
- Remove a define in favour of using the lengthof() an array.
  - Fix typos in language names enum.
  - Add Brazilian ISO code.
18 years ago
peter1138 3660fab10a (svn r4495) - NewGRF: Implement conversion from old language IDs (bitmask) to new language IDs (value) 18 years ago
peter1138 5f1ae3f4c6 (svn r4494) - NewGRF: Clean up and reset custom texts 18 years ago
belugas aab91d287a (svn r4493) Newgrf : Action 04. Beginning of implementation.
Some TODOs left, but the core is there.
Thanks to Peter1138 for code, advice and patience
And to Patchman for letting us define a lot of langids :)
18 years ago