Page 1 of 1

adding simple text coding to translations, is it allowed?

Posted: 18 March 2014, 22:48
by Sawyer Einherjar
Heyo moderators,

I was wondering whether it is allowed to use simple HTML commands in the translations boxes (or when thats not handy some other coding langauge like CSS?)
After translating Tournay strings a lot of the <br> command was used within the strings. This kinda got me going on using it on some of the stings for Seasons as well as in this game whenever you placed a . it skips a line before placing the new sentence in the UI. (Or maybe this is so for every game but only noticed it at seasons until now :D) However, sometimes its nice to have a list of the options a bit more compromised.

so instead of:

-increase summoning gauge with 2.

-gain 2 energy.

you have:

-increase summoning gauge with 2.
- gain 2 energy.

etc. (i seemed to only achieve this second effect in by using <br> ^^)


I just love to make strings as clear as possible. Therefore, i started wondering whether i could use <b> </b> commands in order to bold words like "or" or "and".
or use italics on the words where you got the action from as in Tokaido i think it can be really neat if the (bath house) is italics. To have bigger distinguis between what actually happend and what cuased it. But yeah just wondering if that would be allowed. I don't really want to go on a trail and error with chances of fucking up something ^^. Also only thinking to use it for strings on the cards / objects used on the game board and not those that are used for the action logs.

Not saying i'd go and use it straigth away as it will make translating more intensive, but i'm guessing that once you worked out a game completely it would look pretty neat.
Looking forward to the answer.
Greetings,
Sawyer

Re: adding simple text coding to translations, is it allowed

Posted: 24 March 2014, 10:26
by Een
Hello Sawyer,

Unfortunately for security reasons, we check that the html snippets in the translations are unchanged.
(otherwise some people could for example add some javascript to redirect to another site, etc., etc.)
Even well intentioned people would probably make mistakes which would break the layout of the site.

So it is not possibile to change the look of the text while translating.
If there is a generic improvement that would greatly enhance readability for a game, this would be best reported as a suggestion for the developper to consider (but for already fully translated games, a small change in the source strings implies to retranslate them in all languages, so usually we'll do it only if there is really a huge benefit for players)

Cheers,
Een

Re: adding simple text coding to translations, is it allowed

Posted: 24 March 2014, 14:49
by Sawyer Einherjar
Yeah i was already thinking something like that. My intentions were more based on Dutch only. Not indeed for the whole, meaning everything has to be retranslated that be crazy amount of work :D.

Anyway just want to notify you then that my <br> used in Seasons string translations are not filtered out. I really love the look way better with the use of <br> in a few of the strings (compacter and clear division in choices rather than a long sentence with the word "or" somewhere in between :P)

But well up to you whether that needs to be adjusted or not ^^ (i've kept reviewing the game with this translations and didn't find a disorder by my used <br>)
I'll refrain from using bold or italics then :)

greets,
Sawyer

Re: adding simple text coding to translations, is it allowed

Posted: 24 May 2014, 18:56
by Een
You were right, new html snippets were not filtered out (you just could'nt delete those who were in the original string).

I have fixed it. I could have authorized some non dangerous tags like b/i/br but it would have opened a way for some shady translators to 'steal' translations made by others without doing any real translation work (yes, that's sad, but it happened in the past with another method...)
So the formatting of the text will stay a responsability of the developers and not of the translators.

Your past changes won't be impacted, unless you need to update a translation where you made such a change (when saving a new translation, the server will check that there is exactly the same tags in the original string and the translated one).

Thanks for reporting this, as it was a security problem that could have been abused.
Een