[rkward-cvs] [rkward] rkward/plugins/distributions/clt: Add i18n to CLT-plugins (rather easy, as these do not come with a header, thus far).
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Jan 30 17:12:40 UTC 2015
Git commit 71aa8f36e7b6f908e23bdb7a39c72860290a3bd1 by Thomas Friedrichsmeier.
Committed on 30/01/2015 at 12:42.
Pushed by tfry into branch 'master'.
Add i18n to CLT-plugins (rather easy, as these do not come with a header, thus far).
M +3 -1 rkward/plugins/distributions/clt/plot_beta_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_binomial_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_chi_squared_clt.xml
M +7 -7 rkward/plugins/distributions/clt/plot_clt_common.js
M +3 -1 rkward/plugins/distributions/clt/plot_exponential_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_f_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_gamma_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_geometric_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_hypergeometric_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_logistic_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_lognormal_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_negbinomial_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_normal_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_poisson_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_t_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_uniform_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_weibull_clt.xml
M +3 -1 rkward/plugins/distributions/clt/plot_wilcoxon_clt.xml
http://commits.kde.org/rkward/71aa8f36e7b6f908e23bdb7a39c72860290a3bd1
diff --git a/rkward/plugins/distributions/clt/plot_beta_clt.xml b/rkward/plugins/distributions/clt/plot_beta_clt.xml
index f620e8c..5f8f41e 100644
--- a/rkward/plugins/distributions/clt/plot_beta_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_beta_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Beta""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Beta"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Beta to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_binomial_clt.xml b/rkward/plugins/distributions/clt/plot_binomial_clt.xml
index 508f282..9ebff82 100644
--- a/rkward/plugins/distributions/clt/plot_binomial_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_binomial_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
- <set id="plotoptions.default_main" to=""Binomial""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Binomial"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Binomial to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_chi_squared_clt.xml b/rkward/plugins/distributions/clt/plot_chi_squared_clt.xml
index cd747a3..e76f909 100644
--- a/rkward/plugins/distributions/clt/plot_chi_squared_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_chi_squared_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Chi-Squared""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Chi-Squared"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Chi squared to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_clt_common.js b/rkward/plugins/distributions/clt/plot_clt_common.js
index 904e2d0..bfe6b53 100644
--- a/rkward/plugins/distributions/clt/plot_clt_common.js
+++ b/rkward/plugins/distributions/clt/plot_clt_common.js
@@ -21,11 +21,11 @@ function doPrintout (full) {
var drawnorm = getValue ("drawnorm");
- echo ('# parameters:\n');
+ comment ('parameters:');
doParameters (); // get the parameters from xml file and store them R varaibles
if (scalenorm || drawnorm) {
- echo ('# mean and variances of the distribution of sample averages:\n');
+ comment ('mean and variances of the distribution of sample averages:');
doExpVar (); // calculate the expectation and varaince of the distribution of smaple averages
}
@@ -52,26 +52,26 @@ function doPrintout (full) {
var yLim = ""; // initialise the ylim option
- echo ('# generate the entire data:\n');
+ comment ('generate the entire data:');
doGenerateData (); // generate the random samples
- echo ('# get the sample averages:\n');
+ comment ('get the sample averages:');
echo ('avg <- colMeans(data);\n');
if (scalenorm) {
- echo ('# normalise the variables:\n');
+ comment ('normalise the variables:');
echo ('avg <- (avg - avg.exp)/sqrt(avg.var);\n');
}
if (drawnorm) {
- echo ('# generate random normal samples:\n');
+ comment ('generate random normal samples:');
echo ('normX <- seq(from=min(avg), to=max(avg), length=' + nDist + ');\n');
echo ('normY <- ' + normFun + ' (normX' + normMuSigma_tag + ');\n');
}
if (fun == "hist") {
echo ('dist.hist <- hist(avg, plot=FALSE' + histcalcoptions + ');\n');
if (drawnorm) {
- echo ('# calculate the ylims appropriately:\n');
+ comment ('calculate the ylims appropriately:');
echo ('ylim <- c(0,max(c(dist.hist$density, normY)));\n');
yLim = ', ylim=ylim';
}
diff --git a/rkward/plugins/distributions/clt/plot_exponential_clt.xml b/rkward/plugins/distributions/clt/plot_exponential_clt.xml
index 5ffa890..e632a6f 100644
--- a/rkward/plugins/distributions/clt/plot_exponential_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_exponential_clt.xml
@@ -13,7 +13,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Exponential""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Exponential"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Exponential to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_f_clt.xml b/rkward/plugins/distributions/clt/plot_f_clt.xml
index 9ce5987..0439392 100644
--- a/rkward/plugins/distributions/clt/plot_f_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_f_clt.xml
@@ -15,7 +15,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""F""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("F"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: F to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_gamma_clt.xml b/rkward/plugins/distributions/clt/plot_gamma_clt.xml
index 2f2762f..959a5a1 100644
--- a/rkward/plugins/distributions/clt/plot_gamma_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_gamma_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Gamma""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Gamma"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Gamma to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_geometric_clt.xml b/rkward/plugins/distributions/clt/plot_geometric_clt.xml
index ed8da6d..28320ad 100644
--- a/rkward/plugins/distributions/clt/plot_geometric_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_geometric_clt.xml
@@ -13,7 +13,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
- <set id="plotoptions.default_main" to=""Geometric""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Geometric"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Geometric to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_hypergeometric_clt.xml b/rkward/plugins/distributions/clt/plot_hypergeometric_clt.xml
index 311802f..87fc1e2 100644
--- a/rkward/plugins/distributions/clt/plot_hypergeometric_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_hypergeometric_clt.xml
@@ -15,7 +15,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
- <set id="plotoptions.default_main" to=""Hypergeometric""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Hypergeometric"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Hypergeometric to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_logistic_clt.xml b/rkward/plugins/distributions/clt/plot_logistic_clt.xml
index 294ad41..c1fd95e 100644
--- a/rkward/plugins/distributions/clt/plot_logistic_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_logistic_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Logistic""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Logistic"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Logistic to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_lognormal_clt.xml b/rkward/plugins/distributions/clt/plot_lognormal_clt.xml
index 9c338bf..d1e90df 100644
--- a/rkward/plugins/distributions/clt/plot_lognormal_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_lognormal_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Lognormal""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Lognormal"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Lognormal to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_negbinomial_clt.xml b/rkward/plugins/distributions/clt/plot_negbinomial_clt.xml
index 66b762e..f395fdb 100644
--- a/rkward/plugins/distributions/clt/plot_negbinomial_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_negbinomial_clt.xml
@@ -26,7 +26,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
- <set id="plotoptions.default_main" to=""Negative Binomial""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Negative Binomial"));
+ ]]></script>
<convert id="useprob" mode="equals" sources="param.string" standard="pprob" />
<connect client="prob.enabled" governor="useprob" />
diff --git a/rkward/plugins/distributions/clt/plot_normal_clt.xml b/rkward/plugins/distributions/clt/plot_normal_clt.xml
index f605fe4..3c25a2c 100644
--- a/rkward/plugins/distributions/clt/plot_normal_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_normal_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Normal""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Normal"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Normal to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_poisson_clt.xml b/rkward/plugins/distributions/clt/plot_poisson_clt.xml
index 4d288cf..9b56c6a 100644
--- a/rkward/plugins/distributions/clt/plot_poisson_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_poisson_clt.xml
@@ -13,7 +13,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
- <set id="plotoptions.default_main" to=""Poisson""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Poisson"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Poisson to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_t_clt.xml b/rkward/plugins/distributions/clt/plot_t_clt.xml
index 3956179..f2224be 100644
--- a/rkward/plugins/distributions/clt/plot_t_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_t_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""t""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("t"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: t to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_uniform_clt.xml b/rkward/plugins/distributions/clt/plot_uniform_clt.xml
index 70a95ab..fc4f98f 100644
--- a/rkward/plugins/distributions/clt/plot_uniform_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_uniform_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Uniform""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Uniform"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Uniform to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_weibull_clt.xml b/rkward/plugins/distributions/clt/plot_weibull_clt.xml
index 644bb54..1c9ab77 100644
--- a/rkward/plugins/distributions/clt/plot_weibull_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_weibull_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
- <set id="plotoptions.default_main" to=""Weibull""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Weibull"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Weibull to Normal" >
<insert snippet="clt_layout"/>
diff --git a/rkward/plugins/distributions/clt/plot_wilcoxon_clt.xml b/rkward/plugins/distributions/clt/plot_wilcoxon_clt.xml
index acf4fe5..a3715f4 100644
--- a/rkward/plugins/distributions/clt/plot_wilcoxon_clt.xml
+++ b/rkward/plugins/distributions/clt/plot_wilcoxon_clt.xml
@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
- <set id="plotoptions.default_main" to=""Wilcoxon""/>
+ <script><![CDATA[
+ gui.setValue ("plotoptions.default_main", i18n ("Wilcoxon"));
+ ]]></script>
</logic>
<dialog label="Central Limit Theorem: Wilcoxon to Normal" >
<insert snippet="clt_layout"/>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
rkward-cvs mailing list
rkward-cvs at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-cvs
More information about the rkward-tracker
mailing list