GiellaLT provides an infrastructure for rule-based language technology aimed at minority and indigenous languages, and streamlines building anything from keyboards to speech technology. Read more about Why. See also How to get started and our Privacy document.
The following apps & webapps need localisation:
Localisation of each of them is described below.
borealium.org is almost always localised using Pontoon. Log in using your GitHub account, it should be automatic. The exact setup of the localisation is as follows:
data/resources/
(copy one of the existing ones, then edit as needed)resources/en/*-resources.ftl
, and provide suitable text in English (this becomes the reference text for localisation into other languages)localise the resources as needed in Pontoon (new strings for new resources are automatically synced to Pontoon each hour (on the hour)); the set of languages to localise into is configured in the file resources/*-l10n.toml
, which has a very simple structure (example file taken from Faroese):
[[paths]]
reference = "en/fao-resources.ftl"
l10n = "{locale}/fao-resources.ftl"
locales = [
"fo",
"da",
]
configure.ac
, in the variables SPELLER_NAME_NATIVE
, SPELLER_NAME_ENG
, SPELLER_DESC_NATIVE
and SPELLER_DESC_ENG
. The text in these variables will be used to name and describe the spellers both in Borealium.org, and in other places.manifest.toml.in
, under the sections [speller.name]
and [speller.description]
, as many as is needed../autogen.sh
and ./configure
once, and commit the changes made to manifest.toml
. After the next push to GitHub, the changes will be propagated to the Páhkat server, and from there to borealium.org on the next site build.Keyboards: edit existing locales:
and add more to the file XXX.kbdgen/project.yaml
(replace XXX
with the language ISO 639-3 code):
locales:
en:
name: South Sami Keyboards
description: >-
Mobile OS keyboards for the South Sami language from the Divvun group
at UiT.
nb:
name: Sørsamisk tastatur
description: Mobiltastatur for sørsamisk fra Divvun-gruppa.
locales
as needed.All Pontoon localisations are automatically synced from Pontoon to GitHub, but only after the localisations have been accepted. All Pahkat resource localisations are automatically picked up on each site rebuild. The site is rebuilt every hour (on the hour), and on every git push
to the repository.
Pontoon projects and user configuration is administered here.
It is still possible to also do localisations directly in GitHub, and those changes will be synced with Pontoon automatically. For that reason, the documentation below is kept for reference.
All pathnames in this section are relative to the root of the borealium.org repository.
data/languages.ts
contains a list of all languages covered by the site. It has four sections:
data/categories.ts
contains localised names and descriptions of categories.
It is seen on top of each category page. One gets to these pages when clicking on a category label.
data/resources/
contains the definition of all resources described on the site. Except for the file mod.ts
, all files contain strings that should be localised. The strings are the following:
name
- the name of the resourcedescription
- a short description of the resourcemoreInfo
- a longer description of the resource, if wantedlinks:text
- text to appear on the link button. Often this can just use the English text, but sometimes a translation will work betterMost of the content for the portal lives in src/
. All localisable text is placed in .flt
files, including in subdirs. At present, the following dirs contain .flt
files to be localised:
src/
├── _components
│ └── landing
├── _includes
├── about
├── doc
│ ├── divvun-manager
│ └── website
├── post
│ └── ...
└── privacy
See the README. But it boils down to the following:
Sources/Support/LocalisationResources/
strut-icu-generate swift Support/LocalisationResources/base.yaml \
Support/LocalisationResources/{your other langs}.yaml \
-o .
See the README. But it boils down to the following:
DivvunInstaller/Strings.[your_lang].resx
(add a new for new languages)Divvun.Installer/UI/Settings/SettingsWindow.xaml.cs
(Windows only)
TBW - support and documentation missing
Packages are what we distribute to users, such as speller and keyboard packages. They are listed in various places, always with a name, and often with a corresponding description, both of which can be localised.
Below is an example of how both strings show up in borealium.org:
and in the package listing in Divvun Manager:
Package names & descriptions are stored and localised in the following files:
keyboard-XXX/XXX.kbdgen/project.yaml
lang-XXX/manifest.toml.in
, but:
lang-XXX/configure.ac
, and automatically added to lang-XXX/manifest.toml
lang-XXX/manifest.toml.in
As a general rule, the minimum localisation should be:
This ensures that the tool is presented in an expected language for most users. Other localisations can of course be added ad lib.
The names and descriptions will be propagated in two steps:
Both steps are automatic and happen regularly, so on average, new package descriptions will be available pretty soon after they have been committed and pushed.
Category and channel labels are defined in .toml
files in main/strings/
. The following is the content of the en.toml
(English) file:
[tags]
"cat:keyboard-layouts" = "Keyboards"
"cat:spellers" = "Spellers"
"cat:speller-engines" = "Speller Engines"
[channels]
"default" = "Stable"
"nightly" = "Nightly"
"beta" = "Beta"
The category labels are used as category headings in Borealium.org:
and the channel labels show up in the settings in Divvun Manager:
There are a couple of other strings as well that could or should be translated.
This is defined in main/index.toml
:
[name]
en = "Divvun Languages"
ru = "Языки Divvun"
[description]
en = "The repository of all languages supported by Divvun."
(The description is presently not being used anywhere, AFAIK.)
This text is found several places:
The following files and directories contain localisable strings:
tools/index.toml
tools/strings/*.toml
It is unclear whether these strings are displayed, if at all.
TBW