Localization does not work if the original label contains spaces.

VictorUlloa, Wed Jan 12 2022, 11:23PM

If you put a label text that contains spaces to any component, like an edit box, the Localization creates a key with spaces, but doesn't translate.

For example, my edit box originally has the label "Cargo o Puesto".  When I "synchronize all"  in localization, it creates a key "cargo o puesto".  I put the strings for "English" and "Spanish" languages and run the project, but no matter what language I choose, it shows only "cargoopuesto" at the page (as shown, no spaces nor capital letters).

I must change the key to just "cargo" and put [%cargo%] in the component label for it to work.

Workaround: don't use labels containing spaces if you are going to use localization.

Re: Localization does not work if the original label contains spaces.
administrator, Thu Jan 13 2022, 11:46AM

To avoid (very) long labels we advise to not use use long descriptions if your intentions are to make a multilingual application. But despite this, the label should replace the spaces by underscore. Will be reported on the bug tracker.