Translation: Extract .po file from Weblate for testing

Is there a set of steps anywhere?

This is what I’ve figured out for Linux.

  1. Go to the Gramps project on Weblate
  2. Click on your language in the list
  3. In the second (lower) menu click Files & Download original translation files as ZIP file[1]
  4. Extract the downloaded zip file
  5. Find the translation file (e.g. ga.pot) in extracted /gramps-project/gramps/po/ folder
  6. Open it in (e.g.) poedit & compile it as gramps.mo
  7. Copy this file to /usr/share/locale/<YOUR-LOCALE>/LC_MESSAGES, overwriting the existing file. You will need root access. It wouldn’t hurt to back this up first.
  8. Launch Gramps and you should see your translation

  1. Despite the name this not the ‘original’ file ↩︎

1 Like

Those steps look correct to me. The translation file will be a .po file (e.g. ga.po). The gramps.pot file is the template.

Actually I found a page that let you download just a .mo file. Weblate is a bit confusing because they menus can be a bit different in different contexts. I’d have to go back and figure out exactly what I did, but the steps above do work.

The “Files → Customize download” menu item gives “gettext MO” as an option.

If you’re doing translation and click on the language name in the breadcrumbs…
weblate-breadcrumbs
…you get a different menu (at /projects/gramps-project/-/ga/)…

You get the same menu if you click on Gramps in the Project menu and then choose a language (or not).

The only way I can get the menu with Customise download is to click on the Dashboard menu then Gramps/Program — Irish (/projects/gramps-project/gramps/ga/).

Maybe I see a different menu because I started with a search, but it’s a little confusing as these pages look very similar. The breadcrumb for the first is Gramps / Irish, but from the Dashboard you end up on Gramps / Program / Irish.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.