From 04da586fd6fd464a5410c5823be6155a96f7d58a Mon Sep 17 00:00:00 2001 From: leha-code Date: Fri, 15 Apr 2022 20:35:33 -0400 Subject: [PATCH] Add translation support (And first translation) --- README.md | 2 +- planet/assets/{ => img/full}/git.png | Bin planet/assets/{ => img/full}/heart512.png | Bin planet/assets/{ => img/full}/logo512.png | Bin planet/assets/{ => img/full}/mcpiedit.png | Bin .../assets/{ => img/full}/multiplayer512.png | Bin planet/assets/{ => img/full}/pi512.png | Bin planet/assets/{ => img/full}/portal512.png | Bin planet/assets/{ => img/full}/wrench512.png | Bin planet/assets/{ => img/icon}/heart.png | Bin planet/assets/{ => img/icon}/heartempty.png | Bin planet/assets/{ => img/icon}/logo.png | Bin planet/assets/{ => img/icon}/multiplayer.png | Bin planet/assets/{ => img/icon}/pi.png | Bin planet/assets/{ => img/icon}/portal.png | Bin planet/assets/{ => img/icon}/wrench.png | Bin planet/assets/{ => misc}/changelog.css | 0 planet/assets/{ => misc}/changelog.html | 0 .../assets/{ => misc}/planet-launcher.desktop | 0 .../translations/en/LC_MESSAGES/main.mo | Bin 0 -> 334 bytes .../translations/en/LC_MESSAGES/main.po | 163 +++++++++++++++++ .../translations/en/LC_MESSAGES/mcpiedit.mo | Bin 0 -> 334 bytes .../translations/en/LC_MESSAGES/mcpiedit.po | 124 +++++++++++++ .../translations/ru_RU/LC_MESSAGES/main.mo | Bin 0 -> 4082 bytes .../translations/ru_RU/LC_MESSAGES/main.po | 165 ++++++++++++++++++ .../ru_RU/LC_MESSAGES/mcpiedit.mo | Bin 0 -> 3325 bytes .../ru_RU/LC_MESSAGES/mcpiedit.po | 133 ++++++++++++++ planet/main.py | 107 ++++++------ planet/mcpiedit.py | 54 +++--- planet/textures.py | 69 +++++++- scripts/package/deb/postinst | 2 +- 31 files changed, 737 insertions(+), 82 deletions(-) rename planet/assets/{ => img/full}/git.png (100%) rename planet/assets/{ => img/full}/heart512.png (100%) rename planet/assets/{ => img/full}/logo512.png (100%) rename planet/assets/{ => img/full}/mcpiedit.png (100%) rename planet/assets/{ => img/full}/multiplayer512.png (100%) rename planet/assets/{ => img/full}/pi512.png (100%) rename planet/assets/{ => img/full}/portal512.png (100%) rename planet/assets/{ => img/full}/wrench512.png (100%) rename planet/assets/{ => img/icon}/heart.png (100%) rename planet/assets/{ => img/icon}/heartempty.png (100%) rename planet/assets/{ => img/icon}/logo.png (100%) rename planet/assets/{ => img/icon}/multiplayer.png (100%) rename planet/assets/{ => img/icon}/pi.png (100%) rename planet/assets/{ => img/icon}/portal.png (100%) rename planet/assets/{ => img/icon}/wrench.png (100%) rename planet/assets/{ => misc}/changelog.css (100%) rename planet/assets/{ => misc}/changelog.html (100%) rename planet/assets/{ => misc}/planet-launcher.desktop (100%) create mode 100644 planet/assets/translations/en/LC_MESSAGES/main.mo create mode 100644 planet/assets/translations/en/LC_MESSAGES/main.po create mode 100644 planet/assets/translations/en/LC_MESSAGES/mcpiedit.mo create mode 100644 planet/assets/translations/en/LC_MESSAGES/mcpiedit.po create mode 100644 planet/assets/translations/ru_RU/LC_MESSAGES/main.mo create mode 100644 planet/assets/translations/ru_RU/LC_MESSAGES/main.po create mode 100644 planet/assets/translations/ru_RU/LC_MESSAGES/mcpiedit.mo create mode 100644 planet/assets/translations/ru_RU/LC_MESSAGES/mcpiedit.po mode change 100644 => 100755 planet/textures.py diff --git a/README.md b/README.md index 6f18b53..2b7f332 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@

-![Downloads](https://img.shields.io/github/downloads/mcpiscript/Planet/total) ![Contributors](https://img.shields.io/github/contributors/mcpiscript/Planet?color=dark-green) ![Issues](https://img.shields.io/github/issues/mcpiscript/Planet) ![License](https://img.shields.io/github/license/mcpiscript/Planet) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fmcpiscript%2FPlanet&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) ![Discord](https://img.shields.io/discord/936428193521487953?color=blue&label=Discord%20server&logo=Discord&logoColor=blue) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/mcpiscript/planet?label=Commits) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/mcpiscript/planet/latest/master) ![GitHub last commit](https://img.shields.io/github/last-commit/mcpiscript/planet) ![GitHub Release Date](https://img.shields.io/github/release-date/mcpiscript/planet?label=Latest%20release%20date) ![GitHub repo size](https://img.shields.io/github/repo-size/mcpiscript/planet) +![Downloads](https://img.shields.io/github/downloads/mcpiscript/Planet/total) ![Contributors](https://img.shields.io/github/contributors/mcpiscript/Planet?color=dark-green) ![Issues](https://img.shields.io/github/issues/mcpiscript/Planet) ![License](https://img.shields.io/github/license/mcpiscript/Planet) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fmcpiscript%2FPlanet&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) ![Discord](https://img.shields.io/discord/936428193521487953?color=blue&label=Discord%20server&logo=Discord&logoColor=blue) ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/mcpiscript/planet?label=Commits) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/mcpiscript/planet/latest/master) ![GitHub last commit](https://img.shields.io/github/last-commit/mcpiscript/planet) ![GitHub Release Date](https://img.shields.io/github/release-date/mcpiscript/planet?label=Latest%20release%20date) ![GitHub repo size](https://img.shields.io/github/repo-size/mcpiscript/planet) [![Crowdin](https://badges.crowdin.net/planet-launcher/localized.svg)](https://crowdin.com/project/planet-launcher)