Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-126700: pygettext: Support more gettext functions (GH-126912) | Tomas R. | 2024-11-22 | 1 | -73/+171 |
| | | | | Support multi-argument gettext functions: ngettext(), pgettext(), dgettext(), etc. | ||||
* | gh-126807: pygettext: Do not attempt to extract messages from function ↵ | Tomas R. | 2024-11-14 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | definitions. (GH-126808) Fixes a bug where pygettext would attempt to extract a message from a code like this: def _(x): pass This is because pygettext only looks at one token at a time and '_(x)' looks like a function call. However, since 'x' is not a string literal, it would erroneously issue a warning. | ||||
* | gh-102507 Remove invisible pagebreak characters (#102531) | JosephSBoyle | 2023-03-08 | 1 | -7/+4 |
| | | | Co-authored-by: AlexWaygood <alex.waygood@gmail.com> | ||||
* | gh-95731: Fix module docstring extraction in pygettext (#95732) | Jakub Kuczys | 2022-10-15 | 1 | -3/+4 |
| | |||||
* | Update URLs in comments and metadata to use HTTPS (GH-27458) | Noah Kantrowitz | 2021-07-30 | 1 | -2/+2 |
| | |||||
* | bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. ↵ | jack1142 | 2020-11-09 | 1 | -0/+53 |
| | | | | | | | (GH-19875) Adds support to Tools/i18n/pygettext.py for gettext calls in f-strings. This process is done by parsing the f-strings, processing each value, and flagging the ones which contain a gettext call. Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> | ||||
* | bpo-22831: Use "with" to avoid possible fd leaks in tools (part 2). (GH-10927) | Serhiy Storchaka | 2019-03-30 | 1 | -3/+2 |
| | |||||
* | bpo-2504: Add pgettext() and variants to gettext. (GH-7253) | Cheryl Sabella | 2018-11-07 | 1 | -17/+25 |
| | |||||
* | bpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367) | Xtreak | 2018-07-21 | 1 | -3/+5 |
| | |||||
* | Remove mojibake in the locale aliases mapping. (GH-6716) | Serhiy Storchaka | 2018-05-06 | 1 | -0/+3 |
| | |||||
* | bpo-33189: pygettext.py now accepts only literal strings (GH-6364) | Serhiy Storchaka | 2018-04-19 | 1 | -5/+9 |
| | | | | as docstrings and translatable strings, and rejects bytes literals and f-string expressions. | ||||
* | bpo-31920: Fixed handling directories as arguments in the ``pygettext`` ↵ | Serhiy Storchaka | 2018-04-09 | 1 | -19/+11 |
| | | | | | script. (GH-6259) Based on patch by Oleg Krasnikov. | ||||
* | bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵ | Tobotimus | 2018-02-26 | 1 | -4/+11 |
| | | | | (GH-4745) | ||||
* | bpo-20087: Revert "make the glibc alias table take precedence over the X11 ↵ | Benjamin Peterson | 2017-03-20 | 1 | -1/+1 |
| | | | | | one (#422)" (#713) This reverts commit 02371e0ed1ee82ec73e7d363bcf2ed40cde1397a. | ||||
* | make the glibc alias table take precedence over the X11 one (#422) | Benjamin Peterson | 2017-03-08 | 1 | -1/+1 |
| | | | bpo-20087 | ||||
* | Merge spelling and grammar fixes from 3.5 | Martin Panter | 2016-08-05 | 1 | -1/+1 |
|\ | |||||
| * | Fix spelling and grammar in documentation and code comments | Martin Panter | 2016-08-04 | 1 | -1/+1 |
| | | |||||
* | | Update pygettext.py to get ride of imp | Victor Stinner | 2016-04-12 | 1 | -43/+8 |
|/ | | | | | | Issue #26639: Replace imp with importlib in Tools/i18n/pygettext.py. Remove _get_modpkg_path(), replaced with importlib.util.find_spec(). | ||||
* | #18128: use standard +NNNN timezone format in POT-Creation-Date header. | R David Murray | 2015-04-16 | 1 | -3/+1 |
| | | | | Patch by Michael McFadden, with a few small style tweaks. | ||||
* | Issue #20079: makelocalealias.py now supports installed SUPPORTED file, | Serhiy Storchaka | 2014-10-02 | 1 | -8/+12 |
| | | | | not only source SUPPORTED file in glibc sources tree. | ||||
* | Issue #20076: Apply optimization in makelocalealias.py repeatedly. | Serhiy Storchaka | 2014-10-02 | 1 | -1/+6 |
|\ | | | | | | | | | Remove just added the sr_rs.utf8@latn alias because it is derived from sr_rs@latin. | ||||
* \ | Issue #20076: Added non derived UTF-8 aliases to locale aliases table. | Serhiy Storchaka | 2014-10-01 | 1 | -4/+0 |
|\ \ | |/ | | | | | The makelocalealias.py script no longer ignores UTF-8 mapping. | ||||
* | | Issue #20079: Added locales supported in glibc 2.18 to locale alias table. | Serhiy Storchaka | 2014-10-01 | 1 | -1/+44 |
|/ | | | | | The makelocalealias.py script now can parse the SUPPORTED file from glibc sources and supports command line options for source paths. | ||||
* | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -0/+0 |
|\ | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts. | ||||
| * | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -0/+0 |
| | | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script. | ||||
* | | Issue #20046: Locale alias table no longer contains entities which can be | Serhiy Storchaka | 2013-12-26 | 1 | -0/+27 |
| | | | | | | | | calculated. Generalized support of the euro modifier. | ||||
* | | Issue #20027: Fixed locale aliases for devanagari locales. | Serhiy Storchaka | 2013-12-26 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | Issue #20027: Fixed locale aliases for devanagari locales. | Serhiy Storchaka | 2013-12-26 | 1 | -0/+6 |
| | | |||||
* | | Issue #20033: makelocalealias.py now works with non-ASCII locales and produces | Serhiy Storchaka | 2013-12-23 | 1 | -5/+5 |
|\ \ | |/ | | | | | the same result as in 2.x. | ||||
| * | Issue #20033: makelocalealias.py now works with non-ASCII locales and produces | Serhiy Storchaka | 2013-12-23 | 1 | -5/+5 |
| | | | | | | | | the same result as in 2.x. | ||||
* | | merge 3.3 (#19563) | Benjamin Peterson | 2013-12-23 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | update Barry's email (#19563) | Benjamin Peterson | 2013-12-23 | 1 | -1/+1 |
| | | |||||
* | | Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write | Serhiy Storchaka | 2013-09-05 | 1 | -1/+1 |
|/ | | | | their version strings to stdout, and not to sderr. | ||||
* | #18803: fix more typos. Patch by Févry Thibault. | Ezio Melotti | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | Issue #17156: pygettext.py now uses an encoding of source file and correctly | Serhiy Storchaka | 2013-02-09 | 1 | -33/+33 |
|\ | | | | | | | writes and escapes non-ascii characters. | ||||
| * | Issue #17156: pygettext.py now uses an encoding of source file and correctly | Serhiy Storchaka | 2013-02-09 | 1 | -33/+33 |
| | | | | | | | | writes and escapes non-ascii characters. | ||||
* | | #13301: merge with 3.2. | Ezio Melotti | 2012-11-09 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | #13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. ↵ | Ezio Melotti | 2012-11-09 | 1 | -3/+3 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Some cleanup in the Tools directory. | Florent Xicluna | 2012-07-07 | 1 | -1/+0 |
|/ | |||||
* | Issue #9308: Removed redundant coding cookies. Added tests for | Alexander Belopolsky | 2010-10-15 | 1 | -2/+1 |
| | | | | | importing encoded modules that do not depend on specific stdlib modules being encoded in a certain way. | ||||
* | Issue #8974: fix print calls in msgfmt.py. | Martin v. Löwis | 2010-07-11 | 1 | -2/+2 |
| | |||||
* | Port to Python 3. | Martin v. Löwis | 2010-06-04 | 1 | -9/+21 |
| | |||||
* | Merged revisions 81697 via svnmerge from | Martin v. Löwis | 2010-06-04 | 1 | -2/+25 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81697 | martin.v.loewis | 2010-06-04 20:04:42 +0200 (Fr, 04 Jun 2010) | 2 lines Issue #5464: Implement plural forms in msgfmt.py. ........ | ||||
* | Merged revisions 79977 via svnmerge from | Antoine Pitrou | 2010-04-11 | 1 | -1/+1 |
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79977 | antoine.pitrou | 2010-04-12 00:32:39 +0200 (lun., 12 avril 2010) | 4 lines Issue #8374: Update the internal alias table in the :mod:`locale` module to cover recent locale changes and additions. ........ | ||||
* | convert shebang lines: python -> python3 | Benjamin Peterson | 2010-03-11 | 3 | -3/+3 |
| | |||||
* | More 2to3 fixes in the Tools directory. Fixes #2893. | Georg Brandl | 2008-05-16 | 3 | -11/+6 |
| | |||||
* | Removed remnants of os.path.walk(). | Alexandre Vassalotti | 2008-05-09 | 1 | -1/+1 |
| | |||||
* | - Issue #719888: Updated tokenize to use a bytes API. generate_tokens has been | Trent Nelson | 2008-03-18 | 1 | -1/+3 |
| | | | | | | | | | | renamed tokenize and now works with bytes rather than strings. A new detect_encoding function has been added for determining source file encoding according to PEP-0263. Token sequences returned by tokenize always start with an ENCODING token which specifies the encoding used to decode the file. This token is used to encode the output of untokenize back to bytes. Credit goes to Michael "I'm-going-to-name-my-first-child-unittest" Foord from Resolver Systems for this work. | ||||
* | Patch #1830 by Peter Harris, fix some 2.x-isms. | Guido van Rossum | 2008-01-15 | 1 | -7/+3 |
| | |||||
* | In followup to #1310: Remove more exception indexing. | Georg Brandl | 2007-10-22 | 1 | -1/+2 |
| |