Writing multilanguage extensions

lippoliv oliver at lippert.it
Fri Jul 23 08:27:45 UTC 2010


Hey there,
currently I'm writing my fifth bugzilla extension, and now it is the
same problem again: multilanguage.

As you may now, I'm a !german! software developer and I'm working for
the DAVID GmbH (http://www.david-bs.de [currently just an german
website]). We're using Bugzilla 3.0.4 with Germzilla (version unknown)
which is simply an german-translation-template-package of Bugzilla :)

So now we're near to the problem: there is template/LANG/(default|
custom)/mytemplatefile.html.tmpl; what is the equal to extensions? If
I have

extensions/myExtension/template/de/irgendwas
extensions/myExtension/template/en/irgendwas

and the extension should just run "alert('hi');" it would be displayed
in two times, one for extensions/template/de and one for extensions/
template/en ...


So now I have to display an message in my new extension, if the user
is from germany, the message should be displayed in german, if the
user is not from germany, the message should be displayed in english.

Is there anyway to make this get real?

Warm reguards an thanks for helping me :)
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list