cGit-UI for Git Repositories

cGit-UI – is a web interface for Git Repositories. cGit CGI script is writen in C and therefore it's fast enough

12 Commits   0 Branches   1 Tag
Index: nls.h
===================================================================
--- nls.h	(nonexistent)
+++ nls.h	(revision 5)
@@ -0,0 +1,32 @@
+
+#ifndef __SUPPORT_NLS__
+#define __SUPPORT_NLS__   1
+
+#if ENABLE_NLS == 1
+
+#ifndef _
+#  include <gettext.h>
+#  ifndef _
+#    define _(s)         gettext(s)
+#  endif
+#  ifdef gettext_noop
+#    define N_(s)        gettext_noop(s)
+#  else
+#    define N_(s)        (s)
+#  endif
+#  ifdef ngettext
+#    define Q_(s, p, n)  ngettext( s, p, n )
+#  else
+#    define Q_(s, p, n)  ((n==1) ? gettext(s) : gettext(p))
+#  endif
+#endif /* !_ */
+
+#else
+
+#  define _(s)           (s)
+#  define N_(s)          (s)
+#  define Q_(s, p, n)    ((n == 1) ? (s) : (p))
+
+#endif
+
+#endif /* __SUPPORT_NLS__ */