-
Notifications
You must be signed in to change notification settings - Fork 28
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 #47 from ch3p4ll3/v2-add-localization
V2 add localization
- Loading branch information
Showing
52 changed files
with
1,845 additions
and
354 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ coverage.xml | |
.pytest_cache/ | ||
cover/ | ||
|
||
.vscode/ | ||
# Translations | ||
*.mo | ||
*.pot | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3.9' | ||
services: | ||
qbittorrent-bot: | ||
image: 'ch3p4ll3/qbittorrent-bot:latest' | ||
container_name: qbittorrent-bot | ||
restart: unless-stopped | ||
volumes: | ||
- '/home/user/docker/QBittorrentBot:/app/config:rw' |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Configure proxy for Telegram | ||
|
||
QBittorrent Bot can be configured to use a Telegram proxy to connect to the Telegram API. This can be useful if you are behind a firewall that blocks direct connections to Telegram. | ||
|
||
To configure QBittorrent Bot to use a Telegram proxy, you will need to add a **proxy section** to the `config.json` file in the **telegram section**. The telegram section should have the following format: | ||
|
||
```json5 | ||
"telegram": { | ||
"bot_token": "1111111:AAAAAAAA-BBBBBBBBB", | ||
"api_id": 1111, | ||
"api_hash": "aaaaaaaa", | ||
"proxy": { | ||
"scheme": "http", // http, sock4 or sock5 | ||
"hostname": "myproxy.local", | ||
"port": 8080, | ||
"username": "admin", | ||
"password": "admin" | ||
} | ||
} | ||
``` | ||
|
||
Where: | ||
|
||
- `scheme` is the protocol to use for the proxy connection. This can be `http`, `sock4` or `sock5` | ||
- `hostname` is the hostname or IP address of the proxy server. | ||
- `port` is the port number of the proxy server. | ||
- `username` (optional) is the username for the proxy server. | ||
- `password` (optional) is the password for the proxy server. | ||
|
||
!!! | ||
Once you have added the proxy section to the config.json file, you will need to restart QBittorrent Bot for the changes to take effect. | ||
!!! |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
order: -10 | ||
--- | ||
# Contributing | ||
QBittorrentBot is an open-source Telegram bot that enables seamless management of qBittorrent downloads directly from Telegram. | ||
|
||
By contributing to QBittorrentBot, you can help improve this valuable tool for qBittorrent users. Your contributions can range from fixing bugs and enhancing existing features to adding new functionalities that enhance the bot's capabilities. | ||
|
||
## Adding translations | ||
If you are multilingual and would like to help us make QBittorrentBot more accessible to a wider audience, you can contribute by adding new translations or improving existing ones using Transifex: | ||
|
||
- Visit the [QBittorrentBot Transifex Project](https://app.transifex.com/ch3p4ll3/qbittorrentbot/). | ||
|
||
- If you don't have a Transifex account, sign up for one. If you already have an account, log in. | ||
|
||
- Navigate to the "Languages" tab to view the available languages. Choose the language you want to contribute to. | ||
|
||
- Locate the specific string you wish to translate. Please note that the text between "${" and "}" should not be edited, as they are placeholders for dynamic content. | ||
|
||
- Click on the string you want to translate, enter your translation in the provided field, and save your changes. | ||
|
||
- If your language is not listed, you can request its addition. | ||
|
||
- Once you have completed your translations, submit them for review. The project maintainers will review and approve your contributions. | ||
|
||
Thank you for helping improve QBittorrentBot with your valuable translations! | ||
|
||
|
||
[!ref](/advanced/add_new_client_manager.md) | ||
[!ref](/advanced/add_entries_configuration.md) |
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
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,29 +1,10 @@ | ||
# Getting Started | ||
QBittorrentBot is a Telegram bot that allows you to control your qBittorrent client from within the Telegram messaging app. This makes it easy to add new torrents, manage your existing downloads, and get status updates without having to switch between applications. | ||
|
||
In order to start using the bot, you must first create a folder where the bot will fish for settings and where it will save logs | ||
## Prerequisites | ||
|
||
For example: let's create a folder called `QBittorrentBot` in the home of the user `user`. The path to the folder will then be `/home/user/docker/QBittorrentBot`. | ||
|
||
Before starting the bot you need to place the configuration file in this folder. You can rename the `config.json.template` file to `config.json` and change the parameters as desired. Go [here](configuration_file.md) to read more about the configuration file. | ||
|
||
Once that is done you can start the bot using docker, you can use either docker or docker compose. | ||
|
||
+++ Docker | ||
Open your terminal and execute the following command to start the bot container: | ||
|
||
`docker run -d -v /home/user/docker/QBittorrentBot:/app/config:rw --name qbittorrent-bot ch3p4ll3/qbittorrent-bot:latest` | ||
+++ Docker compose | ||
Create a file named `docker-compose.yml` inside a directory with the following content: | ||
``` | ||
version: '3.9' | ||
services: | ||
qbittorrent-bot: | ||
image: 'ch3p4ll3/qbittorrent-bot:latest' | ||
container_name: qbittorrent-bot | ||
restart: unless-stopped | ||
volumes: | ||
- '/home/user/docker/QBittorrentBot:/app/config:rw' | ||
``` | ||
|
||
Run the following command to start the bot using Docker Compose: | ||
`docker compose up -d` | ||
- A Telegram account | ||
- A bot token obtained from [botfather](https://core.telegram.org/bots#how-do-i-create-a-bot) | ||
- [Telegram API ID](https://core.telegram.org/api/obtaining_api_id) | ||
- A running qBittorrent instance with WebUI enabled | ||
- Access to your qBittorrent server's IP address and port number |
Oops, something went wrong.