Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added multi language support. The language can now be switched (Need translation) #216

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on Jul 11, 2022

  1. Added potential multi language support. The selected language itself …

    …is not
    
    yet saved in the settings storage. I also started the translation process,
    by removing hardcoded strings and replacing them with keys, so they are
    found in the JSON files.
    And lastly added a new menu entry, which looks really messy, but changing
    the language works.
    HumansAreWeak committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    01d6a5b View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. Configuration menu
    Copy the full SHA
    5ca7a89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11242cb View commit details
    Browse the repository at this point in the history
  3. I changed the language class a bit, instead of using the settings ins…

    …tance
    
    directly in the class, it is passed in as parameter (DI), so I could test
    the class properly.
    Furthermore I have added a new method in the Settings class to get the
    setting via a method call, instead of relying on magic functions.
    I have also added a fallback language (en_US), which can be modified in the
    constants.py file, to load these language strings if no translation can be
    found in the current language file.
    HumansAreWeak committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    b9eead8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb5f342 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2022

  1. Configuration menu
    Copy the full SHA
    80db693 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2022

  1. Added more translation stuff and removed hardcoded strings

    I may have added some additional whitespaces in the used data structures.
    But I think that is not such a huge problem.
    HumansAreWeak committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    95de05c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6602a60 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6006fb7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    487a17e View commit details
    Browse the repository at this point in the history