Skip to content

Avoid plural forms in non-GUI translatable strings (lacks %n support) #31890

@hebasto

Description

@hebasto

In non-GUI code, translatable strings with format specifiers rely on the tinyformat::format implementation, which does not support the %n specifier that is crucial for pluralising with Qt translation tools.

Therefore, it may be worth considering rephrasing translatable strings to avoid potential plural forms.

This issue was initially reported on Transifex: https://app.transifex.com/bitcoin/bitcoin/translate/#fr/qt-translation-029x/570550303/.

Here is an example of such a string:

return InitError(strprintf(_("Not enough file descriptors available. %d available, %d required."), available_fds, min_required_fds));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions