Automatic format checking

BGA localization discussions
Post Reply
User avatar
Nidhoeggr42
Posts: 31
Joined: 04 December 2020, 15:41

Automatic format checking

Post by Nidhoeggr42 »

Hi,

would it be possible and reasonable from your side to check if a leading space is present in the translated text also?
It's something that's often overlooked in translations, so i think it would be helpful if you give a hint to translators in this case, similar as you do with trailing spaces.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Automatic format checking

Post by Een »

Hi, do you have an example? It's always more clear with an example :)

(in general starting with a space should not happen)
User avatar
KongKing123
Posts: 577
Joined: 04 April 2020, 19:43

Re: Automatic format checking

Post by KongKing123 »

Een wrote: 19 July 2021, 13:59 Hi, do you have an example? It's always more clear with an example :)
Here's one: https://boardgamearena.com/translation? ... 24%7Bs%7D)

What's also frequently used (and is annoying to verify) are trailing spaces: https://boardgamearena.com/translation? ... oved%3A%20
Attachments
Pandemic
Pandemic
Trailing space.PNG (67.71 KiB) Viewed 1020 times
Carnegie
Carnegie
Leading space.PNG (63.65 KiB) Viewed 1020 times
User avatar
Nidhoeggr42
Posts: 31
Joined: 04 December 2020, 15:41

Re: Automatic format checking

Post by Nidhoeggr42 »

Hi,

i have an example from Karawane (engl. Caravan)
https://imgur.com/OO5UOku (i didn't manage to include the sceenshot directly)
The English highlighted text says " Cubes till refill". Before i fixed it, this leading space was missing in the translation.
In the game itself before this text is added a number ranging from 1-4.
User avatar
Tisaac
Posts: 2741
Joined: 26 August 2014, 21:28

Re: Automatic format checking

Post by Tisaac »

Nidhoeggr42 wrote: 19 July 2021, 19:39 In the game itself before this text is added a number ranging from 1-4.
The game developper is to blame here, you are not supposed to concatenate translated strings, even with numbers. That could make translations impossible in some langages.
You should probably fill a bug report to ask him to change that.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Automatic format checking

Post by Een »

Thanks for providing examples.
As noted by Tisaac these cases shouldn't happen in principle; the developer should favour substitution to concatenation for translatable strings, and in cases where concatenation is needed (probably almost never, but never say never), the developer should manage spaces outside of the translatable strings.
Still, it's bound to happen, as we have a lot of developers working on games, with various levels of mastery of the framework, which is perfectly normal and a good thing; this kind of strings should be reported as in some cases they can be untranslatable in some languages.
Anyway it's probably good to add a check for leading spaces (we should already have one for trailing spaces if I remember correctly).
Noted for a future release.
Post Reply

Return to “Translations”