diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-05 18:40:23 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-05 18:40:23 +0200 |
commit | 004a7c9d5447de29972af560765791066c198226 (patch) | |
tree | d9f6f05b7fcc8122ee6561cc083090865766fe85 /src/json | |
parent | 99fff4f98fd02dc14b4c18ba9fb05816979f0e5f (diff) | |
download | exchange-004a7c9d5447de29972af560765791066c198226.tar.xz |
implement convenience function to extract i18n values from JSON (for #6749)
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index f30705883..2a9b01a75 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -493,4 +493,14 @@ TALER_JSON_spec_i18n_string (const char *name, } +struct GNUNET_JSON_Specification +TALER_JSON_spec_i18n_str (const char *name, + const char **strptr) +{ + return TALER_JSON_spec_i18n_string (name, + getenv ("LANG"), + strptr); +} + + /* end of json/json_helper.c */ |