summaryrefslogtreecommitdiff
path: root/strings.c
AgeCommit message (Collapse)Author
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.
2005-07-16(svn r2592) Feature: [strgen] New way to specify plural forms. ludde
- {NUM} {PLURAL 0 car cars}: Prints either car or cars depending on if the argument 0 is plural. Also supports languages with weird plural forms such as Polish. The plural format needs to be specified in the beginning of the langfile, like "##plural 7" for Polish.
2005-07-15(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add ↵Darkvater
mersenne to makefile (Luca)
2005-07-15(svn r2580) Change: Added {INDUSTRY} command for printing industry names ↵ludde
instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
2005-07-15(svn r2572) - Codechange: [string] Changed string system so it's not as ↵ludde
dependent on decode_parameters - Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals.
2005-07-14(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anywaytron
2005-07-14(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they ↵ludde
are just confusing and just do the same thing as GetParamInt32
2005-07-14(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is ↵ludde
not meant to be used by GUI-code, because it modifies the "game-state". Added a way to bind a C-string to an openttd string which doesn't modify the game state.
2005-07-13(svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now.ludde
2005-07-13(svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore.ludde
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-05-22(svn r2359) Use strecpy instead of str_cat (which was rather a cpy than a ↵tron
cat, btw), remove the latter and simplify some constructs
2005-04-16(svn r2208) - Fix: [ 1174237 ] Max loan always in euros, use _opt_ptr ↵Darkvater
instead of _opt (glx)
2005-04-02(svn r2129) Reverted r2125 and depending revisions (map size selector in the ↵pasky
intro window). Will be done in a separate dialog. This also fixes showing of various rail/road-related strings.
2005-04-02(svn r2125) - Feature: In the intro dialog, show a map size selector below ↵pasky
the landscape type selector.
2005-03-24(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.htruelight
-Codechange: rewrote some functions while moving waypoint-stuff -Add: added support for 64k waypoints -Fix: made the waypoint struct a bit more logic (no bit-fucking)
2005-02-17(svn r1880) [Codechange] Added isocodes to langfiles and support code to ↵miham
strgen (Lauri Nurmi)
2005-02-06(svn r1825) Further style improvements:tron
- uint16 -> StringID where appropriate - if cascades -> switch - remove redundant ifs - misc. stuff
2005-02-06(svn r1823) Get rid of some ugly cast magic concerning language packstron
2005-02-06(svn r1822) Const correctnesstron
2005-02-06(svn r1821) Move generic string handling functions to string.[ch] and ↵tron
introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06(svn r1820) Style cleanup:tron
- indentation - 0 -> '\0' in string handling - whitespaces - space after for, switch, etc. - don't treat non-boolean values as boolean - space before and after binary operators - bracing style
2005-02-06(svn r1816) Use char instead of byte for string formattingtron
2005-02-06(svn r1815) Remove some unused declarationstron
2005-02-06(svn r1813) Declare functions implemented in strings.c in their own shiny ↵tron
new header (though i think some of these function don't belong into strings.c)
2005-02-05(svn r1810) Move town name generation declarations into a header of their owntron
2005-01-23(svn r1603) -Fix: unused variable in FormatTinyDatedarkvater
-Fix: added void to all win32.c functions as well
2005-01-22(svn r1598) Feature: Message history now is stickyable and resizeabledominik
The news messages are now precisely cropped according to pixel width to fit optimal into the window. Introduced a new date format: DATE_TINY, which is ISOish.
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-10(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped ↵darkvater
year between 1920-2090 as wel as adding defines for it.
2005-01-06(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns ↵truelight
and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;)) Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
2004-12-23(svn r1255) Renamed "postfix" to "suffix", for strings and variable namesdominik
2004-12-22(svn r1222) Currency cleanup. Changed some currency symbols according to ↵dominik
forum suggestions (thx ChrisCF) and rearranged the currencies alphabetically (except for the major ones).
2004-12-22(svn r1215) Feature: You can now make a custom currency by chosing "Custom..."dominik
2004-12-15(svn r1098) -Fix: server without revision build doesn't care about the ↵darkvater
client's version. Also moved all revision things where it belongs (network.c)
2004-12-15(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. ↵darkvater
Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-14(svn r1090) -Fix: Made the _openttd_revision variable global, and with that truelight
hopefully killed the windows-revision problem. If WITH_REV is defined, for both Windows as *nix system _openttd_revision is filled with normal info, else _openttd_revision is set to 'norev000' -Fix: Small possible server-crash
2004-12-02(svn r901) Small step in the process to clean up the DPARAM mess:tron
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-24(svn r803) Switch to ISO 8859-15tron
It has proper support for the euro sign and includes letters which are needed by the Latvian translation (and perhaps others), though the letter sprites are missing.
2004-11-15(svn r631) Merge r440, r444, r485, r630 to trunk:tron
r440 Move screenshot function declarations to new file screenshot.h Clean up screenshot.c a bit, mostly whitespace, alloca() -> malloc() and checking return values r485 Remove unused field from struct ScreenshotFormat
2004-11-15(svn r624) Merge r377 to trunk:tron
Remove the memmove special case for MSVC According to the MSDN it was just plain wrong and memmove was directly used in some places anyway
2004-11-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-11-14(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name ↵darkvater
actually makes some sense and is also compatible with TTDPatch (pasky).
2004-09-18(svn r293) -Feature: Windows now shows (available) revision, release ↵darkvater
information in title bar
2004-09-15(svn r267) -Fix: Moved EUR back in its place, savegames should not list ↵darkvater
Romanian Lei anymore, and 2002 currency is also to EUR again
2004-09-13(svn r241) -Fix: Trailing spaces :Odarkvater
2004-09-13(svn r237) -Fix: [1025836] Company value problem (again). Now company value ↵darkvater
rightly shows the value, including ALL your money. -Fix: Graphs now accomodate 64bit numbers (so the company value graph doesn't plummet into -... if value is too big) -Strgen: added CURRCOMPACT64 for this, and 64bit versions of several macros.