[glom] Add translatable strings from OnlineGlom



commit c3cefe607428a84bdf8de1b04e8bef6f70b04564
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Jan 30 10:02:54 2012 +0100

    Add translatable strings from OnlineGlom
    
    * glom/onlineglom_strings.cc:
    * Makefile.am:
    * po/POTFILES.in: Mention the new file.
    These strings are actually used here:
    http://gitorious.org/online-glom/gwt-glom/trees/master/src/main/resources/org/glom/web/client/ui
    and I must manually copy the translations across until I find a better way.

 ChangeLog                  |   11 +++++++++++
 Makefile_glom.am           |    1 +
 glom/onlineglom_strings.cc |   33 +++++++++++++++++++++++++++++++++
 po/POTFILES.in             |    1 +
 4 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cfeae0e..ac8d2a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2012-01-30  Murray Cumming  <murrayc murrayc com>
 
+	Add translatable strings from OnlineGlom
+
+	* glom/onlineglom_strings.cc:
+	* Makefile.am:
+	* po/POTFILES.in: Mention the new file.
+	These strings are actually used here:
+	http://gitorious.org/online-glom/gwt-glom/trees/master/src/main/resources/org/glom/web/client/ui
+	and I must manually copy the translations across until I find a better way.
+
+2012-01-30  Murray Cumming  <murrayc murrayc com>
+
 	Translatable: Remove unimplemented get_title_or_name_original().
 
 	* glom/libglom/data_structure/translatable_item.h: This 
diff --git a/Makefile_glom.am b/Makefile_glom.am
index 0c3adb3..291aad7 100644
--- a/Makefile_glom.am
+++ b/Makefile_glom.am
@@ -108,6 +108,7 @@ glom_source_files = \
 	glom/variablesmap.h						\
 	glom/window_boxholder.cc					\
 	glom/window_boxholder.h						\
+	glom/onlineglom_strings.cc \
 	glom/bakery/app.cc						\
 	glom/bakery/app.h						\
 	glom/bakery/app_withdoc.cc					\
diff --git a/glom/onlineglom_strings.cc b/glom/onlineglom_strings.cc
new file mode 100644
index 0000000..c083f78
--- /dev/null
+++ b/glom/onlineglom_strings.cc
@@ -0,0 +1,33 @@
+/* Glom
+ *
+ * Copyright (C) 2001-2010 Murray Cumming
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * 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.
+ */
+
+#include <glibmm/i18n.h>
+
+// These strings are not actually used by Glom.
+// I am putting them here so that GNOME's translators can translate them
+// without dealing with the awkward (not gettext) system here:
+// http://www.murrayc.com/blog/permalink/2012/01/27/online-glom-more-translation/
+// murrayc
+
+const char* online_glom_search = _("Search");
+const char* online_glom_backToList = _("Back to List");
+const char* online_glom_details = _("Details");
+const char* online_glom_open = _("Open");
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a957f25..082760b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -13,6 +13,7 @@ glom/filechooser_export.cc
 glom/frame_glom.cc
 glom/glade_utils.cc
 glom/utils_ui.cc
+glom/onlineglom_strings.cc
 glom/bakery/app.cc
 glom/bakery/app_withdoc_gtk.cc
 glom/bakery/app_withdoc.cc



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