Xcode does not localize specific strings

In my storyboard files, I have several lines that I do not need to localize, their text is filled with values โ€‹โ€‹from the server or code at run time (author name, object name, etc.); with the source text filled with something like: "Label", "Author's name". (I want to save these initial values โ€‹โ€‹in the storyboards, to preview the interface.)

I use localization with .xliff files.

Is there any way to mark them so that they do not fall into the corresponding .xliff files for localization?

+2
source share
1 answer

I would recommend using text like "$ Label $" and "$ Author Name $", so itโ€™s obvious on your display that you have a line in which something else needs to be replaced, and this makes it obvious to the translator that it doesnโ€™t should be translated. So far, they can take simple instructions, such as "do not translate lines that begin and end with a dollar sign."

This is especially useful since something like "Author Name" may appear somewhere in your user interface where you really want it to be translated.

+2
source

All Articles