[glom] Default to en rather than en_US for the original locale.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Default to en rather than en_US for the original locale.
- Date: Wed, 18 Jan 2012 07:57:22 +0000 (UTC)
commit cdfc3d5a9a7e2d352a79c5035295c902d3630466
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Jan 18 08:57:01 2012 +0100
Default to en rather than en_US for the original locale.
* glom/application.cc: get_original_locale(): Default to en rather than en_US.
* examples/*.glom: Change the original locale from en_US to en.
ChangeLog | 7 +++++++
examples/example_film_manager.glom | 2 +-
examples/example_lesson_planner.glom | 2 +-
examples/example_music_collection.glom | 2 +-
examples/example_project_manager.glom | 2 +-
examples/example_smallbusiness.glom | 2 +-
.../test_sqlite_music/test_sqlite_music.glom | 2 +-
examples/tests/example_field_formatting_test.glom | 2 +-
glom/application.cc | 3 ++-
9 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a032913..d939483 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-01-18 Murray Cumming <murrayc murrayc com>
+
+ Default to en rather than en_US for the original locale.
+
+ * glom/application.cc: get_original_locale(): Default to en rather than en_US.
+ * examples/*.glom: Change the original locale from en_US to en.
+
1.21.3:
2012-01-16 Murray Cumming <murrayc murrayc com>
diff --git a/examples/example_film_manager.glom b/examples/example_film_manager.glom
index d6fea4c..2cc9f30 100644
--- a/examples/example_film_manager.glom
+++ b/examples/example_film_manager.glom
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<glom_document xmlns="http://glom.org/glom_document" database_title="Openismus Film Manager" is_example="true" translation_original_locale="en_US" format_version="7">
+<glom_document xmlns="http://glom.org/glom_document" database_title="Openismus Film Manager" is_example="true" translation_original_locale="en" format_version="7">
<connection server="localhost" user="" database="glom_film_production_manager" self_hosted="true" port="5435" try_other_ports="false" hosting_mode="postgres_self"/>
<table name="accommodation" title="Accommodation">
<example_rows/>
diff --git a/examples/example_lesson_planner.glom b/examples/example_lesson_planner.glom
index 7e115a0..ad38602 100644
--- a/examples/example_lesson_planner.glom
+++ b/examples/example_lesson_planner.glom
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<glom_document xmlns="http://glom.org/glom_document" database_title="Lesson Planner" is_example="true" translation_original_locale="en_US" format_version="7">
+<glom_document xmlns="http://glom.org/glom_document" database_title="Lesson Planner" is_example="true" translation_original_locale="en" format_version="7">
<connection server="localhost" user="" database="glom_example_lessonplanner_v2" self_hosted="true" port="5433" try_other_ports="false" hosting_mode="postgres_self"/>
<table name="invoice_lines" hidden="true">
<example_rows>
diff --git a/examples/example_music_collection.glom b/examples/example_music_collection.glom
index 6051a1c..e116fc3 100644
--- a/examples/example_music_collection.glom
+++ b/examples/example_music_collection.glom
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<glom_document xmlns="http://glom.org/glom_document" translation_original_locale="en_US" database_title="Music Collection" is_example="true" format_version="7">
+<glom_document xmlns="http://glom.org/glom_document" translation_original_locale="en" database_title="Music Collection" is_example="true" format_version="7">
<connection server="localhost" database="glom_musiccollection211" port="5433" self_hosted="true" try_other_ports="false" hosting_mode="postgres_self"/>
<table name="albums" overview_x="15" overview_y="9" title="Albums">
<example_rows>
diff --git a/examples/example_project_manager.glom b/examples/example_project_manager.glom
index e9a3681..957eb27 100644
--- a/examples/example_project_manager.glom
+++ b/examples/example_project_manager.glom
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<glom_document xmlns="http://glom.org/glom_document" database_title="Project Manager Example" is_example="true" translation_original_locale="en_US" format_version="7">
+<glom_document xmlns="http://glom.org/glom_document" database_title="Project Manager Example" is_example="true" translation_original_locale="en" format_version="7">
<connection server="localhost" user="" database="glom_example_project_manager_v3" self_hosted="true" port="5433" try_other_ports="false" hosting_mode="postgres_self"/>
<table name="contacts" title="Contacts">
<example_rows>
diff --git a/examples/example_smallbusiness.glom b/examples/example_smallbusiness.glom
index 167ab4d..d7eaa01 100644
--- a/examples/example_smallbusiness.glom
+++ b/examples/example_smallbusiness.glom
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<glom_document xmlns="http://glom.org/glom_document" database_title="Small Business Example" is_example="true" translation_original_locale="en_US" format_version="7">
+<glom_document xmlns="http://glom.org/glom_document" database_title="Small Business Example" is_example="true" translation_original_locale="en" format_version="7">
<connection server="localhost" user="" database="glom_example_smallbusiness_v2" self_hosted="true" port="5433" try_other_ports="false" hosting_mode="postgres_self"/>
<startup_script/>
<table name="contacts" default="true" title="Contacts">
diff --git a/examples/sqlite/test_sqlite_music/test_sqlite_music.glom b/examples/sqlite/test_sqlite_music/test_sqlite_music.glom
index cd2dc4f..805689f 100644
--- a/examples/sqlite/test_sqlite_music/test_sqlite_music.glom
+++ b/examples/sqlite/test_sqlite_music/test_sqlite_music.glom
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<glom_document xmlns="http://glom.org/glom_document" translation_original_locale="en_US" database_title="Music Collection" is_example="false" format_version="4">
+<glom_document xmlns="http://glom.org/glom_document" translation_original_locale="en" database_title="Music Collection" is_example="false" format_version="4">
<connection server="localhost" database="glom_musiccollection21" port="0" self_hosted="true" try_other_ports="true" hosting_mode="sqlite"/>
<table name="albums" overview_x="15" overview_y="9" title="Albums">
<fields>
diff --git a/examples/tests/example_field_formatting_test.glom b/examples/tests/example_field_formatting_test.glom
index 3e6df49..9f65208 100644
--- a/examples/tests/example_field_formatting_test.glom
+++ b/examples/tests/example_field_formatting_test.glom
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<glom_document xmlns="http://glom.org/glom_document" format_version="6" translation_original_locale="en_CA" database_title="Field Formatting Test" is_example="true">
+<glom_document xmlns="http://glom.org/glom_document" format_version="6" translation_original_locale="en" database_title="Field Formatting Test" is_example="true">
<connection hosting_mode="postgres_central" server="localhost" try_other_ports="false" database="glom_field_formatting_test" port="5432"/>
<table name="alignment" title="Alignment">
<example_rows>
diff --git a/glom/application.cc b/glom/application.cc
index dd478bc..7ea1c91 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -2869,8 +2869,9 @@ void Application::set_original_locale(const Glib::ustring& locale)
Glib::ustring Application::get_original_locale()
{
+ //Default to English:
if(m_original_locale.empty())
- m_original_locale = "en_US"; //"en_US.UTF-8";
+ m_original_locale = "en";
return m_original_locale;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]