| Summary: | Exception thrown when fetching po for GCompris | ||
|---|---|---|---|
| Product: | [Developer tools] releaseme | Reporter: | Jazeix Johnny <jazeix> |
| Component: | general | Assignee: | Harald Sitter <sitter> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | patch to catch the exception | ||
|
Description
Jazeix Johnny
2018-09-30 11:36:06 UTC
After discussing with Aleix and some investigation: the issue appears because I run the command from emacs directly, not a terminal. When I run it from a terminal, with either LANG to C or fr_FR, it runs well. The issue is probably due to a bad configuration of emacs on my side. Now the po files are generated in the source folder, still having gcompris-voices.po in the $SOURCE/po/ folder, and gcompris-qt.po in the $SOURCE/poqm/ folder. Is it due that there are 2 po files in https://websvn.kde.org/trunk/l10n-kf5/fr/messages/extragear-edu/ for GCompris? Sorry I had bug mails end up in spam somehow :S The original issue is indeed a bogus setup as it's basically complaining that it cannot read unicode, which happens when LANG is not set or set incorrectly. As for the directory line up: if I recall correctly *_qt.po always goes into poqm/ and everything else always goes into po/. The former is meant to be used via https://api.kde.org/ecm/module/ECMPoQmTools.html to generate qm files for use with qtranslator, the latter via ki18n_install to generate mo files for use with ki18n/klocalizedstring. If you expect both translations to be used as qm translations via qtranslator, they both need to not have a _qt suffix and will then end up in poqm/. If they both should be used as gettext translations they both need to not have the suffix and will then end up in po/. If they in fact are split between qtranslator and ki18n, then you'll simply want to use ECMPoQmTools and ki18n_install respectively. Thank you for the explanation. We can't rename the gcompris_qt.po for now, so I'll workaround it and when we'll have time, we'll fix the name. |