[pLog-svn] r712 - plog/trunk/js/htmlarea/popups
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Mon Jan 10 12:21:25 GMT 2005
Author: oscar
Date: 2005-01-10 12:21:25 +0000 (Mon, 10 Jan 2005)
New Revision: 712
Modified:
plog/trunk/js/htmlarea/popups/link.html
plog/trunk/js/htmlarea/popups/popup.js
Log:
fixed an issue with i81n (see http://bugs.plogworld.net/view.php?id=131)
Modified: plog/trunk/js/htmlarea/popups/link.html
===================================================================
--- plog/trunk/js/htmlarea/popups/link.html 2005-01-10 12:11:09 UTC (rev 711)
+++ plog/trunk/js/htmlarea/popups/link.html 2005-01-10 12:21:25 UTC (rev 712)
@@ -9,7 +9,9 @@
I18N = window.opener.HTMLArea.I18N.dialogs;
function i18n(str) {
- return (I18N[str] || str);
+ //return (I18N[str] || str);
+ //OSCAR: this doesn't work
+ return(I18N != null ? I18N[str] : str);
};
function onTargetChanged() {
Modified: plog/trunk/js/htmlarea/popups/popup.js
===================================================================
--- plog/trunk/js/htmlarea/popups/popup.js 2005-01-10 12:11:09 UTC (rev 711)
+++ plog/trunk/js/htmlarea/popups/popup.js 2005-01-10 12:21:25 UTC (rev 712)
@@ -82,13 +82,18 @@
for (var i = spans.length; --i >= 0;) {
var span = spans[i];
if (span.firstChild && span.firstChild.data) {
- var txt = i18n[span.firstChild.data];
+ //var txt = i18n[span.firstChild.data];
+ //OSCAR:this doesn't work!!
+ if (i18n != null) txt = i18n[span.firstChild.data];
if (txt)
span.firstChild.data = txt;
}
}
}
- var txt = i18n[document.title];
+ //OSCAR: this doesn't work!
+ //var txt = i18n[document.title];
+ var txt;
+ if(i18n != null) txt = i18n[document.title];
if (txt)
document.title = txt;
};
More information about the pLog-svn
mailing list