About this mod
Allows changing and adding of Translations
- Requirements
- Permissions and credits
- Donations
Custom Localizations
by PlatonymousAllows changing translations or adding new languages.
A Template/Demo ContentPack is availiable in the Files and contains all vanilla translations to work from.
Install
First install TMNT Mod Api. That creates a Mods folder on first launch. In that folder you extract this mod, so that the filestructure looks like this:
-Mods
——CustomLocalizations
————CustomLocalizations.dll
————manifest.json
ContentPacks for this are installed by also extracting them into the Mods folder, like this:
-Mods
——CustomLocalizations
————CustomLocalizations.dll
————manifest.json
——[CL]AllLanguages
————content.json
————manifest.json
————...
How to make a Content Pack for Custom Localizations:
ContentPacks are installed like any other other mod in TMNT Mod Api, by having a folder with a manifes.json file inside the Mods folder.
The manifest file for ContentPacks needs to have these basic informations about the mod:
manifest.json
{
"Id": "[Any.Unique.ID.You.Want]",
"Name": "[Name for the Mod]",
"Description": "[Description of the Mod]",
"Author": "[Name of the Author]",
"Version": "[Version in the format X.X.X]",
"ContentPackFor": "Platonymous.CustomLocalizations"
}
This is what let's the API know that this is a ContentPack for Custom Localizations:
"ContentPackFor": "Platonymous.CustomLocalizations"
manifest.json From the example:
{
"Id": "Platonymous.AllLanguagesTemplate",
"Name": "CustomLocalizationsDemo",
"Author": "Platonymous",
"Version": "1.0.0",
"Description": "All Languages",
"ContentPackFor": "Platonymous.CustomLocalizations"
}
The base information for the languages you want to change or add go into a seperare conten.json file.
content.json
{
"Languages": [
{
"LanguageID": "English",
"LanguageCode": "en",
"LanguageName": "English",
"Translations": "Languages\\English.json"
},
... [As many Languages as you want]
]
}
The translations go into a seperare .json file (that you specified under "Translations" in the content.json).
TranslationFile.json
[
[
"[LOC_ID]",
"[Translated Text]"
],
[
"[LOC_ID]",
"[Translated Text]"
],
....
]
Example English.json
[
[
"mnuResume",
"Resume"
],
[
"mnuBack",
"Back"
],
....
]
When you change the language, you only need to include the translations you actually want to change. For new languages you need to include all.
The original translation-files for all languages are included in the All Languages Template under Files->Optional
Requires: TMNT Mod Api
Source: https://github.com/Platonymous/TMNTMods
If you have any questions you can find me on the TMNT Discord under the username Routine#8715
If you like my mods and want to support me, you can do so via Paypal or on Patreon.