| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
deprecation timeline.
|
| |
|
|
|
|
|
| |
Considering the APIs exercised by these test cases, it's hard to make
them independent.
|
|
|
|
| |
trans %} tags that use template filters.
|
|
|
|
|
|
|
|
|
| |
with --files-from
Changed the way makemessages invokes xgettext from one call per
translatable file to one call per locale directory (using --files-from).
This allows to avoid https://savannah.gnu.org/bugs/index.php?35027 and,
as a positive side effect, speeds up localization build.
|
|
|
|
|
|
| |
language override
Thanks David Nelson Adamec for the report and Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactored tests to use a sample project.
Updated extraction:
* Removed special handling of single percent signs.
* When extracting messages from template text, doubled all percent signs
so they are not interpreted by gettext as string format flags. All
strings extracted by gettext, if containing a percent sign, will now
be labeled "#, python-format".
Updated translation:
* Used "%%" for "%" in template text before calling gettext.
* Updated {% trans %} rendering to restore "%" from "%%".
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
| |
|
|
|
|
|
|
|
|
| |
more distinct.
Made URL application namespaces be set in the included URLconf and
instance namespaces in the call to include(). Deprecated other ways
to set application and instance namespaces.
|
|
|
|
|
| |
Updated the command to match the documentation, which states it
runs over all .po files.
|
| |
|
|
|
|
|
|
|
|
| |
django.template.exceptions.
With the introduction of multiple template engines these exceptions are no
longer DTL-specific. It makes more sense for them to be moved out of
DTL-related modules.
|
|
|
|
| |
assertEqual in tests.
|
|
|
|
|
|
| |
gettext.
The locale code can contain a variant after @, so allowed that.
|
|
|
|
|
|
|
| |
None value
get_language() can return None when translations are deactivated.
Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
|
|
|
|
|
|
|
|
| |
APPEND_SLASH is set.
This introduces a force_append_slash argument for request.get_full_path()
which is used by RedirectFallbackMiddleware and CommonMiddleware when
handling redirects for settings.APPEND_SLASH.
|
| |
|
|
|
|
| |
Thanks Carl Meyer for the report and Tim Graham for the review.
|
|
|
|
|
|
|
|
| |
overriding script prefix.
Tests were using an undocumented keyword argument for easily overriding
script prefix while reversing. This is now changed into a test utility
which can be used as decorator or context manager.
|
|
|
|
|
|
| |
setting language
Thanks gbdlin for the initial patch and Tim Graham for the review.
|
|
|
|
| |
traditional parsing.
|
|
|
|
|
| |
Thanks Tomasz Kontusz for the report, Baptiste Mispelon for
analysis and Tim Graham for the review.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
other widgets
and deprecated django.forms.extras.
Thanks Berker Peksag and Tim Graham for the reviews.
|
| |
|
| |
|
|
|
|
|
|
| |
This finsishes the work started on #16803.
Thanks Simon Charette, Tim Graham and Collin Anderson for the
reviews.
|
|
|
|
|
|
|
| |
translations are deactivated
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann
for identifying the regression.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
updating them.
Make sure PO catalog text fetched from gettext programs via standard
output isn't corrupted by mismatch between assumed (UTF-8) and real
(CP1252) encodings. This can cause mojibake to be written when creating
or updating PO files.
Also fixes #23311.
Thanks to contributor with Trac nick 'danielmenzel' for the report,
excellent research and fix.
|
| |
|
|
|
|
| |
Thanks Tim Graham for the report and initial patch.
|
|
|
|
|
|
| |
from CPython's test.support.
StringIO import was adapted for compatibility with Python 2.
|
|
|
|
| |
to errors in runtests.py
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Changed the handling of extensions to be used for gettext. Now
obeying the --extension argument. find_files now only find the
given or default extensions and puts only these in the
TranslatableFiles. As a result there are no more confusing messages
for filetypes (extension) not handled by makemessages.
|
|
|
|
|
|
|
|
| |
gettext
JavaScript string extraction support has been added in gettext
0.18.3.
Thanks Aymeric Augustin for the review.
|
|
|
|
| |
Django test suite.
|
|
|
|
| |
STATIC_ROOT=None
|
|
|
|
| |
Refs #23663.
|
|
|
|
|
|
| |
Fixed a regression introduced by 28efafa24c.
Thanks Michal Čihař for the report and initial patch, and
Collin Anderson and Tim Graham for the reviews.
|
|
|
|
| |
Refs commit 11f307a5a8.
|
|
|
|
|
|
|
| |
Translating an empty string used to return the gettext catalog
metadata instead of the empty string.
Thanks Ned Batchelder for the suggestion, Tim Graham for the review
and Anton Berezin and Claude Paroz for contributions to the patch.
|
|
|
|
| |
output formats.
|