Divinity: Original Sin 2

Divinity: Original Sin 2

UI Components Library
6 Comments
Hunter-Ghost-27  [author] 5 Jan, 2021 @ 8:55am 
Regarding the Localization Support
I've got good news and bad news.
The good news is that it is possible to add language support by embedding the appropriate fonts and handling translated strings in Lua(if any).
[img] https://i.imgur.com/46OcSTP.png [/img]
The bad news is that, given my limited knowledge, it's not exactly feasible to maintain different swfs for each language (especially as the mod is work-in-progress). Bundling the entire char-set into a single SWF is also something I'd like to avoid. As it stands, localization will have to wait, at least until I deem the mod stable.
The mod is open-source, and anyone willing to recompile the localized swfs to keep up with the mod, fork their own version or otherwise contribute is welcome to do so.
Teddy 30 Dec, 2020 @ 9:13pm 
@Hunter-Ghost-27, thx anser that very good mode i love it
Hunter-Ghost-27  [author] 30 Dec, 2020 @ 7:47pm 
There are no language XMLs here as the mod has no static text. This mod is just a bunch of .swf files and supporting Lua code. All content comes from the mods that use this library, so all translations will have to be provided by that mod.
The Take Notes mod has a small english.xml for item name and description, but it has no way to account for all the dynamically generated text you can type in. You cannot translate something that does not exist ahead of time :P

The UI elements (SWFs) can only display the characters that have been font-embedded in them. Currently, they only support English characters. I'll try embedding characters from other languages and see if the UI handles their display and input. Will have to add support for translated strings in Lua as well. The UI components should then be able to support both static and dynamic texts in other languages.

I will certainly look into it when I find the time, but it might take a while.
Teddy 30 Dec, 2020 @ 3:26pm 
@Hunter-Ghost-27, if you only extract the language file in xml, I will translate it.
Hunter-Ghost-27  [author] 30 Dec, 2020 @ 6:13am 
Sorry, it does not. I'll look into adding support but no promises.
Teddy 30 Dec, 2020 @ 12:56am 
Do you support other languages? i need KR