Thanks for the link, seeing this may well be the same problem (which I obviously had to verify one way or the other). Anyway, I checked on things and noticed that a couple of definitions had spaces that got misinterpreted. Aside from escape code issues relevant to MV everything now seems to click as it should. And if you have something like Visual Studio Code installed, the editor's code check function will basically do the same thing as the website you linked to (and where it is as well so you know what to fix).
EDIT: Another issue: Unexpected token. This is going to require a switch to flat-rate pricing where it doesn't quite fit the purpose of my intentions.
EDIT 2: Workaround. Forgot to consider breaking up the definitions to account for this.
Iavra Localization
● ARCHIVED · READ-ONLY
-
-
Hi guys!
First of all, this plugin work in mobile development?
Because i was using the SrdTranslationEngine, and in the Desktop it works very well!
But in mobile the plugin don't work =/
Check this link: http://download1517.mediafire.com/jjp6p7wxrtyg/51kmm45osc9otui/03.+Project03+v3.4a.zip
It's other post
I had the same question. You can translate. It's text. You only need to put in System:
#{tname}
Example:
#{text.term01}
#{text.term02}
#{text.term03}
#{text.term04}
#{text.term05}
You can see the demo I posted in this comment. It helps a lot.
Well, thanks for the demo!
I'm trying to learn use this plugin. But i cant understand how do you do in the demo since the project is already deployed...
I'm looking into the en.json
and i see this:
"mino01": "How dare a human sully this sanctuary!",
"mino02": "Begone, now!",
"mino03": "Alright... I'm going..",
"mino04": "Nay!",
"mino05": "Nheeee! I shall make you begone!",
During the game i have to name the events? Then i use that name to translate everything?
The numbers, 01,02,03 are the line 1, line2, line 3... of this event? -
unwatched.
-
That would be in your event definitions. For the targeted position where the item name, conversation or descriptor would be used, place the following in the respective function call, variable name, description etc:Hi guys!
First of all, this plugin work in mobile development?
Because i was using the SrdTranslationEngine, and in the Desktop it works very well!
But in mobile the plugin don't work =/
Code:#{text.mino01}
Obviously you should change that according to your requirements. And for localized targeting you'll want to be sure that you have a data file relative to each portion of your audience, e.g. ja.json, es.json etc.
As for mobile development it depends on your setup and device target, although for selective reasons you should package accordingly. Mac deployments already do this to a degree, and I believe there's a tool somewhere on the forums to assist with Android targeting. And as long as the localized data files are properly distributed with the game package I think you should be good to go on that. Or at least it should, 'cause otherwise I don't know what to expect. I'll probably run my project in a virtual environment at some point to verify this. -
That would be in your event definitions. For the targeted position where the item name, conversation or descriptor would be used, place the following in the respective function call, variable name, description etc:
Code:#{text.mino01}
Obviously you should change that according to your requirements. And for localized targeting you'll want to be sure that you have a data file relative to each portion of your audience, e.g. ja.json, es.json etc.
As for mobile development it depends on your setup and device target, although for selective reasons you should package accordingly. Mac deployments already do this to a degree, and I believe there's a tool somewhere on the forums to assist with Android targeting. And as long as the localized data files are properly distributed with the game package I think you should be good to go on that. Or at least it should, 'cause otherwise I don't know what to expect. I'll probably run my project in a virtual environment at some point to verify this.
Yep! I got how to use it now, i made some tests and its works on mobile! :kaojoy:
Now i'm in the process to make a scene for change the language instead of the options. For the ones who want to the player choose a language before the tittle screen :) -
Hi people!
Making some tests here.
I try to translate, but there are something that i cannot translate.
I already saved the json file with UTF-8.
I can't use "?", "ó" and capital letters?

-
Have you tried DK localization plugin?Hi people!
Making some tests here.
I try to translate, but there are something that i cannot translate.
I already saved the json file with UTF-8.
I can't use "?", "ó" and capital letters?
-
No... This plugin work fine. My doubt is only a question of "design". Because in the translation, the signals (?óáé etc) work. But only in the TAG that don't work. But the plugin is working fine ^^Have you tried DK localization plugin?
-
in case anyone is interested, I made an upgrade here. Not a super upgrade though.
-
So for some reason the game does not switch languages when I change them in the options menu.
I can actually change them via console commands and then my text is shown in the chosen language but chaning it in the options does absolutely nothing and it will always use the default language or the language I chose via console command.
Any idea what I'm doing wrong? -
Hi!So for some reason the game does not switch languages when I change them in the options menu.
I can actually change them via console commands and then my text is shown in the chosen language but chaning it in the options does absolutely nothing and it will always use the default language or the language I chose via console command.
Any idea what I'm doing wrong?
Maybe you have a parallel or autorun event setting the language back to the original?
I didn't record to get this issue, but a long time ago I made a patch that put these two plugins altogether and fixed some things too. Maybe you could give it a try?
in case anyone is interested, I made an upgrade here. Not a super upgrade though. -
Actually no because I just downloaded the plugin and was trying to test it in my project. Put just a single line of text in a json in various languages. And when I change the language by console command it actually uses the language I changed it to (like using english when I type in english or german when I type in german) but for some reason the option menu itself does not work. (It didn't even show a language until I selected one to begin with)Maybe you have a parallel or autorun event setting the language back to the original?
While this version fixes the problem of not having a start language selected in the menu I still can't seem to save my choice and this one actually goes back to my default language.I made a patch that put these two plugins altogether and fixed some things too. Maybe you could give it a try?
I just tried creating a whole new empty project and it works there. So it might be incompatible with some other plugin I have. Any idea what kind of plugins could cause such problems? Like are there maybe some methods or something I should look out that would change something in the way how the language plugin saves it's option?
Edit: I just tried changing the order of my plugins and now it works. Still thanks for the help and the advice to use your updated version. -
where do I find the file "en.json"?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.
Plugin
Iavra Localization - Core
Description
The core plugin for localization, which contains all logic to load text and convert escape codes.
Parameters
@param Escape Code
@desc Code, that will be used to retrieve localized strings. "{key}" serves as placeholder for the text key.
@default #{{key}}
@param Languages
@desc Comma-separated list of languages, that should be supported. The first entry will be used as the default.
@default en
@param File Path
@desc Path to the language files to load. The sequence "{lang}" will be replaced with the languages entered above.
@default {lang}.json
How to Use
To setup this plugin, register all supported languages inside the "Languages" parameter, separated by commas. You also need to place the corresponding files inside your project folder. So, for example, if you want to support the languages "en" (english) and "de" (german) and the parameter "File Path" is set to its default value, you'll need to add the two files "de.json" and "en.json" to the root folder of your project.
The first language will automatically used as the default langage.
During runtime, every instance of "#{...}" (can be changed via plugin parameter "Escape Code") will get replaced with a localized string, where "..." stands for a text key. So, if your language file looks like this:
{
"text.test": "This is a test text"
}
Every instance of "#{text.test}" will be replaced with "This is a test text". For better maintainability, it's also possible to split keys at dots:
{
"text": {
"test": "This is a test text"
}
}
The above example will result in the same key as the first one, but makes it easier to construct nested keys, for example for the names of all actors. Instead of objects, you can also use arrays, like this:
{
"text": [
"Text 1",
"Text 2",
"Text 3"
]
}
This will create the keys "text.0", "text.1" and "text.2", each pointing to the text listed at that array index. If needed, you are free to combine the object and array notations.
Keys can also contain keys themselves, which will be replaced recursively. This allows you, to define important strings, like city names, at a single position and reference it everywhere else:
{
"text": "Hi, my name is #{actor}",
"actor": "Harold"
}
You can use all escape characters, like "\V[...]" inside the files, but will need to double the backslashes. Line breaks can be entered by using "\n", since JSON doesn't support real linebreaks inside strings.
The plugin offers the following script calls:
Code: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. -
Hi!where do I find the file "en.json"?
You need to create it in the root folder. The same folder that has the index.html -
Hi! Does anyone have still the demo file? Sadly, i have a lot of trouble with this plugin..
-
Hi, since there wasn't any new post for this plugin: I tested the plugin with RPG Maker MZ and it works fine and I attached a demo project to this thread.
For sure, not the entire project: Create a new MZ project and copy all files with overwrite into your new project folder - that's all.
I wrote this simple scene to test if the plugin is working. I tested translation in two languages with option menu, in database and event commands e.g. ShowText including variables.
I did a small change to the code so that the warning in MZ plugin manager is avoided but no change in functionality. -
Hi ! Is anyone try to use this plugin to translate a "plugin parameters" before ? Everything work fine to my but only "plugin parameters" even when I order plugin up or down the plugin have that parameters.
-
EDIT(Figured it out): Found my issue.... #{Actor3.RandomText[2]} should have been #{Actor3.RandomText.2} Leaving the question though as maybe it will help others think of how they can combine the JSON attributes to make language files.
Hi all, odd question. I've used this plugin with both Object and Array in the same file, but what about an object that contains objects AND arrays?
Something like this
{ "Actor3": { "Name": "Dr. Actor 3", "RandomText": [ "I'm a doctor", "Are you a patient here?", "Are you still here?" ] } }
#{Actor3.Name} works, but #{Actor3.RandomText[2]} does not work -
Hi, thanks for your perfect localisation plugin.
It works great, but I have a strange problem - artefacts appear in characters in different languages. I've checked everything and can't understand where is the problem. The json is utf-8 encoded.
RPG Maker MZ.
Img -
1 - This is an MV plugin. That doesn't mean you can't use it in MZ, necessarily, but it should be a first consideration for any bugs.It works great, but I have a strange problem - artefacts appear in characters in different languages. I've checked everything and can't understand where is the problem. The json is utf-8 encoded.
RPG Maker MZ.
2 - There have been a handful of threads about font artifacts like that. They've all been related to people using VisuStella's Message Core, as far as I've seen, and have to do with some incompatibility between that plugin and the version of NW.js that MZ ships with.