[glom] Update a test for the newer translations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Update a test for the newer translations.
- Date: Sun, 11 Nov 2012 06:48:37 +0000 (UTC)
commit eafb07c2922f0bb49741eef6b272990ef635db9e
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Nov 11 07:48:26 2012 +0100
Update a test for the newer translations.
* tests/test_document_load_translations.cc: Increase the number
of expected translation locales and adapt to us having a
(mostly useless) en_GB translation.
ChangeLog | 8 ++++++++
tests/test_document_load_translations.cc | 3 +--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c398cbf..6da95a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-11-10 Murray Cumming <murrayc murrayc com>
+
+ Update a test for the newer translations.
+
+ * tests/test_document_load_translations.cc: Increase the number
+ of expected translation locales and adapt to us having a
+ (mostly useless) en_GB translation.
+
2012-11-08 Murray Cumming <murrayc murrayc com>
Import example .po translations into the examples.
diff --git a/tests/test_document_load_translations.cc b/tests/test_document_load_translations.cc
index b29addb..17c54e0 100644
--- a/tests/test_document_load_translations.cc
+++ b/tests/test_document_load_translations.cc
@@ -196,7 +196,6 @@ void check_title(const T_Item& item, const char* title_en, const char* title_de)
//Check that fallbacks do not happen when we don't want them:
g_assert( item->get_title_translation(Glib::ustring(), false) == Glib::ustring() );
g_assert( item->get_title_translation("en_US", false) == Glib::ustring() );
- g_assert( item->get_title_translation("en_GB", false) == Glib::ustring() );
g_assert( item->get_title_translation("de_AU", false) == Glib::ustring() );
}
}
@@ -243,7 +242,7 @@ int main()
}
const std::vector<Glib::ustring> locales = document.get_translation_available_locales();
- g_assert(locales.size() == 9);
+ g_assert(locales.size() == 12);
g_assert(contains(locales, "de"));
const std::vector<Glib::ustring> table_names = document.get_table_names();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]