How to define multilanguage in MV?

Hey guys i had a idea of defining multilanguage.

Although I was unsure how to do this actually....I thinked the way's I could do that would be :

to make a system who take certain data's depending the option you choose BEFORE you play the game.

Everything's would be the same's only the contents would be different's (like the dialogue's the menu name ect).

so this something who are actually possible?
I did this one (http://forums.rpgmakerweb.com/index.php?/topic/49016-iavra-localization/), but it officially never left development status and i'm kinda dissapointed with it. A different approach would be to have the user enter all of their strings in a certain format, like this: #{actor.1.name}, which could be resolved by drawText/drawTextEx.


Just remember, that you might need to do this twice for certain escape codes, like this:


- Text is "#{myText}".


- Gets resolved to "Hi, i'm \N[1]."


- \N[1] gets replaced with "#{actor.1.name}".


- Text is now "Hi, i'm #{actor.1.name}.".


- Gets resolved to "Hi, i'm Harold.".
I did this one (http://forums.rpgmakerweb.com/index.php?/topic/49016-iavra-localization/), but it officially never left development status and i'm kinda dissapointed with it. A different approach would be to have the user enter all of their strings in a certain format, like this: #{actor.1.name}, which could be resolved by drawText/drawTextEx.

Just remember, that you might need to do this twice for certain escape codes, like this:

- Text is "#{myText}".

- Gets resolved to "Hi, i'm \N[1]."

- \N[1] gets replaced with "#{actor.1.name}".

- Text is now "Hi, i'm #{actor.1.name}.".

- Gets resolved to "Hi, i'm Harold.".
in ACE i use SES External Text...

http://forums.rpgmakerweb.com/index.php?/topic/6608-external-text-v334-write-your-game-in-an-organized-manner-translate-with-ease/

basically it use escape code with some 'key' to grab from txt files...

it also have multi language addon which choose which txt files that pointed by the escape codes.

so you can made multiple txt files with different language.

also instead of having show message  "Hi, i'm #{actor.1.name}"

it would be better to show message "#{conversation_chapter_01_01}"

which converted to: "Hi, i'm \n[1]"  << this is the value of the key 'conversation_chapter_01_01' in txt files.

so we could create another file which have key 'conversation_chapter_01_01' value "Hai, Namaku \n[1]" for Indonesian language.

but like lavra said... we need to convert the key to text first... then run the regular convert escape character... to convert \n[1], etc.

also it might be confusing to debug message... you must open editor + txt files... copy the key in your editor... search in txt files... and soo on...

but... no pain no gain...
You also need to consider, what functions you need to override. I can think of:


- Window_Base.drawTextEx


- Window_Base.drawText


- Window_Base.calcTextHeight


- Windwo_Base.textWidth


- Bitmap.drawText


- Bitmap.measureTextWidth


You don't need all of them, but you can't just modify the most low-level, because drawTextEx needs to calculate the width/height of a text first, before rendering characters. And you need to make sure, that you aren't converting too often, because this could bog the performance down.
this why I thinked to use Multi-Data files

instead of of using ONE file's using 3 or 2 file's for define language.

and you load them on startup depending the language this person will choose
You also need to consider, what functions you need to override. I can think of:

- Window_Base.drawTextEx

- Window_Base.drawText

- Window_Base.calcTextHeight

- Windwo_Base.textWidth

- Bitmap.drawText

- Bitmap.measureTextWidth

You don't need all of them, but you can't just modify the most low-level, because drawTextEx needs to calculate the width/height of a text first, before rendering characters. And you need to make sure, that you aren't converting too often, because this could bog the performance down.
how about

Window_Base.convertEscapeCharacters

since what we do is basically converting one text to another text...

viable?

@nio: i think instead loading only language that user choose... it's better if you load all the language... but then choose which one to use... so user can change languange midgame.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-define-multilanguage-in-mv.53204/