diff options
Diffstat (limited to 'src/lang.rs')
| -rw-r--r-- | src/lang.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lang.rs b/src/lang.rs index 238d2df..4bba9b5 100644 --- a/src/lang.rs +++ b/src/lang.rs | |||
| @@ -97,6 +97,25 @@ pub const L_MUSIC_STOPPED: &str = "wyszed"; | |||
| 97 | pub const L_MUSIC_NO_AUDIO_ATTACHMENTS: &str = "Brak plików audio w wiadomości"; | 97 | pub const L_MUSIC_NO_AUDIO_ATTACHMENTS: &str = "Brak plików audio w wiadomości"; |
| 98 | pub const L_VOICE_USER_NOT_IN_VC: &str = "You are not in a voice channel"; | 98 | pub const L_VOICE_USER_NOT_IN_VC: &str = "You are not in a voice channel"; |
| 99 | 99 | ||
| 100 | // ── Recording / nagranie ────────────────────────────────────────────── | ||
| 101 | |||
| 102 | /// Nagrywanie jest wyłączone w konfiguracji (`RECORDING_ENABLED=false`). | ||
| 103 | pub const L_RECORD_DISABLED: &str = "Nagrywanie jest wyłączone w konfiguracji"; | ||
| 104 | /// Caller isn't in any voice channel. | ||
| 105 | pub const L_RECORD_NOT_IN_VOICE: &str = "Nie jesteś na kanale głosowym"; | ||
| 106 | /// Bot isn't connected to a voice channel — nothing to dump. | ||
| 107 | pub const L_RECORD_NOT_RECORDING: &str = "Bot nie nagrywa — nie jest na kanale głosowym"; | ||
| 108 | /// Caller is in a different VC than the bot (same-VC gate). | ||
| 109 | pub const L_RECORD_NOT_SAME_VC: &str = "Musisz być na tym samym kanale głosowym co bot"; | ||
| 110 | /// Buffer has no audio yet (called before the first 20 ms tick landed). | ||
| 111 | pub const L_RECORD_NOTHING: &str = "Brak nagrania do zapisania"; | ||
| 112 | pub const L_RECORD_ENCODE_FAILED: &str = "Nie udało się zakodować nagrania (ffmpeg)"; | ||
| 113 | pub const L_RECORD_UPLOAD_FAILED: &str = "Nie udało się wgrać nagrania"; | ||
| 114 | |||
| 115 | pub fn fmt_record_uploaded(url: &str) -> String { | ||
| 116 | format!("Nagranie: {url}") | ||
| 117 | } | ||
| 118 | |||
| 100 | pub fn fmt_music_search_failed(e: &dyn std::fmt::Display) -> String { | 119 | pub fn fmt_music_search_failed(e: &dyn std::fmt::Display) -> String { |
| 101 | format!("Szukanie na copyparty zawiodło: `{e}`") | 120 | format!("Szukanie na copyparty zawiodło: `{e}`") |
| 102 | } | 121 | } |
