Commit Graph

96 Commits

Author SHA1 Message Date
alberth 9222a30173 (svn r22145) -Codechange: Do explicit test for non-bool values. 2011-02-25 22:04:38 +00:00
alberth e36c5b649e (svn r22102) -Codechange: Also use the getopt function in strgen. 2011-02-18 20:52:42 +00:00
rubidium 05199a641a (svn r21890) -Cleanup: remove some unneeded includes 2011-01-22 14:52:20 +00:00
rubidium de1699ccac (svn r21474) -Fix: some MSVC code analysis warnings in strgen 2010-12-12 01:21:02 +00:00
yexo 8066998238 (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
2010-12-09 21:01:50 +00:00
yexo 68f61fbdb0 (svn r21348) -Fix (r21346): some compilers complain about int-uint comparisons 2010-11-28 19:48:13 +00:00
yexo f464afa522 (svn r21347) -Cleanup: remove an unused feature from strgen and remove some ifs where we already know the result 2010-11-28 19:40:35 +00:00
yexo a90f8114dd (svn r21346) -Fix (r2592): buffer overflow in strgen for strings with very large arguments 2010-11-28 19:39:04 +00:00
rubidium e889a93129 (svn r21260) -Codechange: make strgen more stringent w.r.t. the allowed characters in strings 2010-11-19 19:38:02 +00:00
rubidium 5e2c20250a (svn r21215) -Codechange: store the plural form in the plural (choice) lists 2010-11-16 21:01:56 +00:00
rubidium 0b142b2709 (svn r21203) -Codechange: make the maximum plural count available to the rest of OpenTTD as well 2010-11-16 11:42:47 +00:00
rubidium ce1e4a3448 (svn r21165) -Codechange: move the case/gender meta data into the language metadata struct as well 2010-11-13 14:36:43 +00:00
rubidium 0020e74533 (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 2010-11-13 11:11:02 +00:00
rubidium 60c29acdae (svn r21134) -Change: perform some more stringent validity checking on the language files 2010-11-10 17:49:44 +00:00
rubidium fb71ee974d (svn r21127) -Codechange: change the max gender constant's name's style to the style used by the max case constant's name 2010-11-10 16:31:46 +00:00
rubidium 09a1d006ba (svn r21115) -Codechange: make it more clear that genders and cases in the base translation are not supported 2010-11-07 20:57:41 +00:00
rubidium 8401322c3e (svn r21113) -Codechange: remove the amount of places where the language pack identifier magic value is 2010-11-07 18:35:59 +00:00
rubidium b75f513a1f (svn r21112) -Codechange: reduce the amount (of copying) variables 2010-11-07 18:20:18 +00:00
frosch c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
alberth 137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 2010-07-24 10:14:39 +00:00
rubidium adfacd44ab (svn r19867) -Change: use non-breaking spaces for currency pre-/postfixes. 2010-05-20 15:36:44 +00:00
rubidium f1e3a88257 (svn r19811) -Codechange: make the last bits from table/strings.h use static consts too instead of an unnamed enum 2010-05-13 09:12:52 +00:00
smatz 258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 2010-04-12 14:12:47 +00:00
rubidium 43cc8f3a23 (svn r19264) -Fix (r19179): strgen segfaults when trying to lookup the command for a non-existing command 2010-02-26 10:03:33 +00:00
rubidium 146d521377 (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. 2010-02-20 23:42:11 +00:00
rubidium 15395264af (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) 2010-02-20 23:02:03 +00:00
rubidium 31f78edd24 (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. 2010-02-12 23:47:50 +00:00
rubidium 8d54e30e23 (svn r19113) -Change: [strgen] Remove the partially generated language file if compilation fails. 2010-02-12 23:45:25 +00:00
rubidium 5c58bce129 (svn r18727) -Fix [FS#3480]: some invalid gender/plural indices in strings, which could eventually cause crashes. 2010-01-04 21:58:47 +00:00
rubidium 64b727b03c (svn r18444) -Feature: allow G and P to 'select' substrings of STRINGn for getting their gender 2009-12-09 11:41:27 +00:00
frosch 2672dace25 (svn r18329) -Remove: [strgen] Support for {SETX} and {SETXY}. Let it rest in peace as NewGRF relict. 2009-11-28 20:27:42 +00:00
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
smatz d64bdb138c (svn r17168) -Codechange: apply coding style to if and while statements 2009-08-14 17:11:59 +00:00
smatz 1f2e0d3cfe (svn r17157) -Add: localised decimal separator 2009-08-12 01:28:11 +00:00
rubidium 02d2afcb19 (svn r17137) -Fix (r17129): strgen complained a lot about english.txt compiled with MSVC. 2009-08-09 19:06:05 +00:00
rubidium a8b8dd1c08 (svn r17129) -Codechange: also let strgen warn if the translation uses STRINGn or RAW_STRING instead of STRING. 2009-08-09 10:20:09 +00:00
rubidium 01cca46dcc (svn r17095) -Codechange: make ParseStringChoice a bit safer 2009-08-06 20:21:53 +00:00
smatz 368eb3d473 (svn r16627) -Fix: warning about comparing signed and unsigned types 2009-06-22 22:04:48 +00:00
rubidium 4b60c03e60 (svn r16625) -Fix: unsigned vs signed warning in strgen 2009-06-22 20:35:14 +00:00
rubidium 6d70d935a9 (svn r16591) -Codechange: some coding style in strgen 2009-06-18 11:17:55 +00:00
rubidium af4992ec14 (svn r16577) -Fix: signed/unsigned comparison 2009-06-14 17:02:09 +00:00
rubidium 714acd5c74 (svn r16576) -Fix: show the line of the translation file that has the fault and not the line of the string in english.txt. 2009-06-14 17:01:12 +00:00
smatz ce7dff4acc (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
2009-05-10 17:27:25 +00:00
rubidium 3c6ad988fb (svn r16145) -Add: '-export-pragmas' to strgen so external tools can (hopefully) automatically be updated to support new pragmas 2009-04-25 21:09:42 +00:00
rubidium ca04dc1916 (svn r16129) -Feature-ish: configurable digit group separator per language with user override. 2009-04-23 21:05:00 +00:00
rubidium 79df89e5ec (svn r16123) -Fix: forgot to add table/strgen.h to the project files + a typo 2009-04-23 14:06:57 +00:00
rubidium f4c8c459ca (svn r16122) -Change: add more misc information about the behaviour of commands to strgen's -export-commands. 2009-04-23 13:32:13 +00:00
rubidium 26b0f71a97 (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 2009-04-21 21:34:26 +00:00