Message codes are an excellent option and would be backportable. Joaquin, have you finished this already? ;-)
Ben On Tue, Mar 27, 2012 at 11:54 AM, Burke Mamlin <[email protected]>wrote: > Replacing the hardcoded stop words with message bundle codes shouldn't be > hard. Could we treat this as a bug (unable to localize cohort builder > queries), make a ticket to replace the hardcoded strings with message > codes, and then -- if Joaquín needs -- backport the fix? > > -Burke > > > On Tue, Mar 27, 2012 at 11:28 AM, Ben Wolfe <[email protected]> wrote: > >> Unfortunately, it looks like this is something that is core, not in the >> reportingcompatibility module. It looks like it would be easy to fix, if >> you still want it though. >> >> In CohortSearchHistory.createCompositionFilter(String): >> >> Set<String> andWords = new HashSet<String>(); >> Set<String> orWords = new HashSet<String>(); >> Set<String> notWords = new HashSet<String>(); >> andWords.add("and"); >> andWords.add("intersection"); >> andWords.add("*"); >> orWords.add("or"); >> orWords.add("union"); >> orWords.add("+"); >> notWords.add("not"); >> notWords.add("!"); >> >> So you could use symbols instead of english words right now if you want. >> If you want to offer code changes, it could switch on current locale and >> use spanish "y" instead of "and" if locale is is a spanish based one. >> >> Ben >> >> >> On Mon, Mar 26, 2012 at 6:53 PM, Joaquín Blaya < >> [email protected]> wrote: >> >>> In completely translating the Cohort Builder to Spanish, one of the >>> things we wanted to do was to change what the user had to type in the text >>> box in the composition tab. Right now they have to type AND, OR, or NOT, >>> and we'd like to translate that to spanish. >>> >>> Any idea how hard that would be and what it would entail? >>> >>> Also, are those the only three commands used or are there others? >>> >>> Thanks, >>> >>> Joaquín >>> ___________________________________________________________________ >>> Gerente de Desarrollo, eHealth Systems <http://www.ehs.cl/> >>> Research Fellow, Escuela de Medicina de Harvard<http://hms.harvard.edu/> >>> Moderador, GHDOnline.org <http://www.ghdonline.org/> >>> >> > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

