[rkward] packages/rkwarddev: fixed i18n in option lists of various functions

m.eik michalke meik.michalke at uni-duesseldorf.de
Thu Nov 26 15:17:43 UTC 2015


Git commit c6213a6e85d5946450ff3693045a876dc43cb1cd by m.eik michalke.
Committed on 26/11/2015 at 15:16.
Pushed by meikm into branch 'master'.

fixed i18n in option lists of various functions

  - became obvious in rk.XML.radio(), but since the bug was in an internal function, this must have been an undiscovered issue elsewhere too

M  +1    -0    packages/rkwarddev/ChangeLog
M  +1    -1    packages/rkwarddev/R/rk-internal.R

http://commits.kde.org/rkward/c6213a6e85d5946450ff3693045a876dc43cb1cd

diff --git a/packages/rkwarddev/ChangeLog b/packages/rkwarddev/ChangeLog
index e1594c3..9471e04 100644
--- a/packages/rkwarddev/ChangeLog
+++ b/packages/rkwarddev/ChangeLog
@@ -16,6 +16,7 @@ fixed:
   - indentation of rk.paste.JS.graph() was incorrect
   - pasting comments via rk.paste.JS() gained an extra space for subsequent
     lines
+  - the "i18n" attribute in lists e.g. for rk.XML.radio() didn't really work
 added:
   - new methods plugin2script() to try to translate raw plugin XML into
     working rkwarddev script calls
diff --git a/packages/rkwarddev/R/rk-internal.R b/packages/rkwarddev/R/rk-internal.R
index 0b6da19..08dcc88 100644
--- a/packages/rkwarddev/R/rk-internal.R
+++ b/packages/rkwarddev/R/rk-internal.R
@@ -1293,7 +1293,7 @@ rk.check.options <- function(options, parent){
           checked <- FALSE
         }
         if("i18n" %in% names(options[[this.num]])){
-          i18n <- isTRUE(as.logical(options[[this.num]][["i18n"]]))
+          i18n <- options[[this.num]][["i18n"]]
         } else {
           i18n <- NULL
         }



More information about the rkward-tracker mailing list