Skip to content

Commit 5607886

Browse files
author
NullPointerException
committed
update translation guide
1 parent 09d46db commit 5607886

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Issues and PRs are welcomed. Any service related to otaku culture, and any new f
5353

5454
⚠️Warning: This fork is already far from the main repo. You may have to spend a considerable amount of time resolving conflicts.
5555

56+
If you want to contribute your translation, see [TRANSLATION.md](TRANSLATION.md).
57+
5658
## Note
5759

5860
This repo exists originally because BiliBili service is rejected by the team due to censorship concerns. Please **DO NOT** raise any issue about merging new services to upstream in this repo, [TeamNewPipe/NewPipe](https://github.com/TeamNewPipe/NewPipe), or [TeamNewPipe/NewPipeExtractor](https://github.com/TeamNewPipe/NewPipeExtractor/). It is **MEANINGLESS** and a **WASTE OF TIME** for the maintainers.

TRANSLATION.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Thanks for your interest in contributing to the translation!
2+
3+
## If you know how to use git to clone, modify and then make a pull request
4+
5+
Just clone the client, open `app/src/main/res/values/strings.xml` and find the untranslated strings. The string is like that:
6+
```agsl
7+
<string name="title_activity_about">About AnimePipe</string>
8+
```
9+
there the name is the key, and the content is the value. Copy this line and paste it to the end of the your language's file, which can be found in the same directory. Then translate the value.
10+
11+
For example, if you are translating to Simplified Chinese, you should paste the line to the end of `app/src/main/res/values-b+zh+HANS+CN/strings.xml`. Then translate the value to Chinese. The result should be like this:
12+
```agsl
13+
<string name="title_activity_about">关于AnimePipe</string>
14+
```
15+
When you finish your translation you can make a pull request.
16+
17+
## If you don't know how to use git
18+
19+
You can just ignore the clone step and open string.xml [online](https://codeberg.org/NullPointerException/AnimePipeClient/src/branch/dev/app/src/main/res/values/strings.xml)
20+
then follow the same steps above. You can also modify your language's file online, and then it will automatically make a pull request.
21+
For example, the link to the Simplified Chinese file is [here](https://codeberg.org/NullPointerException/AnimePipeClient/src/branch/dev/app/src/main/res/values-b+zh+HANS+CN/strings.xml).

0 commit comments

Comments
 (0)