Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus

...

...

applyColStyleToCell

...

true
columnTypess,s,s,

...

s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,

...

...

enableSorting

...

false

Syntax

i18nText(baseDir, key, language)

...

<h2>Example</h2>

<p>If we have a directory called <strong>messages</strong> placed under the cprime home directory with the following properties files:</p>
<ac:structured-macro ac:name="code" ac:schema-version="1">
<ac:plain-text-body>
<![CDATA[runnerLog("UK: " + i18nText("messages", "com.mymessage.test.working", "en_UK"));
runnerLog("US: " + i18nText("messages", "com.mymessage.test.working", "en_US"));
runnerLog("US: " + i18nText("messages", "com.mymessage.test.working", "en"));

runnerLog("Test inexistent key: " + i18nText("message", "com.mymessage.test.inexistent.key", "en_US"));

runnerLog("fr_CH: " + i18nText("messages", "com.mymessage.test.working", "fr_CH"));
runnerLog("fr_FR: " + i18nText("messages", "com.mymessage.test.working", "fr_FR"));

// if the property file does not exists, the value will be returned from the default properties file if exists
runnerLog("Test inexistent property file: " + i18nText("messages", "com.mymessage.test.inexistent.property.file", "ro_RO"));]]>
</ac:plain-text-body>
</ac:structured-macro>

<h2>Note</h2>
<p><ac:structured-macro ac:name="note" ac:schema-version="1">
<ac:rich-text-body>
<p>The properties files should match the folder name and had the properties extension.</p>
</ac:rich-text-body>
</ac:structured-macro></p>

<h2>See also</h2>
<p><ac:structured-macro ac:name="contentbylabel" ac:schema-version="4">
<ac:parameter ac:name="showLabels">false</ac:parameter>
<ac:parameter ac:name="max">25</ac:parameter>
<ac:parameter ac:name="showSpace">false</ac:parameter>
<ac:parameter ac:name="cql">label = "jira_system_routine" and space = currentSpace ( )</ac:parameter>
<ac:parameter ac:name="labels">array_routines</ac:parameter>
</ac:structured-macro></p>

Info

Availability

This routine is available starting with SIL Engineā„¢ 4.5.8

Syntax

i18nText(baseDir, key, language)

Package

Alias

Pkg Usage

Warning

Keep in mind that after modifying properties file you have to restart the JIra.

Description

Excerpt

Returns the i18n text if the key can be resolved. Otherwise, the key itself will be returned.

Warning

Keep in mind that after modifying properties file you have to restart the JIra.

Parameters

Parameter name

Type

Required

Description

baseDir

string

yes

The relative path to the properties files directory. The path is relative to kepler home.

key

string

yes

Key for the i18ned message.

language

string

yes

The language to use for the i18ned text.

...