forked from PurpleI2P/i2pd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[i18n] update and add Polish, Portuguese, Turkish
Signed-off-by: R4SAS <r4sas@i2pmail.org>
- Loading branch information
Showing
17 changed files
with
744 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
`xgettext` command for extracting translation | ||
--- | ||
|
||
``` | ||
xgettext --omit-header -ctr: -ktr -ktr:1,2 daemon/HTTPServer.cpp libi2pd_client/HTTPProxy.cpp | ||
``` | ||
|
||
Regex for transforming gettext translations to our format: | ||
--- | ||
|
||
``` | ||
in: msgid\ \"(.*)\"\nmsgid_plural\ \"(.*)\"\nmsgstr\[0\]\ \"(.*)\"\n(msgstr\[1\]\ \"(.*)\"\n)?(msgstr\[2\]\ \"(.*)\"\n)?(msgstr\[3\]\ \"(.*)\"\n)?(msgstr\[4\]\ \"(.*)\"\n)?(msgstr\[5\]\ \"(.*)\"\n)? | ||
out: #{"$2", {"$3", "$5", "$7", "$9", "$11"}},\n | ||
``` | ||
|
||
``` | ||
in: msgid\ \"(.*)\"\nmsgstr\ \"(.*)\"\n | ||
out: {"$1", "$2"},\n | ||
``` | ||
|
||
``` | ||
in: ^#[:.](.*)$\n | ||
out: <to empty line> | ||
``` | ||
|
||
``` | ||
in: \n\n | ||
out: \n | ||
``` | ||
`xgettext` command for extracting translation | ||
--- | ||
|
||
``` | ||
xgettext --omit-header -ctr: -ktr -ktr:1,2 daemon/HTTPServer.cpp libi2pd_client/HTTPProxy.cpp | ||
``` | ||
|
||
Regex for transforming gettext translations to our format: | ||
--- | ||
|
||
``` | ||
in: msgid\ \"(.*)\"\nmsgid_plural\ \"(.*)\"\nmsgstr\[0\]\ \"(.*)\"\n(msgstr\[1\]\ \"(.*)\"\n)?(msgstr\[2\]\ \"(.*)\"\n)?(msgstr\[3\]\ \"(.*)\"\n)?(msgstr\[4\]\ \"(.*)\"\n)?(msgstr\[5\]\ \"(.*)\"\n)? | ||
out: #{"$2", {"$3", "$5", "$7", "$9", "$11"}},\n | ||
``` | ||
|
||
``` | ||
in: msgid\ \"(.*)\"\nmsgstr\ \"(.*)\"\n | ||
out: {"$1", "$2"},\n | ||
``` | ||
|
||
``` | ||
in: ^#[:.,](.*)$\n | ||
out: <to empty line> | ||
``` | ||
|
||
``` | ||
in: \n\n | ||
out: \n | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.