#4007 (Extend babelkw() to include str2kw())
by Luc Saffre · in Developers
Kokkuvõte
Children
Kommentaarid
- 5 aastat, 7 kuud ago by Luc Saffre about #4007 (Extend babelkw() to include str2kw()) : Yes, "def babelkw(self, name, txt=None, **kw):"
- 5 aastat, 7 kuud ago by Sharif Mehedi about #4007 (Extend babelkw() to include str2kw()) : Thinking about it once more. we can just put None as a default value for the third positional argument
- 5 aastat, 7 kuud ago by Sharif Mehedi about #4007 (Extend babelkw() to include str2kw()) : Seems we have to edit everywhere dd.babel_values or dd.babelkw got called, since they now take three positional arguments including "self".
- 5 aastat, 7 kuud ago by Luc Saffre about #4007 (Extend babelkw() to include str2kw()) : Usage: replace babelkw("name", en="foo", de=...) by babelkw("name", _("foo"), de=...)
- 5 aastat, 7 kuud ago by Luc Saffre about #4007 (Extend babelkw() to include str2kw()) : Sharif had this idea, which avoids us to get locked by code that still uses babelkw(). He can then add translations for Bengali without having to edit the German, French and Estonian po files.