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
Vladislav
PortWINE
Commits
8679600e
Commit
8679600e
authored
Aug 13, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update credits
parent
e7e48de9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
PortProton.po
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
+0
-0
credits
data_from_portwine/scripts/credits
+0
-0
functions_helper
data_from_portwine/scripts/functions_helper
+10
-3
No files found.
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
View file @
8679600e
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 @
8679600e
This diff is collapsed.
Click to expand it.
data_from_portwine/scripts/functions_helper
View file @
8679600e
...
...
@@ -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