tadd localization - vaccinewars - be a doctor and try to vaccinate the world | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 391a19fbe78f2417e1f5be162f7384efad529966 | |
parent a4a1933604bee567f2dd69371919464bb34388e5 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 21 May 2021 09:48:54 +0200 | |
add localization | |
Diffstat: | |
M po/dopewars.pot | 20 ++++++++++---------- | |
M po/en_GB.po | 30 +++++++++++++++--------------- | |
M src/curses_client/curses_client.c | 6 +++--- | |
M src/dopewars.c | 118 ++++++++++++++++-------------… | |
4 files changed, 87 insertions(+), 87 deletions(-) | |
--- | |
diff --git a/po/dopewars.pot b/po/dopewars.pot | |
t@@ -545,11 +545,11 @@ msgid "Maximum price to hire a bitch" | |
msgstr "" | |
#: src/dopewars.c:635 | |
-msgid "List of things which you overhear on the subway" | |
+msgid "List of things which you overhear on the airplane" | |
msgstr "" | |
#: src/dopewars.c:638 | |
-msgid "Number of subway sayings" | |
+msgid "Number of airplane sayings" | |
msgstr "" | |
#: src/dopewars.c:641 | |
t@@ -1428,7 +1428,7 @@ msgstr "" | |
#. Prompt when the player chooses to "jet" to a new location | |
#. Prompt in 'Jet' dialog | |
#: src/curses_client/curses_client.c:838 src/gui_client/gtk_client.c:1485 | |
-msgid "Where to, dude ? " | |
+msgid "Where to, doctor ? " | |
msgstr "" | |
#: src/curses_client/curses_client.c:844 | |
t@@ -1809,7 +1809,7 @@ msgstr "" | |
#. Display of drug prices (%tde="drugs" by default) | |
#: src/curses_client/curses_client.c:2319 | |
#, c-format | |
-msgid "Hey dude, the prices of %tde here are:" | |
+msgid "Hey doctor, the prices of %tde here are:" | |
msgstr "" | |
#. List of individual drug names for selection (%tde="Opium" etc. | |
t@@ -1823,7 +1823,7 @@ msgid "Cannot install SIGWINCH interrupt handler!" | |
msgstr "" | |
#: src/curses_client/curses_client.c:2393 | |
-msgid "Hey dude, what's your name? " | |
+msgid "Hey doctor, what's your name? " | |
msgstr "" | |
#. Prompts for "normal" actions in curses client | |
t@@ -2842,7 +2842,7 @@ msgstr "" | |
#. Prompt for player's name in 'New | |
#. Game' dialog | |
#: src/gui_client/newgamedia.c:533 | |
-msgid "Hey dude, what's your _name?" | |
+msgid "Hey doctor, what's your _name?" | |
msgstr "" | |
#. Prompt for hostname to connect to in GTK+ new game dialog | |
t@@ -3326,7 +3326,7 @@ msgstr "" | |
#: src/serverside.c:2326 | |
#, c-format | |
-msgid "The lady next to you on the subway said,^ \"%s\"%s" | |
+msgid "The lady next to you on the airplane said,^ \"%s\"%s" | |
msgstr "" | |
#: src/serverside.c:2330 | |
t@@ -3397,7 +3397,7 @@ msgid "YN^Do you pay a doctor %P to sew you up?" | |
msgstr "" | |
#: src/serverside.c:3047 | |
-msgid "You were mugged in the subway!" | |
+msgid "You were mugged on the airplane!" | |
msgstr "" | |
#: src/serverside.c:3059 | |
t@@ -3425,7 +3425,7 @@ msgstr "" | |
#: src/serverside.c:3100 | |
#, c-format | |
-msgid "You find %d %tde on a dead dude in the subway!" | |
+msgid "You find %d %tde on a dead doctor in the airplane!" | |
msgstr "" | |
#: src/serverside.c:3115 | |
t@@ -3449,7 +3449,7 @@ msgid "YN^Would you like to buy a bigger trenchcoat for … | |
msgstr "" | |
#: src/serverside.c:3164 | |
-msgid "YN^Hey dude! I'll help carry your %tde for a mere %P. Yes or no?" | |
+msgid "YN^Hey doctor! I'll help carry your %tde for a mere %P. Yes or no?" | |
msgstr "" | |
#: src/serverside.c:3177 | |
diff --git a/po/en_GB.po b/po/en_GB.po | |
t@@ -22,32 +22,32 @@ msgstr "" | |
#. dopewars. | |
#: src/dopewars.c:179 | |
msgid "bitch" | |
-msgstr "" | |
+msgstr "doctor" | |
#. Word used for two or more bitches | |
#: src/dopewars.c:181 | |
msgid "bitches" | |
-msgstr "" | |
+msgstr "doctors" | |
#. Word used for a single gun | |
#: src/dopewars.c:183 | |
msgid "gun" | |
-msgstr "" | |
+msgstr "syringe" | |
#. Word used for two or more guns | |
#: src/dopewars.c:185 | |
msgid "guns" | |
-msgstr "" | |
+msgstr "syringes" | |
#. Word used for a single drug | |
#: src/dopewars.c:187 | |
msgid "drug" | |
-msgstr "" | |
+msgstr "vaccine" | |
#. Word used for two or more drugs | |
#: src/dopewars.c:189 | |
msgid "drugs" | |
-msgstr "" | |
+msgstr "vaccines" | |
#. String for displaying the game date or turn number. This is passed | |
#. to the strftime() function, with the exception that %T is used to | |
t@@ -60,19 +60,19 @@ msgstr "" | |
#. respectively | |
#: src/dopewars.c:196 | |
msgid "the Loan Shark" | |
-msgstr "" | |
+msgstr "your dad" | |
#: src/dopewars.c:196 | |
msgid "the Bank" | |
-msgstr "" | |
+msgstr "the EU" | |
#: src/dopewars.c:197 | |
msgid "Dan's House of Guns" | |
-msgstr "" | |
+msgstr "Medical Supplies Inc." | |
#: src/dopewars.c:197 | |
msgid "the pub" | |
-msgstr "" | |
+msgstr "Oxford University" | |
#. The following strings are the helptexts for all the options that can | |
#. be set in a dopewars configuration file, or in the server. See | |
t@@ -544,7 +544,7 @@ msgstr "" | |
#: src/dopewars.c:635 | |
msgid "List of things which you overhear on the subway" | |
-msgstr "" | |
+msgstr "List of things which you overhear on the airplane" | |
#: src/dopewars.c:638 | |
msgid "Number of subway sayings" | |
t@@ -1496,7 +1496,7 @@ msgstr "" | |
#. Prompt in 'Jet' dialog | |
#: src/curses_client/curses_client.c:838 src/gui_client/gtk_client.c:1485 | |
msgid "Where to, dude ? " | |
-msgstr "" | |
+msgstr "Where to, doctor ? " | |
#: src/curses_client/curses_client.c:844 | |
msgid "%/Location display/%tde" | |
t@@ -1877,7 +1877,7 @@ msgstr "" | |
#: src/curses_client/curses_client.c:2319 | |
#, c-format | |
msgid "Hey dude, the prices of %tde here are:" | |
-msgstr "" | |
+msgstr "Hey doctor, the prices of %tde here are:" | |
#. List of individual drug names for selection (%tde="Opium" etc. | |
#. by default) | |
t@@ -1891,7 +1891,7 @@ msgstr "" | |
#: src/curses_client/curses_client.c:2393 | |
msgid "Hey dude, what's your name? " | |
-msgstr "" | |
+msgstr "Hey doctor, what's your name? " | |
#. Prompts for "normal" actions in curses client | |
#: src/curses_client/curses_client.c:2437 | |
t@@ -2912,7 +2912,7 @@ msgstr "" | |
#. Game' dialog | |
#: src/gui_client/newgamedia.c:533 | |
msgid "Hey dude, what's your _name?" | |
-msgstr "" | |
+msgstr "Hey doctor, what's your _name?" | |
#. Prompt for hostname to connect to in GTK+ new game dialog | |
#: src/gui_client/newgamedia.c:558 | |
diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_clien… | |
t@@ -836,7 +836,7 @@ static gboolean jet(Player *Play, gboolean AllowReturn) | |
attrset(PromptAttr); | |
/* Prompt when the player chooses to "jet" to a new location */ | |
- mvaddstr(get_prompt_line(), 22, _("Where to, dude ? ")); | |
+ mvaddstr(get_prompt_line(), 22, _("Where to, doctor ? ")); | |
attrset(TextAttr); | |
curs_set(1); | |
do { | |
t@@ -2383,7 +2383,7 @@ static void DisplayDrugsHere(Player *Play) | |
} | |
clear_bottom(); | |
/* Display of drug prices (%tde="drugs" by default) */ | |
- text = dpg_strdup_printf(_("Hey dude, the prices of %tde here are:"), | |
+ text = dpg_strdup_printf(_("Hey doctor, the prices of %tde here are:"), | |
Names.Drugs); | |
mvaddstr(get_ui_area_top(), 1, text); | |
g_free(text); | |
t@@ -2457,7 +2457,7 @@ static void Curses_DoGame(Player *Play) | |
} else { | |
do { | |
g_free(buf); | |
- buf = nice_input(_("Hey dude, what's your name? "), | |
+ buf = nice_input(_("Hey doctor, what's your name? "), | |
get_ui_area_top() + 1, 1, FALSE, OldName, '\0'); | |
} while (buf[0] == 0); | |
} | |
diff --git a/src/dopewars.c b/src/dopewars.c | |
t@@ -176,25 +176,25 @@ struct NAMES DefaultNames = { | |
object) then read doc/i18n.html about the %tde (etc.) notation. N.B. | |
This notation can be used for most of the translatable strings in | |
dopewars. */ | |
- N_("bitch"), | |
+ N_("nurse"), | |
/* Word used for two or more bitches */ | |
- N_("bitches"), | |
+ N_("nurses"), | |
/* Word used for a single gun */ | |
- N_("gun"), | |
+ N_("syringe"), | |
/* Word used for two or more guns */ | |
- N_("guns"), | |
+ N_("syringes"), | |
/* Word used for a single drug */ | |
- N_("drug"), | |
+ N_("vaccine"), | |
/* Word used for two or more drugs */ | |
- N_("drugs"), | |
+ N_("vaccines"), | |
/* String for displaying the game date or turn number. This is passed | |
to the strftime() function, with the exception that %T is used to | |
mean the turn number rather than the calendar date. */ | |
N_("%m-%d-%Y"), | |
/* Names of the loan shark, the bank, the gun shop, and the pub, | |
respectively */ | |
- N_("the Loan Shark"), N_("the Bank"), | |
- N_("Dan\'s House of Guns"), N_("the pub") | |
+ N_("the EU"), N_("the EU"), | |
+ N_("University"), N_("the university") | |
}; | |
struct CURRENCY Currency = { | |
t@@ -591,7 +591,7 @@ struct GLOBALS Globals[] = { | |
(void **)(&Gun), &StaticGun, | |
sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, 0}, | |
{&(StaticGun.Space), NULL, NULL, NULL, NULL, "Space", | |
- N_("Space taken by each gun"), | |
+ N_("Space taken by each syringe"), | |
(void **)(&Gun), &StaticGun, | |
sizeof(struct GUN), "Gun", &NumGun, NULL, FALSE, 0, -1}, | |
{&(StaticGun.Damage), NULL, NULL, NULL, NULL, "Damage", | |
t@@ -632,7 +632,7 @@ struct GLOBALS Globals[] = { | |
N_("Maximum price to hire a bitch"), | |
NULL, NULL, 0, "", NULL, NULL, FALSE, 0, -1}, | |
{NULL, NULL, NULL, NULL, &SubwaySaying, "SubwaySaying", | |
- N_("List of things which you overhear on the subway"), | |
+ N_("List of things which you overhear on the internet"), | |
NULL, NULL, 0, "", &NumSubway, ResizeSubway, FALSE, 0, 0}, | |
{&NumSubway, NULL, NULL, NULL, NULL, "NumSubwaySaying", | |
N_("Number of subway sayings"), | |
t@@ -684,74 +684,74 @@ char *DefaultStoppedTo[] = { | |
variable in the configuration file. See the later string "You stopped | |
to %s." to see how these strings are used. */ | |
N_("have a beer"), | |
- N_("smoke a joint"), | |
- N_("smoke a cigar"), | |
- N_("smoke a Djarum"), | |
- N_("smoke a cigarette") | |
+ N_("COVID19 test a child"), | |
+ N_("check prostata"), | |
+ N_("start revolution"), | |
+ N_("yell at politicians") | |
}; | |
struct COP DefaultCop[] = { | |
/* Name of the first police officer to attack you */ | |
- {N_("Officer Hardass"), | |
+ {N_("An antivaxxer"), | |
/* Name of a single deputy of the first police officer */ | |
- N_("deputy"), | |
+ N_("facebook follower"), | |
/* Word used for more than one deputy of the first police officer */ | |
- N_("deputies"), 4, 3, 30, 30, 2, 8, 0, 1, 1}, | |
+ N_("facebook followers"), 4, 3, 30, 30, 2, 8, 0, 1, 1}, | |
/* Ditto, for the other police officers */ | |
- {N_("Officer Bob"), N_("deputy"), N_("deputies"), 15, 4, 30, 20, 4, 10, | |
+ {N_("Bob"), N_("antivaxxer"), N_("antivaxxers"), 15, 4, 30, 20, 4, 10, | |
0, 2, 1}, | |
- {N_("Agent Smith"), N_("cop"), N_("cops"), 50, 6, 20, 20, 6, 18, 1, 3, 2} | |
+ {N_("Fietsopa"), N_("antivaxxer"), N_("antivaxxers"), 50, 6, 20, 20, 6, 18, … | |
}; | |
struct GUN DefaultGun[] = { | |
/* The names of the default guns */ | |
- {N_("Baretta"), 3000, 4, 5}, | |
- {N_(".38 Special"), 3500, 4, 9}, | |
- {N_("Ruger"), 2900, 4, 4}, | |
- {N_("Saturday Night Special"), 3100, 4, 7} | |
+ {N_("Needleless syringe"), 3000, 4, 5}, | |
+ {N_("Nasal syringe"), 3500, 4, 9}, | |
+ {N_("Safety syringe"), 2900, 4, 4}, | |
+ {N_("Luer-Lock syringe"), 3100, 4, 7} | |
}; | |
struct DRUG DefaultDrug[] = { | |
/* The names of the default drugs, and the messages displayed when they | |
are specially cheap or expensive */ | |
- {N_("Acid"), 1000, 4400, TRUE, FALSE, | |
- N_("The market is flooded with cheap home-made acid!")}, | |
- {N_("Cocaine"), 15000, 29000, FALSE, TRUE, ""}, | |
- {N_("Hashish"), 480, 1280, TRUE, FALSE, | |
- N_("The Marrakesh Express has arrived!")}, | |
+ {N_("AstraZenica"), 1000, 4400, TRUE, FALSE, | |
+ N_("The market is flooded with cheap home-made AstraZenica!")}, | |
+ {N_("Pfizer/BioNTech"), 15000, 29000, FALSE, TRUE, ""}, | |
+ {N_("SputnikLight"), 480, 1280, TRUE, FALSE, | |
+ N_("A large batch of Russian Sputnik Light is delivered!")}, | |
{N_("Heroin"), 5500, 13000, FALSE, TRUE, ""}, | |
- {N_("Ludes"), 11, 60, TRUE, FALSE, | |
- N_("Rival drug dealers raided a pharmacy and are selling cheap ludes!")}, | |
- {N_("MDA"), 1500, 4400, FALSE, FALSE, ""}, | |
- {N_("Opium"), 540, 1250, FALSE, TRUE, ""}, | |
- {N_("PCP"), 1000, 2500, FALSE, FALSE, ""}, | |
- {N_("Peyote"), 220, 700, FALSE, FALSE, ""}, | |
- {N_("Shrooms"), 630, 1300, FALSE, FALSE, ""}, | |
- {N_("Speed"), 90, 250, FALSE, TRUE, ""}, | |
- {N_("Weed"), 315, 890, TRUE, FALSE, | |
- N_("Columbian freighter dusted the Coast Guard! " | |
- "Weed prices have bottomed out!")} | |
+ {N_("Sputnik V"), 11, 60, TRUE, FALSE, | |
+ N_("Rival vaccine dealers raided a freezer and are selling cheap Sputnik V!… | |
+ {N_("Sinopharm"), 1500, 4400, FALSE, FALSE, ""}, | |
+ {N_("Moderna"), 540, 1250, FALSE, TRUE, ""}, | |
+ {N_("RBD-Dimer"), 1000, 2500, FALSE, FALSE, ""}, | |
+ {N_("CoviVac"), 220, 700, FALSE, FALSE, ""}, | |
+ {N_("Covaxin"), 630, 1300, FALSE, FALSE, ""}, | |
+ {N_("QazCovid-in"), 90, 250, FALSE, TRUE, ""}, | |
+ {N_("Johns.&Johns."), 315, 890, TRUE, FALSE, | |
+ N_("Some countries have cancelled Johnson & Johnson! " | |
+ "Prices have bottomed out!")} | |
}; | |
#define NUMDRUG (sizeof(DefaultDrug)/sizeof(DefaultDrug[0])) | |
struct LOCATION DefaultLocation[] = { | |
/* The names of the default locations */ | |
- {N_("Bronx"), 10, NUMDRUG / 2 + 1, NUMDRUG}, | |
- {N_("Ghetto"), 5, NUMDRUG / 2 + 2, NUMDRUG}, | |
- {N_("Central Park"), 15, NUMDRUG / 2, NUMDRUG}, | |
- {N_("Manhattan"), 90, NUMDRUG / 2 - 2, NUMDRUG - 2}, | |
- {N_("Coney Island"), 20, NUMDRUG / 2, NUMDRUG}, | |
- {N_("Brooklyn"), 70, NUMDRUG / 2 - 2, NUMDRUG - 1}, | |
- {N_("Queens"), 50, NUMDRUG / 2, NUMDRUG}, | |
- {N_("Staten Island"), 20, NUMDRUG / 2, NUMDRUG} | |
+ {N_("USA"), 10, NUMDRUG / 2 + 1, NUMDRUG}, | |
+ {N_("Russia"), 5, NUMDRUG / 2 + 2, NUMDRUG}, | |
+ {N_("Germany"), 15, NUMDRUG / 2, NUMDRUG}, | |
+ {N_("Myanmar"), 90, NUMDRUG / 2 - 2, NUMDRUG - 2}, | |
+ {N_("Latvia"), 20, NUMDRUG / 2, NUMDRUG}, | |
+ {N_("Denmark"), 70, NUMDRUG / 2 - 2, NUMDRUG - 1}, | |
+ {N_("Trinidad and Tobago"), 50, NUMDRUG / 2, NUMDRUG}, | |
+ {N_("Uganda"), 20, NUMDRUG / 2, NUMDRUG} | |
}; | |
struct DRUGS Drugs = { NULL, NULL, 0, 0 }; | |
struct DRUGS DefaultDrugs = { | |
/* Messages displayed for drug busts, etc. */ | |
- N_("Cops made a big %tde bust! Prices are outrageous!"), | |
- N_("Addicts are buying %tde at ridiculous prices!"), | |
+ N_("Antivaxxers made a big %tde facebook campaign! Prices are outrageous!"), | |
+ N_("Doctors are buying %tde at ridiculous prices!"), | |
4, 4 | |
}; | |
t@@ -761,20 +761,20 @@ char *DefaultSubwaySaying[] = { | |
(N.B. can be overridden with the "SubwaySaying" config. file | |
variable). Look for "the lady next to you" to see how these strings | |
are used. */ | |
- N_("Wouldn\'t it be funny if everyone suddenly quacked at once?"), | |
- N_("The Pope was once Jewish, you know"), | |
+ N_("Oh hai Mark"), | |
+ N_("Anyway, how is your sex life?"), | |
N_("I\'ll bet you have some really interesting dreams"), | |
- N_("So I think I\'m going to Amsterdam this year"), | |
+ N_("So I think I\'m going to bitreichcon this year"), | |
N_("Son, you need a yellow haircut"), | |
- N_("I think it\'s wonderful what they\'re doing with incense these days"), | |
+ N_("I think it\'s wonderful what they\'re doing with vaccines these days"), | |
N_("I wasn\'t always a woman, you know"), | |
- N_("Does your mother know you\'re a dope dealer?"), | |
+ N_("I feel a blood clod coming"), | |
N_("Are you high on something?"), | |
- N_("Oh, you must be from California"), | |
+ N_("Oh, you must be from Wales"), | |
N_("I used to be a hippie, myself"), | |
N_("There\'s nothing like having lots of money"), | |
N_("You look like an aardvark!"), | |
- N_("I don\'t believe in Ronald Reagan"), | |
+ N_("I don\'t believe in Angela Merkel"), | |
N_("Courage! Bush is a noodle!"), | |
N_("Haven\'t I seen you on TV?"), | |
N_("I think hemorrhoid commercials are really neat!"), | |
t@@ -784,15 +784,15 @@ char *DefaultSubwaySaying[] = { | |
N_("We only use 20% of our brains, so why not burn out the other 80%"), | |
N_("I\'m soliciting contributions for Zombies for Christ"), | |
N_("I\'d like to sell you an edible poodle"), | |
- N_("Winners don\'t do drugs... unless they do"), | |
- N_("Kill a cop for Christ!"), | |
+ N_("Winners don\'t do vaccines... unless they do"), | |
+ N_("Kill an antivaxxer for Christ!"), | |
N_("I am the walrus!"), | |
N_("Jesus loves you more than you will know"), | |
N_("I feel an unaccountable urge to dye my hair blue"), | |
N_("Wasn\'t Jane Fonda wonderful in Barbarella"), | |
N_("Just say No... well, maybe... ok, what the hell!"), | |
N_("Would you like a jelly baby?"), | |
- N_("Drugs can be your friend!") | |
+ N_("Vaccines can be your friend!") | |
}; | |
static gboolean SetConfigValue(int GlobalIndex, int StructIndex, |