diff --git a/data_from_portwine/locales/PortProton.pot b/data_from_portwine/locales/PortProton.pot index ee4d11b..f39a059 100644 --- a/data_from_portwine/locales/PortProton.pot +++ b/data_from_portwine/locales/PortProton.pot @@ -7,7 +7,7 @@ msgid "" msgstr "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" - "POT-Creation-Date: 2024-09-13 02:43+0500\n" + "POT-Creation-Date: 2024-09-15 15:29+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1413,6 +1413,9 @@ msgid "Open the user.conf settings file in a system text editor to " "view and change variables manually" msgstr "" +msgid "Do you really want to reset settings for" +msgstr "" + msgid "The shortcut will be created in the PortProton directory." msgstr "" diff --git a/data_from_portwine/locales/es/LC_MESSAGES/PortProton.mo b/data_from_portwine/locales/es/LC_MESSAGES/PortProton.mo index 5eff950..8b3c3d3 100644 Binary files a/data_from_portwine/locales/es/LC_MESSAGES/PortProton.mo and b/data_from_portwine/locales/es/LC_MESSAGES/PortProton.mo differ diff --git a/data_from_portwine/locales/es/LC_MESSAGES/PortProton.po b/data_from_portwine/locales/es/LC_MESSAGES/PortProton.po index 49626e4..e56746c 100644 --- a/data_from_portwine/locales/es/LC_MESSAGES/PortProton.po +++ b/data_from_portwine/locales/es/LC_MESSAGES/PortProton.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-12 02:37+0500\n" -"PO-Revision-Date: 2024-09-12 02:40+0500\n" +"POT-Creation-Date: 2024-09-15 15:28+0500\n" +"PO-Revision-Date: 2024-09-15 15:29+0500\n" "Last-Translator: \n" "Language-Team: \n" "Language: es_ES\n" @@ -1847,6 +1847,9 @@ msgstr "" "Abre el archivo de configuración user.conf en un editor de texto del " "sistema para ver y cambiar las variables manualmente" +msgid "Do you really want to reset settings for" +msgstr "¿Realmente deseas restablecer la configuración de" + msgid "The shortcut will be created in the PortProton directory." msgstr "El acceso directo se creará en el directorio de PortProton." diff --git a/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.mo b/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.mo index 64a50fd..5dfdf2d 100644 Binary files a/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.mo and b/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.mo differ diff --git a/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po b/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po index f2e4411..5ee25b3 100644 --- a/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po +++ b/data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-12 02:37+0500\n" -"PO-Revision-Date: 2024-09-12 02:39+0500\n" +"POT-Creation-Date: 2024-09-15 15:28+0500\n" +"PO-Revision-Date: 2024-09-15 15:28+0500\n" "Last-Translator: \n" "Language-Team: \n" "Language: ru_RU\n" @@ -1820,6 +1820,9 @@ msgstr "" "Открыть файл настроек user.conf в системном текстовом редакторе, " "чтобы просмотреть и изменить переменные вручную" +msgid "Do you really want to reset settings for" +msgstr "Вы действительно хотите сбросить настройки для" + msgid "The shortcut will be created in the PortProton directory." msgstr "Ярлык будет создан в каталоге PortProton." diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index e086299..89ee80a 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -4816,6 +4816,7 @@ gui_userconf () { --separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \ --gui-type="settings-paned" \ --button="$(gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(gettext "Cancel the current changes and return to the previous menu")":1 \ + --button="$(gettext "RESET") USER.CONF"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(gettext "Restore default settings for") user.conf":2 \ --button="$(gettext "OPEN THE SETTINGS FILE")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(gettext "Open the user.conf settings file in a system text editor to view and change variables manually")":164 \ --button="$(gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(gettext "Save the current changes, and go to the previous menu")":166 \ 2>/dev/null @@ -4825,6 +4826,15 @@ gui_userconf () { 1|252) restart_pp ;; + 2) + if yad_question "$(gettext "Do you really want to reset settings for") user.conf?" + then + try_remove_file "$USER_CONF" + exit 0 + else + restart_pp --userconf + fi + ;; 164) gui_open_user_conf ;;