site  contact  subhomenews

French translation for welcome image

July 01, 2020 — BarryK

Forum member esmourguit normally maintains the French langpack for EasyOS, however, I have made a little contribution.

There is a script, /usr/share/doc/easy/welcome.sh, that generates /usr/share/doc/easy/welcome_<language>.htm (for example, welcome_fr.htm), and /usr/share/doc/welcome.htm is a symlink to it.

One of the new features in welcome.htm is an image of the EasyOS desktop with translated text superimposed on top of it, a technique contributed by L18L:

https://bkhome.org/news/202006/translated-image-in-welcome-page.html

Esmourguit has suggested some more changes to welcome.sh, to redirect some of the online URL links to French translations, but that change is on hold for now, I want to think about it a bit more.

What I have contributed is translation of the superimposed text over the image, to /usr/share/locale/fr/LC_MESSAGES/easyhelp.mo. I went back to basic principles, and uncompiled easyhelp.mo:

# msgunfmt easyhelp.mo > easyhelp.po

I then opened easyhelp.po in Geany and inserted these translations:

msgid "Easy Operating System"
msgstr "Système d'exploitation Easy"

msgid "Containerized<br>apps"
msgstr "Applications<br>conteneurisées"

msgid "Install<br>mega-apps"
msgstr "Installer des<br>méga-applis"

msgid "Menu: bottom-left of screen,<br>or<br> right-click on desktop"
msgstr "Menu:<br>en bas à gauche de l'écran<br>ou clic droit sur le bureau"

msgid "Share files & printers<br>over the network"
msgstr "Partager des fichiers<br>et des imprimantes<br>sur le réseau"

msgid "Connect to the Internet"
msgstr "Connecter à Internet"

Then recompiled the file:

# msgfmt --check --output-file=easyhelp.mo easyhelp.po

And copied easyhelp.mo to langpack_fr-20200701/usr/share/locale/fr/LC_MESSAGES/easyhelp.mo, that is, into the French langpack PET, which is now version 20200701. 

Tags: easy