summaryrefslogtreecommitdiffstats
path: root/Tools/i18n
Commit message (Collapse)AuthorAgeFilesLines
* gh-126700: pygettext: Support more gettext functions (GH-126912)Tomas R.2024-11-221-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-141-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)JosephSBoyle2023-03-081-7/+4
| | | Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* gh-95731: Fix module docstring extraction in pygettext (#95732)Jakub Kuczys2022-10-151-3/+4
|
* Update URLs in comments and metadata to use HTTPS (GH-27458)Noah Kantrowitz2021-07-301-2/+2
|
* bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. ↵jack11422020-11-091-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 Storchaka2019-03-301-3/+2
|
* bpo-2504: Add pgettext() and variants to gettext. (GH-7253)Cheryl Sabella2018-11-071-17/+25
|
* bpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367)Xtreak2018-07-211-3/+5
|
* Remove mojibake in the locale aliases mapping. (GH-6716)Serhiy Storchaka2018-05-061-0/+3
|
* bpo-33189: pygettext.py now accepts only literal strings (GH-6364)Serhiy Storchaka2018-04-191-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 Storchaka2018-04-091-19/+11
| | | | | script. (GH-6259) Based on patch by Oleg Krasnikov.
* bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵Tobotimus2018-02-261-4/+11
| | | | (GH-4745)
* bpo-20087: Revert "make the glibc alias table take precedence over the X11 ↵Benjamin Peterson2017-03-201-1/+1
| | | | | one (#422)" (#713) This reverts commit 02371e0ed1ee82ec73e7d363bcf2ed40cde1397a.
* make the glibc alias table take precedence over the X11 one (#422)Benjamin Peterson2017-03-081-1/+1
| | | bpo-20087
* Merge spelling and grammar fixes from 3.5Martin Panter2016-08-051-1/+1
|\
| * Fix spelling and grammar in documentation and code commentsMartin Panter2016-08-041-1/+1
| |
* | Update pygettext.py to get ride of impVictor Stinner2016-04-121-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 Murray2015-04-161-3/+1
| | | | Patch by Michael McFadden, with a few small style tweaks.
* Issue #20079: makelocalealias.py now supports installed SUPPORTED file,Serhiy Storchaka2014-10-021-8/+12
| | | | not only source SUPPORTED file in glibc sources tree.
* Issue #20076: Apply optimization in makelocalealias.py repeatedly.Serhiy Storchaka2014-10-021-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 Storchaka2014-10-011-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 Storchaka2014-10-011-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 whichSerhiy Storchaka2014-01-161-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 whichSerhiy Storchaka2014-01-161-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 beSerhiy Storchaka2013-12-261-0/+27
| | | | | | | | calculated. Generalized support of the euro modifier.
* | Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-0/+6
|\ \ | |/
| * Issue #20027: Fixed locale aliases for devanagari locales.Serhiy Storchaka2013-12-261-0/+6
| |
* | Issue #20033: makelocalealias.py now works with non-ASCII locales and producesSerhiy Storchaka2013-12-231-5/+5
|\ \ | |/ | | | | the same result as in 2.x.
| * Issue #20033: makelocalealias.py now works with non-ASCII locales and producesSerhiy Storchaka2013-12-231-5/+5
| | | | | | | | the same result as in 2.x.
* | merge 3.3 (#19563)Benjamin Peterson2013-12-231-1/+1
|\ \ | |/
| * update Barry's email (#19563)Benjamin Peterson2013-12-231-1/+1
| |
* | Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts writeSerhiy Storchaka2013-09-051-1/+1
|/ | | | their version strings to stdout, and not to sderr.
* #18803: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-251-1/+1
|
* Issue #17156: pygettext.py now uses an encoding of source file and correctlySerhiy Storchaka2013-02-091-33/+33
|\ | | | | | | writes and escapes non-ascii characters.
| * Issue #17156: pygettext.py now uses an encoding of source file and correctlySerhiy Storchaka2013-02-091-33/+33
| | | | | | | | writes and escapes non-ascii characters.
* | #13301: merge with 3.2.Ezio Melotti2012-11-091-3/+3
|\ \ | |/
| * #13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. ↵Ezio Melotti2012-11-091-3/+3
| | | | | | | | Patch by Serhiy Storchaka.
* | Some cleanup in the Tools directory.Florent Xicluna2012-07-071-1/+0
|/
* Issue #9308: Removed redundant coding cookies. Added tests forAlexander Belopolsky2010-10-151-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öwis2010-07-111-2/+2
|
* Port to Python 3.Martin v. Löwis2010-06-041-9/+21
|
* Merged revisions 81697 via svnmerge fromMartin v. Löwis2010-06-041-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 fromAntoine Pitrou2010-04-111-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 -> python3Benjamin Peterson2010-03-113-3/+3
|
* More 2to3 fixes in the Tools directory. Fixes #2893.Georg Brandl2008-05-163-11/+6
|
* Removed remnants of os.path.walk().Alexandre Vassalotti2008-05-091-1/+1
|
* - Issue #719888: Updated tokenize to use a bytes API. generate_tokens has beenTrent Nelson2008-03-181-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 Rossum2008-01-151-7/+3
|
* In followup to #1310: Remove more exception indexing.Georg Brandl2007-10-221-1/+2
|