View Single Post
Old 07-16-2023, 11:46 PM   #3
modified
Connoisseur
modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!modified is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 90
Karma: 50742
Join Date: Jan 2011
Device: PW5
Quote:
Originally Posted by kovidgoyal View Post
_('OK') _('Cancel')
This doesn't work because the plugin has possibly a different gettext domain (??).

From calibre:
Code:
import gettext
print(
    "*** (%s) gettext domain=%s, _('Cancel')=%s"
    % (__name__, gettext.textdomain(), _("Cancel"))
)
Code:
*** (calibre.gui2) gettext domain=messages, _('Cancel')=취소
From plugin that is localized:
Code:
import gettext
print(
    "*** (%s) gettext domain=%s, _('Cancel')=%s"
    % (__name__, gettext.textdomain(), _("Cancel"))
)
Code:
*** (calibre_plugins.overdrive_libby.action) gettext domain=messages, _('Cancel')=Cancel
modified is offline   Reply With Quote