commit f6f1a08b4bd482d6d443b3969907a14cc2f6edf0
parent 0faff9f8b0f3191707e6eb415961e30dd1644830
Author: devnibo <kroekerrobin@gmail.com>
Date: Sun, 21 Jul 2024 09:00:34 +0200
Treat moldovian and romanian the same
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -19,7 +19,7 @@ The `/list` command lists all available files in the provided --songs-path recur
2. Don't forget to make the downloaded file executable: `chmod +x <file>`
3. Decide about the configuration
1. [Create a telegram bot](https://telegram.me/BotFather) to obtain the bot api token (--token)
- 2. Which language do you want the bot to speak? english, german or moldovan (--lang)
+ 2. Which language do you want the bot to speak? english, german or romanian/moldovan (--lang)
3. Where do you store the files that the bot uses? (--songs-path)
4. Start the bot: `./songy --token <api_token> --songs-path <full/path/to/songs/folder>`
diff --git a/src/i18n.rs b/src/i18n.rs
@@ -43,7 +43,7 @@ impl I18n {
cancel_msg: String::from("Das Fehlermelden wurde abgebrochen."),
},
},
- "md" => Self {
+ "ro" | "md" => Self {
lang,
start_msg: String::from(format!(
"Salut! Această e o carte de cântari digitală. :)\n\
diff --git a/src/main.rs b/src/main.rs
@@ -39,7 +39,7 @@ struct Config {
short,
long,
default_value = "en",
- help = "language that the bot speaks: 'en', 'de' or 'md'"
+ help = "language that the bot speaks: 'en', 'de' or 'ro/md'"
)]
lang: Option<String>,
#[arg(short = 'f', long, help = "path to search file")]