Add localized error handling for database timeout
Introduced a new localized error message "errorDatabaseTimeout" in multiple languages (English, Kazakh, Russian) and updated the `PanicError` method to handle database timeout errors more gracefully. This improves user feedback by providing context-specific error messages.
This commit is contained in:
@@ -222,6 +222,10 @@ other = "Couldn't convert video"
|
||||
hash = "sha1-531abc3f0d12727e542df6e5a22de91098380fc1"
|
||||
other = "could not create file 'database' in folder 'data'"
|
||||
|
||||
[errorDatabaseTimeout]
|
||||
hash = "sha1-f8153516ac2442d19be4b6daccce839d204ff09f"
|
||||
other = "Could not open configuration file.\nMake sure another copy of the program is not running!"
|
||||
|
||||
[errorDragAndDrop1File]
|
||||
hash = "sha1-a8edb5cbd622f3ce4ec07a2377e22ec5fad4491b"
|
||||
other = "You can only drag and drop 1 file."
|
||||
|
@@ -222,6 +222,10 @@ other = "Бейнені түрлендіру мүмкін болмады"
|
||||
hash = "sha1-531abc3f0d12727e542df6e5a22de91098380fc1"
|
||||
other = "'data' қалтасында 'database' файлын жасау мүмкін болмады"
|
||||
|
||||
[errorDatabaseTimeout]
|
||||
hash = "sha1-f8153516ac2442d19be4b6daccce839d204ff09f"
|
||||
other = "Конфигурация файлын аша алмады.\nБағдарламаның басқа көшірмесі іске қосылмағанына көз жеткізіңіз!"
|
||||
|
||||
[errorDragAndDrop1File]
|
||||
hash = "sha1-a8edb5cbd622f3ce4ec07a2377e22ec5fad4491b"
|
||||
other = "Тек 1 файлды сүйреп апаруға болады"
|
||||
|
@@ -54,6 +54,7 @@ encoder_xbm = "XBM (X BitMap) image"
|
||||
error = "Произошла ошибка!"
|
||||
errorConverter = "не смогли отконвертировать видео"
|
||||
errorDatabase = "не смогли создать файл 'database' в папке 'data'"
|
||||
errorDatabaseTimeout = "Не смогли открыть файл конфигурации.\nУбедитесь, что другая копия программы не запущена!"
|
||||
errorDragAndDrop1File = "Можно перетащить только 1 файл"
|
||||
errorFFmpeg = "это не FFmpeg"
|
||||
errorFFmpegVersion = "Не смогли определить версию FFmpeg"
|
||||
|
Reference in New Issue
Block a user