Add switches in script ?

Hello everyone it's been a while lol I haven't given up on my game project for 3 years and I'm finally coming to the end ...

I am translating the game via this script
https://dl.dropboxusercontent.com/s/112djn7ydqh57rv/SRD_TranslationEngine.js?dl=0

The problem is that my HUD is based on switches It is from the graphic that I cannot translate it I must replace it.

I'm trying to find a way to include two switch values that activate based on the language chosen by the user.
example: if active Spanish swtich0165; 0166 (I know the language is not good but to give you the idea).

In fact I can't even find the lines where there could be the choice of language in order to activate all this: /

I just don't know how to do it lol

If I had this means of swtich it would be enough for me to make the basic HUD OFF when the switch "while" is activated and with the second switch to activate the HUD corresponding to the correct language ...

How to make friends? thank you!

-------


Hello à tous cela fait un moment lol

Je ne démords pas depuis 3 ans sur mon projet de jeu et j'arrive enfin au bout...

Je suis en train de traduire le jeu via ce script

https://dl.dropboxusercontent.com/s/112djn7ydqh57rv/SRD_TranslationEngine.js?dl=0

Le problème c'est que mon HUD se base sur les switchs

C'est du graphique je ne peux pas le traduire je dois le remplacer.

J'essaye de trouver un moyen d'inclure deux valeurs de switchs qui s'activent en fonction du langage choisi par l'utilisateur.

exemple : if spanish active swtich0165; 0166 (je sais le langage est pas bon mais pour vous donner l'idée).

En fait je ne trouve même pas les lignes où il pourrait y avoir le choix du langage afin d'activer tout ça :/

Je ne sais tout simplement pas comment m'y prendre lol

Si j'avais ce moyen de swtich il me suffirait de rendre le HUD de base OFF quand l'interrpteur "tant" est activé
et avec le deuxième interrupteur d'activer le HUD correspondant au bon langage...


Comment faire les amis ? merci!:rsrs:

I've moved this thread to Plugin Support. Thank you.

I had used this plugin a lot, a long time ago. And I can assure to you: You will find some problems using him.
One of them is with what you want to do now. This is a simple conditional branch when you can detect a language via script call. If true, do stuff.

Honestly I can't remember the script, but I will search in my computer when I turn it on.
But it's possible that you consider switch to another plugin for translate your game?
Like this one?
there is a nice plugin that can control the language form 1 file, if you change language,
so does all the text as well. but doing it from almost teh end would be a pain in hte ass.

translate the game otherwise can be also a pain, unless you add an language switch
to activate hen game starts.

another way around is, take time as well, is to backup your game twice,
1 = spanish
2nd one you can translate all to english, so you have 2 versions of the game,
3rd as the real backup if something goes wrong.

but there is no real good translating system though that can do it nicely without
much hassle.

this is one alternative though to try out: translator++
I had used this plugin a lot, a long time ago. And I can assure to you: You will find some problems using him.
One of them is with what you want to do now. This is a simple conditional branch when you can detect a language via script call. If true, do stuff.

Honestly I can't remember the script, but I will search in my computer when I turn it on.
But it's possible that you consider switch to another plugin for translate your game?
Like this one?

Hello thx ! Just 1 switch is enough finally and if its very hard to do, i Can to modify graphics in question

Its the HUD im not in the obligation to write on gauge
there is a nice plugin that can control the language form 1 file, if you change language,
so does all the text as well. but doing it from almost teh end would be a pain in hte ass.

translate the game otherwise can be also a pain, unless you add an language switch
to activate hen game starts.

another way around is, take time as well, is to backup your game twice,
1 = spanish
2nd one you can translate all to english, so you have 2 versions of the game,
3rd as the real backup if something goes wrong.

but there is no real good translating system though that can do it nicely without
much hassle.

this is one alternative though to try out: translator++


from the updated point of view and dlc I can't afford or some countries will have it all late
TThx to shadow i will try tomorrow translate ++ thx

Original thread: https://forums.rpgmakerweb.com/threads/add-switches-in-script.120408/