mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
refactor: remove tr_strip_positional_args() (#2881)
* refactor: use fmt in gtk/SystemIconTray * refactor: use fmt in gtk/MakeDialog * refactor: remove unused tr_strip_positional_args() Co-authored-by: Mike Gelfand <mikedld@mikedld.com>
This commit is contained in:
@@ -33,8 +33,6 @@ struct tr_error;
|
||||
* @{
|
||||
*/
|
||||
|
||||
char const* tr_strip_positional_args(char const* fmt);
|
||||
|
||||
#if !defined(_)
|
||||
#if defined(HAVE_GETTEXT) && !defined(__APPLE__)
|
||||
#include <libintl.h>
|
||||
@@ -57,8 +55,8 @@ char const* tr_strip_positional_args(char const* fmt);
|
||||
#ifdef DISABLE_GETTEXT
|
||||
#undef _
|
||||
#undef ngettext
|
||||
#define _(a) tr_strip_positional_args(a)
|
||||
#define ngettext(singular, plural, count) tr_strip_positional_args((count) == 1 ? (singular) : (plural))
|
||||
#define _(a) (a)
|
||||
#define ngettext(singular, plural, count) ((count) == 1 ? (singular) : (plural))
|
||||
#endif
|
||||
|
||||
/****
|
||||
|
||||
Reference in New Issue
Block a user