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
ef9161c1
Commit
ef9161c1
authored
Oct 07, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added if minutes =~ 0
parent
8eb41a01
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
11 deletions
+29
-11
PortProton.pot
data_from_portwine/locales/PortProton.pot
+4
-1
PortProton.po
data_from_portwine/locales/es/LC_MESSAGES/PortProton.po
+4
-1
PortProton.po
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
+5
-2
functions_helper
data_from_portwine/scripts/functions_helper
+16
-7
No files found.
data_from_portwine/locales/PortProton.pot
View file @
ef9161c1
...
...
@@ -7,7 +7,7 @@
msgid ""
msgstr "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-07
07:15
+0500\n"
"POT-Creation-Date: 2024-10-07
11:18
+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -239,6 +239,9 @@ msgstr ""
msgid "hours"
msgstr ""
msgid "not known yet"
msgstr ""
msgid "minute"
msgstr ""
...
...
data_from_portwine/locales/es/LC_MESSAGES/PortProton.po
View file @
ef9161c1
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-07
07:15
+0500\n"
"POT-Creation-Date: 2024-10-07
10:51
+0500\n"
"PO-Revision-Date: 2024-09-19 23:35+0500\n"
"Last-Translator: \n"
"Language-Team: \n"
...
...
@@ -262,6 +262,9 @@ msgstr ""
msgid "hours"
msgstr ""
msgid "not known yet"
msgstr ""
msgid "minute"
msgstr ""
...
...
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
View file @
ef9161c1
...
...
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-07
07:15
+0500\n"
"PO-Revision-Date: 2024-10-07
07:16
+0500\n"
"POT-Creation-Date: 2024-10-07
10:51
+0500\n"
"PO-Revision-Date: 2024-10-07
11:18
+0500\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru_RU\n"
...
...
@@ -263,6 +263,9 @@ msgstr "и"
msgid "hours"
msgstr "часов"
msgid "not known yet"
msgstr "пока неизвестно"
msgid "minute"
msgstr "минута"
...
...
data_from_portwine/scripts/functions_helper
View file @
ef9161c1
...
...
@@ -836,10 +836,10 @@ seconds_to_time () {
local days=
elif [[
$days
=~ ^1
$
]] ; then
local days=
"
$days
${
translations
[day]
}
, "
elif [[
$days
=~ ^([2-9]1|[1-9][0-9]+1)
$
]] && [[
$LANGUAGE
= ru ]] ; then
elif [[
$days
=~ ^([2-9]1|[1-9][0-9]+1)
$
]] && [[
$LANGUAGE
=
=
ru ]] ; then
local days=
"
$days
${
translations
[day]
}
, "
elif [[
$days
=~ ^([2-4]|[2-9][2-4]|[1-9][0-9]+[2-4])
$
]] \
&& [[
$LANGUAGE
= ru ]] ; then
&& [[
$LANGUAGE
=
=
ru ]] ; then
local days=
"
$days
дня, "
else
local days=
"
$days
${
translations
[days]
}
, "
...
...
@@ -849,19 +849,28 @@ seconds_to_time () {
local hours=
elif [[
$hours
=~ ^1
$
]] ; then
local hours=
"
$hours
${
translations
[hour]
}
${
translations
[and]
}
"
elif [[
$hours
=~ ^([2-4]|2[2-4])
$
]] && [[
$LANGUAGE
= ru ]] ; then
elif [[
$hours
=~ ^([2-4]|2[2-4])
$
]] && [[
$LANGUAGE
=
=
ru ]] ; then
local hours=
"
$hours
часа
${
translations
[and]
}
"
elif [[
$hours
=~ ^21
$
]] && [[
$LANGUAGE
= ru ]] ; then
elif [[
$hours
=~ ^21
$
]] && [[
$LANGUAGE
=
=
ru ]] ; then
local hours=
"
$hours
${
translations
[hour]
}
${
translations
[and]
}
"
else
local hours=
"
$hours
${
translations
[hours]
}
${
translations
[and]
}
"
fi
if [[
$minutes
=~ ^1
$
]] ; then
if [[
$minutes
=~ ^0
$
]] ; then
local hours=
${
hours
//
"
${
translations
[and]
}
"
/
}
local minutes=
if [[
$days
==
""
]] || [[
$hours
==
""
]] ; then
local days=
${
days
//
","
/
}
fi
if [[
$days
==
""
]] && [[
$hours
==
""
]] ; then
local minutes=
"
${
translations
[not known yet]
}
"
fi
elif [[
$minutes
=~ ^1
$
]] ; then
local minutes=
"
$minutes
${
translations
[minute]
}
"
elif [[
$minutes
=~ ^[2-5]1
$
]] && [[
$LANGUAGE
= ru ]] ; then
elif [[
$minutes
=~ ^[2-5]1
$
]] && [[
$LANGUAGE
=
=
ru ]] ; then
local minutes=
"
$minutes
${
translations
[minute]
}
"
elif [[
$minutes
=~ ^([2-4]|[2-5][2-4])
$
]] && [[
$LANGUAGE
= ru ]] ; then
elif [[
$minutes
=~ ^([2-4]|[2-5][2-4])
$
]] && [[
$LANGUAGE
=
=
ru ]] ; then
local minutes=
"
$minutes
минуты"
else
local minutes=
"
$minutes
${
translations
[minutes]
}
"
...
...
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