Mercurial > hg > openttd
changeset 948:a28b2ff7514e draft
(svn r1438) Added norwegian townnames
author | miham <miham@openttd.org> |
---|---|
date | Sun, 09 Jan 2005 00:17:01 +0000 |
parents | d75fac0ea123 |
children | c65878947b32 |
files | lang/english.txt lang/norwegian.txt namegen.c table/namegen.h ttd.h |
diffstat | 5 files changed, 113 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lang/english.txt +++ b/lang/english.txt @@ -859,6 +859,7 @@ STR_TOWNNAME_FINNISH :Finnish STR_TOWNNAME_POLISH :Polish STR_TOWNNAME_SLOVAKISH :Slovakish +STR_TOWNNAME_NORWEGIAN :Norwegian STR_TOWNNAME_HUNGARIAN :Hungarian STR_TOWNNAME_AUSTRIAN :Austrian STR_TOWNNAME_ROMANIAN :Romanian
--- a/lang/norwegian.txt +++ b/lang/norwegian.txt @@ -859,6 +859,7 @@ STR_TOWNNAME_FINNISH :Finsk STR_TOWNNAME_POLISH :Polsk STR_TOWNNAME_SLOVAKISH :Slovak +STR_TOWNNAME_NORWEGIAN :Norsk STR_TOWNNAME_HUNGARIAN :Ungarsk STR_TOWNNAME_AUSTRIAN :Østerriksk STR_TOWNNAME_ROMANIAN :Rumensk
--- a/namegen.c +++ b/namegen.c @@ -378,6 +378,13 @@ return 0; } +static byte MakeNorwegianTownName(byte *buf, uint32 seed) +{ + strcpy(buf, ""); + strcat(buf, name_norwegian_1[GetNumberBasedOnSeed(0, lengthof(name_norwegian_1), seed)]); + return 0; +} + static byte MakeHungarianTownName(byte *buf, uint32 seed) { int i; @@ -422,6 +429,7 @@ MakeFinnishTownName, MakePolishTownName, MakeSlovakTownName, + MakeNorwegianTownName, MakeHungarianTownName, MakeAustrianTownName, MakeRomanianTownName,
--- a/table/namegen.h +++ b/table/namegen.h @@ -1846,6 +1846,108 @@ "Zvolen" }; +static const char *name_norwegian_1[] = { + "Alta", + "Arendal", + "Askim", + "Bergen", + "Bodø", + "Brevik", + "Bryne", + "Brønnøysund", + "Drammen", + "Drøbak", + "Egersund", + "Elverum", + "Farsund", + "Fauske", + "Finnsnes", + "Flekkefjord", + "Florø", + "Fosnavåg", + "Fredrikstad", + "Førde", + "Gjøvik", + "Grimstad", + "Halden", + "Hamar", + "Hammerfest", + "Harstad", + "Haugesund", + "Holmestrand", + "Honningsvåg", + "Horten", + "Hønefoss", + "Jørpeland", + "Kirkenes", + "Kolvereid", + "Kongsberg", + "Kongsvinger", + "Kopervik", + "Kragerø", + "Kristiansand", + "Kristiansund", + "Langesund", + "Larvik", + "Leirvik", + "Leknes", + "Levanger", + "Lillehammer", + "Lillesand", + "Lillestrøm", + "Lyngdal", + "Lørenskog", + "Mandal", + "Mo i Rana", + "Molde", + "Mosjøen", + "Moss", + "Mysen", + "Måløy", + "Namsos", + "Narvik", + "Notodden", + "Odda", + "Oslo", + "Otta", + "Porsgrunn", + "Risør", + "Rjukan", + "Røros", + "Sandefjord", + "Sandnes", + "Sandnessjøen", + "Sandvika", + "Sarpsborg", + "Sauda", + "Setermoen", + "Ski", + "Skien", + "Skudeneshavn", + "Sortland", + "Stathelle", + "Stavanger", + "Stavern", + "Steinkjer", + "Stjørdal", + "Stokmarknes", + "Svelvik", + "Svolvær", + "Tromsø", + "Trondheim", + "Tvedestrand", + "Tønsberg", + "Ulsteinvik", + "Vadsø", + "Vardø", + "Verdal", + "Voss", + "Åkrehamn", + "Ålesund", + "Åndalsnes", + "Åsgårdstrand" +}; + static const char *name_hungarian_1[] = { "Nagy-", "Kis-",