http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/pygettext.py Mercurial Repository: p/roundup/code: roundup/pygettext.py history 2026-04-08T21:39:40-04:00 chore: remove __future print_funcion from code. http://hg.code.sf.net:8000/p/roundup/code/#changeset-9c3ec0a5c7fc88acb8a65632ecc13b2d52380314 John Rouillard rouilj@ieee.org 2026-04-08T21:39:40-04:00 2026-04-08T21:39:40-04:00
changeset 9c3ec0a5c7fc
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: remove __future print_funcion from code.

Not needed as of Python 3.
files
build: issue2551399 - CI is failing with flake8 syntax error F824 http://hg.code.sf.net:8000/p/roundup/code/#changeset-185335b2301bbf9a158feea5e465fa13bc20bc39 John Rouillard rouilj@ieee.org 2025-05-11T16:53:22-04:00 2025-05-11T16:53:22-04:00
changeset 185335b2301b
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description build: issue2551399 - CI is failing with flake8 syntax error F824

Removed global declaration when only reading, not writing
module/global variable in block scope.
files
fix: do not translate help text or POT header. http://hg.code.sf.net:8000/p/roundup/code/#changeset-78bca158e1e6556154d08f6cce5a476265e63f0b John Rouillard rouilj@ieee.org 2024-08-07T21:43:40-04:00 2024-08-07T21:43:40-04:00
changeset 78bca158e1e6
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: do not translate help text or POT header.

the help text is too large to submit to translation services.
I am excluding the help text from admin.py as well when I generate
po files for translation.

The POT header shouldn't be translated AFAICT. It is always in english.
files
fix: keep python2 working a little longer. http://hg.code.sf.net:8000/p/roundup/code/#changeset-586f76eb33e880272bf46663f139a35deb23fc69 John Rouillard rouilj@ieee.org 2024-07-16T02:10:25-04:00 2024-07-16T02:10:25-04:00
changeset 586f76eb33e8
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: keep python2 working a little longer.
files
chore: some ruff linter cleanups. http://hg.code.sf.net:8000/p/roundup/code/#changeset-60e92a540ca7bf6a98ddeea1bc93eb1e8b98d52f John Rouillard rouilj@ieee.org 2024-07-14T12:42:07-04:00 2024-07-14T12:42:07-04:00
changeset 60e92a540ca7
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: some ruff linter cleanups.
files
fix: remove references to imp in untouched code http://hg.code.sf.net:8000/p/roundup/code/#changeset-a4127d7afaa9cebf8282d0bbe011bc17104bf4fc John Rouillard rouilj@ieee.org 2024-07-13T21:15:50-04:00 2024-07-13T21:15:50-04:00
changeset a4127d7afaa9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: remove references to imp in untouched code

CI runs flake8 to check for syntax errors and it threw errors on old
imp.XYZ code that was not actually called.

It looks like the code was only called when resolving modules like
ssl, _ssl, importlib, importlib.resources .. rather than
files/directory paths. In Roundup's use case it only runs over
files/directories.
files
feat: issue2551287 - roundup-gettext extracts strings from detectors/extensions http://hg.code.sf.net:8000/p/roundup/code/#changeset-d1c29284ccd92d1f9f036597ab7bc581a40dcde2 John Rouillard rouilj@ieee.org 2024-07-13T18:27:11-04:00 2024-07-13T18:27:11-04:00
changeset d1c29284ccd9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: issue2551287 - roundup-gettext extracts strings from detectors/extensions

Enhance roundup_gettext.py to extract strings from
detectors/extensions. If the polib module is available,
roundup-gettext will extract translatable strings from the tracker's
Python code. If polib is missing, it will print a warning.

Marcus did most of the work, I had to do a python 2-> conversion of
pygettext.py.
files