Skip to content

Commit

Permalink
MID-7576 translation improvements (docs)
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jan 24, 2022
1 parent ab50212 commit faabe4a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/admin-gui/admin-gui-config/admin-gui-configuration-4-0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,36 @@ This link will be displayed only if the user has authorization that allow the ac
Secondly, inclusion of default forms and the `automatic` visibility mode of widgets are authorization-sensitive.
This means that form or widget will be displayed only if the user has access to the data that are displayed.

== Localization

Localization service will try to translate all *PolyString* keys automatically with fallback translation with value of key (for example for DisplayType/label).

[source, xml]
----
<display>
<!-- translated to "Color" -->
<label>RichHyperlinkType.color</label>
</display>
<display>
<!-- result will be "Some fallback used if key is not found" -->
<label>
<t:orig>
ignored polystring origin
</t:orig>
<t:translation>
<t:key>RichHyperlinkType.color1</t:key>
<t:fallback>Some fallback used if key is not found</t:fallback>
</t:translation>
</label>
</display>
<display>
<!-- translation service will obviously fail to translate, result will be "not translated at all" -->
<label>not translated at all</label>
</display>
----

== Feedback Messages Hook

Feedback messages hook configuration allows operation result preprocessing before it's shown in GUI.
Expand Down

0 comments on commit faabe4a

Please sign in to comment.