diff options
author | Brian Cameron <bcameron@src.gnome.org> | 2007-06-04 08:50:13 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2007-06-04 08:50:13 +0000 |
commit | 58021e6f28254a14fb6bd6c9265207882d4d001a (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /utils/gdmtranslate.c | |
parent | 1e9ddf8e82360eb68cddc098711c5653c0cefb44 (diff) | |
download | gdm-GDM2_2_19_2_svn4961.tar.gz |
Remove bad tag.GDM2_2_19_2_svn4961
svn path=/tags/GDM2_2_19_2; revision=4960
Diffstat (limited to 'utils/gdmtranslate.c')
-rw-r--r-- | utils/gdmtranslate.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/utils/gdmtranslate.c b/utils/gdmtranslate.c deleted file mode 100644 index 03814919..00000000 --- a/utils/gdmtranslate.c +++ /dev/null @@ -1,51 +0,0 @@ -#include "config.h" -#include <stdio.h> -#include <locale.h> -#include <string.h> -#include <stdlib.h> - -#define gboolean char -#define FALSE 0 -#define TRUE 1 - -#ifdef ENABLE_NLS -#include <libintl.h> -#define _(String) gettext(String) -#else /* !ENABLE_NLS */ -#define _(String) (String) -#endif - -int -main (int argc, char *argv[]) -{ - char *string; - gboolean is_utf8 = FALSE; - - if (argc == 3 && - strcmp (argv[1], "--utf8") == 0) { - string = argv[2]; - is_utf8 = TRUE; - } else if (argc == 2) { - string = argv[1]; - is_utf8 = FALSE; - } else { - fprintf (stderr, "usage: gdmtranslate [--utf8] <string to translate>\n"); - return 0; - } - - if (getenv ("UNSAFE_TO_TRANSLATE") != NULL && - strcmp (getenv ("UNSAFE_TO_TRANSLATE"), "yes") == 0) { - printf ("%s\n", string); - return 0; - } - - setlocale (LC_ALL, ""); - bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); - if (is_utf8) - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); - - printf ("%s\n", _(string)); - - return 0; -} |