[glom] Enable the test for dates in various locales.



commit d78988820e97ee903939c5dc90753b85c9c2eda6
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Nov 16 22:38:35 2011 +0100

    Enable the test for dates in various locales.
    
    * Makefile_tests.am:
    * tests/test_glom_date_in_locales.sh: I don't like requiring
    installation of these locales during make check, but I see no other
    way to stop the fixes from being lost by careless translators, at
    least of the major languages.

 ChangeLog                          |   10 ++++++++++
 Makefile_tests.am                  |    7 ++++++-
 tests/test_glom_date_in_locales.sh |   13 ++++++++++++-
 3 files changed, 28 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f2c66b4..9d83427 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2011-11-16  Murray Cumming  <murrayc murrayc com>
 
+	Enable the test for dates in various locales.
+
+	* Makefile_tests.am:
+	* tests/test_glom_date_in_locales.sh: I don't like requiring 
+	installation of these locales during make check, but I see no other
+	way to stop the fixes from being lost by careless translators, at 
+	least of the major languages.
+
+2011-11-16  Murray Cumming  <murrayc murrayc com>
+
 	List view: Stop unnecessary saving of column widths.
 
 	* glom/mode_data/db_adddel/db_adddel.[h|cc]: Do not handle changes 
diff --git a/Makefile_tests.am b/Makefile_tests.am
index 06a88af..876c6ab 100644
--- a/Makefile_tests.am
+++ b/Makefile_tests.am
@@ -15,6 +15,9 @@
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Note that test_glom_date_in_locales.sh requires us to have certain locales 
+# installed and configured.
+
 check_PROGRAMS =						\
 	glom/libglom/test_connectionpool			\
 	glom/libglom/example_document_load \
@@ -46,6 +49,7 @@ TESTS =	tests/test_document_load	\
 	tests/test_dtd_file_validation.sh \
 	tests/test_glade_file_validation.sh \
 	tests/test_xslt_file_validation.sh \
+	tests/test_glom_date_in_locales.sh \
 	tests/python/test_load_python_library \
 	tests/python/test_python_module \
 	tests/test_fake_connection \
@@ -67,7 +71,8 @@ TESTS =	tests/test_document_load	\
 dist_noinst_SCRIPTS = tests/test_dtd_file_validation.sh \
 	tests/test_glade_file_validation.sh \
 	tests/test_xslt_file_validation.sh \
-	tests/test_glade_toplevels_instantiation.sh
+	tests/test_glade_toplevels_instantiation.sh \
+	tests/test_glom_date_in_locales.sh
 
 #TESTS_ENVIRONMENT=which valgrind && valgrind --tool=memcheck --leak-check=full --leak-resolution=high --trace-children=yes --num-callers=30
 
diff --git a/tests/test_glom_date_in_locales.sh b/tests/test_glom_date_in_locales.sh
index e28ec95..d0a64f7 100755
--- a/tests/test_glom_date_in_locales.sh
+++ b/tests/test_glom_date_in_locales.sh
@@ -1,6 +1,17 @@
 #/bin/sh -e
 
-locales=("en_US.UTF-8" "en_GB.UTF-8" "en_CA.UTF-8" "de_DE.UTF-8" "fr_FR.UTF-8" "hu_HU.UTF-8")
+# This test checks that dates are presented and interpreted correctly.
+# That sometimes requires a translation of the %x date format in the .po file,
+# and that translation is often lost accidentally
+#
+# This test requires these locales to be installed and configured.
+# That might be a problem on some systems, so feel free to use a patch to edit this file or disable it altogether.
+#
+# These are chosen based on problems found previously,
+# and the ones with good translations shown here: http://l10n.gnome.org/module/glom/
+#TODO: Get a list from po/*.po ?
+#These are apparently not available on Fedora:  "da_DA.UTF-8" "cs_CZ.UTF-8" "nb_NO.UTF-8" "sv_SE.UTF-8"
+locales=("en_US.UTF-8" "en_GB.UTF-8" "en_CA.UTF-8" "de_DE.UTF-8" "es_ES.UTF-8" "fi_FI.UTF-8" "fr_FR.UTF-8" "hu_HU.UTF-8" "it_IT.UTF-8" "pt_PT.UTF-8" "pt_BR.UTF-8" "sl_SI.UTF-8")
 
 for x in "${locales[ ]}"
 do



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