Re: RFC - Storing translated values in a PropertyBag
- From: Dietmar Maurer <dietmar ximian com>
- To: Martin Baulig <martin home-of-linux org>
- Cc: gnome-components-list gnome org
- Subject: Re: RFC - Storing translated values in a PropertyBag
- Date: Fri, 31 Aug 2001 10:16:06 +0200
Martin Baulig wrote:
> My proposal - PART I:
> =====================
>
> a) getValue ("/bonobo-config-test/test-string") returns the untranslated
> string as CORBA::string. I think this is what it already does.
>
> b) getKeys ("/bonobo-config-test/test-string") returns a list of all the
> languages ("de", "es", "sv").
>
> c) getValue ("/bonobo-config-test/test-string[de]") returns the german
> translation as Bonobo::Config::LocalizedString.
>
> Optionally, this can do a lookup in the language list (so if the
> xmldb file contains "de_DE" and you ask for "de", it'll first check
> for "de" and then for "de_DE" etc.) - and we can also allow multiple,
> comma separated locales in the square brackets.
>
Maybe we should also consider a special method:
getLocalizedValue (in string key, in string locale);
- Dietmar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]