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

Localization of Apertium Tools #28

Open
mr-martian opened this issue Mar 19, 2021 · 11 comments
Open

Localization of Apertium Tools #28

mr-martian opened this issue Mar 19, 2021 · 11 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mr-martian
Copy link
Contributor

I was talking to @jonorthwash about localization and it came up that all our command line tools are currently hardcoded as English-only and it would be good if this were otherwise.

I'm uncertain how to effectively/efficiently implement this, but if anyone has any ideas, I'd be happy to do the setting up (since I'm probably digging through all the string handling code this summer anyway).

@flammie
Copy link
Member

flammie commented Mar 19, 2021

I think gettext is still pretty much the standard.

@TinoDidriksen
Copy link
Member

TinoDidriksen commented Mar 19, 2021

@TinoDidriksen
Copy link
Member

Also, we'd need to decide on what not to localize. E.g., floating point weights and other data that is used in pipes must have a single fixed format, regardless of locale.

@unhammer
Copy link
Member

So things like lt-proc --help and error messages?

If we start translating error messages, we should give them unique error codes, e.g. AP3141526: Feil: Ugyldig ordbok (hint: venstresida av eit oppslag er tomt) could be the one about empty left hand sides, such that searching online for AP3141526 will lead to a wiki page (see how shellcheck does it https://github.com/koalaman/shellcheck/wiki/SC2154 )

@TinoDidriksen
Copy link
Member

TinoDidriksen commented Mar 20, 2021

Added to https://wiki.apertium.org/wiki/Ideas_for_Google_Summer_of_Code

GSoC Coding Challenge: Make a trivial C++ Hello World app where the Hello World string is translated using ICU's API and external file format.

Tools that should be localized https://github.com/topics/apertium-core :

All communication should ideally go via our IRC channel (Freenode #apertium) or apertium-stuff mailing list. We don't use issues for chatting.

@flammie
Copy link
Member

flammie commented Mar 23, 2021

The error codes are good for googlability even if there's no localization for sure. For localized number formats I'd say, if it's part of the stream format that needs to be fixed for tools, then the English numbers hard-coded are a good thing, but for the rest it's ok to use the format you get with the locale as well.

As a translator I'd prefer to have a text-editor editable format like gettext's po, which icu seems to support too, if possible. I really dislike the fact that most floss projects these days are moving towards only being localizable with some horrible browser-based apps...

@gat786
Copy link

gat786 commented Apr 4, 2021

If I understand this correctly the problem that we need to solve here is about localizing the texts used in different applications to different languages based up on the locale setup on the machine of the user? I have not worked with localization on CPP apps, but I have worked with CPP and on localization on apps which were of other languages. If I am getting it right, then I will be happy to try my hand at localizing a CPP hello world app and present it to you guys. Does it need to be a Desktop App or a console app would work fine?

@TinoDidriksen
Copy link
Member

Only the console apps matter for this. And localizing a Hello World app using ICU should teach you all you need to know about how it reacts to locale.

@TinoDidriksen
Copy link
Member

Also, all communication should ideally go via our IRC channel (Freenode #apertium) or apertium-stuff mailing list. We don't use issues for chatting.

@gat786
Copy link

gat786 commented Apr 4, 2021

Okay I will join the channels

@flammie
Copy link
Member

flammie commented Apr 6, 2021

I was just thinking that whoever ends up working with these strings that there's a lot of room for improvement for apertium tools printouts... for example when man compiles a thing the only printout is like:

main@standard 67820 212710

this is probably good for debugging for someone who has worked with the tools but for usability it should be rewritten in human languages and translateable.

@TinoDidriksen TinoDidriksen added enhancement New feature or request help wanted Extra attention is needed labels Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants