We've launched a new support center at help.smartling.com. This site will continue to be maintained into January 2017. Please update your bookmarks.

Exclude dynamic content using placeholder code

In Files projects, you can exclude dynamic content from translation by using placeholder code.

For example, the .properties string:

welcome=Hi, %s! Welcome to Smartling.

is captured by Smartling with the placeholder code intact, allowing you to translate the static text and let your application populate the dynamic content.

Positional Information in Placeholders

Smartling automatically adds positional information to all placeholders, since translators sometimes need to alter the positioning of words in a sentence. This will not affect the way your site or app works. For example, for the string

string1=Welcome, %s. You have %s in your account.

Smartling will output:

string1=Welcome, %1$s. You have %2$s in your account.


Custom Placeholders

You can use Smartling Files API or file directives to specify a custom placeholder format when uploading a file. See the Files API and Supported File Types documentation for more details on placeholders for each file type.


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk