Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kevin_thibedeau
on Jan 4, 2016
|
parent
|
context
|
favorite
| on:
New string formatting in Python
This breaks gettext translations:
_(f"English {a} words {b} here {a}")
The interpolation is done
before
the string is passed to gettext which can't retrieve the translated string any more.
mixmastamyk
on Jan 4, 2016
[–]
Correct, don't use it with i18n, the same as with any other string formatting.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: