You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Babel extracts messages from Python code, it ignores _(...) in another _(...).
My _ is slightly customized to accept **kwargs for formatting. I guess it is one of common patterns. So I can write like this code:
#: TRANSLATOR: Users can have one or more fruits.text=_('You have {fruit}!', fruit=_('an apple'))
Babel extracts only You have {fruit}! in the above code. There's no an apple. But at the same case in C#, xgettext can extract both of the messages. So I think this is a bug in Babel.
The text was updated successfully, but these errors were encountered:
When Babel extracts messages from Python code, it ignores
_(...)
in another_(...)
.My
_
is slightly customized to accept**kwargs
for formatting. I guess it is one of common patterns. So I can write like this code:Babel extracts only
You have {fruit}!
in the above code. There's noan apple
. But at the same case in C#, xgettext can extract both of the messages. So I think this is a bug in Babel.The text was updated successfully, but these errors were encountered: