Plain Text

Extension .txt
Smartling identifier plainText
Resources

The plain text document format is a simple way to quickly translate text. Smartling considers each line of text in the document a single translation string. Each string is considered unique by file - which means if two files have the exact same line of text - they will be captured as two separate strings.

Directives

Directive Format

smartling.[directive_name] = [value]

Unlike other file types, plain text does not support inline file directives as comments, in order to use a directive you must specify each directive using the file upload API

placeholder_format_custom

Values:1. Custom regular expression (pcre)
2. NONE - disable custom placeholders
Description:Used to define a custom placeholder format for strings in the file. See Placeholders in Resource Files for more information.
Examples:
smartling.placeholder_format_custom = \[.+?\]

Any characters surrounded by square brackets will be treated as a placeholder.

placeholder_format

Values:NONE; C; IOS; PYTHON; JAVA; YAML; QT; RESX
Description:Used to specify a standard placeholder format. See Placeholders in Resource Files for more information.
Examples:
smartling.placeholder_format = IOS

Specifies iOS-style placeholders for the file.

pseudo_inflation

Values:int - Accepted values are 0-100
Description:Sets the percentage by which original strings are inflated when downloading pseudo translations. If this directive is not set, pseudo translations are 30 percent longer than the original strings.
Examples:
smartling.pseudo_inflation = 80

Downloaded pseudo translations will increase the length of original strings by 80 percent.