Skip to content
Novus Examples
xml2.8 KB

Apple .stringsdict — Welsh (6 rules)

Welsh Apple plural rules as a .stringsdict property list — the only place iOS and macOS accept plural variants, since a plain .strings file has no plural concept at all. Ships as .xml because the bytes are an XML plist; rename to Localizable.stringsdict to use it.

Preview — first 50 linesxml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<!-- Item count in the status bar -->
	<key>files</key>
	<dict>
		<key>NSStringLocalizedFormatKey</key>
		<string>%#@files@</string>
		<key>files</key>
		<dict>
			<key>NSStringFormatSpecTypeKey</key>
			<string>NSStringPluralRuleType</string>
			<key>NSStringFormatValueTypeKey</key>
			<string>ld</string>
			<key>zero</key>
			<string>%ld ffeil</string>
			<key>one</key>
			<string>%ld ffeil</string>
			<key>two</key>
			<string>%ld ffeil</string>
			<key>few</key>
			<string>%ld ffeil</string>
			<key>many</key>
			<string>%ld ffeil</string>
			<key>other</key>
			<string>%ld ffeil</string>
		</dict>
	</dict>
	<!-- Selection summary -->
	<key>folders_selected</key>
	<dict>
		<key>NSStringLocalizedFormatKey</key>
		<string>%#@folders_selected@</string>
		<key>folders_selected</key>
		<dict>
			<key>NSStringFormatSpecTypeKey</key>
			<string>NSStringPluralRuleType</string>
			<key>NSStringFormatValueTypeKey</key>
			<string>ld</string>
			<key>zero</key>
			<string>Dewiswyd %ld ffolder</string>
			<key>one</key>
			<string>Dewiswyd %ld ffolder</string>
			<key>two</key>
			<string>Dewiswyd %ld ffolder</string>
			<key>few</key>
			<string>Dewiswyd %ld ffolder</string>
			<key>many</key>
			<string>Dewiswyd %ld ffolder</string>
107 lines total — download for the full file.

Specifications

Format
Apple .stringsdict (XML property list)
Locale
cy
Canonical Name
Localizable.stringsdict
Install Path
cy.lproj/Localizable.stringsdict
Keys
4
Rule Type
NSStringPluralRuleType
Value Type
ld
Categories
zero, one, two, few, many, other
Seed
20260807
Wave
p7
Line Endings
LF

Testing contract

Expected to pass
Scenario
Place in an .lproj bundle and call NSLocalizedString / String(format:) with counts covering every category, or parse with plistlib.
Expected result
The plist parses to a dict of 4 format keys, each holding an NSStringPluralRuleType sub-dictionary with the 6 category keys cy uses; the NSStringLocalizedFormatKey value references its variable with the %#@name@ syntax.

What is a .xml file?

XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.

How to use this file

Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.

How to use this file for testing

“Apple .stringsdict — Welsh (6 rules)” is a deterministic Novus Examples fixture for Internationalization, Localization catalogs. Parallel text and accented, multi-script content — for testing translation pipelines, Unicode handling, and localization tooling.

Documented properties for this file: seed 20260807 · LF · Apple .stringsdict (XML property list). 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.

Code examples

import xml.etree.ElementTree as ET

tree = ET.parse("Localizable-cy.stringsdict.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])

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