Skip to content

Commit

Permalink
add inital language (ar,ja,ru,zh-CN) and implement tools to auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
krmanik committed Feb 2, 2024
1 parent a005fb6 commit e460f3c
Show file tree
Hide file tree
Showing 9 changed files with 25,828 additions and 12 deletions.
21 changes: 21 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,27 @@ Translating is easy and fun:
* Grey bullet=missing, Green bullet=done
* For each grey bullet, translate the English text to your language.

## Add new language entry if not exists

1. Contact AnkiDroid Org admin to add new language entry on Crowdin
2. Clone this repository
3. Open [theme/head.hbs](theme/head.hbs) file in text editor
4. Add language entry in head.hbs, for e.g. "ja": "日本語"

```html
<script>
let book_lang = {
"ar": "العربية",
"ja": "日本語",
"ru": "Русский",
"zh-CN": "简体中文",
// <------ add new language entry here
};
</script>
```
5. Commit changes and create pull request to ankidroiddocs
6. Update translations on Crowdin

### Building a Translation

To use the `po/xx.po` file for your output, run the following command:
Expand Down
Loading

0 comments on commit e460f3c

Please sign in to comment.