I have been translating open source software into Nynorsk for 25 years, and I have translated GNOME twice. The first time was in 2001–2002, by hand. When I picked it up again at GNOME 51, Nynorsk coverage was around 30 %. By the release of GNOME 51.1, it was 100 %.

Nynorsk is one of the two official written standards of Norwegian, used by roughly one in ten Norwegians and by many municipalities and schools on the west coast. The other, Bokmål, dominates almost everywhere else, including in the data language models are trained on.

Along the way, a translation pipeline was built. A Norwegian language model does the heavy lifting, while my own scripts, Claude and finally I myself take care of quality.

Why Borealis2

Nynorsk is hard for machines. Most models have seen little of it, and the output easily drifts into Bokmål. Borealis2 from the National Library of Norway is trained on Norwegian newspaper text that the large international models do not have access to. It builds on Google’s open Gemma models, but an open model running on your own machine cannot be switched off by anyone after the fact.

The model runs in llama.cpp on an ordinary workstation with an RTX 3070 Ti (8 GB). The display is connected to the CPU’s integrated graphics, so the whole graphics card is free for the model.

The pipeline

Flowchart: from a downloaded language file through local Borealis2, deterministic checks and Claude Sonnet to manual review

The heavy lifting happens locally. Only flagged strings go on to Claude.

  1. Input check. The file is parsed with polib, the format is checked, and untranslated strings are picked out.
  2. Splitting and masking. One string at a time goes to the model. Placeholders such as %{ fileCount } are replaced with [PH0], so the model never sees the variable names.
  3. Borealis2 translates. Every call carries the same fixed instruction to answer in Nynorsk. Without it, Borealis answers in Bokmål.
  4. Deterministic post-check. Are the placeholders intact? Did the text come back untranslated? Are the plural forms in the right fields? A failing string is sent again. Anything that still falls short is marked fuzzy.
  5. Claude Sonnet reviews the flagged strings, using the project’s term list and the context of the file. In our quality tests, Sonnet 5.5 translated as well as Opus 5.5, so Sonnet is the default. When Sonnet is unsure, an agent calls in Opus, but that rarely happens. What is sent is public English source strings, never customer or personal data.
  6. Manual review. I read everything before anything goes upstream.

Each project has its own term list, which we maintain as the work goes on. GNOME and OpenCloud do not use the same terms, even where the concepts are similar. The pipeline follows what is established in the project it is working on, not what is established somewhere else.

Built step by step

The pipeline was not finished when the GNOME work began. It grew round by round. At first, most of it was manual. Each round exposed new errors, and once the same kind of error had been fixed by hand often enough, the fix was turned into Python code, with a test to keep it in place.

One example: plural strings seemed to fail again and again. The fault was not in the model but in the script, which never saved them. Now a test checks that every string is actually saved.

A language model does not answer the same way every time. A rule does. With every round, more knowledge was baked into deterministic rules, and more of the unpredictable was replaced by fixed answers. All of the code was written with Claude Opus, and the system got better with every round.

Automatic in and out

Flowchart: Weblate, Transifex or Crowdin, automatic download, the translation pipeline, manual approval, automatic upload and maintainers in a loop

Machines move the files. A human approves the content.

The pipeline is connected directly to Weblate, Transifex and Crowdin. The scripts fetch new and changed strings through their APIs, the pipeline runs, and after my approval the result is uploaded the same way. That leaves me with the one thing that should not be automated: judging the language.

So far

GNOME 51 has 30,092 strings, and around 60 % of them have probably gone through the pipeline. Including other parts of the GNOME project, around 20,000 strings that previously lacked Nynorsk now have it.

For OpenCloud, the pipeline first translated it into Bokmål, and I added support for Nynorsk. The Nynorsk translation used the finished Bokmål translations as its starting point, and within a single day the whole language was in place.

OpenCloud is available today in both Nynorsk and Bokmål. The Nynorsk translation for Collabora is ready and waiting to roll out, and Discourse is in progress.

Translation is no longer the bottleneck. What takes time is review by the maintainers and waiting for the next release. Several projects have their own rules on AI assistance. I respect them, and where it is not allowed, I translate by hand as before.

Nynorsk in software is infrastructure. The tools have become much better, but someone still has to own the quality.

Sources