-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
i18n #99
base: master
Are you sure you want to change the base?
i18n #99
Conversation
I saw that @SeijiFujita has some translations of the settings in his repo: https://github.com/SeijiFujita/quiita_works/blob/master/using_vscode_04/using_vscode_04.md#d-configuration-settingjson @SeijiFujita Are those direct translations that I could include in the japanese translation of code-d in this PR? I can copy them in here if you allow me to, or you could PR into this branch ( |
You can use translations I uploaded to github. I actively want to
participate in PR of code-d i18n. However, I do not understand vscode
language nls function, do you have a file to convert to Japanese somewhere?
--------
I decided to create package.nls.ja.json, I saw this page and understood.
--------
I have created "package.nls.ja.json" and changed "package.json".
After translating the title of the command, the incremental search did not work. I added a category to package.json.
https://github.com/SeijiFujita/code-d-ja
|
Hm the category seems like a nice workaround for microsoft/vscode#17549 but I would prefer if they fixed that instead of using category. Usually they take very long to implement those minor side issues and also never really give any feedback on the issue by closing it. But I think because this also affects their extensions, this should get implemented a bit quicker. Also when done with translating make sure the commands work (just try typing one command) and make sure the status messages work (just set Also if you want to have it a bit easier to merge your changes into this repository later, fork code-d (this repository) and run |
understand that "category" thing. I'd like to create a branch for this "i18n", but I could not.
Can I PR for this "i18n-ja"? |
that should work, I need to merge master into here anyway so that should be fine |
But actually the way you did it won't work. Try these steps instead:
|
TODO: redo for serve-d rewrite which is now in master |
Swedish is basically just to attract some Swedish users to D and Japanese because a lot of D users are Japanese. Just had German done now because I needed a language to test the feature, but it's also useful because there are a lot of Germans in the D community too.
Adding a translation: Duplicate
package.nls.json
and name itpackage.nls.<language>.json
, where<language>
is a 2 letter language code(?) likede
orja
. If you aren't sure what the code is start vscode with the locale of your choice, addconsole.log(vscode.env.language);
tosrc/extension.ts
in the line just afterexport function activate(...) {
and start the extension. The code will get logged right at the top as first message. Then just go in your file and translate all string values.