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

Support Localization #29

Closed
gnunn1 opened this issue Jan 17, 2016 · 6 comments
Closed

Support Localization #29

gnunn1 opened this issue Jan 17, 2016 · 6 comments

Comments

@gnunn1
Copy link
Owner

gnunn1 commented Jan 17, 2016

Currently D does not have an official i18n package. Terminix uses a _() localization function as per GNU gettext but it doesn't actually do anything at the moment. At some point localization needs to be implemented, current localization options are:

  • Write a D version of gettext using standard po/mo files
  • Use the GLib wrapper of gettext
  • Use a non-official D localization package such as i18n-d (https://github.com/JakobOvrum/i18n-d)
  • Create a custom localization system

Of the four options, we will probably go with the second. While writing an official D version of gettext would be nice, it would be resource intensive. If Option #2 works and is supported by GtkD it would be the best.

@gnunn1
Copy link
Owner Author

gnunn1 commented Jan 24, 2016

I've added localization capabilities to Terminix and am using it successfully to localize the shortcut categories and names from their programatic names to proper english names. I'd appreciate it if someone would be willing to localize Terminix in their language and test the localization next release.

I only need one volunteer at this time, so if you are going to it just post in here claiming this task. While others are welcome to localize, I just want to be sure everything works as expected before going full bore into it.

@frnogueira
Copy link
Contributor

I can do this.. But, in my OpenSuse I can't install the Terminix to test... :(

@gnunn1
Copy link
Owner Author

gnunn1 commented Jan 24, 2016

frnogueira, if the language you localize it in is relatively common it should be fine as others can test it. I just want to include at least one localization in the next release to vet it. With respect to OpenSUSE, assuming you meet the dependency requirements listed on the home page, feel free to open an issue for it and I'll help work with it.

@frnogueira
Copy link
Contributor

Brazilian portuguese translations 100%

@gnunn1
Copy link
Owner Author

gnunn1 commented Jan 25, 2016

Thanks Fabio, really appreciate it. I'll be doing a new release in the next day or two that includes this.

@gnunn1
Copy link
Owner Author

gnunn1 commented Jan 29, 2016

Closing this issue, localization support added in 0.45

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

No branches or pull requests

2 participants