FamilySearch / gedcom5-java

Gedcom parsers
Apache License 2.0
68 stars 41 forks source link

Internationalization of EventFact display type #31

Closed michelesalvador closed 2 years ago

michelesalvador commented 2 years ago

As proposed on issue #20, EventFact.getDisplayType() now returns a translated display type based on default locale.

Resources are stored on ISO-8859-1 .properties files. All English strings have been moved to EventFact.properties. Complete Italian translation is provided. Some line of Russian and Hebrew have been added just to taste non-latin alphabets and a right-to-left language.

Added ANNULMENT tag to FAMILY_EVENT_FACT_TAGS, because it was missing. Removed SOC_ tag, because a final underscore it's nonsense and the tag exists only here (probably where it comes from).

Removed two lines of comment, because now all the DISPLAY_TYPE tags are in PERSONAL_EVENT_FACT_TAGS and FAMILY_EVENT_FACT_TAGS.

Test checks existance of all the resource keys.