-
Notifications
You must be signed in to change notification settings - Fork 547
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
WIP: Added experimental translation support via gettext. #14
Conversation
Sorry, I PR'd without testing. I'm distracted by other things right now but I think I can make it work. |
cae23cb
to
ddc6610
Compare
…Chinese, someone else will have to translate it.
Okay, I think it works now. Note that before any translations work, you'll have to compile the catalog files with |
One of the tests failed and I don't understand why. https://travis-ci.org/0xHJK/music-dl/jobs/491414062#L435 |
The test fails here. Line 27 in 0d7f1ff
No idea why |
One of my peers suggested that it's a geoblocking issue, and I think it's possible. If any of the project maintainers can read this, could you test it in China please? |
Sorry. It is my fault. The URL in |
Some friends contributed some translations to English, Japanese, Serbian, and Croatian. |
@anomie31 So cool👍 I have modified the test case and fixed the 'url' KeyError. I tested |
anomie31#1 I added German translations 🤔 @0xHJK Not all systems are
|
Codecov Report
@@ Coverage Diff @@
## master #14 +/- ##
=======================================
Coverage 69.61% 69.61%
=======================================
Files 14 14
Lines 576 576
=======================================
Hits 401 401
Misses 175 175
Continue to review full report at Codecov.
|
@0xHJK Sorry, this is still a work in progress, but it does work. I actually haven't tested it much until now, but it does work after running |
…atalog that should have been. Removed non-language text from translation catalog.
…ons, where I thought it was appropriate.
@0xHJK I notice on lines like https://github.com/0xHJK/music-dl/blob/master/music_dl/__main__.py#L26 you also have strings in English. Would you like to translate them to Mandarin? I figure it's easier to translate from one language than from multiple. |
It does work in some parts. |
@anomie31 Does it work in this part?
You could test it with |
@0xHJK That doesn't work, and it's by design. More text was added after the translation was made, so I just copied it over and marked it as needing work. Apparently the translation isn't used at all when I do so. But it clearly says rating, so I'll just add that. PS: In the future |
@anomie31 I have translated the strings in |
…s and fixed the translations according. I apologies in advance if this causes any problems.
… of the strings can't be used due to a misunderstanding.
|
Sorry, I've ghosted this project and the last week, but it looks like you didn't have any more questions. Thank you for merging. |
Thank you for your contribution. I have updated the code and completed the translation in Chinese and English. But I have not fully translated them into other languages. Could you please help me? Thanks a lot. |
As I don't speak Chinese, someone else will have to translate it.