MV Help with SumRndmDde Translation Engine Plug-In.

Hello everyone!

Here asking for a bit of help in regards to SumRndmDde - Translation Engine – MV Plugin. The plug-in works as it states an a lot of is wonderfull, I have a couple of issue that more or less can be of a problem in a way, the plug in has the next notetag on it.


JavaScript:
<LANGUAGE Translation>
[name]:
[description]:
[message1]:
[message2]:
</LANGUAGE Translation>

The translation works properly until I try to use any kind of text codes even the one chaning the color the \c[x] nulls the following phrase and the text no longer shows up in the translation box. it happens in all of the description boxes, so I can only wirte the description wihtout codes(not so bad even if it'd look plain) and no icon in description(the real problem as I'm using an Icon Caption plugin that works with the Translation Engine) Meaning thet instead of saying Removes \i[x]Poison, I have to remove the \i compeltely

2023-01-30 13_36_53-Database.png
2023-01-30 13_38_33-Demonic EXtension Program.png

2023-01-30 13_37_17-Database.png
2023-01-30 13_40_00-Demonic EXtension Program.png


So can I aks that someone takes a look at it and see what could be causing this issue?
SumRndm has stopped giving support to his MV plug-ins according to his Discord so if anyone can help, it will really be useful for a lot of people speciallya s this is one of the few easy to use translation plug in.

EDit: Something I had forgotten to tell is that I'm using Yanfly's Message Core Which fourtunetly is still one of the free plug-in

EDIT2: Plug-in has been updated by @gundambison to allow the text codes to work in the description boxes. Belowe I'll include the Link to the Edited Plug-in.

If you use this remember to Credit both the orginal author SumRndmDde and the editor of the plug-in @gundambison.

Spoiler: GITHUB
Edited - Translation Engine
random suggestion:
try type
\\i
for
\i
I just tried that, this happened...

2023-01-31 07_17_20-Demonic EXtension Program - RPG Maker MV.png
2023-01-31 07_17_47-Demonic EXtension Program.png


I don't know enough javascript to undestand what's going on, but it seems to be waiting for something to close i guess?
My guess is that because SRD uses brackets to delineate the plugin instructions, the text codes that include brackets mess with his parsing (it thinks you're going to say name or description or something, but you don't).

If that's correct, it may require modifying the regex in the plugin.
my fault.. I found the "\\" on the json not on the text on RM


work on me.. I'm using spoiler because the image loading issue.. how to use

bSwKQDWcOb.jpg

\i[11] => icon
Spoiler: English (just to prof)
HCdD5gloXw.jpg

P1ZXpuJILr.jpg
okay.. is just the example
Spoiler: Spanish
Nu9PqBBUzl.jpg

hRz6SBjK6e.jpg
cmiiw..
Spoiler: json file
chrome_eJcMNUh4GF.jpg

this json taken from data/Translation.json

edit:
* wrong analysis
my fault.. I found the "\\" on the json not on the text on RM



edit:
* wrong analysis
It works on message themselves, the issue is when trying to translate the description box for skills/item and maybe even actor's profiles(thought I don't use any text code on those)

2023-01-31 09_31_35-Database.png
2023-01-31 09_31_59-Database.png

My guess is that because SRD uses brackets to delineate the plugin instructions, the text codes that include brackets mess with his parsing (it thinks you're going to say name or description or something, but you don't).

If that's correct, it may require modifying the regex in the plugin.
Ok, how can something like that be done? I'm going to be honest here, I know nearly nothing at all about javascript.
Is posible.. You zip the game and then we tried it? create new project and copy the translations.json on there then we tried
You need to update the js using this link .. backup the original and replace with this
Spoiler: edited by Gundambison
The reason like @ATT_Turan describe. The code using [ ] as separator to search the word. It mean, the reason why the word missing because is found [ ]
Spoiler: the problem source
003.jpg
I'm using |i( * ) to exchange \i[*]

the updated exchange into this
001a.jpg

result
002.jpg


Any suggestion would be okay

The Icon code is working know!!!!!

2023-01-31 11_44_56-Demonic EXtension Program.png

However... I want to ask if it is now possible to change the color too and what code to use, I tried the one in the img, if not is ok, I can do with just the Icon itself.

Edit: If what @ATT_Turan is easier, that would be better.
Any suggestion would be okay
Wouldn't it be simpler to change the plugin's convention? So that, for example, it's
|name|
|description|
?
Or even using braces, which are less likely to occur in the user-entered text? That way people don't have to remember two different ways to enter text escape codes, they can just keep the established method from the default editor.
The Icon code is working know!!!!!

View attachment 252074

However... I want to ask if it is now possible to change the color too and what code to use, I tried the one in the img, if not is ok, I can do with just the Icon itself.

Edit: If what @ATT_Turan is easier, that would be better.
is posible.. I need to update the js code.. actually you can added new code after line 549
JavaScript:
value = value.replace("|c(", "\\c[");
fyi.. I tried on nickname.. is not working (sad)
Wouldn't it be simpler to change the plugin's convention? So that, for example, it's
|name|
|description|
?
Or even using braces, which are less likely to occur in the user-entered text? That way people don't have to remember two different ways to enter text escape codes, they can just keep the established method from the default editor.
good idea.. but I gonna skip that.. Because the code using regex and regex is one of my Kryptonite
Spoiler: regex
index.php

I can explain this.. but I can't updated it because is already too complex?
* auch
is posible.. I need to update the js code.. actually you can added new code after line 549
JavaScript:
value = value.replace("|c(", "\\c[");
fyi.. I tried on nickname.. is not working (sad)

good idea.. but I gonna skip that.. Because the code using regex and regex is one of my Kryptonite
Spoiler: regex
I can explain this.. but I can't updated it because is already too complex?
* auch
Something weird happened while I tried to use it, the color changes but there's no way to return the color to normal even using |c(0) at the end of the code, it leaves the color on and it also disables the icons... so...

Also if I try to use the code a second time it doesn't show up at all again.

2023-01-31 14_31_03-Demonic EXtension Program.png


2023-01-31 14_31_26-Database.png
Wouldn't it be simpler to change the plugin's convention? So that, for example, it's
|name|
|description|
?
Or even using braces, which are less likely to occur in the user-entered text? That way people don't have to remember two different ways to enter text escape codes, they can just keep the established method from the default editor.
Thanks for the idea.. I come with this new idea
Something weird happened while I tried to use it, the color changes but there's no way to return the color to normal even using |c(0) at the end of the code, it leaves the color on and it also disables the icons... so...

Also if I try to use the code a second time it doesn't show up at all again.

View attachment 252086

View attachment 252087
I added other template like this
Code:
<Spanish Translation>
name|||Harold|||
nickname|||Harry|||
profile|||Este es \c[4]el héroe \c[0]de la historia! \i[3]
¡Él derrotará a toda la gramática mala!

</Spanish Translation>
Spoiler: english
005.jpg
Spoiler: spanish
004.jpg
Spoiler: added new template
006.jpg
Spoiler: download plugins
and yap.. still not fully working.. but the \*[*] showing
Spoiler: not on description
007.jpg
please tested it.. if Okay... I will clean the code and added how to inside the plugins
I switched the plug-in for the one in your link, but when trying to run the game this showed up.
2023-01-31 19_41_07-Demonic EXtension Program.png


2023-01-31 19_46_36-DevTools - chrome-extension___odlameecjipmbmbejkplpemijjgpljce_index.html.png
Seems to be the Yanfly Core?... I no longer know... XD XD XD TT_TT

If I switch back to the previous version it works as before.

Also where should I put the ||| after every name/description, sorry is just that your example was a bit weird, I apologize for the trouble.
that's fine.. I tried to use other readable template..
I forgot how to make readable template

please wait for my update.. * pm if I'm done *

Template i gonna use:

[Name]
Description you can add enter
______________
[*]Name
Description you can enter
____________

Any idea for readable template?
this is the updated plugins.. I'm using template
Code:
<Spanish Translation>
|||params
values
</Spanish Translation>
example:
Code:
<Spanish Translation>
|||name
Harold
|||nickname
Harry
|||profile
Este es \c[4]el héroe \c[0]de la historia! \i[3]
¡Él derrotará a toda la gramática mala!
</Spanish Translation>
Spoiler: type on note
10.jpg
the reason I'm using this, to make space for you to write
Spoiler: result
008.jpg
spanish
09.jpg
english

Spoiler: the link
still the same..
Click here
note:
  • not tested on other tab
  • not tested using \{ \}
  • not tested using special chars. The complex special chars
Dude!!!!! Sir!!!!! Master!!!!!!!

You ARE awesome!!!!!!!

2023-02-01 09_59_37-Demonic EXtension Program.png


This is the skill description BTW, so it works in the skill description and shows mutiple colors and icons which is what I needed, I personally don't need any other special commands, I don't know about anyone else though, but for me this seems to be a job well done!!!

Thank you so much, how can I ever repay you?
Your welcome..
I should updated the plugins with new feature/template.
Can you tested again to make sure is working properly? Sometime testing again will show error or something
I will added and inform you the updated version
2023-02-01 17_52_26-Demonic EXtension Program.png


So far so good, I was even able to use the Yanfly code.

JavaScript:
\it[x]

And that put the State Icon and the state name on the skill description section.
This is also in an already deployed build.
I'm upload the updated plugins on here
Spoiler: Github
Please update the first post and added with my last link then Give credit to the owner of the original plugins on your game or this post also.
suggestion using this plugins (Credits Plugin ) .

Btw.. If you need me.. search on FaceBook with keyword GBison

Original thread: https://forums.rpgmakerweb.com/threads/help-with-sumrndmdde-translation-engine-plug-in.154539/