forked from CastroFidel/PortWINE
		
	Merge branch 'added-reset-userconf' of github.com:Htylol/PortWINE into Htylol-added-reset-userconf
This commit is contained in:
		| @@ -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 <EMAIL@ADDRESS>\n" | ||||
|         "Language-Team: LANGUAGE <LL@li.org>\n" | ||||
| @@ -1413,6 +1413,9 @@ msgid   "Open the <b>user.conf</b> 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  "" | ||||
|  | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| @@ -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 <b>user.conf</b> 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." | ||||
|  | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							| @@ -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 "" | ||||
| "Открыть файл настроек <b>user.conf</b> в системном текстовом редакторе, " | ||||
| "чтобы просмотреть и изменить переменные вручную" | ||||
|  | ||||
| msgid "Do you really want to reset settings for" | ||||
| msgstr "Вы действительно хотите сбросить настройки для" | ||||
|  | ||||
| msgid "The shortcut will be created in the PortProton directory." | ||||
| msgstr "Ярлык будет создан в каталоге PortProton." | ||||
|  | ||||
|   | ||||
| @@ -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 <b>user.conf</b> 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") <b>user.conf</b>?" | ||||
|             then | ||||
|                 try_remove_file "$USER_CONF" | ||||
|                 exit 0 | ||||
|             else | ||||
|                 restart_pp --userconf | ||||
|             fi | ||||
|             ;; | ||||
|         164) | ||||
|             gui_open_user_conf | ||||
|             ;; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user