GNU gettext - Bugs: bug #30854, Support for the new style Python...
You are not allowed to post comments on this tracker with your current authentication level.
bug #30854: Support for the new style Python format strings
Submitter: | David Planella <davidplanella> | ||
Submitted: | Mon 23 Aug 2010 05:10:05 PM UTC | ||
Category: | Python | Severity: | 3 - Normal |
Item Group: | None | Status: | Fix Released |
Privacy: | Public | Assigned to: | ueno |
Open/Closed: | Closed |
Fri 26 Apr 2013 05:19:59 PM UTC, comment #5: |
Rodrigo Silva <mestrelion> |
Fri 26 Apr 2013 10:09:51 AM UTC, comment #4: The PEP 3101 format strings are now supported:
|
Daiki Ueno <ueno> |
Tue 10 Apr 2012 07:26:52 AM UTC, comment #3: Hi Rodrigo,
|
David Planella <davidplanella> |
Mon 09 Apr 2012 10:14:20 PM UTC, comment #2: Totally agree with this request, as I also badly need xgettext to support the new formats. Specially since "{foo}".format() is now the standard in Python 3, and Python 2 users are encouraged to use this instead of the old % operand.
|
Rodrigo Silva <mestrelion> |
Mon 31 Jan 2011 10:48:50 AM UTC, comment #1: It's been several months since this bug was opened.
|
David Planella <davidplanella> |
Mon 23 Aug 2010 05:10:05 PM UTC, original submission:
Currently the gettext tools support only the old Python string format for substitutions, that is, %s or %(variable)s type strings.
|
David Planella <davidplanella> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-01-04 | haible | Status | Fixed | Fix Released | |
2016-11-27 | haible | Category | None | Python | |
2013-04-26 | ueno | Status | In Progress | Fixed | |
Open/Closed | Open | Closed | |||
2012-12-25 | ueno | Status | None | In Progress | |
Assigned to | None | ueno | |||
2010-08-23 | davidplanella | Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-f8d8.
Corresponding source code
That's amazing news! Thank you VERY much Daiki! Python's brace syntax is quite complex, so I'm sure implementing it in gettext was no easy task.
As for postponing the Template syntax, no problem I guess. It is less used than the .format (brace) syntax.
The brace was by far the most important one, since it's the default in Python 3 and encouraged in Python 2.