[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [libosinfo 1/5] Add translation framework



From: "Zeeshan Ali (Khattak)" <zeeshanak gnome org>

---
 Makefile.am    | 28 +++++++++++++++++++++++++++-
 autogen.sh     |  1 +
 configure.ac   | 12 ++++++++++++
 po/LINGUAS     |  1 +
 po/POTFILES.in | 29 +++++++++++++++++++++++++++++
 5 files changed, 70 insertions(+), 1 deletion(-)
 create mode 100644 po/LINGUAS
 create mode 100644 po/POTFILES.in
 create mode 100644 po/POTFILES.skip

diff --git a/Makefile.am b/Makefile.am
index d605152..3d27bae 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,18 @@
 
-SUBDIRS = osinfo test data tools docs examples
+SUBDIRS = osinfo test data tools docs po examples
+
+INTLTOOL_FILES = \
+	intltool-extract.in \
+	intltool-merge.in \
+	intltool-update.in \
+	$(NULL)
+
+DISTCLEANFILES =				\
+	intltool-extract			\
+	intltool-merge				\
+	intltool-update				\
+	po/.intltool-merge-cache		\
+	$(NULL)
 
 EXTRA_DIST = \
   COPYING.LIB \
@@ -10,8 +23,21 @@ EXTRA_DIST = \
   cfg.mk \
   GNUmakefile \
   maint.mk \
+  $(INTLTOOL_FILES) \
   $(NULL)
 
+MAINTAINERCLEANFILES =				\
+	po/Makefile.in.in			\
+	po/Makevars.template			\
+	po/Rules-quot				\
+	po/boldquot.sed				\
+	po/en boldquot header			\
+	po/en quot header			\
+	po/insert-header.sin			\
+	po/quot.sed				\
+	po/remove-potcdate.sin			\
+	$(NULL)
+
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
 ACLOCAL_AMFLAGS = -I m4
diff --git a/autogen.sh b/autogen.sh
index b5997e6..3255713 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,3 +18,4 @@ which gnome-autogen.sh || {
 }
 
 ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-gtk-doc "$@"
+intltoolize -f
diff --git a/configure.ac b/configure.ac
index f021fb6..6f91b96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,17 @@ LIBOSINFO_COMPILE_WARNINGS
 GNOME_MAINTAINER_MODE_DEFINES
 AM_MAINTAINER_MODE([enable])
 
+# Initialize libtool
+LT_PREREQ([2.2])
+LT_INIT([disable-static])
+
+# i18 support
+IT_PROG_INTLTOOL(0.40.0)
+
+GETTEXT_PACKAGE=AC_PACKAGE_NAME
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
+
 # Autoconf 2.61a.99 and earlier don't support linking a file only
 # in VPATH builds.  But since GNUmakefile is for maintainer use
 # only, it does not matter if we skip the link with older autoconf.
@@ -180,5 +191,6 @@ AC_CONFIG_FILES([
 	docs/Makefile
 	docs/reference/Makefile
 	examples/Makefile
+        po/Makefile.in
 ])
 AC_OUTPUT
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..af407ee
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1 @@
+# Keep this list sorted alphabetically
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..88dfb7e
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,29 @@
+osinfo/osinfo_db.c
+osinfo/osinfo_deployment.c
+osinfo/osinfo_deploymentlist.c
+osinfo/osinfo_device.c
+osinfo/osinfo_devicelink.c
+osinfo/osinfo_devicelinkfilter.c
+osinfo/osinfo_devicelinklist.c
+osinfo/osinfo_devicelist.c
+osinfo/osinfo_entity.c
+osinfo/osinfo_filter.c
+osinfo/osinfo_install_config.c
+osinfo/osinfo_install_config_param.c
+osinfo/osinfo_install_script.c
+osinfo/osinfo_install_scriptlist.c
+osinfo/osinfo_list.c
+osinfo/osinfo_loader.c
+osinfo/osinfo_media.c
+osinfo/osinfo_medialist.c
+osinfo/osinfo_os.c
+osinfo/osinfo_oslist.c
+osinfo/osinfo_platform.c
+osinfo/osinfo_platformlist.c
+osinfo/osinfo_product.c
+osinfo/osinfo_productfilter.c
+osinfo/osinfo_productlist.c
+osinfo/osinfo_resources.c
+osinfo/osinfo_resourceslist.c
+osinfo/osinfo_tree.c
+osinfo/osinfo_treelist.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..e69de29
-- 
1.7.12.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]