projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add locale translation for Records|Targets labels.
[mkws-moved-to-github.git]
/
experiments
/
spclient
/
mkws.js
diff --git
a/experiments/spclient/mkws.js
b/experiments/spclient/mkws.js
index
4c75a8c
..
dfd1c19
100644
(file)
--- a/
experiments/spclient/mkws.js
+++ b/
experiments/spclient/mkws.js
@@
-76,6
+76,18
@@
var mkws_locale_lang = {
}
};
}
};
+
+for (var key in mkws_config) {
+ if (mkws_config.hasOwnProperty(key)) {
+ if (key.match(/^language_/)) {
+ var lang = key.replace(/^language_/, "");
+ // Copy custom languages into list
+ mkws_locale_lang[lang] = mkws_config[key];
+ }
+ }
+}
+
+
// create a parameters array and pass it to the pz2's constructor
// then register the form submit event with the pz2.search function
// autoInit is set to true on default
// create a parameters array and pass it to the pz2's constructor
// then register the form submit event with the pz2.search function
// autoInit is set to true on default
@@
-641,13
+653,13
@@
function mkws_html_switch(config) {
$("#mkwsSwitch").html($("<a/>", {
href: '#',
onclick: "switchView(\'records\')",
$("#mkwsSwitch").html($("<a/>", {
href: '#',
onclick: "switchView(\'records\')",
- text: "Records"
+ text: M("Records")
}));
$("#mkwsSwitch").append($("<span/>", { text: " | " }));
$("#mkwsSwitch").append($("<a/>", {
href: '#',
onclick: "switchView(\'targets\')",
}));
$("#mkwsSwitch").append($("<span/>", { text: " | " }));
$("#mkwsSwitch").append($("<a/>", {
href: '#',
onclick: "switchView(\'targets\')",
- text: "Targets"
+ text: M("Targets")
}));
debug("HTML targets");
}));
debug("HTML targets");