1. Help Center
  2. Supported formats

Java Properties XML

Learn how to manage Java properties XML format in Phrase.

File Extensions .xml
API Extension properties_xml
Import Yes
Export Yes
Pluralization supported? No
Descriptions supported? No

Code Sample

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  <entry key="boolean_key">--- true
  <entry key="empty_string_translation"/>
  <entry key="key_with_description">Check it out! This key has a description! (At least in some formats)</entry>
  <entry key="key_with_line-break">This translations contains
a line-break.</entry>
  <entry key="nested.deeply.key">Wow, this key is nested even deeper.</entry>
  <entry key="nested.key">This key is nested inside a namespace.</entry>
  <entry key="null_translation"/>
  <entry one="Only one pluralization found." other="Wow, you have %s pluralizations!" zero="You have no pluralization." key="pluralized_key"/>
  <entry key="sample_collection">---
- first item
- second item
- third item
  <entry key="simple_key">Simple key, simple message, so simple.</entry>
  <entry key="unverified_key">This translation is not yet verified and waits for it. (In some formats we also export this status)</entry>