Suggestion: Protect HTML Code in Translations

BGA localization discussions
Post Reply
User avatar
kiralk
Posts: 4
Joined: 29 June 2012, 07:55

Suggestion: Protect HTML Code in Translations

Post by kiralk »

Hello BGA Teams,

A minor improvement suggestion for the translation guidelines: Could we add a warning about not touching HTML code? Maybe even highlight those parts in a different color?

I've noticed some translated games end up with broken icons or card effects when the code gets accidentally changed. A little heads-up in the guidelines could save translators (and players!) a lot of trouble.

Thanks for considering!
User avatar
RicardoRix
Posts: 2540
Joined: 29 April 2012, 23:43

Re: Suggestion: Protect HTML Code in Translations

Post by RicardoRix »

A check to see if the same number of <> exist before and after an edit, seems logical.
FiftyShadesOfPlay
Posts: 3
Joined: 16 December 2023, 11:51

Re: Suggestion: Protect HTML Code in Translations

Post by FiftyShadesOfPlay »

I agree with the comments above that a check is useful. However, I would appreciate it, if a translation with a different numer of e.g. * was still possible. This check sometkmes makes it quite difficult to translate strings, especially if the original text combines multiple "segments" into one highlighted component.
To make my point, in the following example "the red tile" and "click" are combined. This means that they cannot be separated in the translation without having more *s:
"After you have selected *the red field, click* on *continue*."
I guess it could be solved easily if strings would have a format like this instead:
"After you have selected *the red field*, *click* on *continue*."
Post Reply

Return to “Translations”