Leif Warner
unread,May 24, 2011, 9:58:22 PM5/24/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scardf
So, we can show a literal with something like
g/resource/property/asString
or one in a certain language with
g/resource/property/lexicIn(desired_language_tag)
I think for my cases, I would prefer to show the non-language-tagged
literal in the absence of a language specific one. (A label in
possibly the wrong language being better than no label, I'm thinking).
Do you know of a nice way of doing this with the existing converters,
or should I just run some kind of filter something like (_.langExt ==
"@en" || _.langExt == "")?
Hrm, now that I think of it, taking advantage of lexicIn return
Scala's Option type:
g/resource/property/lexicIn(en) orElse g/resource/property/
asString.option
works, just the g/r/p part is duplicated...
-Leif Warner