Julian Bäume
94f5f4a83e
add reverse method of extract(string)
...
during PO.parse, an extract(string) method is called on each string to
unescape some characters (like " and \). This process should be reverted
in the toString method.
The PO spec says, that all strings should be C-Strings. Otherwise tools
like msgmerge (from the gettext package) will fail parsing po files written
by this library.
2014-03-05 10:13:30 +01:00
Ruben Vermeersch
6903bbf967
Fix build.
2014-03-03 16:20:49 +01:00
Ruben Vermeersch
b82dea6e42
Update contributors.
2014-03-03 16:17:22 +01:00
Ruben Vermeersch
1d74ea4a7a
Release v0.2.5
2014-03-03 16:11:50 +01:00
Ruben Vermeersch
783a4129d5
Merge pull request #6 from gabegorelick/serialize-comments
...
Include comments in `PO.Item` output
2014-03-03 16:11:24 +01:00
Gabe Gorelick
8dba54b095
Document extractedComments
2014-03-02 13:20:18 -05:00
Gabe Gorelick
ac85ba0b9c
Handle extracted comments
2014-03-02 13:17:20 -05:00
Gabe Gorelick
ada76116b0
Include comments in PO.Item
output
...
Fixes #5
2014-03-02 12:41:40 -05:00
Ruben Vermeersch
c5515d6128
Add Julian Bäume to contributors.
2014-01-22 14:25:10 +01:00
Ruben Vermeersch
c58333c4d1
Fix capital and punctuation.
2014-01-22 14:22:03 +01:00
Ruben Vermeersch
136b969adb
Release v0.2.4
2014-01-22 14:19:50 +01:00
Ruben Vermeersch
02471be49f
Recompile browserified version.
2014-01-22 14:19:26 +01:00
Ruben Vermeersch
13283fedbe
Merge pull request #4 from Open-Xchange-Frontend/fix_msgctxt_default
...
fix default value of msgctxt field
2014-01-22 05:19:14 -08:00
Julian Bäume
a5f3059661
fix default value of msgctxt field
...
I added a few more edge-cases to the tests for the new msgctxt field and
revealed a bug during that. The default value has been set to empty
string, but should have been null, since the spec says, this field is
optional.
2014-01-22 14:14:03 +01:00
Ruben Vermeersch
abca810905
Upgrade copyright years.
2014-01-21 16:05:01 +01:00
Ruben Vermeersch
ce410f3427
Release v0.2.3
2014-01-21 16:01:30 +01:00
Ruben Vermeersch
4fa1ce75c5
Recompile.
2014-01-21 16:01:08 +01:00
Ruben Vermeersch
b599a76557
Merge pull request #3 from Open-Xchange-Frontend/support_msgctxt
...
Support msgctxt field of items
2014-01-21 07:00:52 -08:00
Julian Bäume
87e29b6c21
add documentation for the new field
...
possibly makes developers happy to have this field documented
2014-01-21 15:46:31 +01:00
Julian Bäume
4ba2cf1cef
add distfiles
...
as compiled by the grunt task. These come in an own commit, since I
didn’t want them to clutter the actual implementation commits.
2014-01-21 15:10:02 +01:00
Julian Bäume
c046b62873
implement writing msgctxt field
...
since the parser can extract this information, now, the writer should
also be able to write it back to a po file
2014-01-21 15:06:11 +01:00
Julian Bäume
6790bfb466
add parsing support for msgctxt field of poitems
...
The gettext format specifies a msgctxt field for translated items. An
example of how to use this field has been added to the tests and the
parsing of this attribute has been implemented.
2014-01-21 15:05:58 +01:00
Ruben Vermeersch
94ad44f953
Release v0.2.2
2013-12-23 09:37:40 +01:00
Ruben Vermeersch
c9811bb7aa
More documentation.
2013-12-23 09:35:59 +01:00
Ruben Vermeersch
f40ab323dd
Add migration notes.
2013-12-23 09:18:28 +01:00
Ruben Vermeersch
554ed47ba7
Update e-mail address.
2013-12-20 10:17:31 +01:00
Ruben Vermeersch
28683aa4b3
More README.
2013-12-20 10:06:22 +01:00
Ruben Vermeersch
fdf3988cd0
Release v0.2.1
2013-12-20 09:57:11 +01:00
Ruben Vermeersch
a79382fb9d
Some more release notes.
2013-12-20 09:56:56 +01:00
Ruben Vermeersch
456d889ea1
Add more files to NPM ignore.
2013-12-20 09:43:38 +01:00
Ruben Vermeersch
bf2ac2ada9
Release v0.2.0
2013-12-20 09:42:19 +01:00
Ruben Vermeersch
51aeb26844
Add grunt-bump.
2013-12-20 09:41:38 +01:00
Ruben Vermeersch
4d256d37c3
Add note about rebranding.
2013-12-20 09:39:10 +01:00
Ruben Vermeersch
d4c406e7f6
Branch of from node-po.
2013-12-20 09:34:21 +01:00
Ruben Vermeersch
363ed2c791
Add browser version.
2013-12-20 09:31:12 +01:00
Ruben Vermeersch
75818a5b4a
Update copyright.
2013-12-19 09:51:39 +01:00
Ruben Vermeersch
a1623e6b64
Clean up README file.
2013-12-18 17:03:24 +01:00
Ruben Vermeersch
3503eb67ab
Remove the old (meaningless) tests.
2013-12-18 17:01:17 +01:00
Ruben Vermeersch
6b2cb2e71e
Stop using util.format.
...
This will massively shrink the browserified footprint.
2013-12-18 16:46:09 +01:00
Ruben Vermeersch
0d4f80e7f6
Write flags out when serializing.
2013-12-17 16:35:40 +01:00
Ruben Vermeersch
fff8349e25
Parse item flags.
2013-12-17 15:04:44 +01:00
Ruben Vermeersch
b2e53d790b
Test references.
2013-12-17 14:56:47 +01:00
Ruben Vermeersch
5ce49c6201
Add more tests for parsing.
2013-12-17 14:53:59 +01:00
Ruben Vermeersch
a4ba136901
Update test header.
2013-12-17 14:44:18 +01:00
Ruben Vermeersch
fece11fb52
Test comments.
2013-12-17 14:42:55 +01:00
Ruben Vermeersch
aa7297ab21
Configure travis testing.
2013-12-17 14:39:09 +01:00
Ruben Vermeersch
ac519bfaf5
Start adding a real unit test framework.
2013-12-17 14:37:17 +01:00
Ruben Vermeersch
fe2e17990a
Fix the async calls.
...
This is a breaking change. But that's okay, the previous behavior for
async was just plain wrong and would crash the entire node process,
which is unacceptable. A major version bump will be needed to release
this.
2013-12-17 14:30:07 +01:00
Ruben Vermeersch
e61e535a79
Add JSHint. Fix style and some potential bugs.
2013-12-16 16:36:32 +01:00
Mike Holly
f7d70f302b
Merge pull request #5 from elewinso/master
...
added support for CRLF files - window style
2013-10-31 07:02:48 -07:00