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
b71f76e5
Commit
b71f76e5
authored
Jun 14, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Boria138-update-locale-window'
parents
4a207fe8
f3de946c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
functions_helper
data_from_portwine/scripts/functions_helper
+16
-4
No files found.
data_from_portwine/scripts/functions_helper
View file @
b71f76e5
...
...
@@ -53,11 +53,23 @@ change_locale () {
&&
[[
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
;
then
echo
""
else
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
SET_LANG
=
$(
"
${
pw_yad
}
"
--title
"LANGUAGE"
--text
"Select the language:"
--list
--radiolist
\
--column
=
"Set:"
--column
"Choose language:"
TRUE
"ru"
FALSE
"en"
FALSE
"es"
\
--window-icon
"
$PW_GUI_ICON_PATH
/portproton.svg"
--width
=
300
--height
=
195
)
SET_LANG
=
"
$(
echo
"
${
SET_LANG
}
"
|
awk
-F
'|'
'{print $2}'
)
"
SET_LANG
=(
"
${
pw_yad
}
"
--list
--title
=
"Select language for PortProton"
--column
=
"Language"
--column
=
""
--width
=
400
--height
=
200
"Russian (Русский)"
ru
"English"
en
"Spanish (Español・Española)"
es
)
out
=
$(
"
${
SET_LANG
[@]
}
"
)
[
-n
"
$out
"
]
||
return
SET_LANG
=
$(
echo
"
$out
"
|
cut
-d
'|'
-f2
)
echo
"
${
SET_LANG
}
"
>
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
if
[[
!
-z
"
${
SET_LANG
}
"
]]
then
LANGUAGE
=
${
SET_LANG
}
...
...
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