From 01ab428b1e54581bee5220d8455c306000dd8854 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Sat, 16 May 2020 12:22:43 +0200 Subject: [PATCH] Template files for other languatges, why not. --- language.de_base | 17 +++++++++++++++++ language.de_lore | 2 ++ language.de_menu | 5 +++++ language.de_voice | 23 +++++++++++++++++++++++ language.def_lore | 2 +- language.fr_base | 17 +++++++++++++++++ language.fr_lore | 2 ++ language.fr_menu | 5 +++++ language.fr_voice | 23 +++++++++++++++++++++++ language.it_base | 17 +++++++++++++++++ language.it_lore | 2 ++ language.it_menu | 5 +++++ language.it_voice | 23 +++++++++++++++++++++++ language.ru_base | 2 +- language.version | 2 +- lore/default/knowledgebase.txt | 2 +- lore/mklang.c | 12 +++++++++--- 17 files changed, 154 insertions(+), 7 deletions(-) create mode 100644 language.de_base create mode 100644 language.de_lore create mode 100644 language.de_menu create mode 100644 language.de_voice create mode 100644 language.fr_base create mode 100644 language.fr_lore create mode 100644 language.fr_menu create mode 100644 language.fr_voice create mode 100644 language.it_base create mode 100644 language.it_lore create mode 100644 language.it_menu create mode 100644 language.it_voice diff --git a/language.de_base b/language.de_base new file mode 100644 index 000000000..c8992490c --- /dev/null +++ b/language.de_base @@ -0,0 +1,17 @@ +[de] +// tags, pickups +// colored tags for keys +// shortened doom key pickup messages +// edited vanilla pickup messages +// other edited messages +// Re-tagged monsters +// Additional tags +// obituaries +// edited vanilla obituaries +// misc +// boss tags +// targetter +// score messages +// intermission tips +// intermission fanart +// intermission 4komas (TBD) diff --git a/language.de_lore b/language.de_lore new file mode 100644 index 000000000..4b6c69e8a --- /dev/null +++ b/language.de_lore @@ -0,0 +1,2 @@ +// this file was generated by mklang, do not edit directly +[de] diff --git a/language.de_menu b/language.de_menu new file mode 100644 index 000000000..ddaa2e1a7 --- /dev/null +++ b/language.de_menu @@ -0,0 +1,5 @@ +[de] +// keybinds +// mod menu +// knowledge base +// mission entries diff --git a/language.de_voice b/language.de_voice new file mode 100644 index 000000000..9117a56d8 --- /dev/null +++ b/language.de_voice @@ -0,0 +1,23 @@ +[de] +// voice name +// new weapon received +// locked door +// jammed door (strife) +// puzzle item failure +// puzzle item success +// first enemy encounter (20 seconds cooldown since all enemies dead) +// played at map start +// every time a secret is found +// frag taunts +// oopsies +// getting hurt by monsters +// getting hurt by friendlies +// hurting a friendly +// greeting another player +// ragekit +// --- comebacks for korax hub lines --- +// "Greetings mortal, are you ready to die?" +// "My servants can smell your blood, human" +// "You have played this game too long, mortal, I think I shall remove you from the board" +// "Worship me and I may be yet merciful, then again, maybe not" +// "Are you strong enough to face your own masters?" diff --git a/language.def_lore b/language.def_lore index c4005d95b..9b2e7780c 100644 --- a/language.def_lore +++ b/language.def_lore @@ -26,7 +26,7 @@ SWWM_LORETXT_SPARKSTER = "\cxDesignation:\c-\n\cf Model S-5 Biospark Carbine\c-\ SWWM_LORETAG_KNOWLEDGEBASE = "Library"; SWWM_LORETAB_KNOWLEDGEBASE = "Item"; SWWM_LOREREL_KNOWLEDGEBASE = "Demolitionist;AkariLabs;Taro;Saya"; -SWWM_LORETXT_KNOWLEDGEBASE = "\cxDesignation:\c-\n\cf Demolitionist Library\c-\n\cxManufacturer:\c-\n\cf Akari Labs\c-\n\cxClassification:\c-\n\cf Internal Knowledge Base\c-\n\nThe \cfDemolitionist Library\c- is what you're currently reading. This internal database will provide you with additional information on obtained items during your mission, along with related information on various people and organizations, or interesting bits of lore. The library is updated automatically with each item you obtain and each additional entry you read, based on their related information, so be sure to check it out once in a while, if you feel like having a nice read. This is especially important for the various items you can use, or your weapons, as the entries for them will instruct you on how to adequately operate them.\n\nPlease note that the quality of articles may vary, depending entirely on how motivated the editor (\cfTaro\c-) or the lead writer (\cfSaya\c-) felt when writing them. Additional localizations of this library are available, though this is currently only limited to Spanish (handled by \cfAkari Labs\c-' very own professional translator, \cfAna Blanco\c-). Other planned languages include French, Italian, German, Russian and Japanese.\n\n\cxSaya's Notes:\c-\n\cfOh yeah, you can also find notes like this one here in a couple articles if I feel like saying something extra that doesn't \"fit the tone\" of the whole thing, I guess.\c-"; +SWWM_LORETXT_KNOWLEDGEBASE = "\cxDesignation:\c-\n\cf Demolitionist Library\c-\n\cxManufacturer:\c-\n\cf Akari Labs\c-\n\cxClassification:\c-\n\cf Internal Knowledge Base\c-\n\nThe \cfDemolitionist Library\c- is what you're currently reading. This internal database will provide you with additional information on obtained items during your mission, along with related information on various people and organizations, or interesting bits of lore. The library is updated automatically with each item you obtain and each additional entry you read, based on their related information, so be sure to check it out once in a while, if you feel like having a nice read. This is especially important for the various items you can use, or your weapons, as the entries for them will instruct you on how to adequately operate them.\n\nPlease note that the quality of articles may vary, depending entirely on how motivated the editor (\cfTaro\c-) or the lead writer (\cfSaya\c-) felt when writing them. Additional localizations of this library are available, though this is currently only limited to Spanish (handled by \cfAkari Labs\c-' very own professional translator, \cfAna Blanco\c-) and Russian. Other planned languages include French, Italian, German and Japanese.\n\n\cxSaya's Notes:\c-\n\cfOh yeah, you can also find notes like this one here in a couple articles if I feel like saying something extra that doesn't \"fit the tone\" of the whole thing, I guess.\c-"; SWWM_LORETAG_HAMMERSPACE = "Hammerspace"; SWWM_LORETAB_HAMMERSPACE = "Item"; SWWM_LOREREL_HAMMERSPACE = "Cyrus;Saya"; diff --git a/language.fr_base b/language.fr_base new file mode 100644 index 000000000..0a8b5707a --- /dev/null +++ b/language.fr_base @@ -0,0 +1,17 @@ +[fr] +// tags, pickups +// colored tags for keys +// shortened doom key pickup messages +// edited vanilla pickup messages +// other edited messages +// Re-tagged monsters +// Additional tags +// obituaries +// edited vanilla obituaries +// misc +// boss tags +// targetter +// score messages +// intermission tips +// intermission fanart +// intermission 4komas (TBD) diff --git a/language.fr_lore b/language.fr_lore new file mode 100644 index 000000000..b3a5b248e --- /dev/null +++ b/language.fr_lore @@ -0,0 +1,2 @@ +// this file was generated by mklang, do not edit directly +[fr] diff --git a/language.fr_menu b/language.fr_menu new file mode 100644 index 000000000..5367296cd --- /dev/null +++ b/language.fr_menu @@ -0,0 +1,5 @@ +[fr] +// keybinds +// mod menu +// knowledge base +// mission entries diff --git a/language.fr_voice b/language.fr_voice new file mode 100644 index 000000000..e9b7be2f2 --- /dev/null +++ b/language.fr_voice @@ -0,0 +1,23 @@ +[fr] +// voice name +// new weapon received +// locked door +// jammed door (strife) +// puzzle item failure +// puzzle item success +// first enemy encounter (20 seconds cooldown since all enemies dead) +// played at map start +// every time a secret is found +// frag taunts +// oopsies +// getting hurt by monsters +// getting hurt by friendlies +// hurting a friendly +// greeting another player +// ragekit +// --- comebacks for korax hub lines --- +// "Greetings mortal, are you ready to die?" +// "My servants can smell your blood, human" +// "You have played this game too long, mortal, I think I shall remove you from the board" +// "Worship me and I may be yet merciful, then again, maybe not" +// "Are you strong enough to face your own masters?" diff --git a/language.it_base b/language.it_base new file mode 100644 index 000000000..0b4135b31 --- /dev/null +++ b/language.it_base @@ -0,0 +1,17 @@ +[it] +// tags, pickups +// colored tags for keys +// shortened doom key pickup messages +// edited vanilla pickup messages +// other edited messages +// Re-tagged monsters +// Additional tags +// obituaries +// edited vanilla obituaries +// misc +// boss tags +// targetter +// score messages +// intermission tips +// intermission fanart +// intermission 4komas (TBD) diff --git a/language.it_lore b/language.it_lore new file mode 100644 index 000000000..450eb7a2b --- /dev/null +++ b/language.it_lore @@ -0,0 +1,2 @@ +// this file was generated by mklang, do not edit directly +[it] diff --git a/language.it_menu b/language.it_menu new file mode 100644 index 000000000..2236ff50b --- /dev/null +++ b/language.it_menu @@ -0,0 +1,5 @@ +[it] +// keybinds +// mod menu +// knowledge base +// mission entries diff --git a/language.it_voice b/language.it_voice new file mode 100644 index 000000000..5598eb2cf --- /dev/null +++ b/language.it_voice @@ -0,0 +1,23 @@ +[it] +// voice name +// new weapon received +// locked door +// jammed door (strife) +// puzzle item failure +// puzzle item success +// first enemy encounter (20 seconds cooldown since all enemies dead) +// played at map start +// every time a secret is found +// frag taunts +// oopsies +// getting hurt by monsters +// getting hurt by friendlies +// hurting a friendly +// greeting another player +// ragekit +// --- comebacks for korax hub lines --- +// "Greetings mortal, are you ready to die?" +// "My servants can smell your blood, human" +// "You have played this game too long, mortal, I think I shall remove you from the board" +// "Worship me and I may be yet merciful, then again, maybe not" +// "Are you strong enough to face your own masters?" diff --git a/language.ru_base b/language.ru_base index 05f5c969b..3fea2d23e 100644 --- a/language.ru_base +++ b/language.ru_base @@ -1,4 +1,4 @@ -[jp] +[ru] // tags, pickups // colored tags for keys // shortened doom key pickup messages diff --git a/language.version b/language.version index b54a303f6..8d300e09c 100644 --- a/language.version +++ b/language.version @@ -1,2 +1,2 @@ [default] -SWWM_MODVER="\cxSWWM GZ\c- r243 (Sat 16 May 12:10:20 CEST 2020)"; +SWWM_MODVER="\cxSWWM GZ\c- r244 (Sat 16 May 12:22:43 CEST 2020)"; diff --git a/lore/default/knowledgebase.txt b/lore/default/knowledgebase.txt index 59882c67a..ec45ee44b 100644 --- a/lore/default/knowledgebase.txt +++ b/lore/default/knowledgebase.txt @@ -14,7 +14,7 @@ TXT The **Demolitionist Library** is what you're currently reading. This internal database will provide you with additional information on obtained items during your mission, along with related information on various people and organizations, or interesting bits of lore. The library is updated automatically with each item you obtain and each additional entry you read, based on their related information, so be sure to check it out once in a while, if you feel like having a nice read. This is especially important for the various items you can use, or your weapons, as the entries for them will instruct you on how to adequately operate them. -Please note that the quality of articles may vary, depending entirely on how motivated the editor (**Taro**) or the lead writer (**Saya**) felt when writing them. Additional localizations of this library are available, though this is currently only limited to Spanish (handled by **Akari Labs**' very own professional translator, **Ana Blanco**). Other planned languages include French, Italian, German, Russian and Japanese. +Please note that the quality of articles may vary, depending entirely on how motivated the editor (**Taro**) or the lead writer (**Saya**) felt when writing them. Additional localizations of this library are available, though this is currently only limited to Spanish (handled by **Akari Labs**' very own professional translator, **Ana Blanco**) and Russian. Other planned languages include French, Italian, German and Japanese. \cxSaya's Notes:\c- \cfOh yeah, you can also find notes like this one here in a couple articles if I feel like saying something extra that doesn't "fit the tone" of the whole thing, I guess.\c- diff --git a/lore/mklang.c b/lore/mklang.c index 03add6abb..f46e46c04 100644 --- a/lore/mklang.c +++ b/lore/mklang.c @@ -162,7 +162,7 @@ static int ftw_callback( const char *path, const struct stat *st, return FTW_CONTINUE; } -#define NLANGS 4 +#define NLANGS 7 int main( void ) { @@ -171,14 +171,20 @@ int main( void ) "default", "es", "jp", - "ru" + "ru", + "fr", + "it", + "de" }; const char langfiles[NLANGS][32] = { "../language.def_lore", "../language.es_lore", "../language.jp_lore", - "../language.ru_lore" + "../language.ru_lore", + "../language.fr_lore", + "../language.it_lore", + "../language.de_lore" }; for ( int i=0; i