Commit 7a428e45 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Use <i18n> and <label> to achieve full translatability of CLT plugins,

parent 1d2dd5e7
<!DOCTYPE rkhelp>
<document>
<snippets>
<snippet id="dist_name"><span>Beta</span></snippet>
<snippet id="dist_related">
<li><link href="rkward://component/plot_beta_distribution"/></li>
<li><link href="rkward://rhelp/Beta"/></li>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Beta"));
]]></script>
<i18n id="dist_name" label="Beta" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Beta to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Binomial"));
]]></script>
<i18n id="dist_name" label="Binomial" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Binomial to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Chi-Squared"));
]]></script>
<i18n id="dist_name" label="Chi-Squared" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Chi squared to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -2,10 +2,10 @@
<document>
<snippet id="clt_help_template">
<summary>
Normal approximation to <insert snippet="dist_name"/> Sample averages. Most of this help file is generic description of CLT plugins. Sample averages from a contending distribution (Binomial here) are compared to a target Normal distribution. The comparison is made based on either histograms or distribution functions. For brevity, D will denote the contending distribution (<insert snippet="dist_name"/> here).
Normal approximation to <label id="dist_name"/> Sample averages. Most of this help file is generic description of CLT plugins. Sample averages from a contending distribution (<label id="dist_name"/> here) are compared to a target Normal distribution. The comparison is made based on either histograms or distribution functions. For brevity, D will denote the contending distribution (<label id="dist_name"/> here).
</summary>
<usage>
Choose the <insert snippet="dist_name"/> parameters, the sample sizes needed for CLT and a choice of function. The function specific options are provided in different tabs.
Choose the <label id="dist_name"/> parameters, the sample sizes needed for CLT and a choice of function. The function specific options are provided in different tabs.
</usage>
<settings>
<caption id="tab_plot_distrib_clt"/>
......
......@@ -6,7 +6,9 @@
<set id="plotoptions.allow_type" to="false"/>
<set id="plotoptions.allow_grid" to="true"/>
<set id="plotoptions.allow_ylim" to="false"/>
<set id="plotoptions.default_xlab" to="&quot;Sample Averages&quot;"/>
<i18n id="sample_avgs_label" label="Sample Averages"/>
<connect client="plotoptions.default_xlab" governor="sample_avgs_label.quoted"/>
<connect client="plotoptions.default_main" governor="dist_name.quoted"/>
<set id="normlinecol.default_color" to="red" />
......
......@@ -13,9 +13,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Exponential"));
]]></script>
<i18n id="dist_name" label="Exponential" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Exponential to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -15,9 +15,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("F"));
]]></script>
<i18n id="dist_name" label="F" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: F to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Gamma"));
]]></script>
<i18n id="dist_name" label="Gamma" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Gamma to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -13,9 +13,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Geometric"));
]]></script>
<i18n id="dist_name" label="Geometric" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Geometric to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -15,9 +15,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Hypergeometric"));
]]></script>
<i18n id="dist_name" label="Hypergeometric" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Hypergeometric to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Logistic"));
]]></script>
<i18n id="dist_name" label="Logistic" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Logistic to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Lognormal"));
]]></script>
<i18n id="dist_name" label="Lognormal" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Lognormal to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -26,9 +26,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Negative Binomial"));
]]></script>
<i18n id="dist_name" label="Negative Binomial" i18n_context="Distribution name"/>
<convert id="useprob" mode="equals" sources="param.string" standard="pprob" />
<connect client="prob.enabled" governor="useprob" />
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Normal"));
]]></script>
<i18n id="dist_name" label="Normal" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Normal to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -13,9 +13,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Poisson"));
]]></script>
<i18n id="dist_name" label="Poisson" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Poisson to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("t"));
]]></script>
<i18n id="dist_name" label="t" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: t to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Uniform"));
]]></script>
<i18n id="dist_name" label="Uniform" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Uniform to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Weibull"));
]]></script>
<i18n id="dist_name" label="Weibull" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Weibull to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,9 +14,7 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Wilcoxon"));
]]></script>
<i18n id="dist_name" label="Wilcoxon" i18n_context="Distribution name"/>
</logic>
<dialog label="Central Limit Theorem: Wilcoxon to Normal" >
<insert snippet="clt_layout"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment