comparison doc/developers.txt @ 7759:a46675399a05

fix: make running from code tree translate strings Have Roundup's i18n add working_directorylocale/locale to the list of places searched for translation .mo files. This means: LANG=de python3 roundup/scripts/roundup_admin.py -i ... will be translated to German. Also document setting up locale/locale using 'make -C locale local_install' in developer doc.
author John Rouillard <rouilj@ieee.org>
date Sat, 02 Mar 2024 00:47:19 -0500
parents 67438e439da8
children a9bac0cb4019
comparison
equal deleted inserted replaced
7758:20a87d228240 7759:a46675399a05
116 116
117 Once you have your clone, you can run ``python3 ./demo -b 117 Once you have your clone, you can run ``python3 ./demo -b
118 sqlite`` and get a working Roundup server. This will start 118 sqlite`` and get a working Roundup server. This will start
119 the server using the ``sqlite`` backend. The code is in the 119 the server using the ``sqlite`` backend. The code is in the
120 ``roundup`` subdirectory. 120 ``roundup`` subdirectory.
121
122 To test internationalization in your environment, you have to
123 process the locale sub-directory into a form that roundup's
124 i18n code will recognize. To do this use:
125
126 make -C locale local_install
127
128 which will compile the ``.po`` source files into binary
129 ``.mo`` files and install them under
130 ``locale/locale/<LANGUAGE_CODE>/LC_MESSAGES/roundup.mo``. For
131 German this will be
132 ``locale/locale/de/LC_MESSAGES/roundup.mo``. You will need
133 ``msgfmt`` from the the GNU gettext tools to be installed on
134 your system.
121 135
122 Submitting Changes 136 Submitting Changes
123 ------------------ 137 ------------------
124 138
125 Most small changes can be submitted as patches through the 139 Most small changes can be submitted as patches through the

Roundup Issue Tracker: http://roundup-tracker.org/