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,770
Reaction score
2,121
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,941
Reaction score
5,855
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

WE ARE THE BORG. YOUR BIOLOGICAL AND TECHNOLOGICAL DISTINCTIVENESS WILL BE ADDED TO OUR OWN. RESISTANCE IS FUTILE.
D2R save files are so broken. how was the beta test better then the full release. blizzard's last hope crashed and burned.
they're getting no more chances from me.
Anyone going to talk about Chris Pratt Mario?
My friend just gave me chocolate milk at lunch today! My day is now 1000x better. Yay, choco milky!! :kaojoy:

Forum statistics

Threads
115,333
Messages
1,089,093
Members
150,004
Latest member
Gerardo_ita
Top