File Extensions |
.properties |
API Extension |
mozilla_properties |
Import |
Yes |
Export |
Yes |
Plural forms support |
No |
Description support |
No |
Format options |
escape_single_quotes: true, omit_separator_space: false, crlf_line_terminators: false, escape_meta_chars: true |
Mozilla Localization uses .properties files. Syntax and requirements for these properties are mostly identical with standard Java properties files.
Perform a sanity check prior to translation including removing duplicate keys (especially for larger files) and using correct line breaks (any line break in text strings should be preceded with a \n
, otherwise it will be ignored by the parser).
Code Sample
boolean_key = --- true\n empty_string_translation = # This is the amazing description for this key! key_with_description = Check it out\! This key has a description\! (At least in some formats) key_with_line-break = This translations contains\na line-break. nested.deeply.key = I'm a deeply nested key. nested.key = This key is nested inside a namespace. null_translation = pluralized_key.one = Only one kitten found. pluralized_key.other = Wow, you have %s kittens\! pluralized_key.zero = You have no kitten. sample_collection = ---\n- first item\n- second item\n- third item\n simple_key = Simple key, simple message, so simple. unverified_key = This translation is not yet verified and waits for it. (In some formats we also export this status)