Closed Roger-luo closed 5 years ago
Probably should go upstream to make translations first class.
It would be great if we could either use or emulate GNU gettext in Julia.
Yeah, but I think this is some issue related to some commit in 0.7, it worked in 0.7 for some period. I couldn't locate the bug however, dunno know why this happens yet.
use or emulate GNU gettext in Julia.
Currently this library relies on Python's built-in gettext.py implementation via PyCall. In the future, it may make sense to port this code into a Julia-native version (see Issue #1).
I guess the problem is no one would like to invest time to make this happen for now. Emulating gettext in Julia needs to hack into the Julia compiler, the first step is writing a Julep proposal. But the good news is we only need a PO file parser for supporting docstring substitution.
Yeah, agree with @Gnimuc I believe for most people after reading manual, they will be able to use most of the functionality and who is interested in development usually has the ability on reading English. We haven't had a large user group that requires such localization yet.
Other package/functionality can be in higher priority, so people have to work on other things first. Like me, my job queue is totally full for the next 4 month… So I would say we should wait for a while on this, and focus on manual first.
And on the other side, machine translation algorithm is growing fast, my friends are working on something related, they can analysis HTML directly (https://fanyi.caiyunapp.com). so I'm wondering if it's possible to integrate their application or things like Google translate directly. Then even new package developed in Julia will get i18n support.
I just asked their CTO about this. I'll update here if we get any further idea.
But again, I guess this won't influence much on the user experience. So not as urgent as manual part.
And the point for the original issue is that the doc string for keywords is not working after 1.0. it's definitely some kind of bug. Nothing related to gettext in this part.
I posted a MWE on discourse: https://discourse.julialang.org/t/cannot-replace-doctoring-in-projects/15805