[{"content":"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 %.\nNynorsk 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.\nAlong 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.\nWhy 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\u0026rsquo;s open Gemma models, but an open model running on your own machine cannot be switched off by anyone after the fact.\nThe model runs in llama.cpp on an ordinary workstation with an RTX 3070 Ti (8 GB). The display is connected to the CPU\u0026rsquo;s integrated graphics, so the whole graphics card is free for the model.\nThe pipeline The heavy lifting happens locally. Only flagged strings go on to Claude.\nInput check. The file is parsed with polib, the format is checked, and untranslated strings are picked out. 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. Borealis2 translates. Every call carries the same fixed instruction to answer in Nynorsk. Without it, Borealis answers in Bokmål. 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. Claude Sonnet reviews the flagged strings, using the project\u0026rsquo;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. 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.\nBuilt 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.\nOne 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.\nA 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.\nAutomatic in and out Machines move the files. A human approves the content.\nThe 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.\nSo 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.\nFor 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.\nOpenCloud 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.\nTranslation 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.\nNynorsk in software is infrastructure. The tools have become much better, but someone still has to own the quality.\nSources Borealis 2 26B-A4B (preview) on Hugging Face – model card and download NB AI Lab – the National Library of Norway\u0026rsquo;s AI lab National Library of Norway: new language models trained on Norwegian newspaper text – press release (Norwegian) GNOME translation status for Nynorsk and Bokmål – Damned Lies ","permalink":"https://blogg.sunnmore.net/en/innlegg/borealis2-omsetjingsloype/","summary":"Local Borealis2, deterministic checks, Claude and manual review: this is how my translation pipeline is built.","title":"From PO file to approved Nynorsk with Borealis2"}]