QUOTE (markh @ Feb 13 2010, 11:18) <{POST_SNAPBACK}>
That would generate an xul error unless the locale is downloaded with empty strings replaced, which is unlikely for testing pruposes :wink:
*EDIT* found the error. editpl.xul still has this hardcoded:
CODE
title="Better Privacy LSO protection list editor" id="bpEditPL"
Well, you're right. I did not remember, but in my local version I fixed that already. I just downloaded the WTS version and there it is indeed still hardcoded. I should have posted my silent update to WTS.
I also have a question:
For the javascript locales I use a function to prevent fatal exceptions, if for any reason it happens that a language locale is missing (maybe due to a stupid action I would do).
I currently use a function like this:
CODE
getString: function(str){
try{
str = bpriv.getDoc().getElementById("strBundle").getString(str);
}catch(e){str="(???) Sorry, translation missing - please report locale bug-id=" + str}
return str;
}
... but I would like that it works like that:
getString: function(str){
try{
str = bpriv.getDoc().getElementById("strBundle").getString(str);
}catch(e){
str= bpriv.getDoc().getElementById("en-US-Bundle").getString(str); //if locale missing, get the en-US default string instead
}
return str;
}
Any idea, or impossible? (Well I could open the locale file directly and parse it, but would be too much effort)
Thank you