[Greasemonkey] GreaseMonkey: Translate of UI
BachusII
BachusII at gmail.com
Tue Jan 3 22:59:38 EST 2006
in chrome/chromeFiles/content/browser.js (after chris feldmans diff of
course)
untested
< GM_BrowserUI.greetz = new Array;
< for (i = 0; i < 6; i++){
< GM_BrowserUI.greetz.push(this.bundle.getString('greetz.' + i));
< }
> GM_BrowserUI.greetz = new Array;
> var i=0; s='';
> while ( s = this.bundle.getString( 'greetz.' + i++ ) )
> {
> GM_BrowserUI.greetz.push( s );
> }
Groeten
BachusII at gmail.com
Evil Geniuses in a nutshell, Appendix A. "Poetry for the Web".
"Our yellow sun yields to the dark,
as I begin my web-based lark,
flowing, turning, through the pipe
I grep for text and dump the hype...
But as I ride the fibre trail,
I test my faith as I read my mail.
Even as my bandwidth fattens,
I question life and 1-Click patents..
Although I ask, and though I query,
I know the truth I grok the theory.
Life is a multimedia of sins,
so he who collects the most porn wins."
(http://ars.userfriendly.org/cartoons/?id=20000307)
chris feldmann wrote:
> Actually, it's hard coded at six in the localization. It'll need
> slightly more clever error handling to iterate through an unknown
> number of entities.
More information about the Greasemonkey
mailing list