mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
[i18n] move gettext translation template to contrib
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
6be4d508f3
commit
2ba3f4758a
@ -27,23 +27,23 @@ msgid "Enabled"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: daemon/HTTPServer.cpp:141
|
#: daemon/HTTPServer.cpp:141
|
||||||
msgid "days"
|
msgid "day"
|
||||||
msgid_plural "days"
|
msgid_plural "days"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
#: daemon/HTTPServer.cpp:145
|
#: daemon/HTTPServer.cpp:145
|
||||||
msgid "hours"
|
msgid "hour"
|
||||||
msgid_plural "hours"
|
msgid_plural "hours"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
#: daemon/HTTPServer.cpp:149
|
#: daemon/HTTPServer.cpp:149
|
||||||
msgid "minutes"
|
msgid "minute"
|
||||||
msgid_plural "minutes"
|
msgid_plural "minutes"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: daemon/HTTPServer.cpp:152
|
#: daemon/HTTPServer.cpp:152
|
||||||
msgid "seconds"
|
msgid "second"
|
||||||
msgid_plural "seconds"
|
msgid_plural "seconds"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
7
contrib/i18n/regex.txt
Normal file
7
contrib/i18n/regex.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Regex for transforming gettext translations to our format
|
||||||
|
|
||||||
|
msgid\ \"(.*)\"\nmsgid_plural\ \"(.*)\"\nmsgstr\[0\]\ \"(.*)\"\nmsgstr\[1\]\ \"(.*)\"\n(msgstr\[2\]\ \"(.*)\"\n)?(msgstr\[3\]\ \"(.*)\"\n)?(msgstr\[4\]\ \"(.*)\"\n)?(msgstr\[5\]\ \"(.*)\"\n)?
|
||||||
|
#{"$2", {"$3", "$4", "$6", "$8", "$10"}},\n
|
||||||
|
|
||||||
|
msgid\ \"(.*)\"\nmsgstr\ \"(.*)\"\n
|
||||||
|
{"$1", "$2"},\n
|
Loading…
Reference in New Issue
Block a user