Commit 68a6ff25 authored by Mikhail Tergoev's avatar Mikhail Tergoev

update RU language

parent 7408c5fc
...@@ -74,23 +74,26 @@ change_locale () { ...@@ -74,23 +74,26 @@ change_locale () {
export -f change_locale export -f change_locale
generate_pot () { generate_pot () {
LANGUAGES_LIST=(ru) for lang in $LANGUAGES_LIST
for lang in "${LANGUAGES_LIST[@]}"
do do
echo "${lang}" echo "${lang}"
mkdir -p "${PORT_WINE_PATH}/data/locales/${lang}/LC_MESSAGES/" mkdir -p "${PORT_WINE_PATH}/data/locales/${lang}/LC_MESSAGES/"
LANG_PO="${PORT_WINE_PATH}/data/locales/"${lang}"/LC_MESSAGES/PortProton.po" LANG_PO="${PORT_WINE_PATH}/data/locales/${lang}/LC_MESSAGES/PortProton.po"
LANG_MO="${PORT_WINE_PATH}/data/locales/"${lang}"/LC_MESSAGES/PortProton.mo" LANG_MO="${PORT_WINE_PATH}/data/locales/${lang}/LC_MESSAGES/PortProton.mo"
TEMPLATE_POT="${PORT_WINE_PATH}/locales/PortProton.pot" TEMPLATE_POT="${PORT_WINE_PATH}/data/locales/PortProton.pot"
xgettext --from-code=UTF-8 --language shell -i "${PORT_WINE_PATH}/data/scripts/start.sh" "${PORT_WINE_PATH}/data/scripts/setup.sh" "${PORT_WINE_PATH}/data/scripts/functions_helper" -o $TEMPLATE_POT xgettext --from-code=UTF-8 --language shell -i \
if [ -f "$LANG_PO" ]; then "${PORT_WINE_PATH}/data/scripts/start.sh" \
"${PORT_WINE_PATH}/data/scripts/setup.sh" \
"${PORT_WINE_PATH}/data/scripts/functions_helper" \
-o "$TEMPLATE_POT"
if [[ -f "$LANG_PO" ]] ; then
echo "update $LANG_PO file" echo "update $LANG_PO file"
msgmerge --update $LANG_PO $TEMPLATE_POT msgmerge --update "$LANG_PO" "$TEMPLATE_POT"
else else
echo "create $LANG_PO file" echo "create $LANG_PO file"
msginit --input=$TEMPLATE_POT --locale="${lang}" --output=$LANG_PO msginit --input="$TEMPLATE_POT" --locale="${lang}" --output="$LANG_PO"
fi fi
msgfmt --output-file=$LANG_MO $LANG_PO msgfmt --output-file="$LANG_MO" "$LANG_PO"
done done
} }
export -f generate_pot export -f generate_pot
...@@ -2658,7 +2661,16 @@ pw_gui_for_edit_db () { ...@@ -2658,7 +2661,16 @@ pw_gui_for_edit_db () {
"${pw_yad_v13_0}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 --scroll \ "${pw_yad_v13_0}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 --scroll \
--field="$(eval_gettext "Change the version of <b>WINDOWS</b> emulation")!$(eval_gettext "Changing the <b>WINDOWS</b> emulation version may be required to run older games. <b>WINDOWS</b> versions below 10 do not support new games with DirectX 12") :CB" "${ADD_WINVER_EDIT_DB}" \ --field="$(eval_gettext "Change the version of <b>WINDOWS</b> emulation")!$(eval_gettext "Changing the <b>WINDOWS</b> emulation version may be required to run older games. <b>WINDOWS</b> versions below 10 do not support new games with DirectX 12") :CB" "${ADD_WINVER_EDIT_DB}" \
--field="$(eval_gettext "AUTOINSTALL WITH <b>WINETRICKS</b>")!$(eval_gettext "Automatically install with <b>WINETRICKS</b> additional libraries required to run the game/program. List of libraries separated by spaces") :CBE" "${PW_DLL_INSTALL}!vcrun2019 corefonts lucida" \ --field="$(eval_gettext "AUTOINSTALL WITH <b>WINETRICKS</b>")!$(eval_gettext "Automatically install with <b>WINETRICKS</b> additional libraries required to run the game/program. List of libraries separated by spaces") :CBE" "${PW_DLL_INSTALL}!vcrun2019 corefonts lucida" \
--field="$(eval_gettext "Forced to use/disable libraries")!$(eval_gettext "Forced to use/disable the library only for the given application. (There are examples in the drop-down list)") :CBE" "${WINEDLLOVERRIDES}!libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n" \ --field="$(eval_gettext "Forced to use/disable libraries")!$(eval_gettext "Forced to use/disable the library only for the given application. (There are examples in the drop-down list)
A brief instruction:
* libraries are written <b>WITHOUT</b> the .dll file extension
* libraries are separated by semicolons - <b>;</b>
* library=n - use the <b>WINDOWS</b> (third-party) library
* library=b - use <b>WINE</b> (built-in) library
* library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b>
* library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b>
* library= - disable the use of this library") :CBE" "${WINEDLLOVERRIDES}!libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n" \
--field=":LBL" "" \ --field=":LBL" "" \
--field="$(eval_gettext "ADD ARGUMENTS FOR .EXE FILE")!$(eval_gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE" "\\${LAUNCH_PARAMETERS[@]}!-dx11 -skipintro 1" \ --field="$(eval_gettext "ADD ARGUMENTS FOR .EXE FILE")!$(eval_gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE" "\\${LAUNCH_PARAMETERS[@]}!-dx11 -skipintro 1" \
--field=":LBL" "" \ --field=":LBL" "" \
...@@ -2975,7 +2987,7 @@ gui_vkBasalt () { ...@@ -2975,7 +2987,7 @@ gui_vkBasalt () {
local PW_ChromaticAberration_INFO=$(eval_gettext 'Adds chromatic aberration to an image') local PW_ChromaticAberration_INFO=$(eval_gettext 'Adds chromatic aberration to an image')
local PW_Clarity_INFO=$(eval_gettext 'Sharpening textures with slight modifications of image contrast (similar in effect to CAS)') local PW_Clarity_INFO=$(eval_gettext 'Sharpening textures with slight modifications of image contrast (similar in effect to CAS)')
local PW_ColorMatrix_INFO=$(eval_gettext 'Adding cool colors') local PW_ColorMatrix_INFO=$(eval_gettext 'Adding cool colors')
local PW_Colourfulness_INFO=$(eval_gettext 'Increasing color saturation. Increasing color saturation') local PW_Colourfulness_INFO=$(eval_gettext 'Increasing color saturation')
local PW_FakeHDR_INFO=$(eval_gettext 'Add fake HDR') local PW_FakeHDR_INFO=$(eval_gettext 'Add fake HDR')
local PW_FilmGrain2_INFO=$(eval_gettext 'Adding the film grain effect') local PW_FilmGrain2_INFO=$(eval_gettext 'Adding the film grain effect')
local PW_Curves_INFO=$(eval_gettext 'Increases the contrast of the image without affecting the bright and dark areas, so that the detail in shadows and sky is not lost') local PW_Curves_INFO=$(eval_gettext 'Increases the contrast of the image without affecting the bright and dark areas, so that the detail in shadows and sky is not lost')
...@@ -3721,7 +3733,7 @@ EOF ...@@ -3721,7 +3733,7 @@ EOF
mv -f "${PW_PREFIX_TO_BACKUP}/${PW_PREFIX_NAME}.ppack.part" "${PW_PREFIX_TO_BACKUP}/${PW_PREFIX_NAME}.ppack" mv -f "${PW_PREFIX_TO_BACKUP}/${PW_PREFIX_NAME}.ppack.part" "${PW_PREFIX_TO_BACKUP}/${PW_PREFIX_NAME}.ppack"
yad_info "$(eval_gettext "Backup has been successfully created for prefix:") $PW_PREFIX_NAME" yad_info "$(eval_gettext "Backup has been successfully created for prefix:") $PW_PREFIX_NAME"
if [[ ! -f "${PORT_WINE_TMP_PATH}/pfx_backup_info" ]] ; then if [[ ! -f "${PORT_WINE_TMP_PATH}/pfx_backup_info" ]] ; then
yad_info "$(eval_gettext "Attention! Do not pass the resev copy to third parties, there is a risk of losing accounts")" yad_info "$(eval_gettext "Attention! Do not pass the resev copy to third parties, there is a risk of losing accounts!")"
echo "1" > "${PORT_WINE_TMP_PATH}/pfx_backup_info" echo "1" > "${PORT_WINE_TMP_PATH}/pfx_backup_info"
fi fi
else else
......
...@@ -5,11 +5,13 @@ ...@@ -5,11 +5,13 @@
#####################examples########################### #####################examples###########################
if [[ "$LANGUAGE" == "ru" ]] ; then if [[ "$LANGUAGE" == "ru" ]] ; then
export PW_COMMENT_DB="Если после первого запуска вы увидите черный экран, просто перезапустите игру." export PW_COMMENT_DB="Если после первого запуска вы увидите черный экран, просто перезапустите игру."
fi else
if [ "${update_loc}" = "ENG" ] ; then
export PW_COMMENT_DB="If after the first launch you see a black screen,\njust restart the game." export PW_COMMENT_DB="If after the first launch you see a black screen,\njust restart the game."
fi fi
export PW_VULKAN_USE=1 export PW_VULKAN_USE=1
add_in_start_portwine () {
if [ -d "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/" ] ; then if [ -d "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/" ] ; then
sed -i 's/<DirectXVersion>0<\/DirectXVersion>/<DirectXVersion>9<\/DirectXVersion>/' "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/Engine.ini" sed -i 's/<DirectXVersion>0<\/DirectXVersion>/<DirectXVersion>9<\/DirectXVersion>/' "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/Engine.ini"
fi fi
......
...@@ -8,8 +8,7 @@ if [[ "$LANGUAGE" == "ru" ]] ; then ...@@ -8,8 +8,7 @@ if [[ "$LANGUAGE" == "ru" ]] ; then
clearcpuid=514 в раздел GRUB_CMDLINE_LINUX_DEFAULT clearcpuid=514 в раздел GRUB_CMDLINE_LINUX_DEFAULT
в файле /etc/default/grub. Для упрощения можно использовать в файле /etc/default/grub. Для упрощения можно использовать
утилиту Grub Customizer" утилиту Grub Customizer"
fi else
if [ "${update_loc}" = "ENG" ] ; then
export PW_COMMENT_DB="If your game does not start, you need to add export PW_COMMENT_DB="If your game does not start, you need to add
clearcpuid=514 to the GRUB_CMDLINE_LINUX_DEFAULT section clearcpuid=514 to the GRUB_CMDLINE_LINUX_DEFAULT section
in the /etc/default/grub file. To simplify things, you can use in the /etc/default/grub file. To simplify things, you can use
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
if [[ "$LANGUAGE" == "ru" ]] ; then if [[ "$LANGUAGE" == "ru" ]] ; then
export PW_COMMENT_DB="После первого подтверждения логина в вашем браузере, необходимо перезапустить игру." export PW_COMMENT_DB="После первого подтверждения логина в вашем браузере, необходимо перезапустить игру."
fi fi
if [ "${update_loc}" = "ENG" ] ; then if [[ "$LANGUAGE" == "ru" ]] ; then
export PW_COMMENT_DB="After the first login confirmation in your browser, you need to restart the game." export PW_COMMENT_DB="After the first login confirmation in your browser, you need to restart the game."
fi fi
......
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
#MWO.exe #MWO.exe
#Rating=1-5 #Rating=1-5
#####################examples########################### #####################examples###########################
if [[ "$LANGUAGE" == "ru" ]] ; then if [[ "$LANGUAGE" == "ru" ]] ; then
export PW_COMMENT_DB="На данный момент игра работает, но долго запускаеться из Лаунчера.\nПосле установки игры, при повторном запуске, игра будет запускаться быстро." export PW_COMMENT_DB="На данный момент игра работает, но долго запускаеться из Лаунчера.\nПосле установки игры, при повторном запуске, игра будет запускаться быстро."
fi else
if [ "${update_loc}" = "ENG" ] ; then
export PW_COMMENT_DB="At the moment the game works, but it takes a long time to start from the Launcher.\nAfter installing the game, when restarting, the game will start quickly." export PW_COMMENT_DB="At the moment the game works, but it takes a long time to start from the Launcher.\nAfter installing the game, when restarting, the game will start quickly."
fi fi
......
#!/usr/bin/env bash
#Author: linux-gaming.ru
#name_exe_file.exe
#Rating=1-5
#####################examples###########################
# # if [[ "$LANGUAGE" == "ru" ]] ; then
# # export PW_COMMENT_DB="blalala rus"
# # fi
# # if [ "${update_loc}" = "ENG" ] ; then
# # export PW_COMMENT_DB="blaala eng"
# # fi
##export PW_WINDOWS_VER=10 # Set windows version 10, 7 or XP
##export PW_DLL_INSTALL="vcrun2017" # Install DLL in port prefix (used winetricks)
##export WINEDLLOVERRIDES="blabla=n,b"
##export LAUNCH_PARAMETERS="+com_skipIntroVideo 1 +com_skipSignInManager 1" # Additional launch options
##export PW_VULKAN_USE=1 # 1 ,dxvk or 0 for OpenGL
##export PW_VULKAN_NO_ASYNC=1 # Disabled ASYNC for VULKAN
##export PW_OLD_GL_STRING=1
##export PW_HIDE_NVIDIA_GPU=1
##export PW_FORCE_USE_VSYNC=0 # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
##export PW_VIRTUAL_DESKTOP=1
##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue
##export ENABLE_VKBASALT=1
##export PW_VKBASALT_EFFECTS="FakeHDR:cas" # Use Reshade in others games (dx9-12 to vulkan only)
##export PW_VKBASALT_FFX_CAS="0.75" # FidelityFX Contrast Adaptive Sharpening (min 0 - max 1)
##export PW_NO_FSYNC=1 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
##export PW_NO_ESYNC=0 # Do not use eventfd-based in-process synchronization primitives
##export PW_USE_GSTREAMER=1 # 0 - disabled use winegstreamer
##export PW_REDUCE_PULSE_LATENCY=1 # Fix crackling audio in games
##export PW_NO_WRITE_WATCH=1 # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
##export PW_HEAP_DELAY_FREE=1
##export WINEARCH=win32 # defaut = win64
##export WINEPREFIX=
##export PW_USE_TERMINAL=1 # Force run in terminal
##export PW_GUI_DISABLED_CS=1 # 1 = disabled GUI
##export PATH_TO_GAME=
##add_in_start_portwine () { commands ; }
...@@ -21,8 +21,7 @@ then ...@@ -21,8 +21,7 @@ then
pw_start_progress_bar_block "Installing League of Legends." pw_start_progress_bar_block "Installing League of Legends."
if [[ "$LANGUAGE" == "ru" ]] ; then if [[ "$LANGUAGE" == "ru" ]] ; then
yad_info "Вы должны нажать кнопку установки, не изменяя настроек!" yad_info "Вы должны нажать кнопку установки, не изменяя настроек!"
fi else
if [ "${update_loc}" = "ENG" ] ; then
yad_info "You must click the install button without changing the settings!" yad_info "You must click the install button without changing the settings!"
fi fi
pw_kill_autostart RiotClientServices.exe & pw_kill_autostart RiotClientServices.exe &
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#Author: Castro-Fidel (linux-gaming.ru) #Author: Castro-Fidel (linux-gaming.ru)
#SCRIPTS_NEXT_VERSION=2282 #SCRIPTS_NEXT_VERSION=2282
######################################################################## ########################################################################
export LANGUAGES_LIST="ru"
export PW_MANGOHUD="0" export PW_MANGOHUD="0"
export DEFAULT_MANGOHUD_CONFIG="arch,cpu_mhz,cpu_temp,engine_version,gamemode,gpu_core_clock,gpu_mem_clock,gpu_name,gpu_temp,ram,resolution,vkbasalt,vram,vulkan_driver,wine" export DEFAULT_MANGOHUD_CONFIG="arch,cpu_mhz,cpu_temp,engine_version,gamemode,gpu_core_clock,gpu_mem_clock,gpu_name,gpu_temp,ram,resolution,vkbasalt,vram,vulkan_driver,wine"
export PW_VKBASALT_EFFECTS="Curves:cas" export PW_VKBASALT_EFFECTS="Curves:cas"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment