[banshee/gtk3] build: add gettext-domain support to GSettingsSchemaExtractor



commit df646ddd33a3831648019f9e7617ab30418aebae
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Tue Dec 18 20:01:54 2012 +0000

    build: add gettext-domain support to GSettingsSchemaExtractor
    
    Otherwise the use of _ prefixed tags would not really work (i.e. <_summary>).

 build/GSettingsSchemaExtractor.cs      |    2 +-
 build/GSettingsSchemaExtractorTests.cs |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/build/GSettingsSchemaExtractor.cs b/build/GSettingsSchemaExtractor.cs
index e8a00d3..469a5de 100644
--- a/build/GSettingsSchemaExtractor.cs
+++ b/build/GSettingsSchemaExtractor.cs
@@ -139,7 +139,7 @@ public class GSettingsSchemaExtractorProgram
             type_attrib = "a" + type_attrib;
 
         StringBuilder builder = new StringBuilder ();
-        builder.AppendFormat ("  <schema id=\"{0}\" path=\"{1}\">\n", id, path);
+        builder.AppendFormat ("  <schema id=\"{0}\" path=\"{1}\" gettext-domain=\"banshee\">\n", id, path);
         builder.AppendFormat ("    <key name=\"{0}\" type=\"{1}\">\n", key, type_attrib);
         builder.AppendFormat ("      <default>{0}</default>\n", str_val);
         builder.AppendFormat ("      <_summary>{0}</_summary>\n", summary);
diff --git a/build/GSettingsSchemaExtractorTests.cs b/build/GSettingsSchemaExtractorTests.cs
index eca7490..1c5aadd 100644
--- a/build/GSettingsSchemaExtractorTests.cs
+++ b/build/GSettingsSchemaExtractorTests.cs
@@ -53,7 +53,7 @@ namespace GSettingsSchemaExtractor
             Assert.That (result, Is.Not.Null);
             Assert.That (result.ToString ().Trim (), Is.EqualTo (@"
 <schemalist>
-  <schema id=""org.gnome.banshee.player_window"" path=""/apps/banshee/player_window/"">
+  <schema id=""org.gnome.banshee.player_window"" path=""/apps/banshee/player_window/"" gettext-domain=""banshee"">
     <key name=""default_export_format"" type=""s"">
       <default>'m3u'</default>
       <_summary>Export Format</_summary>
@@ -83,7 +83,7 @@ namespace GSettingsSchemaExtractor
             Assert.That (result, Is.Not.Null);
             Assert.That (result.ToString ().Trim (), Is.EqualTo (@"
 <schemalist>
-  <schema id=""org.gnome.banshee.import"" path=""/apps/banshee/import/"">
+  <schema id=""org.gnome.banshee.import"" path=""/apps/banshee/import/"" gettext-domain=""banshee"">
     <key name=""show_initial_import_dialog"" type=""b"">
       <default>true</default>
       <_summary>Show the Initial Import Dialog</_summary>
@@ -111,7 +111,7 @@ namespace GSettingsSchemaExtractor
             Assert.That (result, Is.Not.Null);
             Assert.That (result.ToString ().Trim (), Is.EqualTo (@"
 <schemalist>
-  <schema id=""org.gnome.banshee.player_engine"" path=""/apps/banshee/player_engine/"">
+  <schema id=""org.gnome.banshee.player_engine"" path=""/apps/banshee/player_engine/"" gettext-domain=""banshee"">
     <key name=""volume"" type=""i"">
       <default>80</default>
       <_summary>Volume</_summary>
@@ -139,7 +139,7 @@ namespace GSettingsSchemaExtractor
             Assert.That (result, Is.Not.Null);
             Assert.That (result.ToString ().Trim (), Is.EqualTo (@"
 <schemalist>
-  <schema id=""org.gnome.banshee.player_window"" path=""/apps/banshee/player_window/"">
+  <schema id=""org.gnome.banshee.player_window"" path=""/apps/banshee/player_window/"" gettext-domain=""banshee"">
     <key name=""cover_art_size"" type=""d"">
       <default>20.5</default>
       <_summary>Cover art size</_summary>
@@ -167,7 +167,7 @@ namespace GSettingsSchemaExtractor
             Assert.That (result, Is.Not.Null);
             Assert.That (result.ToString ().Trim (), Is.EqualTo (@"
 <schemalist>
-  <schema id=""org.gnome.banshee.sources.fsq"" path=""/apps/banshee/sources/fsq/"">
+  <schema id=""org.gnome.banshee.sources.fsq"" path=""/apps/banshee/sources/fsq/"" gettext-domain=""banshee"">
     <key name=""current_filters"" type=""as"">
       <default>['album','artist']</default>
       <_summary></_summary>



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