rubidium
60c29acdae
(svn r21134) -Change: perform some more stringent validity checking on the language files
14 years ago
rubidium
b050aaa42c
(svn r21132) -Codechange: unify the language file version/validity checking
14 years ago
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
14 years ago
rubidium
09a1d006ba
(svn r21115) -Codechange: make it more clear that genders and cases in the base translation are not supported
14 years ago
rubidium
8401322c3e
(svn r21113) -Codechange: remove the amount of places where the language pack identifier magic value is
14 years ago
rubidium
b75f513a1f
(svn r21112) -Codechange: reduce the amount (of copying) variables
14 years ago
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
137e2b64c9
(svn r20211) -Codechange: Indented code should have curly braces around it.
14 years ago
rubidium
adfacd44ab
(svn r19867) -Change: use non-breaking spaces for currency pre-/postfixes.
15 years ago
rubidium
f1e3a88257
(svn r19811) -Codechange: make the last bits from table/strings.h use static consts too instead of an unnamed enum
15 years ago
smatz
258b128a56
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
rubidium
43cc8f3a23
(svn r19264) -Fix (r19179): strgen segfaults when trying to lookup the command for a non-existing command
15 years ago
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.
15 years ago
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)
15 years ago
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.
15 years ago
rubidium
8d54e30e23
(svn r19113) -Change: [strgen] Remove the partially generated language file if compilation fails.
15 years ago
rubidium
5c58bce129
(svn r18727) -Fix [FS#3480]: some invalid gender/plural indices in strings, which could eventually cause crashes.
15 years ago
rubidium
64b727b03c
(svn r18444) -Feature: allow G and P to 'select' substrings of STRINGn for getting their gender
15 years ago
frosch
2672dace25
(svn r18329) -Remove: [strgen] Support for {SETX} and {SETXY}. Let it rest in peace as NewGRF relict.
15 years ago
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
smatz
1f2e0d3cfe
(svn r17157) -Add: localised decimal separator
15 years ago
rubidium
02d2afcb19
(svn r17137) -Fix (r17129): strgen complained a lot about english.txt compiled with MSVC.
15 years ago
rubidium
a8b8dd1c08
(svn r17129) -Codechange: also let strgen warn if the translation uses STRINGn or RAW_STRING instead of STRING.
15 years ago
rubidium
01cca46dcc
(svn r17095) -Codechange: make ParseStringChoice a bit safer
15 years ago
smatz
368eb3d473
(svn r16627) -Fix: warning about comparing signed and unsigned types
16 years ago
rubidium
4b60c03e60
(svn r16625) -Fix: unsigned vs signed warning in strgen
16 years ago
rubidium
6d70d935a9
(svn r16591) -Codechange: some coding style in strgen
16 years ago
rubidium
af4992ec14
(svn r16577) -Fix: signed/unsigned comparison
16 years ago
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.
16 years ago
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
16 years ago
rubidium
3c6ad988fb
(svn r16145) -Add: '-export-pragmas' to strgen so external tools can (hopefully) automatically be updated to support new pragmas
16 years ago
rubidium
ca04dc1916
(svn r16129) -Feature-ish: configurable digit group separator per language with user override.
16 years ago
rubidium
79df89e5ec
(svn r16123) -Fix: forgot to add table/strgen.h to the project files + a typo
16 years ago
rubidium
f4c8c459ca
(svn r16122) -Change: add more misc information about the behaviour of commands to strgen's -export-commands.
16 years ago
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
16 years ago
rubidium
11e2ca71e6
(svn r16024) -Codechange: harden string copying on places where it's possible
16 years ago
smatz
402e2374a6
(svn r15965) -Change: use recent Czech language for plural form (it has been official for years anyway)
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
f1605cf475
(svn r15696) -Codechange: move the NewGRF language ID into the language file instead of maintaining a table in the code.
16 years ago
rubidium
a6ea606bb3
(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
eff693d2e9
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
761a3037c3
(svn r14791) -Add: the ability to make ISO dates with the string system (PhilSophus)
16 years ago
rubidium
fbc0e5edbe
(svn r14697) -Fix: some int vs unsigned int comparisons in strgen.
16 years ago
rubidium
dccd7886a8
(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
0f6583216b
(svn r14617) -Change: unduplicate the languagepack(header).
16 years ago
skidd13
9b282b3e51
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
rubidium
44a774a277
(svn r14554) -Fix: languages using longer gender names than strgen supports.
16 years ago
rubidium
61546bef5c
(svn r14480) -Add: warning when trying to use a right-to-left language without support for it in OpenTTD.
16 years ago
rubidium
96156a8ab1
(svn r14423) -Codechange: also do r14221 for the strings.
16 years ago
frosch
24c01374a1
(svn r14111) -Fix (r2572): [strgen] Changing order of parameters {X:...} did not work for strings including some {StringY}.
16 years ago
rubidium
5a94972c2d
(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
1ce0b03bf0
(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.
17 years ago
smatz
3fe8c58257
(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute
17 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
smatz
0cceb0cb3e
(svn r12557) -Cleanup: use MAX_PATH at two more places
17 years ago
maedhros
0bf22d264a
(svn r12417) -Fix: Add a new plural rule for Icelandic.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
rubidium
d821e5e92b
(svn r11697) -Fix [FS#1585]: strgen did not (always) compile properly.
17 years ago
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
glx
f6907db708
(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
23a46a301e
(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
c26b0e623d
(svn r10382) -Fix (strgen): it was not possible to use --warning and --todo at the same time.
18 years ago
peter1138
76874f34bf
(svn r10324) -Codechange: reference engine names by index
18 years ago
peter1138
8ee9e8bf1e
(svn r10323) -Codechange: reference company name, number and player (president) name
...
by index
18 years ago
peter1138
97a2f5bf2a
(svn r10321) -Codechange: refer to sign text by index
18 years ago
peter1138
3878c55f34
(svn r10314) -Codechange: Refer to vehicle names by index
18 years ago
rubidium
f92368109c
(svn r10289) -Fix [FS#735]: {COMPANY} takes two arguments. As this was not properly accounted for the plural rule used the second argument of {COMPANY} instead of the later {COMMA}.
18 years ago
rubidium
f91e05a66b
(svn r10261) -Cleanup: we do not need CURRENCY64 and CURRCOMPACT64 anymore, because everything is already 64 bits by default.
18 years ago
rubidium
8f0f090c51
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
18 years ago
rubidium
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
Darkvater
b0f7707df8
(svn r8398) -Cleanup: Remove WATCOM crud from strgen and map.h include from macros.h as it is no longer needed.
18 years ago
Darkvater
6b3e59474f
(svn r8253) -Codechange: Be more strict about language generation and fail any languages not having the mandatory ##name, ##ownname and ##isocode pragma's.
18 years ago
KUDr
28e969924b
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
18 years ago
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago
rubidium
20f12958d5
(svn r7796) -Fix (r7759): cygwin does not need to rewrite the paths for strgen.
...
-Fix (r7759): supply the correct flags to cygwin to make it compile.
Note: cygwin itself is 'broken'. Known issues with cygwin are:
- bash does not work when including files that have dos line ending (\r\n).
This causes the strange errors in config.lib. The solution is running:
dos2unix config.lib
- the windows-native svn does not work (though it previously did). The
solution for this is to install the cygwin svn.
- libfreetype2's freetype-config --cflags does not have ft2build.h in the
path include search path. The workaround for this is to copy
/usr/include/ft2build.h to /usr/include/freetype2/. Also linking does
not work for static builds as freetype-config does not support that.
You have to add the '--disable-static' flag when running './configure'.
- libpng12 does not work with static building either. You have to add
the '--disable-static' flag when running './configure' too.
18 years ago
rubidium
013df98f79
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago