Help with Iavra Localization

Hi there,

I found this plugin:


But I really don't know how to use it.

For example:
{
"text.test": "This is a test text"
}


Every instance of "#{text.test}" will be replaced with "This is a test text".

What is an instance of text.test? How do I define this in my game?
Where do I put the translation and how does it need to be formatted?

Can anyone give me an example please?
if you read it fully, it really explain what: specially when nested
"text" is that is will show the text
"test" is the person who say it.

{
"text.test": this is a test test" //is said by test
}

if you want a clear and nest it for your own better understandable what someone say, you can use:

{
"text": {
"test": "This is a test text"
}
}

if you read the explaination good or a couple of times, you would understand.
I dont know the plugin or how it works fully, so I need to try that.

but if you have trouble for translation the game, there are some nice alternatives for them.
Sorry, english is not my native language, so sometimes it can be hard for me to fully understand such complex things.

Thanks for your help.

So "test - the person who say it" - it's defined by the name (or ID) of the event? Or how else does the plugin know what is the name of the person?

For example, I have the Event ID 037 who is saying "Hallo!".
So in the json it would look like this:

{
"Hallo!.037":"Hello!"
}

Is this correct?

And if it is (cause I tried, and it doesn't change anything) - next question:

The plugin offers the following script calls:
IAVRA.I18N.language; Returns the current language.
IAVRA.I18N.language = lang; Sets the current language to lang.
IAVRA.I18N.languages(); Returns a list of all available languages.
IAVRA.I18N.localize(text); Localizes the given text.

Are these really script calls or plugin calls?
So one of these should work:
Unbenannt.png



but if you have trouble for translation the game, there are some nice alternatives for them.
So far I only found this one and the one from SRD. But I have some troubles with SRD as well (https://forums.rpgmakerweb.com/inde...engine-is-showing-the-opposite-option.117704/)

I would appreciate every help or another, easier to use, plugin (if there is one, as I guess these two should be easy enough if I understand them).

I am really sorry for my dumb questions... 🙁
if you use different actor's, you could better use the # key word like this example:

{
"text": "Hi, my name is #{actor}",
"actor": "Harold"
}

but alot of the plugin arent really the easy ones, and some need some javascript basics
to understand them or if you want fully to understand it, you need moderate javascript knowledge.

SRD has indeed a translator, but I dont knows his either, but it seems more work though.
another translater is the Translator++ which seems a good one (I still need to try it though)
which is made by Dreamsavior.

but I dont know if there are any other or better once. So I can't really help you further on that.
but hope that others that use this plugin or others, can help you further to make an example
list for you so you can understand the keyword better.
Okay, thank you.

I only have 1 actor in my database. The rest are NPCs. This is why I asked if the ID number is required.

Alright, I will delete this one, it really is too complicated for me 😕
I like SRD Translation Engine more, but I need to get it to work.

I will try the Translator++ you posted, thanks!
@ShadowDragon you misunderstood the question.
The OP is not asking how to organize the text files, he is asking what and where to place in the MV editor so that the engine and plugin know what txt to call where.

@Zion "Instances" are the places and occurences where you place that text. This can be text fields in the database or the text field of the show text command.

So if you have an event with the command
Show text: #{text.test}
Then that will be replaced with
Show text: This is a test text
when the game is running.
and you'll have one text file per language giving different translations of the same sentence, with the replacement selected from the active language (the keys have to be the same over all language files).

And both of you failed to understand that
For example, I have the Event ID 037 who is saying "Hallo!".
So in the json it would look like this:

{
"Hallo!.037":"Hello!"
}
this was only an example.
The developer decides completely on his own what kind of sorting to use for the parts of the key that is replaced.
If you want to use the event ID that is your decision - you still have to place the key manually into the show text command of that event.
But what you should use those parts for is to help you FIND the correct places where you manually have to place the keys, especially if you have to edit your texts later.

The dot allows to to organize those parts of the key so that you don't have to retype everything.

I think a good way to organize this would be to use

Mapname.eventname.textnumber for event keys
Mapname.actorname.textnumber for actor cutscene texts
chapter.townname.narratornumber for the texts describing when the game advances
questname.textnumber for questtexts scattered over different maps

or whatever else.
You should NOT use ID-Numbers unless you have a really small game or are a masochist, because finding the key 02324.123432.34343 in a big game would be a problem for anyone without photographic memory.
Thank you!!

I feel like finally I understand it.
This is really powerful!

You should NOT use ID-Numbers unless you have a really small game or are a masochist, because finding the key 02324.123432.34343 in a big game would be a problem for anyone without photographic memory.
LOL!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-iavra-localization.117755/