• Threads
  • Categories
  • Users
  • GitHub
  • Documentation
  • Discord
  • forum
  • group
  • search
  • chevron_right Threads
  • label Support
  • label Docker

How to change locale?

devraces
Feb. 20, 2021
chat_bubble_outline 2
  • check_circle
  • link
    devraces
    Members 3 posts
    Feb. 20, 2021, 5:54 p.m. Feb. 20, 2021, 5:54 p.m.
    link

    Hey! How can I change the translation (.po) in misago-docker?

  • edit

    Thread title has been changed from Locale misago-decker.

    • By devraces on Feb. 20, 2021, 5:55 p.m..
  • link
    rafalp
    Project Lead 1534 posts
    Feb. 24, 2021, 8:25 p.m. Feb. 24, 2021, 8:25 p.m.
    link
    check_box

    Marked as best answer by Feb. 25, 2021, 12:58 p.m..

    You can create custom directory within misagodocker named extra_locale and put your language directory containing the mo and po files in it.

    Then you can create settings_override.py file in that directory with those contents:

    import os
    
    BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    
    LOCALE_PATHS = [
      os.path.join(BASE_DIR, "extra_locale"),
    ]
    

    Then reload the site with ./appctl rebuild

  • link
    devraces
    Members 3 posts
    Feb. 25, 2021, 10:02 a.m. Feb. 25, 2021, 10:02 a.m.
    link

    Thank you.

    ufukayyildiz likes this.

    favorite 1

There are no more posts in this thread.

  • This site uses cookies to gather statistical data for use in traffic analysis. Header photo by Joanna Malinowska.
  • GitHub
  • Documentation
  • Discord
  • Terms of service
  • Privacy policy
powered by misago