Read-only mirror of https://github.com/swiyu-admin-ch/swiyu_glossary — Bundesamt für Justiz. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 17:09:00 +01:00
assets Delete assets/none 2026-11-26 17:09:00 +01:00
tbx local: update translations 2026-08-31 14:50:12 +00:00
index.html Add files via upload 2026-11-26 17:07:28 +01:00
README.md Update README with GitHub Pages information 2026-11-24 15:11:43 +01:00

github-banner

swiyu_glossary

Translations of the swiyu glossary, managed with Weblate using TBX (TermBase eXchange) files.

Structure

tbx/de.tbx   # English → German
tbx/fr.tbx   # English → French
tbx/it.tbx   # English → Italian
tbx/rm.tbx   # English → Romansh

Each file is a bilingual termbase: English (en) is the source language and the language in the filename is the target. Every concept is a <termEntry> holding a source <langSet xml:lang="en"> and a target <langSet>:

<termEntry>
    <langSet xml:lang="en"><tig><term>verifiable credential</term></tig></langSet>
    <langSet xml:lang="de"><tig><term>überprüfbarer Nachweis</term></tig></langSet>
</termEntry>

There is no en.tbx — English already lives in the source <langSet> of every file, and a file named after the source language would be detected as a duplicate.

One file per language is a Weblate requirement, not a TBX one. TBX itself can hold every language in a single file, but Weblate derives the target language of a component file from its filename via the file mask, so a single multilingual glossary.tbx cannot be mapped to a language. A multilingual TBX can still be used for a one-off import through the glossary upload form.

Weblate component

Setting Value
File format TermBase eXchange file
File mask tbx/*.tbx
Monolingual base language file (empty)
Template for new translations (empty)
Source language English (en)
Use as a glossary on

Because the template for new translations is empty, Weblate cannot create a language from the UI. To add one, commit a new tbx/<code>.tbx file following the same layout.

Seed entry

Each file ships one verifiable credential entry with an empty target, so the component has a string to parse when it is first connected. Translate it or remove it once real terms are in place.

GitHub Pages

For a better overview, the files are rendered and published under https://swiyu-admin-ch.github.io/swiyu_glossary/.