Ruben Vermeersch
9689ae5b7f
Release v1.0.6
2017-03-13 19:39:23 +01:00
Ruben Vermeersch
5cbb657f20
Merge pull request #27 from ma2ciek/master
...
Add support for the typescript projects and IDE-s.
2017-03-13 19:39:04 +01:00
Maciej Bukowski
e038f25d5b
Added support for the typescript projects and IDE-s.
2017-03-13 17:40:01 +01:00
Ruben Vermeersch
f26ecb0d63
Release v1.0.5
2017-03-09 07:45:36 +01:00
Ruben Vermeersch
3324041669
Rebuild
2017-03-09 07:45:14 +01:00
Ruben Vermeersch
d30a02f3c2
Merge pull request #25 from appropos/msgstr-nplurals
...
Stub out missing translations according to language plurals
2017-03-09 07:44:43 +01:00
rosston
0e3a6d74f3
Stub out missing translations according to language plurals.
2017-03-08 10:24:51 -05:00
Ruben Vermeersch
d783222d37
Test with "node"
2017-03-06 17:30:59 +01:00
Ruben Vermeersch
36f5d05828
Release v1.0.4
2017-03-06 17:26:55 +01:00
Ruben Vermeersch
8fe9cd7bf8
Fix alias
2017-03-06 17:26:45 +01:00
Ruben Vermeersch
48fa2c39f3
Bump
2017-02-10 17:47:45 +01:00
Ruben Vermeersch
037edff739
Release v1.0.3
2017-02-10 17:46:32 +01:00
Ruben Vermeersch
16f423879a
Rebuild
2017-02-10 17:02:46 +01:00
Ruben Vermeersch
52c11f77e9
Merge pull request #24 from appropos/msgstr-0
...
Write proper plural msgstr[0]
2017-02-10 17:01:30 +01:00
rosston
115459160e
Use msgstr[0] when stringifying an untranslated plural item.
2017-02-10 10:18:01 -05:00
rosston
79407fcf5e
Remove lodash.isarray (use native Array.isArray).
...
Other code was already depending on Object.keys() and
Array.prototype.filter(), which are also ES5 along with
Array.isArray().
2017-02-09 22:44:46 -05:00
rosston
e2330bd433
Upgrade dev dependencies.
2017-02-09 22:44:45 -05:00
Ruben Vermeersch
853823f214
Merge pull request #22 from paulpdaniels/patch-1
...
Fix readme reference
2015-10-21 07:28:53 +02:00
Paul Daniels
832962d30d
Fix readme reference
2015-10-20 16:07:21 -07:00
Ruben Vermeersch
f6119a57af
Release v1.0.2
2015-09-23 07:41:22 +02:00
Ruben Vermeersch
6c09df93a2
Rebuild
2015-09-23 07:41:09 +02:00
Ruben Vermeersch
1bf498ecf7
Merge pull request #19 from rubenv/no_headers
...
Add proper support for no headers in po files
2015-09-23 07:40:44 +02:00
Julian Bäume
71bb04f046
add support for po files without headers
...
basically fix all the examples.
2015-09-22 23:36:12 +02:00
Julian Bäume
ba9a2db453
add examples for po files without any headers
...
those should at least be fixed
2015-09-22 10:38:43 +02:00
Ruben Vermeersch
fbe773c636
Release v1.0.1
2015-09-21 09:35:02 +02:00
Ruben Vermeersch
7ceda82794
Merge pull request #17 from rubenv/fix_issue16
...
fix issue #16
2015-09-21 09:34:41 +02:00
Julian Bäume
d1be0f51b0
fix issue #16
...
add a blank line in the comments of the headers of the big.po file. This
breaks parsing the headers. msgcat of gettext tools just ignores empty
lines until a header is found and treats everything above as header
comment.
The change to the library itself fixes the tests again, after the blank
linke broke 3.
2015-09-21 09:13:43 +02:00
Ruben Vermeersch
869f763d80
Release v1.0.0
2015-08-20 15:13:21 +02:00
Ruben Vermeersch
b9394176b1
Handle extracted comments in headers
2015-08-20 15:12:56 +02:00
Ruben Vermeersch
9060221403
Release v0.3.0
2015-07-17 10:36:14 +02:00
Ruben Vermeersch
63c4209cd5
Clean up test names
2015-07-17 10:35:56 +02:00
Ruben Vermeersch
104d114d5d
Only write flags when they evaluate to true.
2015-07-17 10:35:25 +02:00
Ruben Vermeersch
db5e540824
Merge pull request #14 from rubenv/fix_issue13
...
add tests to better document reference comments
2014-08-26 10:38:15 +02:00
Julian Bäume
cfc9b2ae82
add tests to better document reference comments
...
pofile does not process reference comments in any way, since the format of
references is not exactly specified. This test specifies, what users of
pofile can expect the library to do.
2014-08-12 17:47:47 +02:00
Ruben Vermeersch
2e1640d847
Release v0.2.12
2014-07-18 10:55:53 +02:00
Ruben Vermeersch
b499b7f449
Rebuild for #12 .
2014-07-18 10:55:15 +02:00
Ruben Vermeersch
e42dc28fd2
Merge pull request #12 from Open-Xchange-Frontend/cstring_escapes
...
Cstring escapes
2014-07-18 10:54:52 +02:00
Julian Bäume
e1742e66a6
properly escape all unprintable characters
...
writing messages should no be in line with gettext tools. I tested
using msgcat, it provides the same results.
For some common use-cases I wrote explicit tests, for uncommon and
even unwanted use-cases I wrote one test to make sure pofile works
like msgcat for those messages
2014-06-23 18:24:02 +02:00
Candid Dauth
4cfebdee80
Fixed unescaping of all escaped C String characters.
...
Signed-off-by: Julian Bäume <julian@svg4all.de>
Conflicts:
lib/po.js
2014-06-23 15:03:58 +02:00
Julian Bäume
d8fc514359
don't remove \n characters from written po file
...
in Item.toString, all \n characters are removed from the output.
The gettext tools however leave those characters intact. This
will now produce the same output as tools like msgcat.
2014-06-23 15:03:58 +02:00
Ruben Vermeersch
d202e39a60
Release v0.2.11
2014-06-23 14:12:25 +02:00
Ruben Vermeersch
f5056bc57f
Merge pull request #11 from Open-Xchange-Frontend/fix_newline_in_msgid
...
restore previous behaviour with \n in strings
2014-06-23 14:11:52 +02:00
Julian Bäume
af94d8ff5e
restore previous behaviour with \n in strings
...
An incompatible change (that actually breaks po parsing after writing) had
been introduced with commit e164fcfe9d
. If
_process returned an array (which is the case for strings containing \n
character), array.toString will return a comma separated list, which is not
valid po syntax. Added a test to restore the behaviour from before the
e164fcfe9d
.
2014-06-23 12:30:04 +02:00
Ruben Vermeersch
8e49417916
Release v0.2.10
2014-06-19 17:18:55 +02:00
Ruben Vermeersch
b9534d20fe
Recompile.
2014-06-19 17:18:45 +02:00
Ruben Vermeersch
1b5668b5c7
Merge pull request #10 from Open-Xchange-Frontend/handle_empty_comments
...
handle empty comments correctly
2014-06-19 17:18:01 +02:00
Julian Bäume
08e7db58b3
handle empty comments correctly
...
since the lines in the parser have all newline characters removed, \s+ will
not match empty comments.
Added an example that makes other tests fail without this patch.
2014-06-19 17:04:03 +02:00
Ruben Vermeersch
eeb1382dfb
Release v0.2.9
2014-06-19 14:16:52 +02:00
Ruben Vermeersch
656bfd0b8d
Add JSCS, fix style.
2014-06-19 14:16:30 +02:00
Ruben Vermeersch
03572f9711
Merge pull request #9 from Open-Xchange-Frontend/fix_commented_obsolete_strings
...
Fix commented obsolete strings
2014-06-19 14:05:32 +02:00