I've searched the web and these forums but haven't found anything about internationalization.
Can anyone tell me if I can map a description property on an object to a single record in an i18n table dependent upon the user's locale?
e.g.:
Code:
class MyMultiLanguageDescription {
private int ID;
private int someData;
private String description;
}
multi_language_object_table { ID:int, someData:int }
multi_language_i18n_table { ID:int, locale_language:char(2), description:varchar(50) }
the data might look like this for example:
Code:
multi_language_object_table:
1, 27
2, 6
3, 4
multi_language_i18n_table:
1, 'en', 'twenty seven'
1, 'fr', 'vingt sept'
1, 'de', 'zwanzig sieben'
2, 'en', 'six'
2, 'fr', 'six'
2, 'de', 'sechs'
3, 'en', 'four'
3, 'fr', 'quatre'
3, 'de', 'vier'
Is it possible to map straight to a String for the description or would I need to load a collection of descriptions?