From a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 3 Jul 2024 10:19:30 +0200 Subject: New upstream version 5.3.0GA --- app/bin/i18n.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'app/bin/i18n.h') diff --git a/app/bin/i18n.h b/app/bin/i18n.h index f70c87d..9b53944 100644 --- a/app/bin/i18n.h +++ b/app/bin/i18n.h @@ -13,31 +13,31 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "xtrkcad-config.h" #ifdef XTRKCAD_USE_GETTEXT /* Use gettext */ - #ifndef USE_SIMPLE_GETTEXT - #include - #endif +#ifndef USE_SIMPLE_GETTEXT +#include +#endif - #include +#include - #define _(String) ((String && strlen(String) > 0) \ +#define _(String) ((String && strlen(String) > 0) \ ? gettext(String) : String) - #define p_(Context, String) ((Context && strlen(Context) > 0) \ +#define p_(Context, String) ((Context && strlen(Context) > 0) \ ? pgettext(Context, String) : _(String)) - #define gettext_noop(String) String - #define N_(String) gettext_noop(String) +#define gettext_noop(String) String +#define N_(String) gettext_noop(String) #else - /* Don't use gettext */ - #define _(String) String - #define gettext_noop(String) String - #define N_(String) String +/* Don't use gettext */ +#define _(String) String +#define gettext_noop(String) String +#define N_(String) String #endif /* XTRKCAD_USE_GETTEXT */ void InitGettext( void ); -- cgit v1.2.3