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
690924bf
Commit
690924bf
authored
Aug 14, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'update-gettext' of github.com:Htylol/PortWINE into Htylol-update-gettext
parents
f0379dfd
8679600e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
158 deletions
+47
-158
PortProton.po
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
+0
-0
credits
data_from_portwine/scripts/credits
+37
-155
functions_helper
data_from_portwine/scripts/functions_helper
+10
-3
No files found.
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
View file @
690924bf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
data_from_portwine/scripts/credits
View file @
690924bf
...
...
@@ -3,139 +3,21 @@
########################################################################
# grep ';subscription;' stat-subscriptions.csv | awk -F';' '{print $1}' | sort -u | sed "s/\"//g" > thanks
########################################################################
if
[[
"
$LANGUAGE
"
==
"ru"
]]
then
KEY_CREDITS
=
$RANDOM
KEY_CREDITS
=
$RANDOM
DATE
=
$(
date
+
'%Y'
)
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
1
--show-uri
\
--image-path
=
"
$PW_GUI_ICON_PATH
"
--image
=
"port_proton"
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--text-align
=
center
--scroll
--text
=
"PortProton v.
${
install_ver
}
scripts v.
${
scripts_install_ver
}
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
1
--show-uri
--scroll
\
--text-align
=
center
--text
=
"
$(
eval_gettext
"PortProton v.
\$
{install_ver}
scripts v.
\$
{scripts_install_ver}"
)
"
--text-info
<<<
"
$(
eval_gettext
"https://linux-gaming.ru
https://linux-gaming.ru
Авторские права ©
$(
date
+
'%Y'
)
Castro-Fidel (linux-gaming.ru)
Эта программа поставляется без каких-либо гарантий.
Подробнее см. в Лицензия."
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
2
\
--text-align
=
center
--scroll
--text
=
"Автор: Casro-Fidel (Михаил Тергоев)
Помощники разработчика и тестировщики:
Xpamych
Htylol
Boria138
Vano Majukin
Eljeyna
SDR
Мэлс
Cefeiko
Dezert1r
Taz_mania
Anton_Famillianov
RidBowt
chal55rus
UserDiscord
Survolog
gavr
RusNor
aldiserg
an9949an
andrey4korop
zorn
Сергей 33(46)RUS
WelchDragon
Vuursteen
Akai
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
3
--text-info
--scroll
<<<
" Лицензия Массачусетского технологического института (MIT License)
Авторские права ©
$(
date
+
'%Y'
)
Castro-Fidel (linux-gaming.ru)
Настоящим предоставляется бесплатное разрешение любому лицу, получившему копию данного
программного обеспечения и связанных с ним файлов документации (Программное
обеспечение), для в Программном обеспечении без ограничений, включая, помимо прочего,
права использовать, копировать, изменять, объединять, публиковать, распространять,
сублицензировать и/или продавать копий Программного обеспечения, а также разрешить
лицам, которым Программное обеспечение предоставляется для этого при соблюдении
следующих условий:
Вышеприведенное уведомление об авторских правах и это уведомление о разрешении должны
быть включены во все копии или существенные части Программного обеспечения.
ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ (КАК ЕСТЬ), БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНЫХ ИЛИ
ПОДРАЗУМЕВАЕТСЯ, ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ГАРАНТИИ КОММЕРЧЕСКОЙ ЦЕННОСТИ,
ПРИГОДНОСТЬ ДЛЯ ОПРЕДЕЛЕННОЙ ЦЕЛИ И НЕНАРУШЕНИЕ ПРАВ. НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ
АВТОРЫ ИЛИ ВЛАДЕЛЕЦ АВТОРСКИХ ПРАВ НЕСУТ ОТВЕТСТВЕННОСТЬ ЗА ЛЮБЫЕ ПРЕТЕНЗИИ, УЩЕРБ ИЛИ
ДРУГОЕ. ОТВЕТСТВЕННОСТЬ, БУДУЩАЯ ПО ДОГОВОРУ, ДЕЛИКТУ ИЛИ ИНЫМ ОБРАЗОМ, ВОЗНИКАЮЩАЯ ИЗ
ВНЕ ИЛИ В СВЯЗИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ИЛИ ДРУГИМИ СДЕЛКАМИ В
ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ."
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
4
\
--text-info
--fontname
=
"Serif bold italic 12"
--show-uri
--scroll
\
<<<
" Проект поддержали:
https://boosty.to/portwine-linux.ru
$(
cat
${
PORT_WINE_PATH
}
/data/scripts/thanks
)
Список будет дополняться...
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
5
--text
=
"Хотите присоединится и помочь в развитии проекта:"
\
--title
=
JOIN
--window-icon
=
group
--image
=
system-config-users
--uri-color
=
red
--show-uri
\
--text-info
--scroll
<<<
\
"Website: https://linux-gaming.ru/
Discord: http://discord.gg/yJSEFjF
VK: https://vk.com/linuxgamingru
-------------------------------------------
Стать платным подписчиком:
boosty: https://boosty.to/portwine-linux.ru
Yandex кошелек: 410012267513818
-------------------------------------------"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
6
--show-uri
--title
=
"THIRD PARTY LIBRARIES"
\
--fontname
=
"Serif bold italic 10"
--text-info
<<<
" Сторонние библиотеки, которые используются в PortProton
PortProton собран на основе бесплатных библиотек программного обеспечения:
WINE-PROTON: https://github.com/ValveSoftware/Proton
WINE-PROTON-GE: https://github.com/GloriousEggroll/proton-ge-custom/
Kron4ek/Wine: https://github.com/Kron4ek/Wine-Builds
YAD: https://github.com/v1cont/yad
DGVOODOO2: https://dege.fw.hu/"
2>/dev/null &
"
${
pw_yad
}
"
--title
"О НАС"
--key
=
"
${
KEY_CREDITS
}
"
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--notebook
--no-buttons
--tab-pos
=
bottom
--expand
\
--tab
=
"О PORTPROTON"
--tab
=
"АВТОРЫ"
--tab
=
"ЛИЦЕНЗИЯ"
--tab
=
"СПОНСОРЫ"
--tab
=
"ПРИСОЕДИНИТЬСЯ"
\
--tab
=
"БИБЛИОТЕКИ"
echo
"Exit from credits"
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
else
KEY_CREDITS
=
$RANDOM
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
1
--show-uri
\
--image-path
=
"
$PW_GUI_ICON_PATH
"
--image
=
"port_proton"
\
--text-align
=
center
--scroll
--text
=
"PortProton v.
${
install_ver
}
scripts v.
${
scripts_install_ver
}
https://linux-gaming.ru
Copyright © 2024 Castro-Fidel (linux-gaming.ru)
Copyright ©
\$
DATE Castro-Fidel (linux-gaming.ru)
This program comes with absolutely no warranty.
See the License for details."
2>/dev/null &
See the License for details.
"
)
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
2
\
--text-align
=
center
--scroll
--text
=
"Author: Casro-Fidel (Mikhail Tergoev)
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
2
--scroll
\
--text-info
<<<
"
$(
gettext
"Author: Casro-Fidel (Mikhail Tergoev)
Developer assistants and testers:
Xpamych
...
...
@@ -163,14 +45,14 @@ zorn
WelchDragon
Vuursteen
Akai
"
2>/dev/null &
"
)
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
3
--text-info
--scroll
<<<
"MIT License
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
3
--text-info
--scroll
<<<
"
$(
eval_gettext
"
MIT License
Copyright
(©) 2024
Castro-Fidel (linux-gaming.ru)
Copyright
©
\$
DATE
Castro-Fidel (linux-gaming.ru)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the
"
Software
"), to deal
of this software and associated documentation files (the
\"
Software
\
"
), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
...
...
@@ -185,32 +67,33 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE."
2>/dev/null &
SOFTWARE.
"
)
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
4
\
--text-info
--fontname
=
"Serif bold italic 12"
--show-uri
--scroll
\
<<<
"
The project was supported:
https://boosty.to/portwine-linux.ru:
<<<
"
$(
gettext
"
The project was supported:
https://boosty.to/portwine-linux.ru:"
)
$(
cat
${
PORT_WINE_PATH
}
/data/scripts/thanks
)
$(
cat
"
${
PORT_WINE_PATH
}
"
/data/scripts/thanks
)
The list will be updated...
"
2>/dev/null &
$(
gettext
"
The list will be updated...
"
)
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
5
--text
=
"Do you want to join and help in the development of the project:"
\
--t
itle
=
JOIN
--window-icon
=
group
--image
=
system-config-users
--uri-color
=
red
--show-uri
\
--
text-info
--scroll
<<<
\
"Website: http://linux-gaming.ru
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
5
\
--t
ext
=
"
$(
gettext
"Do you want to join and help in the development of the project:"
)
"
\
--
image-path
=
"
$PW_GUI_ICON_PATH
"
--image
=
"port_proton"
\
--uri-color
=
red
--show-uri
--text-info
--scroll
<<<
"
$(
gettext
"Website: http://linux-gaming.ru
Discord: http://discord.gg/yJSEFjF
VK: https://vk.com/linuxgamingru
-------------------------------------------
Become a paid subscriber:
boosty: https://boosty.to/portwine-linux.ru
Yandex wallet: 410012267513818
-------------------------------------------"
2>/dev/null &
-------------------------------------------"
)
"
2>/dev/null &
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
6
--show-uri
--title
=
"THIRD PARTY LIBRARIES"
\
--
fontname
=
"Serif bold italic 10"
--text-info
<<<
" Third-party libraries that are used in PortProton
"
${
pw_yad
}
"
--plug
=
"
${
KEY_CREDITS
}
"
--tabnum
=
6
--show-uri
--title
=
"THIRD PARTY LIBRARIES"
--fontname
=
"Serif bold italic 10"
\
--
text-info
<<<
"
$(
gettext
" Third-party libraries that are used in PortProton
PortProton is built on the basis of the following free software libraries:
...
...
@@ -218,15 +101,14 @@ WINE-PROTON: https://github.com/ValveSoftware/Proton
WINE-PROTON-GE: https://github.com/GloriousEggroll/proton-ge-custom/
Kron4ek/Wine: https://github.com/Kron4ek/Wine-Builds
YAD: https://github.com/v1cont/yad
DGVOODOO2: https://dege.fw.hu/"
2>/dev/null &
DGVOODOO2: https://dege.fw.hu/"
)
"
2>/dev/null &
"
${
pw_yad
}
"
--title
"
ABOUT US"
--key
=
"
${
KEY_CREDITS
}
"
-
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--notebook
--no-buttons
--tab-pos
=
bottom
--expand
\
--tab
=
"
ABOUT PORTPROTON"
--tab
=
"AUTORS"
--tab
=
"LICENSE"
--tab
=
"SPONSORS"
--tab
=
"JOIN
"
\
--tab
=
"
THIRD PARTY LIBRARIES
"
"
${
pw_yad
}
"
--title
"
$(
gettext
"ABOUT US"
)
"
--key
=
"
${
KEY_CREDITS
}
"
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--notebook
--no-buttons
--tab-pos
=
bottom
--expand
--width
=
1000
--height
=
400
\
--tab
=
"
$(
gettext
"ABOUT PORTPROTON"
)
"
--tab
=
"
$(
gettext
"AUTORS"
)
"
--tab
=
"
$(
gettext
"LICENSE"
)
"
\
--tab
=
"
$(
gettext
"SPONSORS"
)
"
--tab
=
"
$(
gettext
"JOIN"
)
"
--tab
=
"
$(
gettext
"THIRD PARTY LIBRARIES"
)
"
echo
"Exit from credits"
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
fi
echo
"Exit from credits"
/usr/bin/env bash
-c
"
${
pw_full_command_line
[*]
}
"
&
exit
0
data_from_portwine/scripts/functions_helper
View file @
690924bf
...
...
@@ -99,11 +99,14 @@ generate_pot () {
LANG_PO
=
"
${
PORT_WINE_PATH
}
/data/locales/
${
lang
}
/LC_MESSAGES/PortProton.po"
LANG_MO
=
"
${
PORT_WINE_PATH
}
/data/locales/
${
lang
}
/LC_MESSAGES/PortProton.mo"
TEMPLATE_POT
=
"
${
PORT_WINE_PATH
}
/data/locales/PortProton.pot"
pushd
"
${
PORT_WINE_PATH
}
"
1>/dev/null
||
fatal
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"
\
"data/scripts/start.sh"
\
"data/scripts/setup.sh"
\
"data/scripts/functions_helper"
\
"data/scripts/credits"
\
-o
"
$TEMPLATE_POT
"
popd
1>/dev/null
||
fatal
if
[[
-f
"
$LANG_PO
"
]]
;
then
echo
"update
$LANG_PO
file"
msgmerge
--update
"
$LANG_PO
"
"
$TEMPLATE_POT
"
...
...
@@ -116,6 +119,10 @@ generate_pot () {
}
export
-f
generate_pot
eval_gettext
()
{
gettext
"
$1
"
|
(
export
PATH
`
envsubst
--variables
"
$1
"
`
;
envsubst
"
$1
"
)
}
try_copy_file
()
{
if
[[
!
-f
"
$1
"
]]
;
then
print_info
"file
$1
not found for copy"
&&
return
1
elif
[[
-z
"
$2
"
]]
;
then
print_error
"no way to copy file
$1
"
&&
return
1
...
...
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