Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
PortWINE-old
Commits
75c3eba7
Commit
75c3eba7
authored
Jul 22, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update locales func
parent
8b35ac30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
changelog_ru
data_from_portwine/changelog_ru
+3
-0
functions_helper
data_from_portwine/scripts/functions_helper
+11
-14
No files found.
data_from_portwine/changelog_ru
View file @
75c3eba7
...
...
@@ -4,6 +4,9 @@
* обновлена автоустановка Calibre
* исправлено отображение иконки Yabause
* исправлено добавление иконок при создании ярлыка в библиотеку steam (спасибо Boria138)
* обновлено окно настроек gamescope (спасибо Htylol)
* обновлена функция выбора языка (спасибо Htylol)
###Scripts version 2324### / Дата: 18.07.2024 / Размер скачиваемого обновления: 4 мегабайта
* доработана русская локализация (спасибо Eljeyna)
...
...
data_from_portwine/scripts/functions_helper
View file @
75c3eba7
...
...
@@ -40,18 +40,15 @@ fatal () {
change_locale
()
{
if
[[
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
;
then
LANGUAGE
=
$(
<
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
)
fi
if
[[
"
$LANGUAGE
"
==
"RUS"
]]
;
then
LANGUAGE
=
"ru"
echo
"ru"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
elif
[[
"
$LANGUAGE
"
==
"ENG"
]]
;
then
LANGUAGE
=
"en"
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
fi
if
[[
!
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
then
# TODO: drop legacy check language after 01.01.2025
if
[[
"
$LANGUAGE
"
==
"RUS"
]]
;
then
LANGUAGE
=
"ru"
echo
"ru"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
elif
[[
"
$LANGUAGE
"
==
"ENG"
]]
;
then
LANGUAGE
=
"en"
echo
"en"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
fi
else
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
SET_LANG
=(
"
${
pw_yad
}
"
--list
...
...
@@ -66,7 +63,7 @@ change_locale () {
)
out
=
$(
"
${
SET_LANG
[@]
}
"
)
[
-n
"
$out
"
]
||
return
[
-n
"
$out
"
]
||
fatal
"Language is not set!"
SET_LANG
=
$(
echo
"
$out
"
|
cut
-d
'|'
-f2
)
echo
"
${
SET_LANG
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
...
...
@@ -1649,7 +1646,6 @@ pw_find_exe () {
pw_start_progress_bar_block
"
$(
gettext
"Searching for .exe files... Please wait."
)
"
find
"
${
PW_PATH_FOR_FIND
}
"
-type
f
-name
'*.exe'
${
PW_FIND_TIME
}
|
grep
-viE
${
PW_EXCLUDE_EXE_FIND
}
|
\
awk
-F
"/prefixes/"
'{print $2}'
>
"
${
PW_TMPFS_PATH
}
/tmp_yad_find_exe"
sleep
0.001
pw_stop_progress_bar
unset
FIND_TO_GUI
...
...
@@ -3171,6 +3167,7 @@ pw_start_progress_bar_install_game () {
}
pw_stop_progress_bar
()
{
sleep
0.01
for
PW_KILL_YAD_PID
in
"
$PW_YAD_PID_PROGRESS_BAR_BLOCK
"
"
$PW_YAD_PID_PROGRESS_BAR_CS
"
\
"
$PW_YAD_PID_PFX_COVER_UI
"
"
$PW_YAD_PID_PROGRESS_BAR_COVER
"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment