Added basic i18n interface
This commit is contained in:
parent
576dc9d97e
commit
6af7a69fb4
1 changed files with 12 additions and 0 deletions
12
src/i18n/i18n.h
Normal file
12
src/i18n/i18n.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef I18N_H_
|
||||
# define I18N_H_
|
||||
|
||||
# include <libintl.h>
|
||||
# include "config.h"
|
||||
|
||||
# define _(String) (dgettext ? dgettext(PACKAGE, String) : String)
|
||||
# define _s(String, Plural, Quantity) \
|
||||
(dgettext ? dngettext(PACKAGE, String, Plural, Quantity) \
|
||||
: (Quantity == 1 ? String : Plural))
|
||||
|
||||
#endif /* !I18N_H_ */
|
Loading…
Add table
Reference in a new issue