mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Document using ngettext in plugins
This commit is contained in:
parent
2ae0742c98
commit
17c6d84269
@ -292,6 +292,11 @@ with the ``CALIBRE_OVERRIDE_LANG`` environment variable set. For example::
|
||||
|
||||
Replace ``de`` with the language code of the language you want to test.
|
||||
|
||||
For translations with plurals, use the ``ngettext()`` function instead of
|
||||
``_()``. For example::
|
||||
|
||||
ngettext('Delete a book', 'Delete {} books', num_books).format(num_books)
|
||||
|
||||
The plugin API
|
||||
--------------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user