1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-11 21:29:08 +09:00
cherrypick/docs/translate.en.md

28 lines
1.9 KiB
Markdown
Raw Normal View History

2018-05-19 07:55:28 +09:00
Misskey's Translation
=====================
If you find an untranslated part on Misskey:
2018-05-19 07:55:28 +09:00
--------------------------------------------
2018-07-08 05:28:14 +09:00
1. Look for untranslated parts in the misskey's source code.
- For instance, if you find an untranslated part in: `src/client/app/mobile/views/pages/home.vue`.
2018-04-16 05:06:22 +09:00
2. Replace the untranslated portion with a character string of the form `%i18n:@foo%`.
- In fact, `foo` should be a word that is appropriate for the situation and is easy to understand in English.
2018-04-16 19:51:22 +09:00
- For example, if the untranslated portion is the following "タイムライン" you must write: `%i18n:@timeline%`.
2018-08-22 01:46:10 +09:00
3. Open the `locales/ja-JP.yml`, check whether the <strong>file name (path)</strong> found in step 1 exists, if not, create it.
2018-04-17 04:51:06 +09:00
- Do not put the beginning of the path `src/client/app/` in the locale file.
- For example, in this case we want to modify untranslated parts of `src/client/app/mobile/views/pages/home.vue`, so the key is `mobile/views/pages/home.vue`.
2018-07-08 04:11:15 +09:00
4. Add the text property using the `foo` keyword below the path that you found or created in step 2. Make sure to type your text in quotation marks. Text should always be inside of quotes.
2018-08-22 01:46:10 +09:00
- For example, in this case we add timeline: `timeline: "タイムライン"` to `locales/ja-JP.yml`.
5. When you add text to the ja-JP file (of syuilo/misskey), it will automatically be applied to all other local language files within 24-48 hours. Translations added in ja-JP file should contain the original Japanese strings (example see step 4).
6. The new strings will automatically appear in the localized language files in the original Japanese text. After that, please go to [CrowdIn](https://crowdin.com/project/misskey) to do the localized translations in your language.
7. And done
For more details, please refer to this [commit](https://github.com/syuilo/misskey/commit/10f6d5980fa7692ccb45fbc5f843458b69b7607c).