Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
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
Mikhail Tergoev
PortWINE
Commits
5a0a0091
Commit
5a0a0091
authored
8 months ago
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ES locales for SR!P
parent
7058523a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
functions_helper
data_from_portwine/scripts/functions_helper
+24
-18
No files found.
data_from_portwine/scripts/functions_helper
View file @
5a0a0091
...
...
@@ -50,10 +50,8 @@ change_locale () {
fi
if
[[
!
-z
"
${
LANGUAGE
}
"
]]
\
&&
[[
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
;
then
echo
""
else
&&
[[
!
-f
"
${
PORT_WINE_TMP_PATH
}
/PortProton_loc"
]]
then
[[
!
-f
"
${
pw_yad
}
"
]]
&&
pw_yad
=
"yad"
SET_LANG
=(
"
${
pw_yad
}
"
--list
...
...
@@ -76,14 +74,24 @@ change_locale () {
then
LANGUAGE
=
${
SET_LANG
}
else
exit
1
fi
fi
export
LANGUAGE
if
[[
"
$LANGUAGE
"
==
"ru"
]]
&&
check_start_from_steam
;
then
export
LC_ALL
=
ru_RU.UTF-8
elif
[[
"
$LANGUAGE
"
==
"es"
]]
&&
check_start_from_steam
;
then
export
LC_ALL
=
es_ES.UTF-8
fi
case
"
$LANGUAGE
"
in
ru
)
export
LC_ALL
=
ru_RU.UTF-8
export
FULL_LN
=
"russian"
;;
es
)
export
LC_ALL
=
es_ES.UTF-8
export
FULL_LN
=
"spanish"
;;
*
)
export
FULL_LN
=
"english"
;;
esac
}
export
-f
change_locale
...
...
@@ -2396,15 +2404,13 @@ start_portwine () {
export
DXVK_CONFIG_FILE
=
"
${
PATH_TO_GAME
}
/dxvk.conf"
fi
if
[[
"
$LANGUAGE
"
==
"ru"
]]
;
then
for
chk_lang_and_uname
in
"steam_emu.ini"
"steam_api.ini"
"steam_api64.ini"
"SteamConfig.ini"
;
do
if
[[
-f
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
]]
;
then
sed
-i
"/Language/c
\L
anguage=russian"
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
sed
-i
"/UserName/c
\U
serName=
${
USER
}
"
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
sed
-i
"/PlayerName/c
\P
layerName=
${
USER
}
"
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
fi
done
fi
for
chk_lang_and_uname
in
"steam_emu.ini"
"steam_api.ini"
"steam_api64.ini"
"SteamConfig.ini"
;
do
if
[[
-f
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
]]
;
then
sed
-i
"/Language/c
\L
anguage=
${
FULL_LN
}
"
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
sed
-i
"/UserName/c
\U
serName=
${
USER
}
"
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
sed
-i
"/PlayerName/c
\P
layerName=
${
USER
}
"
"
${
PATH_TO_GAME
}
/
${
chk_lang_and_uname
}
"
fi
done
if
[[
"
${
PW_DISABLE_COMPOSITING
}
"
==
"1"
]]
\
&&
!
check_gamescope_session
...
...
This diff is collapsed.
Click to expand it.
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