[rkward-cvs] SF.net SVN: rkward-code:[4820] trunk/rkward/rkward/scriptbackends/common.js
tfry at users.sf.net
tfry at users.sf.net
Mon Sep 15 07:59:15 UTC 2014
Revision: 4820
http://sourceforge.net/p/rkward/code/4820
Author: tfry
Date: 2014-09-15 07:59:13 +0000 (Mon, 15 Sep 2014)
Log Message:
-----------
Add dynamic i18n()-dummies in the .js common code.
The idea behind adding this now, is that dynamically i18n'ed plugins will remain backwards compatible with RKWard >= 0.6.2, this way.
Modified Paths:
--------------
trunk/rkward/rkward/scriptbackends/common.js
Modified: trunk/rkward/rkward/scriptbackends/common.js
===================================================================
--- trunk/rkward/rkward/scriptbackends/common.js 2014-09-14 21:48:34 UTC (rev 4819)
+++ trunk/rkward/rkward/scriptbackends/common.js 2014-09-15 07:59:13 UTC (rev 4820)
@@ -28,6 +28,20 @@
return ("\"" + text.replace (/\"/g, "\\\"") + "\"");
}
+/** Yet unused: Dummies for i18n(), for later backwards-compatibility of plugins. */
+i18n = function (string) {
+ return string;
+}
+i18np = function (string) {
+ return string;
+}
+i18nc = function (comment, string) {
+ return string;
+}
+i18ncp = function (comment, string) {
+ return string;
+}
+
makeHeaderCode = function (title, parameters) {
echo ("rk.header(" + quote (title));
if (parameters.length) {
More information about the rkward-tracker
mailing list