[glib] tests: Fix gschema-compile test for translatable string changes



commit ad9d5a11f2496d931036c0a507b5e789c5432e5f
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Aug 3 16:32:42 2017 +0100

    tests: Fix gschema-compile test for translatable string changes
    
    Little did I know when making commit
    c257757cf6774974cf15370ccf09fad7ee855668 that a lot of the output of
    glib-compile-schemas is string matched in some of the unit tests. Fix
    them to match the updated strings.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695573

 gio/tests/gschema-compile.c |   46 +++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/gio/tests/gschema-compile.c b/gio/tests/gschema-compile.c
index 79eab97..40a396d 100644
--- a/gio/tests/gschema-compile.c
+++ b/gio/tests/gschema-compile.c
@@ -62,7 +62,7 @@ static const SchemaTest tests[] = {
   { "missing-quotes",               NULL, "*unknown keyword*"                                   },
   { "incomplete-list",              NULL, "*to follow array element*"                           },
   { "wrong-category",               NULL, "*unsupported l10n category*"                         },
-  { "bad-type",                     NULL, "*invalid GVariant type string*"                      },
+  { "bad-type",                     NULL, "*Invalid GVariant type string*"                      },
   { "overflow",                     NULL, "*out of range*"                                      },
   { "range-wrong-type",             NULL, "*<range> not allowed for keys of type*"              },
   { "range-missing-min",            NULL, NULL                                                  },
@@ -70,41 +70,41 @@ static const SchemaTest tests[] = {
   { "default-out-of-range",         NULL, "*<default> is not contained in the specified range*" },
   { "choices-wrong-type",           NULL, "*<choices> not allowed for keys of type*"            },
   { "choice-missing-value",         NULL, "*element 'choice' requires attribute 'value'*"       },
-  { "default-not-in-choices",       NULL, "*<default> contains string not in <choices>*"        },
-  { "array-default-not-in-choices", NULL, "*<default> contains string not in <choices>*"        },
-  { "bad-key",                      NULL, "*invalid name*"                                      },
+  { "default-not-in-choices",       NULL, "*<default> contains a string not in <choices>*"        },
+  { "array-default-not-in-choices", NULL, "*<default> contains a string not in <choices>*"        },
+  { "bad-key",                      NULL, "*Invalid name*"                                      },
   { "invalid-path",                 NULL, "*must begin and end with a slash*"                   },
   { "bad-key",                      "--allow-any-name", NULL                                    },
-  { "bad-key2",                     NULL, "*invalid name*"                                      },
+  { "bad-key2",                     NULL, "*Invalid name*"                                      },
   { "bad-key2",                     "--allow-any-name", NULL                                    },
-  { "bad-key3",                     NULL, "*invalid name*"                                      },
+  { "bad-key3",                     NULL, "*Invalid name*"                                      },
   { "bad-key3",                     "--allow-any-name", NULL                                    },
-  { "bad-key4",                     NULL, "*invalid name*"                                      },
+  { "bad-key4",                     NULL, "*Invalid name*"                                      },
   { "bad-key4",                     "--allow-any-name", NULL                                    },
-  { "empty-key",                    NULL, "*empty names*"                                       },
-  { "empty-key",                    "--allow-any-name", "*empty names*"                         },
+  { "empty-key",                    NULL, "*Empty names*"                                       },
+  { "empty-key",                    "--allow-any-name", "*Empty names*"                         },
   { "enum",                         NULL, NULL                                                  },
   { "enum-with-aliases",            NULL, NULL                                                  },
-  { "enum-with-invalid-alias",      NULL, "*'banger' is not in enumerated type*"                },
+  { "enum-with-invalid-alias",      NULL, "*“banger” is not in enumerated type*"                },
   { "enum-with-repeated-alias",     NULL, "*<alias value='sausages'/> already specified*"       },
   { "enum-with-repeated-nick",      NULL, "*<value nick='spam'/> already specified*"            },
   { "enum-with-repeated-value",     NULL, "*value='1' already specified*"                       },
-  { "enum-with-chained-alias",      NULL, "*'sausages' is not in enumerated type*"              },
-  { "enum-with-shadow-alias",       NULL, "*'mash' is already a member of the enum*"            },
+  { "enum-with-chained-alias",      NULL, "*“sausages” is not in enumerated type*"              },
+  { "enum-with-shadow-alias",       NULL, "*“mash” is already a member of the enum*"            },
   { "enum-with-choice",             NULL, "*<choices> cannot be specified*"                     },
   { "enum-with-bad-default",        NULL, "*<default> is not a valid member*"                   },
   { "choice",                       NULL, NULL                                                  },
   { "choice-upside-down",           NULL, NULL                                                  },
-  { "bad-choice",                   NULL, "*<default> contains string not in <choices>*"        },
-  { "choice-bad",                   NULL, "*<default> contains string not in <choices>*"        },
-  { "choice-badtype",               NULL, "*<choices> not allowed for keys of type 'i'*"        },
+  { "bad-choice",                   NULL, "*<default> contains a string not in <choices>*"        },
+  { "choice-bad",                   NULL, "*<default> contains a string not in <choices>*"        },
+  { "choice-badtype",               NULL, "*<choices> not allowed for keys of type “i”*"        },
   { "bare-alias",                   NULL, "*enumerated or flags types or after <choices>*"      },
   { "choice-alias",                 NULL, NULL                                                  },
-  { "default-in-aliases",           NULL, "*<default> contains string not in <choices>*"        },
-  { "choice-invalid-alias",         NULL, "*'befor' is not in <choices>*"                       },
+  { "default-in-aliases",           NULL, "*<default> contains a string not in <choices>*"        },
+  { "choice-invalid-alias",         NULL, "*“befor” is not in <choices>*"                       },
   { "choice-shadowed-alias",        NULL, "*given when <choice value='before'/> was already*"   },
   { "range",                        NULL, NULL                                                  },
-  { "range-badtype",                NULL, "*<range> not allowed for keys of type 's'*"          },
+  { "range-badtype",                NULL, "*<range> not allowed for keys of type “s”*"          },
   { "range-low-default",            NULL, "*<default> is not contained in the specified range*" },
   { "range-high-default",           NULL, "*<default> is not contained in the specified range*" },
   { "range-default-low",            NULL, "*<default> is not contained in the specified range*" },
@@ -115,15 +115,15 @@ static const SchemaTest tests[] = {
   { "extend-missing",               NULL, "*extends not yet existing schema*"                   },
   { "extend-nonlist",               NULL, "*which is not a list*"                               },
   { "extend-self",                  NULL, "*not yet existing*"                                  },
-  { "extend-wrong-list-indirect",   NULL, "*'y' does not extend 'x'*"                           },
-  { "extend-wrong-list",            NULL, "*'y' does not extend 'x'*"                           },
-  { "key-in-list-indirect",         NULL, "*cannot add keys to a 'list*"                        },
-  { "key-in-list",                  NULL, "*cannot add keys to a 'list*"                        },
+  { "extend-wrong-list-indirect",   NULL, "*“y” does not extend “x”*"                           },
+  { "extend-wrong-list",            NULL, "*“y” does not extend “x”*"                           },
+  { "key-in-list-indirect",         NULL, "*Cannot add keys to a “list*"                        },
+  { "key-in-list",                  NULL, "*Cannot add keys to a “list*"                        },
   { "list-of-missing",              NULL, "*is list of not yet existing schema*"                },
   { "extend-and-shadow",            NULL, "*shadows*use <override>*"                            },
   { "extend-and-shadow-indirect",   NULL, "*shadows*use <override>*"                            },
   { "override",                     NULL, NULL                                                  },
-  { "override-missing",             NULL, "*no <key name='bar'> to override*"                   },
+  { "override-missing",             NULL, "*No <key name='bar'> to override*"                   },
   { "override-range-error",         NULL, "*<override> is not contained in the specified range*"},
   { "override-then-key",            NULL, "*shadows <key name='foo'> in <schema id='base'>*"    },
   { "override-twice",               NULL, "*<override name='foo'> already specified*"           },


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