You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by di...@apache.org on 2022/10/26 19:08:56 UTC

[sling-site] 01/02: fix: minor changes

This is an automated email from the ASF dual-hosted git repository.

diru pushed a commit to branch issue/SLING-10654
in repository https://gitbox.apache.org/repos/asf/sling-site.git

commit b3d847411c500e8dced4dcbed44b263edee6f5d8
Author: Dirk Rudolph <dr...@adobe.com>
AuthorDate: Wed Oct 26 21:06:27 2022 +0200

    fix: minor changes
---
 .../content/documentation/bundles/scripting/scripting-htl.md      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md b/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md
index bbec4c690..a63e949f8 100644
--- a/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md
+++ b/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md
@@ -107,18 +107,18 @@ Those pattern values are case-insensitive.
 
 The implementation uses [`DateTimeFormatter.ofLocalizedDate(FormatStyle)`](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#ofLocalizedDate-java.time.format.FormatStyle-) for formatting those dates.
 
-### Format String
+### Format String (supported since HTL Engine 1.4.22-1.4.0)
 
-In addition to the variable-element placeholder replacement as given by the examples in the [HTL Spec 1.4](https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#examples), [SLING-10654](https://issues.apache.org/jira/browse/SLING-10654) adds support for complex argument types using [ICU Message Formatting](https://unicode-org.github.io/icu/userguide/format_parse/messages/).
+In addition to the variable-element placeholder replacement as given by the examples in the [HTL Spec 1.4](https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#examples), [SLING-10654](https://issues.apache.org/jira/browse/SLING-10654) adds optional support for complex argument types using [ICU Message Formatting](https://unicode-org.github.io/icu/userguide/format_parse/messages/).
 
-When the icu4j bundle is available at runtime, pattterns that contain complex argument types, will automatically be processed using the [icu4j `MessageFormat` class](https://unicode-org.github.io/icu-docs/apidoc/dev/icu4j/com/ibm/icu/text/MessageFormat.html). This adds support for select and plural formats for example, but it also allows for individual argument formatting.
+When the [icu4j bundle](https://github.com/unicode-org/icu/releases) is available at runtime, pattterns that contain complex argument types will automatically be formatted using the [icu4j `MessageFormat` class](https://unicode-org.github.io/icu-docs/apidoc/dev/icu4j/com/ibm/icu/text/MessageFormat.html). This adds for example support for select and plural formats:
 
     ${ '{0, plural, one{# result} other{# results}}' @format=properties.result }
     ${ '{0, plural, one{# výsledek} few{# výsledky} other{# výsledků}}' @format=properties.result }
 
 Other than for the regular variable-element placeholder replacement, parameters passed to the format option are not converted to any other type. If they do not match the pattern an IllegalArgumentException may be throw. 
 
-Is the *icu4j* bundle not available at runtime, only simple variable-element placeholder will be replaced and expessions that use complex argument types will be removed. 
+If the icu4j bundle is not available at runtime, only simple variable-element placeholders will be replaced and expessions that use complex argument types will be removed. 
 
 ## Use-API Extensions