-
Notifications
You must be signed in to change notification settings - Fork 72
i18n
Translators: Please complete this checklist before delivering a translated blog post
Reviewers: Please complete this checklist before approving a PR with a translated post
-
Review the blog for any untranslated words or phrases (machine translation can ignore links and formatted text)
-
Code blocks should remain in English (unless you know you have a specific code block that should be translated; if so, please indicate this to the reviewer with an explanation)
-
Links:
- Check link addresses to ensure they match the link addresses in the original blog post
- Check that text within links is properly translated (sometimes links are not fully translated due to machine translation)
-
Example: Link in original English blog:
Translated link in Japanese blog:
-
-
Use translated images when available
- Currently available:
- "Ask a question on Stack Overflow" button (ja, zh-Hans) (e.g. blog_btn_stack_ja.svg for Japanese)
- To request a button translation, please follow the directions here
- Currently available:
-
Reviewers: If you have questions/feedback about the translation or want to translate parts of the post that were missed, please reach out to the original translator to discuss any questions, and have them review any newly added machine translations.
-
Once the post is merged into the draft branch and the build completes, please make sure to review your blog on the draft blogs site to confirm that formatting is also correct.
- If this is not your first time here, go to the next step. Otherwise run command
git clone [email protected]:OpenLiberty/blogs.git
on your machine. -
cd
on your local machine to theblogs
directory created bygit clone
-
git checkout prod
and rungit pull
-
git checkout -b <name-of-your-branch>
to create a new feature branch - Is there an existing directory for the language in under
<your_root_directory>/blogs/tree/prod/posts
?- If yes, continue to next step.
- If no, create a new directory named after the language's code in the
/posts
directory.
- Place the
adoc
file into the new/existing language directory. - Is the new post a translation of an existing post?
- If no, continue to next step.
- If yes, please include the attribute
blog-available-in-languages
in themd
file's front matter.- The front matter is the key-value pairs found between the two
---
lines. Here is an example of how to useblog-available-in-languages
attribute (https://raw.githubusercontent.com/OpenLiberty/blogs/prod/posts/ja/2022-10-29-22.0.0.10.adoc). - If there is a desire to give credit to the translator, please the translators name in the new post.
- Please make your
adoc
file similar to the existing post that is being translated. Date can be different. File format isYYYY-MM-DD-postname
. Here are two files that are the same content in different languages and different date.
- The front matter is the key-value pairs found between the two
- Open a pull request from your feature branch that is targeting
draft
branch and Set the reviewer to Kin Ueng (@kinueng)