Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add localisation support #98

Open
tukusejssirs opened this issue Oct 17, 2019 · 3 comments
Open

Feature request: Add localisation support #98

tukusejssirs opened this issue Oct 17, 2019 · 3 comments

Comments

@tukusejssirs
Copy link

I’d be nice if we could localise the strings. I could add Slovak, Hungarian, Czech (and possible British English) strings, but for that we need to have some the L10N tool.

@tukusejssirs
Copy link
Author

I see you a little bit of French in the code, but it’s rather an exception than a rule.

# `gedcom`, lines 5801 to 5805
if($language eq 'French') {
  $title = ($sex eq 'M') ? 'père' : 'mère';
} else {
  $title = ($sex eq 'M') ? 'father' : 'mother';
}

@nigelhorne
Copy link
Owner

nigelhorne commented Oct 17, 2019

I've started with French to be sure. I don't know that adding L10N is enough. Adding other languages would need some work and refactoring to create a parse tree and use that to generate the output.

I am very interested in doing that.

@tukusejssirs
Copy link
Author

Of cource, this feature needs some work and the program refactoring.

As for the tool: we could use gettext (via Locale::gettext) or Locale::maketext, which is more perlish IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants