Overview
Some placeholders are optional by default upon uploading onto our platform to:
- Preserve flexibility
- Allow warning notifications to translators that they might need to use the placeholder/placeholders are typed incorrectly
List of optional placeholders
Here is the list of placeholders that are set to optional by default:
- Message format - single layer of MessageFormat pattern
- HTML formatting tags - e.g. <strong></strong>, <br/>
- <b> Bold
- <strong> Important
- <i> Italic
- <em> Emphasized
- <mark> Marked
- <small> Small
- <del> Deleted
- <ins> Inserted
- <sub> Subscript
- <sup> Superscript
- HTML entities (e.g. , ’)
- Placeholders (%d and %s) in plural strings (see below)
OneSky only supports the exact match of placeholders but does not support translatable pattern matching. Identified translatable patterns are treated as optional placeholders to preserve functionalities of click to copy while allowing the content to change.
Plural string placeholders
Placeholders in plural strings are automatically set as optional because the required placeholder functionality is too strict for plural strings. Let's take the following plural string as an example:
one: %d book
other: %d books
If %d was required, the plural form "one" can only be translated to "1 livre" in French. This will restrict translations if the translator preferred "a book", or "un livre" in French.
OneSky also will not check placeholders by the plural form due to the following reasons:
- The plural forms of the same name, say "one", are defined differently across different languages.
- Plural forms do not exist in all languages, and for some such as from Chinese to English or English to Russian, there will be no plural form to reference from.
Comments
0 comments
Please sign in to leave a comment.