Java ResourceBundle .properties — English
A English Java ResourceBundle with MessageFormat patterns, a ChoiceFormat plural, positional arguments, escaped braces and apostrophes, a backslash line continuation, and non-ASCII carried as \uXXXX escapes because .properties is defined as ISO-8859-1. The bytes on disk are pure ASCII.
# Novus example app - Java ResourceBundle (en)
# Encoding: ISO-8859-1 with \uXXXX escapes (java.util.PropertyResourceBundle, pre-Java 9 rules).
# Values are java.text.MessageFormat patterns: {0}, {1,number,integer}, {2,date,medium}.
app.name = Novus File Manager
greeting = Hello, {0}!
# MessageFormat + ChoiceFormat. Java has no CLDR plural categories, so the classic
# ResourceBundle idiom is a nested ChoiceFormat keyed on numeric ranges.
files.count = There {0,choice,0#are no files|1#is one file|1<are {0,number,integer} files}
disk.free = {0,number,#.##} GB free of {1,number,#.##} GB
# Positional reordering: the argument indexes stay put, the sentence order changes per locale.
move.confirm = Move {0} to {1}?
replace.confirm = Replace {0} with {1}?
# Escapes: a literal single quote is doubled, a literal brace is quoted.
quote.demo = It''s the user''s file
brace.demo = Use '{'name'}' as the placeholder token
continued.line = This value continues \
onto a second physical line
# Non-ASCII must be escaped in a .properties file.
currency.note = Prices shown in \u20ac (EUR)
Specifications
- Format
- Java PropertyResourceBundle
- Locale
- en
- Patterns
- java.text.MessageFormat + ChoiceFormat
- Encoding
- ISO-8859-1, non-ASCII written as \uXXXX escapes
- Ascii Only
- true
- Seed
- 20260807
- Wave
- p7
- Line Endings
- LF
Testing contract
Expected to pass- Scenario
- Load with java.util.PropertyResourceBundle (or any .properties parser) and format each pattern with java.text.MessageFormat.
- Expected result
- Every byte is < 0x80, the \uXXXX escapes decode to the characters named in the comments, the continuation line joins into one value, and files.count selects a different ChoiceFormat branch for 0, 1 and 2.
What is a .properties file?
A .properties file is the Java configuration format: one `key=value` or `key:value` pair per line, with `#` or `!` comments, backslash line continuations, and escapes for spaces, colons, and equals signs inside keys. Keys are conventionally dot-separated to imply hierarchy, though the format itself is flat. In its original definition the file is ISO-8859-1 with `\uXXXX` escapes for anything else; modern Java tooling also reads UTF-8.
How to use this file
Use an example .properties file to test configuration and resource-bundle loaders, checking continuation lines, escaped separators inside keys, duplicate-key precedence, and correct decoding of `\uXXXX` escapes and non-ASCII values.
How to use this file for testing
“Java ResourceBundle .properties — English” is a deterministic Novus Examples fixture for Internationalization, Localization catalogs, Config parsing, Encoding detection. Parallel text and accented, multi-script content — for testing translation pipelines, Unicode handling, and localization tooling.
Documented properties for this file: seed 20260807 · ISO-8859-1, non-ASCII written as \uXXXX escapes · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Translation-catalog fixtures carry the same message set across formats, each with its native placeholder syntax. Test your i18n loader, catalog converter, or translation-memory tool, and use the RTL and CJK variants to check bidirectional text and Unicode handling.
Load the catalog with your i18n framework and verify placeholder interpolation and plural handling; the RTL and CJK variants exercise bidirectional text and font fallback.
Related files
- jsonICU MessageFormat JSON — ArabicICU MessageFormat SAMPLE JSON (Arabic) with plural/select patterns for i18n runtimes.

- jsonICU MessageFormat JSON — ChineseICU MessageFormat SAMPLE JSON (Chinese) with plural/select patterns for i18n runtimes.

- jsonICU MessageFormat JSON — EnglishICU MessageFormat SAMPLE JSON (English) with plural/select patterns for i18n runtimes.

- jsonICU MessageFormat JSON — FrenchICU MessageFormat SAMPLE JSON (French) with plural/select patterns for i18n runtimes.

- jsonICU MessageFormat JSON — GermanICU MessageFormat SAMPLE JSON (German) with plural/select patterns for i18n runtimes.

- jsonICU MessageFormat JSON — HebrewICU MessageFormat SAMPLE JSON (Hebrew) with plural/select patterns for i18n runtimes.

Generated by generation/localization_p7.py. Free for any use, no attribution required — license.