-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from skuzow/develop
v1.3.0
- Loading branch information
Showing
6 changed files
with
49 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,39 @@ | ||
# mcdr-translator | ||
# 🌐 Simple Translator | ||
|
||
[![license](https://img.shields.io/github/license/legendnightt/MCDR-Translator.svg)](https://github.com/legendnightt/MCDR-Translator/blob/master/LICENSE) | ||
[![plugin package build status](https://github.com/legendnightt/MCDR-Translator/actions/workflows/package.yml/badge.svg?branch=master)](https://github.com/legendnightt/MCDR-Translator/actions/workflows/package.yml) | ||
[![supported python versions](https://img.shields.io/badge/python->=%203.6%20-blue)](https://www.python.org/downloads) | ||
[![license](https://img.shields.io/github/license/skuzow/simple-translator.svg)](https://github.com/skuzow/simple-translator/blob/master/LICENSE) | ||
[![package](https://github.com/skuzow/simple-translator/actions/workflows/package.yml/badge.svg?branch=master)](https://github.com/skuzow/simple-translator/actions/workflows/package.yml) | ||
[![python versions](https://img.shields.io/badge/python->=%203.6%20-blue)](https://www.python.org/downloads) | ||
|
||
Really simple [MCDReforged](https://github.com/Fallen-Breath/MCDReforged) plugin for translating text ingame, from all languages to `global_language`, and `secondary_language` to `global_language` automatically. | ||
Really simple [MCDReforged](https://github.com/Fallen-Breath/MCDReforged) in-game translator plugin. | ||
|
||
More plugins in [MCDReforgedPluginsCatalogue](https://github.com/MCDReforged/PluginCatalogue/blob/catalogue/readme.md). | ||
|
||
## How it works? | ||
## 🗿 How it works? | ||
|
||
Simply type `t what you want to translate`. | ||
Basically translates from all languages to `global_language`, and `secondary_language` to `global_language`. | ||
|
||
### Example: | ||
To use it simply type: `t what you want to translate` | ||
|
||
![example](https://raw.githubusercontent.com/legendnightt/MCDR-Translator/master/img/example.png) | ||
<img src="https://user-images.githubusercontent.com/61398114/177015561-606cfec3-78be-4a16-9846-40388561618e.png" alt="example" width="650"/> | ||
|
||
## Required python modules | ||
## 💾 Config | ||
|
||
- [googletrans](https://pypi.org/project/googletrans/4.0.0rc1) == 4.0.0rc1 | ||
- [mcdreforged](https://github.com/Fallen-Breath/MCDReforged) >= 1.2.0 | ||
|
||
To install them execute: | ||
```bash | ||
pip install googletrans==4.0.0rc1 mcdreforged | ||
``` | ||
Or download [requirements.txt](https://github.com/legendnightt/mcdr-translator/blob/master/requirements.txt), and execute: | ||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Config | ||
|
||
`config/translator.json` | ||
Location: `config/simple_translator.json` | ||
|
||
```json | ||
{ | ||
"global_language": "en", | ||
"secondary_language": "es" | ||
} | ||
``` | ||
|
||
## 🗂️ Required Python libraries | ||
|
||
- [googletrans](https://pypi.org/project/googletrans/4.0.0rc1) == 4.0.0rc1 | ||
- [mcdreforged](https://github.com/Fallen-Breath/MCDReforged) >= 1.2.0 | ||
|
||
To install them execute: | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{ | ||
"id": "translator", | ||
"version": "1.2.0", | ||
"name": "Translator", | ||
"description": "Translates text ingame", | ||
"author": "legendnightt", | ||
"link": "https://github.com/legendnightt/mcdr-translator", | ||
"id": "simple_translator", | ||
"version": "1.3.0", | ||
"name": "SimpleTranslator", | ||
"description": "In-game translator", | ||
"author": "skuzow", | ||
"link": "https://github.com/skuzow/simple-translator", | ||
"dependencies": { | ||
"mcdreforged": ">=2.1.0", | ||
"googletrans": "==4.0.0rc1" | ||
}, | ||
"resources": [ | ||
"LICENSE" | ||
] | ||
"LICENSE" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
mcdreforged | ||
mcdreforged>=2.1.0 | ||
googletrans==4.0.0rc1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters