Sayamindu Dasgupta wrote:
> What I'm looking for is some sort of "fallback" mechanism in gettext,
> which would look for .mo files in the custom location first, and then
> in the usual location (as supplied to, say bindtextdomain())

I'm inclined to provide fallback by having Sugar synthesize a new
directory of symlinked .mo files, as a composite of the available
translation sets according to whatever rules we decide to employ.  The
activity can then be pointed to this directory with a single
bindtextdomain call.

I like this solution because (1) it minimizes the changes needed to
activities, (2) it avoids forking gettext, and (3) it leaves the very
tricky translation precedence logic in Glucose, which is where I think it
belongs.  This is especially important due to the complex interaction with
security/containerization.

--Ben

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to