summaryrefslogtreecommitdiff
path: root/django/core/management/commands/makemessages.py
AgeCommit message (Collapse)Author
2025-08-12Fixed #36368 -- Prevented duplicate locale paths and write_po_file calls in ↵michalpokusa
makemessages.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
2024-12-09Fixed #35973 -- Improved makemessages locale validation to handle numeric ↵Juan Pablo Mallarino
region codes.
2024-08-30Dropped safeguards against very old versions of gettext.Claude Paroz
gettext 0.19 was released in 2014.
2023-09-22Fixed #34848 -- Ignored i18n_catalog.js file when building Django's ↵Natalia
translations catalog.
2022-06-08Fixed #33565 -- Improved locale format validation for the makemessages command.Ronnie van den Crommenacker
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-11Fixed #6106 -- Prevented makemessages from changing .po files when up to date.Ad Timmering
Co-authored-by: Daniyal Abbasi <abbasi.daniyal98@gmail.com>
2021-07-01Refs #32144 -- Made makemessages remove temporary files on preprocessing error.Carlton Gibson
Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
2021-07-01Fixed #32144 -- Made makemessages remove temporary files when locale path ↵Carlton Gibson
doesn't exist.
2021-06-21Fixed typo in makemessages error message.Jacob Walls
2021-02-09Fixed #32145 -- Improved makemessages error message when app's locale ↵Josh Santos
directory doesn't exist.
2021-01-14Refs #30165 -- Removed ugettext(), ugettext_lazy(), ugettext_noop(), ↵Mariusz Felisiak
ungettext(), and ungettext_lazy() per deprecation timeline.
2020-11-13Fixed #29712 -- Made makemessages warn if locales have hyphens and skip them.manav014
2020-05-21Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani
Command.requires_system_checks.
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-04-27Refs #18325 -- Removed unnecessary line endings in management commands.François Freitag
The OutputWrapper automatically adds \n when it’s not present.
2020-02-28Fixed #31314 -- Raised CommandError when locale is not specified in ↵Cristobal Mackenzie
makemessages. Regression in 0707b824fe77e08ca8b75fcc3738ada694f2a3a6.
2019-11-18Removed unnecessary parentheses in various code.Jon Dufresne
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-09-10Refs #29817 -- Removed settings.FILE_CHARSET per deprecation timeline.Mariusz Felisiak
2019-01-31Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵Jon Dufresne
exist_ok=True).
2019-01-28Refs #29973 -- Extracted helper functions from makemessages.rsiemens
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2018-07-02Removed parser.add_arguments() arguments that match the defaults.Claude Paroz
2018-06-11Fixed #29452 -- Fixed makemessages setting charset of .pot files.Bartosz Grabski
2018-05-13Fixed #17379 -- Removed management commands deactivation of the locale.Claude Paroz
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-11-28Fixed #28773 -- Forced pot files to use UNIX-style newlinesClaude Paroz
Thanks Hendy Irawan for the analysis and report.
2017-11-07Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов
2017-07-29Avoided creation of temporary sets.Sergey Fedoseev
2017-05-22Fixed #28015 -- Added makemessages --add-location option.Ling-Xiao Yang
Thanks François Freitag for review.
2017-04-01Removed implicit default store_true/false argparse args.Jon Dufresne
argparse automatically sets the default value for store_true/false arguments to its opposite.
2017-02-23Fixed #27868 -- Filtered locale path subdirectoriesClaude Paroz
Thanks Tim Graham for the review.
2017-02-21Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan
2017-02-06Refs #27795 -- Removed force_text from templatize functionClaude Paroz
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Replaced io.open() with open().Aymeric Augustin
io.open() is an alias for open() on Python 3.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-01Fixed #27546 -- Removed hardcoded class names in __repr__() methods.Keda87
2016-10-01Refs #26940 -- Re-allowed makemessages without settingsClaude Paroz
Thanks Tim Graham for the review.
2016-08-11Fixed #27034 -- Made makemessages independent of USE_I18NClaude Paroz
Thanks Tim Graham for the review.
2016-07-14Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file namesClaude Paroz
Thanks Tim Graham for the review.
2016-05-27Fixed #26645 -- Fixed potential makemessages failures on Windows.Ramiro Morales
This was reflected by 27 i18n test errors (not failures) on such platform caused by corrupt intermediate PO catalog files fed to `msgmerge(1)`. Made it handle in-memory PO/POT file contents with normalized line separators (`'\n'`). We need to perform manually this after using `subprocess.Popen` as we can't pass it `universal_newlines=True`. Also fixes #26670 in the process as this commit refactors the same code section.