Update README regarding the language code, now including a reference list of all the language codes that translators are recomended to use.

This commit is contained in:
Mappening 2024-04-24 13:31:04 -05:00
parent 2079af5b43
commit 2a69e6540a
1 changed files with 190 additions and 1 deletions

View File

@ -242,7 +242,9 @@ https://git.cavemanon.xyz/Cavemanon/IWaniHugThatGator-Demo-Public
While translating the rest of the game is outside the scope of this pack, chances are you're dedicated enough to want to translate the whole game anyway. Ren'Py is thankfully designed so codelets can pitch in and work on stuff.
At https://www.renpy.org/, you can download Renpy's 8.1.3 SDK (Which is really just a launcher with QoL tools) and go through it's tutorial projects to get a grip on how Renpy works. Specifically for translations, Renpy allows you to generate swaths of empty strings in a language of your designation (When generating, make your language code a two character, lowercase string like 'es' or 'ru') so you can just pick it up and start translating. You can find out more about them on Renpy's wiki, which can be found on Renpy's homepage. Generating strings for the whole game requires you assemble the game as a Renpy project, and a tutorial of which can be found on the Demo's git page - https://git.cavemanon.xyz/Cavemanon/IWaniHugThatGator-Demo-Public
At https://www.renpy.org/, you can download Renpy's 8.1.3 SDK (Which is really just a launcher with QoL tools) and go through it's tutorial projects to get a grip on how Renpy works. Specifically for translations, Renpy allows you to generate swaths of empty strings in a language of your designation so you can just pick it up and start translating. When generating, make your language code a generally two character, lowercase string like 'es' or 'ru'. If your language is a variation of some other language, such as brazilian portuguese, it's fine to make that a longer code such as pt_br. Try sticking with the list of codes located at the bottom of this readme so you don't accidentally steal some other language's convenient and identifiable code (Taken from the renpy source code, as reference).
You can find out more about them on Renpy's wiki, which can be found on Renpy's homepage. Generating strings for the whole game requires you assemble the game as a Renpy project, and a tutorial of which can be found on the Demo's git page - https://git.cavemanon.xyz/Cavemanon/IWaniHugThatGator-Demo-Public
Undoubtedly, there's going to be some quirks that will go beyond simple string replacement when it comes to suiting any given language, such as fonts, localization, text that becomes too long or short, etc. Some of these can be alleviated with Ren'Py's text tags, which can change things like the size of a text. Deal with them in any way you think is necessary, or make an issue on the Wani Demo repo on our git for things that can be tweaked to be more language agnostic.
@ -253,3 +255,190 @@ If you wish to put your names in your credit sequence, you can replace the strin
One spanish anon has provided tools for helping with translations should you need it. This tool might help with making a basis for a real translation or the funniest shit you've ever seen depending on how you want to use it.
https://git.snootgame.xyz/GManon/Trans_tools
locales = {
"ab": "abkhazian",
"aa": "afar",
"af": "afrikaans",
"ak": "akan",
"sq": "albanian",
"am": "amharic",
"ar": "arabic",
"an": "aragonese",
"hy": "armenian",
"as": "assamese",
"av": "avaric",
"ae": "avestan",
"ay": "aymara",
"az": "azerbaijani",
"bm": "bambara",
"ba": "bashkir",
"eu": "basque",
"be": "belarusian",
"bn": "bengali",
"bh": "bihari",
"bi": "bislama",
"bs": "bosnian",
"br": "breton",
"bg": "bulgarian",
"my": "burmese",
"ca": "catalan",
"ch": "chamorro",
"ce": "chechen",
"ny": "chewa",
"cv": "chuvash",
"kw": "cornish",
"co": "corsican",
"cr": "cree",
"hr": "croatian",
"cs": "czech",
"da": "danish",
"dv": "maldivian",
"nl": "dutch",
"dz": "dzongkha",
"en": "english",
"et": "estonian",
"ee": "ewe",
"fo": "faroese",
"fj": "fijian",
"fi": "finnish",
"fr": "french",
"ff": "fulah",
"gl": "galician",
"ka": "georgian",
"de": "german",
"el": "greek",
"gn": "guaran",
"gu": "gujarati",
"ht": "haitian",
"ha": "hausa",
"he": "hebrew",
"hz": "herero",
"hi": "hindi",
"ho": "hiri_motu",
"hu": "hungarian",
"id": "indonesian",
"ga": "irish",
"ig": "igbo",
"ik": "inupiaq",
"is": "icelandic",
"it": "italian",
"iu": "inuktitut",
"ja": "japanese",
"jv": "javanese",
"kl": "greenlandic",
"kn": "kannada",
"kr": "kanuri",
"ks": "kashmiri",
"kk": "kazakh",
"km": "khmer",
"ki": "kikuyu",
"rw": "kinyarwanda",
"ky": "kirghiz",
"kv": "komi",
"kg": "kongo",
"ko": "korean",
"ku": "kurdish",
"kj": "kuanyama",
"la": "latin",
"lb": "luxembourgish",
"lg": "ganda",
"li": "limburgan",
"ln": "lingala",
"lo": "lao",
"lt": "lithuanian",
"lv": "latvian",
"gv": "manx",
"mk": "macedonian",
"mg": "malagasy",
"ms": "malay",
"ml": "malayalam",
"mt": "maltese",
"mi": "maori",
"mr": "marathi",
"mh": "marshallese",
"mn": "mongolian",
"na": "nauru",
"nv": "navaho",
"ne": "nepali",
"ng": "ndonga",
"no": "norwegian",
"ii": "nuosu",
"nr": "ndebele",
"oc": "occitan",
"oj": "ojibwa",
"om": "oromo",
"or": "oriya",
"os": "ossetian",
"pa": "panjabi",
"pi": "pali",
"fa": "persian",
"pl": "polish",
"ps": "pashto",
"pt": "portuguese",
"qu": "quechua",
"rm": "romansh",
"rn": "rundi",
"ro": "romanian",
"ru": "russian",
"sa": "sanskrit",
"sc": "sardinian",
"sd": "sindhi",
"se": "sami",
"sm": "samoan",
"sg": "sango",
"sr": "serbian",
"gd": "gaelic",
"sn": "shona",
"si": "sinhala",
"sk": "slovak",
"sl": "slovene",
"so": "somali",
"st": "sotho",
"es": "spanish",
"su": "sundanese",
"sw": "swahili",
"ss": "swati",
"sv": "swedish",
"ta": "tamil",
"te": "telugu",
"tg": "tajik",
"th": "thai",
"ti": "tigrinya",
"bo": "tibetan",
"tk": "turkmen",
"tl": "tagalog",
"tn": "tswana",
"to": "tongan",
"tr": "turkish",
"ts": "tsonga",
"tt": "tatar",
"tw": "twi",
"ty": "tahitian",
"ug": "uighur",
"uk": "ukrainian",
"ur": "urdu",
"uz": "uzbek",
"ve": "venda",
"vi": "vietnamese",
"wa": "walloon",
"cy": "welsh",
"wo": "wolof",
"fy": "frisian",
"xh": "xhosa",
"yi": "yiddish",
"yo": "yoruba",
"za": "zhuang",
"zu": "zulu",
"chs": "simplified_chinese",
"cht": "traditional_chinese",
"zh": "traditional_chinese",
"zh_tw" : "traditional_chinese",
"zh_cn" : "simplified_chinese",
"zh_hk" : "traditional_chinese",
"zh_sg" : "simplified_chinese",
"zh_mo" : "traditional_chinese",
}