You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,32 +8,32 @@ Before you start contributing, make sure you already understand how Git works. Y
8
8
9
9
A **locale** for a language looks like this: `en`, `zh`, `ja`, etc. If a language is somewhat different in some regions and you need to translate it differently, then its **locale** looks like this: `en_US`, `zh_CN`, `zh_TW`, etc.
10
10
11
-
You can check all supported locales by launching *AirPodsDesktop* from the terminal with argument `--print-all-locales`, or `--print-all-locales=Complete` to check all full locale names (with regions).
11
+
You can check all supported locales by launching *AirPodsWindows* from the terminal with argument `--print-all-locales`, or `--print-all-locales=Complete` to check all full locale names (with regions).
12
12
13
13
Examples:
14
14
15
15
```bash
16
-
cd path/to/AirPodsDesktop
17
-
./AirPodsDesktop --print-all-locales
18
-
./AirPodsDesktop --print-all-locales=Complete
16
+
cd path/to/AirPodsWindows
17
+
./AirPodsWindows --print-all-locales
18
+
./AirPodsWindows --print-all-locales=Complete
19
19
```
20
20
21
21
2. You will need the [*Qt Linguist*](https://doc.qt.io/qt-5/linguist-translators.html) tool to complete the translation work. If you didn't have it, please download and install [Qt 5.15.2](https://www.qt.io/download-qt-installer).
22
22
23
23
3. This step is to get the `.ts` translation file for a new target locale. If you just want to improve an existing translation, you can skip this step.
24
24
25
-
You can [open an issue](https://github.com/SpriteOvO/AirPodsDesktop/issues/new/choose) to request a `.ts` translation file directly. Or continue with this step to get the `.ts` translation file yourself (requires you to build *AirPodsDesktop* yourself).
25
+
You can [open an issue](https://github.com/YimingZhanshen/AirPodsWindows/issues/new/choose) to request a `.ts` translation file directly. Or continue with this step to get the `.ts` translation file yourself (requires you to build *AirPodsWindows* yourself).
26
26
27
27
1. Follow the [Build Instructions](/Docs/Build.md) to complete the first build.
28
28
29
29
2. Adds the target **locale** to the variable `APD_TRANSLATION_LOCALES` in [CMakeLists.txt](/CMakeLists.txt).
30
30
31
-
3. Rebuild *AirPodsDesktop* once and you will see the `.ts` translation file for your target **locale** in directory `/Source/Resource/Translation`.
31
+
3. Rebuild *AirPodsWindows* once and you will see the `.ts` translation file for your target **locale** in directory `/Source/Resource/Translation`.
32
32
33
33
4. Open the `.ts` translation file with *Qt Linguist* tool and complete the translation.
34
34
35
35
If you don't know how to use the tool, please read [Qt Linguist Manual: Translators](https://doc.qt.io/qt-5/linguist-translators.html).
36
36
37
37
5. If you search for comments containing "credit" in *Qt Linguist*, you will see a text for crediting translators. If you wish, you can add your name to its translation as required by the developer comment.
38
38
39
-
6. After completing the translation work, [submit a PR](https://github.com/SpriteOvO/AirPodsDesktop/compare) for merging.
39
+
6. After completing the translation work, [submit a PR](https://github.com/YimingZhanshen/AirPodsWindows/compare) for merging.
0 commit comments