comparison doc/developers.txt @ 7874:a363bb8c0ed4

feat: make msgfmt.py support -o flag Make msgfmt.py support -o flag like gnu msgfmt. This allows: make -C locale local_install MSGFMT="python3 ../roundup/msgfmt.py" to compile locale files for use when running roundup_server in development mode.
author John Rouillard <rouilj@ieee.org>
date Wed, 10 Apr 2024 19:01:54 -0400
parents a44c5da250fa
children 828f79ae965b
comparison
equal deleted inserted replaced
7873:867418c24339 7874:a363bb8c0ed4
127 127
128 which will compile the ``.po`` source files into binary 128 which will compile the ``.po`` source files into binary
129 ``.mo`` files and install them under 129 ``.mo`` files and install them under
130 ``locale/locale/<LANGUAGE_CODE>/LC_MESSAGES/roundup.mo``. For 130 ``locale/locale/<LANGUAGE_CODE>/LC_MESSAGES/roundup.mo``. For
131 German this will be 131 German this will be
132 ``locale/locale/de/LC_MESSAGES/roundup.mo``. You will need 132 ``locale/locale/de/LC_MESSAGES/roundup.mo``.
133 ``msgfmt`` from the the GNU gettext tools to be installed on 133
134 your system. In a pinch you can invoke ``python roundup/msgfmt.py 134 By default this requires ``msgfmt`` from the the GNU gettext tools
135 po_file mo_file`` to compile your .po file to a .mo file. It's slow 135 installed on your system. If you do not have ``msgfmt`` installed, you
136 but seems to work in basic tests. The msgfmt.py file is used by 136 can use:
137 Roundup to compile out of date .po files. 137
138 make -C locale local_install MSGFMT="python3 ../roundup/msgfmt.py"
139
140 Also to compile a single .po file, you can invoke ``python
141 roundup/msgfmt.py po_file mo_file`` to compile your .po file to a .mo
142 file. It's slow but seems to work in basic tests. The msgfmt.py file
143 is used by Roundup to compile out of date .po files.
138 144
139 Submitting Changes 145 Submitting Changes
140 ------------------ 146 ------------------
141 147
142 Most small changes can be submitted as patches through the 148 Most small changes can be submitted as patches through the

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