Crea
Expand Your World
Create and share new mods to expand your worlds: items, monsters, skills, races, realms, game systems. Anything and everything is possible.
Learn More
Gh0st 25 Mar, 2016 @ 6:47pm
Language Translator
Hi, i'm not american and i'm very fluent on english language i want to translate the game to put it as workshop mod to share with my friends of my country, if someone can teach me how to make a language mod, thanks!
< >
Showing 1-9 of 9 comments
Baxter900 4 26 Mar, 2016 @ 8:25am 
There's already a workshop mod for chinese here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=625962606

I'd recommend using that as a baseline while comparing it to the main game. The main file that you'll be editing is the locale file (the english one is locale.en and can be found in mods/locale/locale.en in the crea installation location). The purpose of the locale file is to replace text in the code with the correct text when viewed in game. If you have any questions just ask and I'll answer more thoroughly when I have more time.
Gh0st 26 Mar, 2016 @ 11:53am 
Originally posted by Bandersnatch:
There's already a workshop mod for chinese here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=625962606

I'd recommend using that as a baseline while comparing it to the main game. The main file that you'll be editing is the locale file (the english one is locale.en and can be found in mods/locale/locale.en in the crea installation location). The purpose of the locale file is to replace text in the code with the correct text when viewed in game. If you have any questions just ask and I'll answer more thoroughly when I have more time.

But how to i make it a mod, how i gonna upload to crea workshop? and how to i open this, can i open with notepad++? can i change the file name like eng.locale>pt.locale ?
Last edited by Gh0st; 26 Mar, 2016 @ 11:54am
Gh0st 26 Mar, 2016 @ 10:52pm 
Originally posted by Bandersnatch:
There's already a workshop mod for chinese here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=625962606

I'd recommend using that as a baseline while comparing it to the main game. The main file that you'll be editing is the locale file (the english one is locale.en and can be found in mods/locale/locale.en in the crea installation location). The purpose of the locale file is to replace text in the code with the correct text when viewed in game. If you have any questions just ask and I'll answer more thoroughly when I have more time.

I'm a little confused here what word i can translate to appear in game?
locale("CustomizationShoes", "Shoes") ?
Baxter900 4 27 Mar, 2016 @ 9:16am 
Your answers in order:

You can upload it the same as any other mod, I think you figured this out already guessing by your question on the modding guide.

You can open it with any text reading application (though I would advise a programming text editor, notepad++ will work great for these purposes).

Yes you can change the name from en.locale to pt.locale. In fact, you should do this, otherwise the game will not recognize it as a new language.

For the translation and how it will appear in game, the format is
locale("PlaceHolderText", "Text to be shown in game")
As such, the PlaceHolderText will always be the same regardless of the translation, but the Text to be shown in game should be replaced with the translation.

Hope this helps! It sounds like Jasson (the main dev) is back so I'll probably direct him to you next time I see him around. I haven't really used the language translation system much, so I can't help you very well with this, and he could help you much better since he designed the system.
Gh0st 27 Mar, 2016 @ 12:54pm 
well i translated 35% of the game at momment but i don't know what i did wrong i put the info file with the right descriptions and put the (portuguese_language) folder like this (without equal) i put the fonts and changed the direction of the fonts to my mod when i open crea he closes
Gh0st 27 Mar, 2016 @ 12:59pm 
i put the right directories like this
name = "Portuguese"

font("text", "mods/portuguese_language/ui/fonts/Bitter/Bitter-Regular.ttf")
font("nameplate", "mods/portuguese_language/ui/fonts/Ubuntu/Ubuntu-B.ttf")
font("number", "mods/portuguese_language/ui/fonts/Ubuntu/Ubuntu-B.ttf")

And the right desc like this
{
"title": "portuguese language,
"author": "Condizion",
"description": "Tradução PT-BR, qualquer erro ortográfico reporte no chat",
"serverOnly": false
"version": "1.0",
"priority": 1,
}

I am doing something wrong?
Last edited by Gh0st; 27 Mar, 2016 @ 1:00pm
Baxter900 4 27 Mar, 2016 @ 7:28pm 
It may be that you're using non-ascii characters in your description. Alternatively, it may be that you have a typo somewhere in the locales with a missing comma, parenthesis, or quotation mark. If you post your log that will probably shed some light on the problem.
Gh0st 27 Mar, 2016 @ 10:39pm 
03/27/16 20:15:48,795.387 [1512] main.cpp:140 INFO main ?Initializing python
03/27/16 20:15:48,811.021 [1512] main.cpp:143 INFO main ?Finished initializing python
03/27/16 20:15:48,970.211 [1512] main.cpp:168 INFO main ?Initialized Steam API
03/27/16 20:15:49,319.445 [1512] GameManager.cpp:143 INFO main ?Initializing the GameManager and all Subsystems: 0.41.0
03/27/16 20:15:49,319.445 [1512] Random.cpp:18 INFO main ?Random: setting seed to 1459109749
03/27/16 20:15:49,362.974 [1512] RenderSystem.cpp:47 INFO main ?Initializing RenderSystem
03/27/16 20:15:49,363.476 [1512] RenderSystem.cpp:49 INFO main ?Creating Window: <PixelVector(x=1280, y=720)> in mode 0
03/27/16 20:15:49,452.033 [1512] RenderSystem.cpp:53 INFO main ?Maximum Texture Size: 8192
03/27/16 20:15:50,237.970 [1512] GameManager.cpp:214 INFO main ?Commandline:
03/27/16 20:15:50,238.470 [1512] Scene.cpp:18 INFO main ?Creating Scene: Logo
03/27/16 20:15:50,512.153 [1512] Package.cpp:57 WARN main ?Failed to load package information: <type 'exceptions.ValueError'>: Invalid control character at: line 2 column 35 (char 36): File "C:\Program Files (x86)\Steam\steamapps\common\Crea\modules\json\__init__.py", line 278, in load
**kw)

File "C:\Program Files (x86)\Steam\steamapps\common\Crea\modules\json\__init__.py", line 326, in loads
return _default_decoder.decode(s)

File "C:\Program Files (x86)\Steam\steamapps\common\Crea\modules\json\decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "C:\Program Files (x86)\Steam\steamapps\common\Crea\modules\json\decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)

03/27/16 20:15:50,935.864 [10224] main.cpp:53 FATAL main ?Python Stacktrace: File "C:\Program Files (x86)\Steam\steamapps\common\Crea\modules\traceback.py", line 278, in format_stack
return format_list(extract_stack(f, limit))
Gh0st 28 Mar, 2016 @ 1:09am 
i leaved the __init__.py file blank
< >
Showing 1-9 of 9 comments
Per page: 1530 50