Commit Graph

163 Commits (df601b8559b3d5de179b5b9e65ab9674fbd8bf5e)

Author SHA1 Message Date
rubidium c97b2a5224 (svn r23575) -Codechange: split class definition and implementation of base strgen classes 13 years ago
rubidium 9c34bc52db (svn r23574) -Codechange/Feature-ish: allow converting multiple translations with the same master language instance in a single strgen run 13 years ago
rubidium 17c0756da2 (svn r23573) -Fix (r23571): MSVC doesn't like variable array sizes 13 years ago
rubidium ad7f577931 (svn r23572) -Codechange: split actual file reading from logic for parsing 13 years ago
rubidium 4fbbbdd78f (svn r23571) -Codechange: make the number of 'tabs' the generate configurable 13 years ago
rubidium ab37a923c2 (svn r23570) -Codechange: move version generation code to StringData 13 years ago
rubidium 343d0d8176 (svn r23569) -Codechange: put more logic in some of the strgen structs, e.g. allocating and freeing its memory, and don't use a global variable for the string data 13 years ago
rubidium 6c31b25e22 (svn r23568) -Codechange: only allocate the buffer for writing when it is really needed 13 years ago
rubidium b7b3ac8859 (svn r23567) -Codechange: use SmallVector for the buffer in strgen 13 years ago
rubidium 5d37791157 (svn r23566) -Fix (r23565): hopefully fix MSVC compilation error 13 years ago
rubidium 15906ca874 (svn r23565) -Codechange: create some classes for writing language header and translation files 13 years ago
rubidium 719b4707dc (svn r23563) -Cleanup: remove useless global variable from strgen; it would always be false at the point it would be read 13 years ago
rubidium b8866be093 (svn r23269) -Codechange: rename some control/string codes/IDs to be more consistent 13 years ago
rubidium 525e2c9e73 (svn r22806) -Codechange: store the number of untranslated strings in the language file 13 years ago
alberth 31386c42a7 (svn r22145) -Codechange: Do explicit test for non-bool values. 14 years ago
alberth ff1e0a3ed3 (svn r22102) -Codechange: Also use the getopt function in strgen. 14 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium d332c59a4c (svn r21474) -Fix: some MSVC code analysis warnings in strgen 14 years ago
yexo 74d608a67e (svn r21445) -Fix: [NewGRF] fix gender choice lists in newgrf strings.
Change: strgen no longer writes the type of a string for a gender choice list
14 years ago
yexo dfe8b546ec (svn r21348) -Fix (r21346): some compilers complain about int-uint comparisons 14 years ago
yexo d81d42bfc3 (svn r21347) -Cleanup: remove an unused feature from strgen and remove some ifs where we already know the result 14 years ago
yexo 35af463046 (svn r21346) -Fix (r2592): buffer overflow in strgen for strings with very large arguments 14 years ago
rubidium ede2fb8176 (svn r21260) -Codechange: make strgen more stringent w.r.t. the allowed characters in strings 14 years ago
rubidium ebf7b915b0 (svn r21215) -Codechange: store the plural form in the plural (choice) lists 14 years ago
rubidium 4b4db5d86e (svn r21203) -Codechange: make the maximum plural count available to the rest of OpenTTD as well 14 years ago
rubidium d46a2ef122 (svn r21165) -Codechange: move the case/gender meta data into the language metadata struct as well 14 years ago
rubidium f195920695 (svn r21160) -Codechange: reuse the strgen LanguageHeader to store some metadata about a language, and keep the language metadata in memory instead of loading it several times from disk 14 years ago
rubidium 1ddc05e822 (svn r21134) -Change: perform some more stringent validity checking on the language files 14 years ago
rubidium 8cd48767f9 (svn r21132) -Codechange: unify the language file version/validity checking 14 years ago
rubidium 15defb219f (svn r21127) -Codechange: change the max gender constant's name's style to the style used by the max case constant's name 14 years ago
rubidium b9ccf6dccc (svn r21115) -Codechange: make it more clear that genders and cases in the base translation are not supported 14 years ago
rubidium 28ed77c354 (svn r21113) -Codechange: remove the amount of places where the language pack identifier magic value is 14 years ago
rubidium a89fed21c7 (svn r21112) -Codechange: reduce the amount (of copying) variables 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
alberth be6c058424 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium 9d29c54b03 (svn r19867) -Change: use non-breaking spaces for currency pre-/postfixes. 14 years ago
rubidium 793b0f0736 (svn r19811) -Codechange: make the last bits from table/strings.h use static consts too instead of an unnamed enum 14 years ago
smatz 0ef33548c2 (svn r19614) -Codechange: "it's" => "its" where appropriate 14 years ago
rubidium eb220617d5 (svn r19264) -Fix (r19179): strgen segfaults when trying to lookup the command for a non-existing command 15 years ago
rubidium 2a65f9e4d0 (svn r19180) -Add/Fix: (partial) support for genders for cargos, industries, vehicles, stations, ...; partial because you can't set a gender for a custom string. 15 years ago
rubidium 44f2ef179d (svn r19179) -Codechange: make strgen do some checking on whether genders are valid for a command (e.g. we don't have genders for numbers) 15 years ago
rubidium f6dfce6d59 (svn r19114) -Change: [strgen] Modify the outputted format for MSVC builds of strgen so it also shows fatal errors in the 'error list' and it also counts them. (Fatal) errors are marked as warnings so a failing language file is not causing the complete compilation to fail. 15 years ago
rubidium b1cce3f70f (svn r19113) -Change: [strgen] Remove the partially generated language file if compilation fails. 15 years ago
rubidium 92c75f9092 (svn r18727) -Fix [FS#3480]: some invalid gender/plural indices in strings, which could eventually cause crashes. 15 years ago
rubidium 4d575c0226 (svn r18444) -Feature: allow G and P to 'select' substrings of STRINGn for getting their gender 15 years ago
frosch bf0b72ae9e (svn r18329) -Remove: [strgen] Support for {SETX} and {SETXY}. Let it rest in peace as NewGRF relict. 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
smatz c5533ae470 (svn r17168) -Codechange: apply coding style to if and while statements 15 years ago
smatz a29bbb1e1f (svn r17157) -Add: localised decimal separator 15 years ago
rubidium ed9c01e8b0 (svn r17137) -Fix (r17129): strgen complained a lot about english.txt compiled with MSVC. 15 years ago
rubidium 0d1b35a400 (svn r17129) -Codechange: also let strgen warn if the translation uses STRINGn or RAW_STRING instead of STRING. 15 years ago
rubidium ee2b7de8f4 (svn r17095) -Codechange: make ParseStringChoice a bit safer 15 years ago
smatz 4f0e62deb6 (svn r16627) -Fix: warning about comparing signed and unsigned types 15 years ago
rubidium d5ff6c7423 (svn r16625) -Fix: unsigned vs signed warning in strgen 15 years ago
rubidium cdc0c092f1 (svn r16591) -Codechange: some coding style in strgen 15 years ago
rubidium fa1dcd4194 (svn r16577) -Fix: signed/unsigned comparison 15 years ago
rubidium 28e6b46a41 (svn r16576) -Fix: show the line of the translation file that has the fault and not the line of the string in english.txt. 15 years ago
smatz f5316c5cbd (svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
15 years ago
rubidium a36ab04d5d (svn r16145) -Add: '-export-pragmas' to strgen so external tools can (hopefully) automatically be updated to support new pragmas 15 years ago
rubidium ff05dc8446 (svn r16129) -Feature-ish: configurable digit group separator per language with user override. 15 years ago
rubidium 1f25d9126f (svn r16123) -Fix: forgot to add table/strgen.h to the project files + a typo 15 years ago
rubidium 85ca163be2 (svn r16122) -Change: add more misc information about the behaviour of commands to strgen's -export-commands. 15 years ago
rubidium d56d462eca (svn r16115) -Change: make strgen able to 'export' the important command and plural information so external tools can easily get that information instead of needing manual updating 15 years ago
rubidium bee930f9b3 (svn r16024) -Codechange: harden string copying on places where it's possible 15 years ago
smatz 1eeb1d6cee (svn r15965) -Change: use recent Czech language for plural form (it has been official for years anyway) 15 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium eb0d43aadd (svn r15696) -Codechange: move the NewGRF language ID into the language file instead of maintaining a table in the code. 16 years ago
rubidium 0a673d870b (svn r15456) -Fix(ish): add strgen support to add 'directional formatting codes', so one can guide the bidirectional rendering a bit better. 16 years ago
rubidium b1a33a494f (svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings. 16 years ago
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium aff7feb767 (svn r14791) -Add: the ability to make ISO dates with the string system (PhilSophus) 16 years ago
rubidium 395cb45039 (svn r14697) -Fix: some int vs unsigned int comparisons in strgen. 16 years ago
rubidium fea78fbfbb (svn r14618) -Feature: when the chosen language isn't supported by the current font, try to find a font that does and use that instead. Thanks to glx/michi_cc for the Windows implementation. 16 years ago
rubidium 6878b181c7 (svn r14617) -Change: unduplicate the languagepack(header). 16 years ago
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 16 years ago
rubidium c03e55b32a (svn r14554) -Fix: languages using longer gender names than strgen supports. 16 years ago
rubidium 65404674a4 (svn r14480) -Add: warning when trying to use a right-to-left language without support for it in OpenTTD. 16 years ago
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 16 years ago
frosch d43a475650 (svn r14111) -Fix (r2572): [strgen] Changing order of parameters {X:...} did not work for strings including some {StringY}. 16 years ago
rubidium ab234cf90c (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
smatz f32ecbcadb (svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute 16 years ago
rubidium 9d8fa486af (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 16 years ago
smatz 110584808d (svn r12557) -Cleanup: use MAX_PATH at two more places 16 years ago
maedhros 2023f59541 (svn r12417) -Fix: Add a new plural rule for Icelandic. 17 years ago
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 17 years ago
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 17 years ago
rubidium 0bd93f5c37 (svn r11697) -Fix [FS#1585]: strgen did not (always) compile properly. 17 years ago
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 17 years ago
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 17 years ago
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 17 years ago
glx f3d79154eb (svn r11293) -Fix: newgrf defined industry news messages use TTD format for args, which is not the same as our. So we must detect those strings and pass them the right params 17 years ago
peter1138 616eb4134e (svn r10762) -Codechange: Change enum StringIDEnum { to static const StringID = for
each STR_ entry. This avoids the need for a cast to StringID in some 
places and thus better type-safety.
17 years ago
rubidium 178582b65d (svn r10382) -Fix (strgen): it was not possible to use --warning and --todo at the same time. 17 years ago
peter1138 d69589b3c2 (svn r10324) -Codechange: reference engine names by index 17 years ago
peter1138 eb6594caa8 (svn r10323) -Codechange: reference company name, number and player (president) name
by index
17 years ago
peter1138 fd73ea2058 (svn r10321) -Codechange: refer to sign text by index 17 years ago
peter1138 fc7418d19d (svn r10314) -Codechange: Refer to vehicle names by index 17 years ago