-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 30.08.2010 01:43, schrieb Julian Pietron:
> Hi,
>
> how can I register textdomains to use with booster::locale::format()
> (and translate()) at runtime?
> I found the config option localization.messages.domains for the text
> domains to be pre-loaded, but how can I register a domain
> programmatically? Do I have to use direct calls to gettext (as I
> understood, booster features its own libintl implementation, so that
> won't work I think) or is there something in booster::locale to call to
> register a domain?
>
> Thanks,
> Julian
Ok, in meantime I found the locale::generator::add_messages_domain() and
set_default_messages_domain(), but that raised a few more questions:
- - Is it possible to remove a message domain again? (But only one and not
all message domains, so the clear_domains() method is not what I want)
- - Can I select the domain to use for basic_format::format or
locale::translate at method call somehow or do I have to call
set_default_messages_domain() on generator beforehand? If this is the
case, is this thread safe, so that I can change the
default_messages_domain even to different values for parallel requests?
Thanks,
Julian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJMevQ5AAoJENidYKvYQHlQycIP/34FR5xB41ETBmt/3sCC7xrb
qarFzFqsFNyqXHDnAjfaLU5RAp6tgdLvOwDo1F7Zbw/AU33Ysx+U+QOzjIDHNJ/D
ktjYFNNJMA6e/MCdzKXt6uwOeNs0fsSUFhXhvXxmQQn/ABfK3FSMjfiqiEJM00vF
BFGSaOtAenI7lsSfwUZBnQrQio8E++5MEpayPjY/v3BH0uEhv1IuwijEkqevsSng
754Z0MNq3UjdxORc2XRoAKFFOk2vvkwQTy5wP8d/yW8HX2ff1mPpRfHlJU+w24lh
U+Co50yus2inoddWjCCVLL1p1QTOfYM0qiJ2ltRwu+bTS9LJvuBJSJUyf6h40kA8
tmdyb/esa2SAlTwlkG/dyNTBu/I1w2hI5w4javy71jcsyJOsFGXNtrwdDCBKCcnG
MDxyazul8lzbMQMrNZWFUUCPP36puwW2EXPKBSs+3wxafXIoZYOdJZ8Q9s5yGdgF
YZm9hd5ufmPTTEOGADHdyviVXT6NTyyaI6YhY29uqVy0CPrnTLBH0+HYq4UR+Cp/
1drt+EdlFcjRqt7H2lG2Q5PV1FWs3E/EMfYswvECAzlCgz81e+dq1urh2L+rnFv7
62lygjWbH8JwIIEX2STrzRerxTw4SDAgc9927+gq8ZzM45u7y9745r9b2Ajb2nUt
c5rQPPoZARx+Gs1aztsN
=XCUX
-----END PGP SIGNATURE-----
|