summaryrefslogtreecommitdiff
path: root/devel/script
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-09-04 18:09:59 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-09-04 18:09:59 -0500
commit06b9fbe2983bb893b2c8f77dad105fea66816d4c (patch)
tree0b9f6558b0aa395a6baaefaad9b83328b80e5230 /devel/script
parent28bc8f6b36de1bd73d82c4d92e08ccd187acbd05 (diff)
downloadhorizon-06b9fbe2983bb893b2c8f77dad105fea66816d4c.tar.gz
horizon-06b9fbe2983bb893b2c8f77dad105fea66816d4c.tar.bz2
horizon-06b9fbe2983bb893b2c8f77dad105fea66816d4c.tar.xz
horizon-06b9fbe2983bb893b2c8f77dad105fea66816d4c.zip
script: Describe 'language'
Diffstat (limited to 'devel/script')
-rw-r--r--devel/script/2_keys.xml44
1 files changed, 43 insertions, 1 deletions
diff --git a/devel/script/2_keys.xml b/devel/script/2_keys.xml
index f337454..6b0e5e0 100644
--- a/devel/script/2_keys.xml
+++ b/devel/script/2_keys.xml
@@ -8,7 +8,7 @@
</section>
<section id="reqd_keys">
<title>Required Keys</title>
- <para>Each key in this section is required to be present in a HorizonScript. If any key from this section is missing, the HorizonScript will be considered invalid and Horizon Runner will not execute it.</para>
+ <para>Each key specified in this section is required to be present in a HorizonScript. If any key from this section is missing, the HorizonScript will be considered invalid and Horizon Runner will not execute it.</para>
<section id="network">
<title><literal>network</literal></title>
<formalpara id="network.name">
@@ -71,4 +71,46 @@ hostname gwyn.foxkit.internal
</formalpara>
</section>
</section>
+ <section id="opt_keys">
+ <title>Optional Keys</title>
+ <para>Each key specified in this section may be present in a HorizonScript. This section additionally defines the default value or action taken if the specified key is not present.</para>
+ <section id="language">
+ <title><literal>language</literal></title>
+ <formalpara id="language.name">
+ <title>Name</title>
+ <para><literal>language</literal></para>
+ </formalpara>
+ <formalpara id="language.purpose">
+ <title>Purpose</title>
+ <para>The <literal>language</literal> key determines the default natural language for the target computer. The value of this key will be used to configure the <envar>LANG</envar> and <envar>LC_ALL</envar> environment variables, in addition to installing language packs for certain software.</para>
+ </formalpara>
+ <formalpara id="language.format">
+ <title>Format</title>
+ <para>The <literal>language</literal> key is a string value that specifies a valid locale code. A locale code must match one of the following formats: <replaceable>xx</replaceable>, or <replaceable>xx</replaceable><literal>_</literal><replaceable>YY</replaceable>, or <replaceable>xx</replaceable><literal>_</literal><replaceable>YY</replaceable><literal>.UTF-8</literal>, where <replaceable>xx</replaceable> is a valid ISO 639-1 language code, and <replaceable>YY</replaceable> is a valid ISO 3166-1 country code.</para>
+ </formalpara>
+ <formalpara id="language.default">
+ <title>Default</title>
+ <para>If the <literal>language</literal> key is not present, no setting will be defined for the <envar>LANG</envar> or <envar>LC_ALL</envar> environment variables. Most software treats this as either "C.UTF-8" or "en_US.UTF-8". No language packs will be installed for software that supports multiple language; due to English being the <emphasis role="italics">de facto</emphasis> language of software engineering, this implies all software will run in English.</para>
+ </formalpara>
+ <formalpara id="language.examples">
+ <title>Examples</title>
+ <para>
+ <example>
+ <title>The <literal>language</literal> Key &mdash; Simple Language</title>
+ <programlisting>
+language cy
+ </programlisting>
+ <para>This sets the language of the target computer to Welsh.</para>
+ </example>
+ <example>
+ <title>The <literal>language</literal> Key &mdash; Language with Country Localisation</title>
+ <programlisting>
+language fr_CA
+ </programlisting>
+ <para>This sets the language of the target computer to Canadian French.</para>
+ </example>
+ </para>
+ </formalpara>
+ </section>
+ </section>
</chapter>