Il giorno lun, 28/01/2008 alle 12.15 +0100, Carlos Garnacho ha scritto:
> Hi!,
> 
> I made a patch to build an expression tree from search expressions like
> "foo and bar or baz" and compose results based on the constructed tree.
> The "And" operator takes precedence on the "Or" one, so that search
> string would result in:
>    And
>   /   \
> Foo   Or
>      /  \
>     Bar Baz

I didn't checked, but ideally Tracker should support
http://xesam.org/main/XesamUserSearchLanguage

> The patch is attached to bug #509607, any testing is welcome. I think
> the only issue left is translation of logical operators, but shouldn't
> be a hard issue, probably we should just add a comment for translators
> to tell them what are these strings about.

I don't think operators should be translatable (see previous link), but
if really you want to do it, the best for translator is use something
like:

        .. Q_("QueryLanguage|and") ..
        .. Q_("QueryLanguage|or") ..

See glib references for more info about Q_() operator 

_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to