Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2008-06-23 18:53:02 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2008-06-23 18:53:02 (GMT)
commit2552a8bfd89625d151e86318210fb61cb8926b08 (patch)
tree122f260796e691ad1272c600ab9fee93fa41338e
parentd26e8315ac72de42d7f3c6a3824e2136be17d619 (diff)
Add i18n support
-rw-r--r--configure.ac9
-rw-r--r--po/POTFILES.in1
-rw-r--r--po/sugar-base.pot37
-rw-r--r--src/sugar/__init__.py2
4 files changed, 48 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e1b058b..c6a94cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,15 @@ AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
PKG_CHECK_MODULES(EXTENSION, pygobject-2.0)
+# Setup GETTEXT
+#
+ALL_LINGUAS=""
+GETTEXT_PACKAGE=sugar-base
+AC_PROG_INTLTOOL([0.33])
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
+AM_GLIB_GNU_GETTEXT
+
AC_OUTPUT([
Makefile
src/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..fde2eee
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1 @@
+src/sugar/mime.py
diff --git a/po/sugar-base.pot b/po/sugar-base.pot
new file mode 100644
index 0000000..21c2ab1
--- /dev/null
+++ b/po/sugar-base.pot
@@ -0,0 +1,37 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-06-24 00:21+0530\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../src/sugar/mime.py:29
+msgid "Text"
+msgstr ""
+
+#: ../src/sugar/mime.py:37
+msgid "Image"
+msgstr ""
+
+#: ../src/sugar/mime.py:42
+msgid "Audio"
+msgstr ""
+
+#: ../src/sugar/mime.py:47
+msgid "Video"
+msgstr ""
+
+#: ../src/sugar/mime.py:52
+msgid "Link"
+msgstr ""
diff --git a/src/sugar/__init__.py b/src/sugar/__init__.py
index 9be4404..e915b38 100644
--- a/src/sugar/__init__.py
+++ b/src/sugar/__init__.py
@@ -26,5 +26,5 @@ else:
locale_path = os.path.join(prefix, 'share', 'locale')
-gettext.bindtextdomain('sugar', locale_path)
+gettext.bindtextdomain('sugar-base', locale_path)