Re: [Tracker] Bug 509607: Make search support logical operators besides 'And'
- From: Luca Ferretti <elle uca libero it>
- To: Carlos Garnacho <carlos imendio com>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Bug 509607: Make search support logical operators besides 'And'
- Date: Tue, 29 Jan 2008 21:38:29 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]