|
|
@@ -11,10 +11,11 @@ function initCSS(){
|
|
|
s.innerHTML=_('css');
|
|
|
document.head.appendChild(s);
|
|
|
}
|
|
|
-function initI18n(){
|
|
|
+function initI18n(callback){
|
|
|
window.addEventListener('DOMContentLoaded',function(){
|
|
|
var nodes=document.querySelectorAll('.i18n'),i,t;
|
|
|
for(i=0;i<nodes.length;i++) nodes[i].innerHTML=_(nodes[i].innerHTML);
|
|
|
+ if(callback) callback();
|
|
|
},true);
|
|
|
}
|
|
|
var _=chrome.i18n.getMessage;
|