http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/msgfmt.py Mercurial Repository: p/roundup/code: roundup/msgfmt.py history 2024-04-10T19:01:54-04:00 feat: make msgfmt.py support -o flag http://hg.code.sf.net:8000/p/roundup/code/#changeset-a363bb8c0ed4de03328bc2243e88f8b3ada697e4 John Rouillard rouilj@ieee.org 2024-04-10T19:01:54-04:00 2024-04-10T19:01:54-04:00
changeset a363bb8c0ed4
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description 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.
files
chore: remove extra whitespace http://hg.code.sf.net:8000/p/roundup/code/#changeset-37a98ec62e2e4cffbcb74cd91462e17e507a9793 John Rouillard rouilj@ieee.org 2024-03-06T13:13:31-05:00 2024-03-06T13:13:31-05:00
changeset 37a98ec62e2e
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: remove extra whitespace
files
feat: make msgfmt.py a simple CLI replacement for msgfmt(1) http://hg.code.sf.net:8000/p/roundup/code/#changeset-a9bac0cb4019cd1ab5f144483066a7a64d8c7e69 John Rouillard rouilj@ieee.org 2024-03-06T13:12:21-05:00 2024-03-06T13:12:21-05:00
changeset a9bac0cb4019
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: make msgfmt.py a simple CLI replacement for msgfmt(1)

Simplify testing .po files if the tester doesn't have access to GNU
gettest tools or doesn't want to install the python Babel package.

Also mentioned in developers.txt.
files
chore: 'id' var shadows builtin, lint markers; sort imports http://hg.code.sf.net:8000/p/roundup/code/#changeset-6a1c1cd69582527ec718a5e726f0c628c364a3e0 John Rouillard rouilj@ieee.org 2024-03-02T13:45:29-05:00 2024-03-02T13:45:29-05:00
changeset 6a1c1cd69582
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: 'id' var shadows builtin, lint markers; sort imports

Replaced 'id' variable with label and 'ids' variable with 'labels' for
consistency.
files
flake8 format fixes, ignore 'file' as it is a type under py2 http://hg.code.sf.net:8000/p/roundup/code/#changeset-4d2e1fa03f0f491c0c6587be698d9b23c54c3384 John Rouillard rouilj@ieee.org 2020-01-03T21:22:36-05:00 2020-01-03T21:22:36-05:00
changeset 4d2e1fa03f0f
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description flake8 format fixes, ignore 'file' as it is a type under py2
files
replaced msgfmt.py with latest version supporting Python 3 http://hg.code.sf.net:8000/p/roundup/code/#changeset-f2fade4552c53a084f100a3f2d5d7f6e76e33829 Christof Meerwald cmeerw@cmeerw.org 2018-07-21T16:29:20+01:00 2018-07-21T16:29:20+01:00
changeset f2fade4552c5
branch
bookmark
tag
user Christof Meerwald <cmeerw@cmeerw.org>
description replaced msgfmt.py with latest version supporting Python 3
fixed setup scripts for Python 3
files
Python 3 preparation: update calls to dict methods. http://hg.code.sf.net:8000/p/roundup/code/#changeset-23b8e6067f7cdf5ff451f0a99cac4fb288e56859 Joseph Myers jsm@polyomino.org.uk 2018-07-24T23:04:42+00:00 2018-07-24T23:04:42+00:00
changeset 23b8e6067f7c
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: update calls to dict methods.

Tool-assisted patch. Changes of iterkeys / itervalues / iteritems to
keys / values / items are fully automated, but may make things less
efficient in Python 2. Automated tools want to add list() around many
calls to keys / values / items, but I thought most such list()
additions were unnecessary because it seemed the result of keys /
values / items was just iterated over while the set of dict keys
remained unchanged, rather than used in a way requiring an actual
list, or used while the set of keys in the dict could change. It's
quite possible I missed some cases where list() was really needed, or
left in some unnecessary list() calls.

In cases where list() was only needed because the resulting list was
then sorted in-place, I changed the code to use calls to sorted().
files
Python 3 preparation: numeric literal syntax. http://hg.code.sf.net:8000/p/roundup/code/#changeset-64c4e43fbb84812c1927ebec861d96837b77dbaa Joseph Myers jsm@polyomino.org.uk 2018-07-24T21:43:32+00:00 2018-07-24T21:43:32+00:00
changeset 64c4e43fbb84
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: numeric literal syntax.

Fixes octal constants to use leading 0o, and removes 'L' suffixes.
Tool-assisted patch.
files
Python 3 preparation: convert print to a function. http://hg.code.sf.net:8000/p/roundup/code/#changeset-64b05e24dbd889f52bf8f773d3456bd0135baa27 Joseph Myers jsm@polyomino.org.uk 2018-07-24T09:54:52+00:00 2018-07-24T09:54:52+00:00
changeset 64b05e24dbd8
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: convert print to a function.

Tool-assisted patch. It is possible that some "from __future__ import
print_function" are not in fact needed, if a file only uses print()
with a single string as an argument and so would work fine in Python 2
without that import.
files
Use Python-3-compatible 'as' syntax for except statements http://hg.code.sf.net:8000/p/roundup/code/#changeset-198b6e810c67c4e7e38f1aa41edbc864783fe6e6 Eric S. Raymond esr@thyrsus.com 2017-08-24T22:21:37-04:00 2017-08-24T22:21:37-04:00
changeset 198b6e810c67
branch
bookmark
tag
user Eric S. Raymond <esr@thyrsus.com>
description Use Python-3-compatible 'as' syntax for except statements

Many raise statements near these are also fixed.
So are two ivorrect file encoding marks ('utf8'->'utf-8').
files
Iniitalize two variables to None. http://hg.code.sf.net:8000/p/roundup/code/#changeset-c643d693d91e07c227fc2656b119df55ce4f57d4 John Rouillard rouilj@ieee.org 2017-04-15T19:59:26-04:00 2017-04-15T19:59:26-04:00
changeset c643d693d91e
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Iniitalize two variables to None.
files
[gsoc-2009] Some preparations for 3.0 migration http://hg.code.sf.net:8000/p/roundup/code/#changeset-4498f5252f8b7dd56af5400a063a5c20419380bc Pygi pygi@users.sourceforge.net 2009-07-24T04:35:05+00:00 2009-07-24T04:35:05+00:00
changeset 4498f5252f8b
branch gsoc-2009
bookmark
tag
user Pygi <pygi@users.sourceforge.net>
description Some preparations for 3.0 migration
files
ignore UTF-8 BOM in po file http://hg.code.sf.net:8000/p/roundup/code/#changeset-7000070fe600da386637c3c6f41b4bafa3f42c4c Alexander Smishlajev a1s@users.sourceforge.net 2006-02-14T05:21:54+00:00 2006-02-14T05:21:54+00:00
changeset 7000070fe600
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description ignore UTF-8 BOM in po file
files
reset global MESSAGES dictionary for each make http://hg.code.sf.net:8000/p/roundup/code/#changeset-a6bf25d38518bd174078d598b7ac87a91e44b3b0 Alexander Smishlajev a1s@users.sourceforge.net 2005-03-01T14:36:45+00:00 2005-03-01T14:36:45+00:00
changeset a6bf25d38518
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description reset global MESSAGES dictionary for each make
files
fix plural forms: http://hg.code.sf.net:8000/p/roundup/code/#changeset-ee9c3b850f9e9ad2537eeaea5a435d421dcfdce6 Alexander Smishlajev a1s@users.sourceforge.net 2004-10-20T08:46:45+00:00 2004-10-20T08:46:45+00:00
changeset ee9c3b850f9e
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description fix plural forms:

if the first translation string is empty, remaining translations were
applied to wrong cases. GNU msgfmt in such case deletes the
translation altogether; so do we now.
files
catalog compilation utility for message translations http://hg.code.sf.net:8000/p/roundup/code/#changeset-40643f8b41a0c155d074543845de986672eaf321 Alexander Smishlajev a1s@users.sourceforge.net 2004-10-19T08:16:39+00:00 2004-10-19T08:16:39+00:00
changeset 40643f8b41a0
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description catalog compilation utility for message translations

this module originates in python standard tools
and is copied here for the following reasons:

- some python distributions (namely cygwin) do not include tools;
- added plural forms support;
- there was an error in fuzzy detection.
files