File Extensions |
.de, .fr, .en,... |
API Extension |
play_properties |
Import |
Yes |
Export |
Yes |
Plural forms support |
No |
Description support |
Yes |
Format options |
escape_single_quotes |
Play Framework is a widely-used, web development framework based on Scala. Play Framework supports localization and internationalization. The standard localization file format is Play Framework Properties file. These can be imported and exported using Phrase. The Play Framework Properties file shares the same file structure with the Java Properties file (i.e., key-value string pairs connected with a =
). Their difference is mainly in the file extensions. While a Java Properties file often ends with .properties
, a Play Framework Properties File typically follows a locale-based convention (e.g., messages.en/messages.de).
Format Options
Identifier |
escape_single_quotes |
Type |
boolean |
Upload |
Yes |
Download |
Yes |
Default |
true |
Description |
Escape single quotes with another single quote (e.g. I'm to I''m). |
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 = Wow, this key is nested even deeper. nested.key = This key is nested inside a namespace. null_translation = pluralized_key.one = Only one pluralization found. pluralized_key.other = Wow, you have %s pluralizations! pluralized_key.zero = You have no pluralization. sample_collection = ---\n- first item\n- second item\n- third item\n simple_key = Just a simple key with a simple message. unverified_key = This translation is not yet verified and waits for it. (In some formats we also export this status)