aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-28 12:04:48 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-28 12:04:48 +0200
commit390f2207ab409889065723908f634d5f43b8a976 (patch)
tree9e3f1ca468fe9e2b8c3ccd933602fb2d088bf399
parentc291bea80bd9a7320b1ee6b966d15abcea3d2d48 (diff)
downloadanastasis-gtk-390f2207ab409889065723908f634d5f43b8a976.tar.gz
anastasis-gtk-390f2207ab409889065723908f634d5f43b8a976.zip
fix #7225: change way we do i18n for contrib/ resource files
-rw-r--r--po/POTFILES.in1
-rw-r--r--src/anastasis/anastasis-gtk_action.c23
-rw-r--r--src/anastasis/anastasis-gtk_handle-print.c7
3 files changed, 16 insertions, 15 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b7275ee..70a2b7f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -17,7 +17,6 @@ src/anastasis/anastasis-gtk_handle-core-secret-changed.c
17src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c 17src/anastasis/anastasis-gtk_handle-core-secret-name-changed.c
18src/anastasis/anastasis-gtk_handle-country-activated.c 18src/anastasis/anastasis-gtk_handle-country-activated.c
19src/anastasis/anastasis-gtk_handle-country-unselected.c 19src/anastasis/anastasis-gtk_handle-country-unselected.c
20src/anastasis/anastasis-gtk_handle-currency-changed.c
21src/anastasis/anastasis-gtk_handle-expiration-change.c 20src/anastasis/anastasis-gtk_handle-expiration-change.c
22src/anastasis/anastasis-gtk_handle-identity-changed.c 21src/anastasis/anastasis-gtk_handle-identity-changed.c
23src/anastasis/anastasis-gtk_handle-main-window-back-clicked.c 22src/anastasis/anastasis-gtk_handle-main-window-back-clicked.c
diff --git a/src/anastasis/anastasis-gtk_action.c b/src/anastasis/anastasis-gtk_action.c
index 2bce9b2..05a4a86 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -132,12 +132,9 @@ action_continent_selecting (void)
132 continent) 132 continent)
133 { 133 {
134 const char *name; 134 const char *name;
135 const char *name_i18n;
136 struct GNUNET_JSON_Specification spec[] = { 135 struct GNUNET_JSON_Specification spec[] = {
137 GNUNET_JSON_spec_string ("name", 136 GNUNET_JSON_spec_string ("name",
138 &name), 137 &name),
139 TALER_JSON_spec_i18n_str ("name",
140 &name_i18n),
141 GNUNET_JSON_spec_end () 138 GNUNET_JSON_spec_end ()
142 }; 139 };
143 140
@@ -157,7 +154,8 @@ action_continent_selecting (void)
157 AG_CMC_CONTINENT_NAME, 154 AG_CMC_CONTINENT_NAME,
158 name, 155 name,
159 AG_CMC_CONTINENT_NAME_I18N, 156 AG_CMC_CONTINENT_NAME_I18N,
160 name_i18n, 157 dgettext ("anastasis",
158 name),
161 -1); 159 -1);
162 GNUNET_JSON_parse_free (spec); 160 GNUNET_JSON_parse_free (spec);
163 } 161 }
@@ -217,8 +215,8 @@ action_country_selecting (void)
217 struct GNUNET_JSON_Specification spec[] = { 215 struct GNUNET_JSON_Specification spec[] = {
218 GNUNET_JSON_spec_string ("code", 216 GNUNET_JSON_spec_string ("code",
219 &code), 217 &code),
220 TALER_JSON_spec_i18n_str ("name", 218 GNUNET_JSON_spec_string ("name",
221 &name), 219 &name),
222 GNUNET_JSON_spec_end () 220 GNUNET_JSON_spec_end ()
223 }; 221 };
224 222
@@ -237,7 +235,8 @@ action_country_selecting (void)
237 &iter, 235 &iter,
238 -1, 236 -1,
239 AG_CCMC_COUNTRY_NAME, 237 AG_CCMC_COUNTRY_NAME,
240 name, 238 dgettext ("anastasis",
239 name),
241 AG_CCMC_COUNTRY_CODE, 240 AG_CCMC_COUNTRY_CODE,
242 code, 241 code,
243 -1); 242 -1);
@@ -537,8 +536,8 @@ action_user_attributes_collecting (void)
537 GNUNET_JSON_spec_string ("name", 536 GNUNET_JSON_spec_string ("name",
538 &attr_name), 537 &attr_name),
539 GNUNET_JSON_spec_mark_optional ( 538 GNUNET_JSON_spec_mark_optional (
540 TALER_JSON_spec_i18n_str ("label", 539 GNUNET_JSON_spec_string ("label",
541 &attr_label), 540 &attr_label),
542 NULL), 541 NULL),
543 GNUNET_JSON_spec_end () 542 GNUNET_JSON_spec_end ()
544 }; 543 };
@@ -571,9 +570,11 @@ action_user_attributes_collecting (void)
571 if (optional) 570 if (optional)
572 GNUNET_asprintf (&l, 571 GNUNET_asprintf (&l,
573 _ ("%s (optional)"), 572 _ ("%s (optional)"),
574 attr_label); 573 dgettext ("anastasis",
574 attr_label));
575 else 575 else
576 l = GNUNET_strdup (attr_label); 576 l = GNUNET_strdup (dgettext ("anastasis",
577 attr_label));
577 if ( (NULL != widget_name) && 578 if ( (NULL != widget_name) &&
578 (NULL != w) ) 579 (NULL != w) )
579 { 580 {
diff --git a/src/anastasis/anastasis-gtk_handle-print.c b/src/anastasis/anastasis-gtk_handle-print.c
index 6702dfc..c235ce2 100644
--- a/src/anastasis/anastasis-gtk_handle-print.c
+++ b/src/anastasis/anastasis-gtk_handle-print.c
@@ -87,8 +87,8 @@ print_to_file (GtkWindow *parent_window,
87 { 87 {
88 const char *tkey; 88 const char *tkey;
89 struct GNUNET_JSON_Specification spec[] = { 89 struct GNUNET_JSON_Specification spec[] = {
90 TALER_JSON_spec_i18n_str ("label", 90 GNUNET_JSON_spec_string ("label",
91 &tkey), 91 &tkey),
92 GNUNET_JSON_spec_end () 92 GNUNET_JSON_spec_end ()
93 }; 93 };
94 94
@@ -103,7 +103,8 @@ print_to_file (GtkWindow *parent_window,
103 found = true; 103 found = true;
104 GNUNET_break (0 == 104 GNUNET_break (0 ==
105 json_object_set (uattrs, 105 json_object_set (uattrs,
106 tkey, 106 dgettext ("anastasis",
107 tkey),
107 av)); 108 av));
108 } 109 }
109 } 110 }