Mercurial > p > roundup > code
diff locale/GNUmakefile @ 6480:0f0cee081990
Force test of a locale
We had a file descriptor leak in the i18n routines.
The code that opens a .mo file and then closes it was not
tested.
Add a test for converting dates to german locale. Make test use the
locale/locale subdirectory tree. To do this build the .mo files and
put them into the proper tree structure:
locale/locale/<two char lang code>/LC_MESSAGES/roundup.mo
Also make py.test run with warnings made into errors. Try to get
advanced warnings of deprecation issues, resource leaks etc.
Ignore error generated by the markdown module that uses the old
SelectableGroups interface to dict:
DeprecationWarning: SelectableGroups dict interface is
deprecated. Use select.
Also ignore use of imp module in gpg.gpgme, U mode in docutils.io.
Tried to split lines for the py.test run so each warning is on it's
own line. Makes it more readable and editing in the future easier.
Not sure if it's valid though. May need to revise.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 06 Sep 2021 13:18:53 -0400 |
| parents | a21b574554c3 |
| children | 9730eff21de3 |
line wrap: on
line diff
--- a/locale/GNUmakefile Sun Sep 05 23:38:10 2021 -0400 +++ b/locale/GNUmakefile Mon Sep 06 13:18:53 2021 -0400 @@ -50,6 +50,13 @@ --copyright-holder="See Roundup README.txt" \ -o $(TEMPLATE) $(SOURCES) +local_install: dist + for file in $(MO_FILES); do \ + set -xv; lang=`basename $$file .mo`; \ + mkdir -p locale/$$lang/LC_MESSAGES; \ + cp $$file locale/$$lang/LC_MESSAGES/roundup.mo; \ + done + # helps to check template file before check in diff: svn diff roundup.pot|grep -v '^[-+]#'|vim -Rv -
