summaryrefslogtreecommitdiff
path: root/strings.c
AgeCommit message (Collapse)Author
2006-08-27(svn r6169) -Codechange: Use GetString() instead of GetStringWithArgs() ↵Darkvater
which should be integral to strings.c
2006-08-26(svn r6158) -Revert r6139 as that breaks strings with cases. Thanks michi_ccDarkvater
2006-08-26(svn r6139) -Codechange: strings are StringID. This should be changed in ↵Darkvater
strings.h as well, but you would need to include openttd.h and that opens a whole new can of worms.
2006-08-25(svn r6108) -NewGRF Feature: Implement currencies replacment via grf file.belugas
All properties can now be modified i.e: Introduction date for euro conversion Currency name, decimal separator, currency symbol (before or after amount) and the rate compared to the base currency, the british pound
2006-08-22(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips ↵truelight
invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS#13 by blathijs, partly implemented.
2006-08-20(svn r5974) -Codechange: added casts all around the place to make Windows ↵truelight
64bit happy (michi_cc)
2006-08-16(svn r5926) -Codechange: make _cur_year contain the full year, instead of ↵rubidium
the offset since 1920 -Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
2006-08-15(svn r5919) -Cleanup: use the type Date when the variable really is a daterubidium
2006-08-15(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really ↵rubidium
convert a Date to/from a YearMonthDay. -Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function.
2006-08-15(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and ↵rubidium
BASE_YEAR when comparing _cur_year with a 'full' year. -Cleanup: replace some magic '1920' values with BASE_YEAR.
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-04(svn r5763) - Cleanup: Move the now unified GetLanguageList and comparator ↵Darkvater
function to strings.c where it belongs.
2006-07-07(svn r5464) [Behaviour Fix] : When starting the game, the system will now ↵belugas
verify the presence of music files in gm forlder. A song can now be removed from the programmed list (in custom list 1 and 2) by clicking on it. Added music.c[ch] files, to make it all a bit cleaner. Now, the name of the gm file is associated with the title of the song.
2006-05-12(svn r4855) - Fix r4854: Remove 4 character offset, as buff is already in ↵peter1138
correct place.
2006-05-12(svn r4854) - Codechange: don't assume a short format month is 3 characters ↵peter1138
-- copy the string in the same way the other parts are copied.
2006-04-22(svn r4513) Codechange : Assemble a bit the scattered parts of Cargo types.belugas
2006-04-21(svn r4493) Newgrf : Action 04. Beginning of implementation.belugas
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 :)
2006-04-09(svn r4340) Add force {FORCE} to the units system. This is currently unused.peter1138
2006-04-09(svn r4336) Fix units conversion of volume for SIpeter1138
2006-04-08(svn r4322) - Codechange: Remove conversion of kmh to mph from gui code to ↵peter1138
within the units conversion system, in string.c. This means displaying kmh requires no conversion, instead of being convert from kmh to mph, and then back to kmh again.
2006-03-26(svn r4126) - Feature: A new multi-lingual multi-measuring-unit system:peter1138
- Replace miles/kilometres game option with a general measuring units option. - Add {POWER}, {WEIGHT}, {WEIGHT_S} and {VOLUME_S} (_S for short) tags to the language/string system. - Add SI as option for measuring units. Language file updates to use the system will come soon.
2006-03-25(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As ↵Darkvater
the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them. - CodeChange: Change the function GetCurrentLocale(). It returns the locale from some default environment-variables, plus a custom one defined as parameter. If all fail, it tries $LANG.
2006-02-18(svn r3613) Some more const, indentation, whitespace and similar stufftron
2006-02-03(svn r3529) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; ↵Darkvater
alignment issues (thanks Tron for the help)
2006-02-01(svn r3516) Fix embarrassing bug in r3514tron
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
2005-11-16(svn r3192) Split the surname list into two lists (non-toyland/toyland) and ↵tron
use lengthof() to get the number of names instead of using magic numbers
2005-11-15(svn r3185) consttron
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-14(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBITtron
2005-11-13(svn r3172) static, consttron
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
2005-09-27(svn r2994) Another small hack regarding currencies: add a #define to ↵tron
emulate a variable, that holds the current currency; again this should increase readability
2005-09-10(svn r2936) Move string commands to a non-printable range and remove stale ↵tron
comments
2005-08-20(svn r2879) Major step twoards ISO-8859-15tron
Add several missing chars: - Š/š (S with hacek, all sizes) - Ž/ž (Z with hacek, all sizes) - Œ/œ (OE ligature, all sizes) - Ð/ð (eth, large font was missing) - Þ/þ (thorn, large font was missing) - º (male ordinal sign, all sizes) Also move Ÿ (Y with umlaut, all sizes) to the correct position in the charset To add some chars it was necessary to shuffle some OTTD specific chars (arrows, transport type markers) around
2005-08-06(svn r2815) Store the currency information in one central place instead of ↵tron
scattering it in several unrelated files
2005-08-01(svn r2777) -Feature: When starting without a config file determine the ↵tron
language on basis of the current locale
2005-07-26(svn r2717) Move _userstring to strings.[ch]tron
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-21(svn r2669) Shuffle some more stuff around to reduce dependenciestron
2005-07-21(svn r2660) Get rid of some more shifting/anding/castingtron
2005-07-20(svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵tron
of GB - should be a bit nicer to read
2005-07-19(svn r2641) Fix: [strings] forgot to increase argv pointer twice for {CARGO}ludde
2005-07-19(svn r2632) Revert accidently commited changetron
2005-07-19(svn r2631) Move screenshot related variables from variables.h to ↵tron
screenshot.[ch]
2005-07-17(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 ↵Darkvater
signed/unsigned warnings
2005-07-17(svn r2597) Feature: [string system] Support cases.ludde
- Cases are used to change a string, such as Coal Mine, depending on the surrounding context. - Cases are defined like "STR_4802_COAL_MINE.ack :Coala Mina" - All cases need to be listed on the top of the file like this "##case ack" - When using the string, type {STRING.ack} to choose the "ack" version of Coal mine. - Also combined the strgen arrays into a struct, and fixed a bug with SetXY.
2005-07-16(svn r2594) Fix: [strgen] Misc updates to the string system.ludde
- Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used) - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P} - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING} - Updated the swedish/english translation with P strings.