isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: Translating enum values?
Date Tue, 29 Sep 2015 14:29:59 GMT
Um, I'm not 100% certain this is implemented, actually.  Sorry about that.
I'll double check this evening.

If you want to raise a ticket anyway, that'll be fine.  If it turns out
there is a way then at the very least it would still need to be
documented...

Thx
Dan



On 29 September 2015 at 15:24, Burbach, Matthias <Matthias.Burbach@tui.de>
wrote:

> Hi,
> I am trying to translate enum values like so, but it has no effect.
>
> package domainapp.dom.simple;
> ...
> public class Item implements Comparable<Item> {
> ...
>
> //region > item group (property)
>         public enum ItemGroup {
>   KeyUser,
>   Provider,
>   Unit
>         }
>         private ItemGroup itemGroup;
>     @javax.jdo.annotations.Column(allowsNull = "false")
>     public ItemGroup getItemGroup() {return itemGroup;}
>     public void setItemGroup(final ItemGroup itemGroup) {this.itemGroup =
> itemGroup;}
>     //endregion
> ...
>
> }
>
> file translations-en.po:
> ...
> #: domainapp.dom.simple.Item$ItemGroup#KeyUser
> msgid "Key User"
> msgstr "Key User"
> ...
>
>
> I am not sure if this feature exists at all or if am just using it
> wrongly, there some hints out there but not very clear to me.
>
> Regards,
> Matthias
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message