Re: RFC - Storing translated values in a PropertyBag



Chris "boris" Ross <chris darkrock co uk> writes:

Hi,

> : getValue ("[de]/bonobo-config-test/test-string")

well, I don't think it'll make things easier - and it'll break all existing
path parsing functions and stuff like bonobo_config_dir_name() and
bonobo_config_leaf_name().

I think the correct way to do it is to create a new function
bonobo_config_locale_name() .

> I think it'd be cleaner and easier like this:
> 
>   getValue ("/bonobo-config-test/test-string/de" )
>   
> It also keeps it clean and obvious that "de" is a subproperty of test-string.

Actually, I was already wondering whether it makes sense to allow a syntax
like this to access arbitrary struct fields.

However, the problem is that

a) you don't see where the path name ends and where the locale starts
   (previously, the rule was clear: everything after the last `/' is the
   leaf node and what comes in front of it is the dir name).

b) you can't specify multiple locales (like "[de,de_DE]").

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]