#i18n files for game translation

1 messages · Page 1 of 1 (latest)

dense coral
#

Just a thought, but can we have i18n files so that players can create their own translations for the game?

Something like:
{gameFilesPath}/translations/en_US.xml
{gameFilesPath}/translations/de_DE.xml
{gameFilesPath}/translations/ja_JP.xml

And them we can select in the options menu which language we want to use.

This way, the developer doesn't need to spend time creating translation for some obscure languages and the game can be accessible to more people if there are translations already created by others.

flint hollow
#

Yeah, I'd like to translate the game to French, but pulling all the dialog from the code and modding the translation seems like a lot of work. If I could instead be given the text so I can work on a translation and upload that, it'd be a lot easier.

quiet spear
#

this is a lot of work for brian because things like chat messages are strewn about in the code

flint hollow
#

Is there a way for us to do it? I would love to give it a go, but I tried finding a good way to access the text through DnSpy and that was a struggle

quiet spear
#

npc text is probably baked into the prefabs i would think

#

i haven't looked for them

flint hollow
#

I'll see if that's something I can do

worn lance
#

I've got a Google sheet that contains a lot (but not all) of the in-game text (item / spell / skill / ascension / quest descriptions, book contents, NPC dialog, etc.):
https://docs.google.com/spreadsheets/d/1eOYfjaudAhvE6HGBtWyRGgQDsmWDLENaoEwRvgBO_0E/edit?usp=sharing

As Mizuki said, the text is really spread all throughout the Unity project (ScriptableObjects, Prefabs, GameObjects) so not exactly straightforward to extract or modify, but not impossible to do so either.

Some of the texts are also just sentence fragments (see, e.g., spells:StatusEffectMessageOnNPC:ALL - Hydrated -> "feels less thirsty.") that might not work well for languages with sentences structures that are different from the Subject-Verb-Object order that's the default in English (though, admittedly, such fragments are more of an exception than the norm). But I guess that's not a total showstopper either if you can accept some incorrect grammar. 😉