From 3134bc432bf127e952bce8ae27301c3106f7d9ae Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 28 Jun 2017 17:25:35 +0900 Subject: [PATCH] Improve editor messages (jsonata.json and messages.json) (#1299) * Modify typo and improve messages in jsonata.json * Change csv to CSV(messages.json) --- nodes/core/locales/en-US/messages.json | 4 ++-- red/api/locales/en-US/jsonata.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nodes/core/locales/en-US/messages.json b/nodes/core/locales/en-US/messages.json index e2c34c29b..1691b7644 100644 --- a/nodes/core/locales/en-US/messages.json +++ b/nodes/core/locales/en-US/messages.json @@ -620,8 +620,8 @@ "windows": "Windows (\\r\\n)" }, "errors": { - "csv_js": "This node only handles csv strings or js objects.", - "obj_csv": "No columns template specified for object -> csv." + "csv_js": "This node only handles CSV strings or js objects.", + "obj_csv": "No columns template specified for object -> CSV." } }, "html": { diff --git a/red/api/locales/en-US/jsonata.json b/red/api/locales/en-US/jsonata.json index 4065f814a..2836b3dfa 100644 --- a/red/api/locales/en-US/jsonata.json +++ b/red/api/locales/en-US/jsonata.json @@ -49,7 +49,7 @@ }, "$replace": { "args": "str, pattern, replacement [, limit]", - "desc": "Finds occurrences of `pattern` within `str` and replaces them with `replacement`. " + "desc": "Finds occurrences of `pattern` within `str` and replaces them with `replacement`.\n\nThe optional `limit` parameter is the maximum number of replacements." }, "$now": { "args":"", @@ -57,7 +57,7 @@ }, "$base64encode": { "args":"string", - "desc":"Converts an ASCII string to a base 64 representation. Each each character in the string is treated as a byte of binary data. This requires that all characters in the string are in the 0x00 to 0xFF range, which includes all characters in URI encoded strings. Unicode characters outside of that range are not supported." + "desc":"Converts an ASCII string to a base 64 representation. Each character in the string is treated as a byte of binary data. This requires that all characters in the string are in the 0x00 to 0xFF range, which includes all characters in URI encoded strings. Unicode characters outside of that range are not supported." }, "$base64decode": { "args":"string", @@ -162,7 +162,7 @@ }, "$sift": { "args":"object, function", - "desc":"Returns an object that contains only the key/value pairs from the `object` parameter that satisfy the predicate `function` passed in as the second parameter.\n\nThe function that is supplied as the second parameter must have the following signature:\n\n`function(value [, key [, object]])`" + "desc":"Returns an object that contains only the key/value pairs from the `object` parameter that satisfy the predicate `function` passed in as the second parameter.\n\nThe `function` that is supplied as the second parameter must have the following signature:\n\n`function(value [, key [, object]])`" }, "$each": { "args":"object, function", @@ -174,11 +174,11 @@ }, "$filter": { "args":"array, function", - "desc":"Returns an array containing only the values in the array parameter that satisfy the `function` predicate.\n\nThe function that is supplied as the second parameter must have the following signature:\n\n`function(value [, index [, array]])`" + "desc":"Returns an array containing only the values in the `array` parameter that satisfy the `function` predicate.\n\nThe `function` that is supplied as the second parameter must have the following signature:\n\n`function(value [, index [, array]])`" }, "$reduce": { "args":"array, function [, init]", - "desc":"Returns an aggregated value derived from applying the `function` parameter successively to each value in `array` in combination with the result of the previous application of the function.\n\nThe function must accept two arguments, and behaves like an infix operator between each value within the `array`." + "desc":"Returns an aggregated value derived from applying the `function` parameter successively to each value in `array` in combination with the result of the previous application of the function.\n\nThe function must accept two arguments, and behaves like an infix operator between each value within the `array`.\n\nThe optional `init` parameter is used as the initial value in the aggregation." }, "$flowContext": { "args": "string",