Sentry Software
Sentry Maven Skin 8.0.00
-
Home
- Writing Documentation
Multilingual Documentation
Sentry Maven Skin supports multilingual documentation out of the box:
- Locale-specific content (
src/site/<locale>/...) - Locale-specific site descriptors (
site_<locale>.xml) - Localized skin UI labels (search, ToC heading, copyright, version label, etc.)
- Automatic locale selector in header/footer when multiple locales are configured
Out-of-the-Box UI Locales
The skin ships built-in UI label bundles for:
| Locale | Java Locale ID | Example |
|---|---|---|
| English (default) | en |
On this Page, Search... |
| French | fr |
Sur cette page, Rechercher... |
| Spanish | es |
En esta página, Buscar... |
| Simplified Chinese | zh_CN |
Chinese UI labels |
Configure Locales in Maven
In your project's pom.xml, enable locales in the configuration of maven-site-plugin:
<build>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<locales>default,fr,es,zh_CN</locales>
</configuration>
</plugin>
</plugins>
</build>
Use default for the root locale (target/site/...) and explicit locale IDs for locale subdirectories (target/site/fr/..., etc.).
Project Layout for Multiple Languages
Typical structure:
src/site/
├── site.xml # default locale descriptor
├── site_fr.xml # French descriptor
├── site_es.xml # Spanish descriptor
├── markdown/
│ └── index.md # default locale pages
├── fr/
│ └── markdown/
│ └── index.md # French pages
└── es/
└── markdown/
└── index.md # Spanish pages
Add a New Locale (Not Built In)
For a locale not shipped by the skin (for example de), create:
- Locale content under
src/site/de/markdown/ - A locale descriptor
src/site/site_de.xml - UI label overrides in
site_de.xml<custom>using label settings
Example site_de.xml excerpt:
<site xmlns="http://maven.apache.org/SITE/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
name="Sentry Maven Skin">
<custom>
<tocHeadingText>Auf dieser Seite</tocHeadingText>
<searchFieldText>Suchen...</searchFieldText>
<searchResultsText>Suchergebnisse fur</searchResultsText>
<searchResultSingleText>Ergebnis</searchResultSingleText>
<searchResultCountText>Ergebnisse</searchResultCountText>
<publishDateText>Dokumentation vom</publishDateText>
<copyrightText>Urheberrecht</copyrightText>
<projectVersionText>Version</projectVersionText>
</custom>
</site>
Those values can still be overridden per page via frontmatter (same precedence rules as other settings).
Locale Selector
When multiple locales are configured, the selector appears automatically:
- Desktop: header (next to social links/theme toggle)
- Mobile: footer

Canonical URLs Per Locale
For locales rendered in dedicated subdirectories (for example fr), the skin also scopes canonical URLs to that locale root:
- Default locale page:
https://example.org/docs/index.html - French locale page:
https://example.org/docs/fr/index.html
This keeps SEO canonical links aligned with the language-specific page path.
This locale root is also used for AI indexing absolute links (llms.txt entries), keeping machine-readable URLs consistent with canonical metadata.
See Also
- Top Links[1] - Header/footer links and locale selector placement
- Configuration Reference[2] - All label keys and precedence
- Front Matter Headers[3] - Per-page overrides
- [1] top-links.html
- [2] settings.html
- [3] headers.html
