[recipes] Also extract Notes for translation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Also extract Notes for translation
- Date: Mon, 20 Feb 2017 01:57:35 +0000 (UTC)
commit c4a1fccbcafdb4f73f92214693f7589fb8de2741
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 19 20:23:59 2017 -0500
Also extract Notes for translation
tools/recipe-extract.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/tools/recipe-extract.c b/tools/recipe-extract.c
index c5f5ee5..b7d94e6 100644
--- a/tools/recipe-extract.c
+++ b/tools/recipe-extract.c
@@ -87,6 +87,11 @@ main (int argc, char *argv[])
"Name",
"Description",
"Instructions",
+ "Notes",
+ NULL,
+ };
+ const char *optional_keys[] = {
+ "Notes",
NULL,
};
const char *chef_keys[] = {
@@ -161,7 +166,8 @@ main (int argc, char *argv[])
g_autofree char *s = NULL;
s = g_key_file_get_string (keyfile, groups[i], keys[j], &error);
if (!s) {
- g_printerr ("Failed to get key '%s' for group '%s': %s\n", keys[j],
groups[i], error->message);
+ if (!g_strv_contains (optional_keys, keys[j]))
+ g_printerr ("Failed to get key '%s' for group '%s': %s\n",
keys[j], groups[i], error->message);
g_clear_error (&error);
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]