-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add validation option to PO parsing (closes #75)
* rc0 * rc1 * rc2 * rc3 * review comments -- use full error messages instead of regex; revert change in .eslintrc.js * handle optional parameters shifting * rc4 * review comments -- adjusted argument parsing logic * review comments -- simplificatyling public api functions signatures * review comments -- simplifying further public api and updated Readme
- Loading branch information
1 parent
2026f4a
commit 456b3c5
Showing
15 changed files
with
427 additions
and
47 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"charset": "utf-8", | ||
"headers": { | ||
"Project-Id-Version": "project 1.0.2", | ||
"Content-Type": "text/plain; charset=utf-8", | ||
"Content-Transfer-Encoding": "8bit", | ||
"Plural-Forms": "nplurals=2; plural=(n!=1);", | ||
"Mime-Version": "1.0", | ||
"X-Poedit-SourceCharset": "UTF-8" | ||
}, | ||
"translations": { | ||
"": { | ||
"": { | ||
"msgid": "", | ||
"msgstr": [ | ||
"Project-Id-Version: project 1.0.2\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=(n!=1);\nMime-Version: 1.0\nX-Poedit-SourceCharset: UTF-8\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: project 1.0.2\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n!=1);\n" | ||
"Mime-Version: 1.0\n" | ||
"X-Poedit-SourceCharset: UTF-8\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: project 1.0.2\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n!=1);\n" | ||
"Mime-Version: 1.0\n" | ||
"X-Poedit-SourceCharset: UTF-8\n" | ||
|
||
# Plural string in "c1" context | ||
msgctxt "c1" | ||
msgid "o1-1" | ||
msgid_plural "o1-2" | ||
msgstr[0] "t1-1" | ||
msgstr[1] "t1-2" | ||
|
||
# Plural string in "c2" context | ||
msgctxt "c2" | ||
msgid "o1-1" | ||
msgid_plural "o1-2" | ||
msgstr[0] "t1-1" | ||
msgstr[1] "t1-2" | ||
|
||
# Plural string duplicate in "c2" context | ||
msgctxt "c2" | ||
msgid "o1-1" | ||
msgid_plural "o1-2" | ||
msgstr[0] "t1-1" | ||
msgstr[1] "t1-2" |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: project 1.0.2\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n!=1);\n" | ||
"Mime-Version: 1.0\n" | ||
"X-Poedit-SourceCharset: UTF-8\n" | ||
|
||
# Normal string | ||
msgid "o1" | ||
msgstr "t1" | ||
|
||
# Normal string duplicate | ||
msgid "o1" | ||
msgstr "t2" |
Oops, something went wrong.