Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
[bug 1218563] Update localization doc for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
safwanrahman committed Sep 27, 2016
1 parent 35cc942 commit e65b6f2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions docs/localization.rst
Expand Up @@ -28,10 +28,16 @@ Getting the Localizations

Localizations are found in this repository under the ``locale`` folder.

Unless otherwise noted, run all the commands in this document inside the
environment. For Vagrant, enter the environment with ``vagrant ssh``.
For Docker, enter the environment with
``docker-compose run --rm --user $(id -u) web bash``

The gettext portable object (.po) files need to be compiled into the gettext
machine object (.mo) files before translations will appear. This is performed
during vagrant provisioning but if you need to update them at any time you can
compile the files via the following command within the vagrant environment::
machine object (.mo) files before translations will appear. Though its not
performed automatically in docker environment, it is performed during vagrant
provisioning. If you need to update them at any time you can compile the files
via the following command inside the environment::

make localecompile

Expand All @@ -48,7 +54,7 @@ folder. To collect these files for serving you must run the

Updating the Localizations
==========================
#. Run the following in the virtual machine (see :doc:`installation`)::
#. Run the following in the environment (see :doc:`installation`)::

make localerefresh

Expand Down Expand Up @@ -81,7 +87,8 @@ code of the language you are adding.

#. Restart the web server and verify that Django loads the new locale without
errors by visiting the locale's home page, for example
https://developer-local.allizom.org/bg/
http://127.0.0.1:8000/bg/ (https://developer-local.allizom.org/bg/
if you are using vagrant)

#. Commit the changes to ``locale/bg`` and ``kuma/settings``.
Verify that the other locales are just timestamp updates before reverting
Expand Down

0 comments on commit e65b6f2

Please sign in to comment.