Status
Not open for further replies.

CG-Tespy

Professional Persona Panderer
Veteran
Joined
Jan 5, 2019
Messages
49
Reaction score
29
First Language
Spanish
Primarily Uses
RMMV
I've translated the param info of one of my plugins to Spanish, including it in the js file. When I have MV switch to Spanish, and the params of the plugin to their Spanish equivalents in the Plugin Manager... well, my code just doesn't work anymore. After a little debugging, I've found that the translated param names aren't being properly mapped to their original English ones.

Here's an example:
JavaScript:
/*:
    * ...Author info, desc, etc
    *
    * @param Graphic Width
    * @type number
    * @min 1
    * @default 300
    * @desc Sets the width of the nametag graphic. Ignored if Fit Graphic to Nametag is active.
    *
    * @param Graphic Height
    * @type number
    * @min 1
    * @default 100
    * @desc Sets the height of the nametag graphic. Ignored if Fit Graphic to Nametag is active.
    *
    * ...More params
    */

JavaScript:
/*:
    * ...Translated Author info, desc, etc
    *  @param Ancho del Gráfico
      * @type number
      * @min 1
      * @default 300
      * @desc Pone el ancho del gráfico del gafete. Ignorado si Queda el Gráfico al Gafete está activo.
      *
      * @param Altura del Gráfico
      * @type number
      * @min 1
      * @default 100
      * @desc Pone la altura del gráfico del gafete. Ignorado si Queda el Gráfico al Gafete está activo.
      *
    *
    * ...More translated params
    */



So, how do I fix this?
 
Last edited:

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,775
Reaction score
2,126
First Language
EN
Primarily Uses
RMMZ
There is a @text directive that allows you to define a display name for a parameter. You should use the same @param value and simply translate the display name, e.g.
JavaScript:
/*
 * ...
 * @param Graphic Width
 * @text Ancho del Gráfico
 * @type number
 * @min 1
 * @default 300
 * @desc Pone el ancho del gráfico del gafete. Ignorado si Queda el Gráfico al Gafete está activo.
 * ...
 */

Edit: also, I think you can define custom headers for specific locales, e.g.
JavaScript:
// default language
/*:
 * @plugindesc description
 * @author author
 * @help Help
 * @param param name
 * ...
 */
// editor is running in japanese
/*:ja
 * @plugindesc japanese description
 * @author author
 * @help Japanese help
 * @param param name
 * @text jp param name
 * ...
 */
I'm guessing the locale code for spanish is es or something?
 
Last edited:

CG-Tespy

Professional Persona Panderer
Veteran
Joined
Jan 5, 2019
Messages
49
Reaction score
29
First Language
Spanish
Primarily Uses
RMMV
Thank you very much, that solved the problem ^_^
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,949
Reaction score
5,857
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Steam page is now live!
1632768058957.png
just discovered thig game called Willowbrooke Post... beautiful artstyle if I do say so myself... does anyone know what this kind of style is called??
In one of my game projects, I am working on an arena where you can fight combatants or bet on monsters, and, man, it is taking so long, lmao. I do not think that it helps that I am using an evented combat system with a lot of things that I have to edit.
Time to take a little break from the project to work on another for Skyrim. Shouldn't take too long, as it's just fulfilling an easy to do request(more than likely I'll get beaten to the punch but...) this also gives me an excuse to play Skyrim again LOL.
Dawg.gifKhat.gif
I made two new friends today. I'm not sure which style I like the best..?

Forum statistics

Threads
115,413
Messages
1,089,683
Members
150,158
Latest member
Astro123
Top