#!/bin/bash
# Author: PortWINE-Linux.ru

read "update_loc" < "${PORT_WINE_TMP_PATH}/${portname}_loc"
export update_loc=${update_loc}

if [ "${update_loc}" = "RUS" ]
then

	export inst_set="Выбор"
	export inst_set_top="Установка PortWINE"

	export ss_title="Опции запуска:"
	export ss_text="Выберите желаемый вариант запуска ${portname}. Вы всегда можете изменить свой выбор, \nзапустив ярлык reset из каталога: "${PORT_WINE_PATH}"/"
	export ss_ver="Версия?"
	export ss_default_1="Cтандартный запуск"
	export ss_default_2="Старый запуск, с вопросами и логами"
	export ss_ogl_1="Использовать OpenGL. (DirectX в OpenGL)"
	export ss_ogl_2="Использовать VKD3D. ( DX12 в vulkan)"
	export ss_ogl_3="Использовать DXVK и D9VK. (DX9-DX11 в Vulkan и выключить DX12)"
	export ss_done="Ярлык создан в корневом каталоге порта.\nДобавить его в МЕНЮ -> ИГРЫ?"

	export inst_succ="Установка завершена успешно!"

	export port_upd1="Обновление PortWINE"
	export port_upd2="На сайте portwine-linux.ru вышло обновление для ${portname}\n"
	export port_upd3="Действие:"
	export port_upd4="Перейти на сайт"
	export port_upd5="Напомнить позже"
	export port_upd6="Больше не напоминать"

	export scripts_upd1="Обновление скриптов"
	export scripts_upd2="Доступно обновление скриптов для ${portname}\n"
	export scripts_upd3="Действие:"
	export scripts_upd4="Обновить сейчас"
	export scripts_upd5="Напомнить позже"
	export scripts_upd6="Больше не напоминать"

	export port_clear_pfx="Вы действительно хотите очистить префикс PortProton?"

	export port_del1="Удаление $portname"
	export port_del2="Вы действительно хотите полностью удалить PortProton?"
	export port_del3="Удалить?!"
	export port_del4="Нет, не удалять!"
	export port_del5="Да, удалить!"
	export port_del6="был удален."

	export port_deb1="PortWINE был запущен в режиме создания ${portname}.log и он успешно сохранен в корне каталога порта"
	export port_deb2="Для диагностики проблемы, скопируйте ВЕСЬ лог в соответствующий канал у нас на сервере дискорда: https://discord.gg/FTaheP99wE"

	export port_start1="Запуск PortWINE"
	export port_start2="В каком режиме вы хотите запустить PortWINE?"
	export port_start3="Режим:"
	export port_start4="Обычный"
	export port_start5="Отдельной X-сессии"
	export port_start6="Создать ЛОГ-файл"
	export port_start7="Запустить winetricks"
	export port_start8="DXVK"

	export port_time1="Информация"
	export port_time2="Ты думаешь что помочь автору развивать проект это сложно? Нет!\nДостаточно, что бы именно ты пожертвовал сколько считаешь нужным,\nну или хотя бы 50 рублей."
	export port_time3="Действие:"
	export port_time4="Перейти на сайт и помочь развитию проекта."
	export port_time5="Сейчас не могу, может быть в другой раз."
	export port_time6="Я уже сделал вклад в будущее проекта."

	export port_debug="Не торопитесь!\nПосле окончания работы ${portname}, нажмите ОК."

	export hud_text="Выберите вывод необходимой информации на экран:"
	export hud_info="Отображать:"
	export hud_fps="частоту кадров"
	export hud_devinfo="название графического процессора и версию драйвера"
	export hud_frametimes="график времени кадра"
	export hud_submissions="количество командных буферов, представленных на кадр"
	export hud_drawcalls="количество вызовов отрисовки и отрисовки пропусков на кадр"
	export hud_pipelines="общее количество графических и вычислительных конвейеров"
	export hud_memory="объем памяти устройства, выделенной и использованной"
	export hud_gpuload="предполагаемую загрузку графического процессора (может быть неточна)"
	export hud_version="используемую версию DXVK"
	export hud_api="уровень функций D3D, используемый приложением"
	export hud_compiler="активность шейдерного компилятора"
	export hud_samplers="текущее количество используемых пар сэмплеров (только для D3D9)"

	export sc_name="Введите название будущего ярлыка:"
	export sc_path="Создаем ярлык. Выберите файл запуска..."
	export sc_img="Создаем ярлык. Выберите иконку ICO, или PNG формата..."
	export sc_cmd="Введите дополнительные параметры запуска, или оставьте полепустым."

	export debug_path="Выберите ярлык для создания .log файла..."

	export loc_creat_shortcut="Создать ярлык для запускаемого файла."
	export loc_debug="Запуск c созданием .log файла в корне ${portname}"
	export loc_launch="Запустить файл..."
	export loc_winecfg="Запустить winecfg для редактирования настроек префикса ${portname}"
	export loc_winefile="Запустить файловый менеждер встроенный в wine"
    export loc_winecmd="Запустить командную строку wine"
	export loc_winereg="Запустить редактор реестра префикса ${portname}"
    export loc_winetricks="Запустить winetricks для установки доп. библиотек в префикс ${portname}"

	export loc_scripts_update="   Обновление базы данных для игр\n   и программ успешно завершено.\n\n   Перезапустите ${portname}."

	export loc_edit_db="Изменить файл настроек для"
elif [ "${update_loc}" = "ENG" ]
then

	export inst_set="Sett..."
	export inst_set_top="PortWINE setting"

	export ss_title="Settings::"
	export ss_text="Choose your preferred ${portname} launch option. You can always change your choice by unsetting\nthe reset shortcut from the directory: "${PORT_WINE_PATH}"/"
	export ss_ver="Version:"
	export ss_default_1="Standard start"
	export ss_default_2="Old startup, with questions and logs"
	export ss_ogl_1="Use OpenGL. (DirectX to OpenGL)"
	export ss_ogl_2="Use VKD3D. (DX12 to vulkan)"
	export ss_ogl_3="Use DXVK and D9VK. (DX9-DX11 to Vulkan)"
	export ss_done="The shortcut was created in the ${portname} directory.\nAdd it to MENU -> GAMES?"

	export inst_succ="The installation was successful."

	export port_upd1="New update PortWINE"
	export port_upd2="On portwine-linux.ru site published an update to the ${portname}\n"
	export port_upd3="Action:"
	export port_upd4="Go to the website"
	export port_upd5="Remind me later"
	export port_upd6="Do not remind me"

	export scripts_upd1="New update for scripts"
	export scripts_upd2="Scripts update avialable for ${portname}\n"
	export scripts_upd3="Action:"
	export scripts_upd4="Updating now"
	export scripts_upd5="Remind me later"
	export scripts_upd6="Do not remind me"

	export port_clear_pfx="Do you want to clear prefix in PortProton?"

	export port_del1="Remove $portname"
	export port_del2="Are you sure you want to delete the PortProton"
	export port_del3="Remove?!"
	export port_del4="No!"
	export port_del5="Yes!"
	export port_del6="was deleted."
	export port_deb1="PortWINE was launched in creation mode ${portname}.log and it is successfully stored in the root directory of the port"

	export port_deb2="To diagnose the problem, copy ALL of the log to discord server: https://discord.gg/FTaheP99wE"

	export port_start1="Starting the PortWINE"
	export port_start2="In what mode you want to start the PortWINE?"
	export port_start3="Mode:"
	export port_start4="Normal"
	export port_start5="Individual X-Session"
	export port_start6="Create LOG-file"
	export port_start7="Run winetricks"
	export port_start8="DXVK"

	export port_time1="Information"
	export port_time2="Do you think that it is difficult to help the author develop the project?\nNo! It is enough that you would sacrifice what you think is necessary, well, or at least 1$."
	export port_time3="Action:"
	export port_time4="Go to the site and help develop the project"
	export port_time5="I do not want to help the project"
	export port_time6="I'm well done and have already contributed to the future of the project"

	export port_debug="Please wait!\nAfter finishing the ${portname}, click OK."

	export hud_text="The DXVK_HUD environment variable controls a HUD which can display the framerate\nand some stat counters. It accepts a comma-separated list of the following options:"
	export hud_info="Description:"
	export hud_fps="Shows the current frame rate."
	export hud_devinfo="Displays the name of the GPU and the driver version."
	export hud_frametimes="Shows a frame time graph."
	export hud_submissions="Shows the number of command buffers submitted per frame."
	export hud_drawcalls="Shows the number of draw calls and render passes per frame."
	export hud_pipelines="Shows the total number of graphics and compute pipelines."
	export hud_memory="Shows the amount of device memory allocated and used."
	export hud_gpuload="Shows estimated GPU load. May be inaccurate."
	export hud_version="Shows DXVK version."
	export hud_api="Shows the D3D feature level used by the application."
	export hud_compiler="Shows shader compiler activity"
	export hud_samplers="Shows the current number of sampler pairs used [D3D9 Only]"

	export sc_name="Name shortcut:"
	export sc_path="Select the .exe file..."
	export sc_img="Select the .ICO or .PNG file..."
	export sc_cmd="Add command line"

	export debug_path="Select the .desktop file for create the log"
	
	#Helped in translation: ConTI1NuEsZZZ
	export loc_creat_shortcut="Create shortcut for select file..."
	export loc_debug="Launch with the creation of a .log file at the root ${portname}"
    export loc_launch="Run file ..."
    export loc_winecfg="Run winecfg to edit prefix settings ${portname}"
    export loc_winefile="Run the file manager built into wine"
    export loc_winecmd="Run wine command line"
    export loc_winereg="Run Registry Prefix Editor ${portname}"
    export loc_winetricks="Run winetricks to install additional libraries to the prefix ${portname}"
	
	export loc_scripts_update="Updating scripts and database of games\n   and programs completed successfully.\n\n   Restart ${portname}."

	export loc_edit_db="Edit database file for"
fi