Translations are not installed
Created by: lukasmichel
Information
- Solaar version (
solaar --version
orgit describe --tags
if cloned from this repository):1.0.3rc1-4-gc1b6bf9
- Distribution: Arch Linux
- Kernel version (ex.
uname -srmo
):Linux 5.7.9-arch1-1 x86_64 GNU/Linux
Describe the bug
When installing solaar via pip as described in docs/installation.md
, the translations from po/*
are not installed.
setup.py
yields paths in share/locale/*/LC_MESSAGES/solaar.mo
as translations (setup.py:22
), but those do not exist. They are only created by running tools/po-compile.sh
but ignored by the gitignore file and thus not contained in this repository.
When running tools/po-compile.sh
before installing solaar from the repository via pip, the translations are correctly installed.
To Reproduce Steps to reproduce the behavior:
- Clone solaar
- install solaar from the repository
pip install --user .
- run
LANGUAGE=de solaar
- Expected Behaviour: Text in solaar is in German. Actual Behaviour: Text is in English.
- uninstall solaar
pip uninstall solaar
- run
tools/po-compile.sh
pip install --user .
- run
LANGUAGE=de solaar
- Now, solaar uses the German translations.
Possible Solutions
- Keep the compiled translation files in the repository or
- Add a section to
installation.md
that explains how to install the translations together with solaar . or - Make
setup.py
create the compiled translation files itself. However, I do not know if this is possible.