Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S Solaar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pwr-Solaar
  • Solaar
  • Issues
  • #873
Closed
Open
Issue created Jul 29, 2020 by Administrator@rootContributor

Translations are not installed

Created by: lukasmichel

Information

  • Solaar version (solaar --version or git 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:

  1. Clone solaar
  2. install solaar from the repository pip install --user .
  3. run LANGUAGE=de solaar
  4. Expected Behaviour: Text in solaar is in German. Actual Behaviour: Text is in English.
  5. uninstall solaar pip uninstall solaar
  6. run tools/po-compile.sh
  7. pip install --user .
  8. run LANGUAGE=de solaar
  9. Now, solaar uses the German translations.

Possible Solutions

  1. Keep the compiled translation files in the repository or
  2. Add a section to installation.md that explains how to install the translations together with solaar . or
  3. Make setup.py create the compiled translation files itself. However, I do not know if this is possible.
Assignee
Assign to
Time tracking