Commit Graph

41 Commits

Author SHA1 Message Date
Ned Batchelder
4e298a1abb Add an apostrophe to the Lorem text. 2014-01-10 14:35:17 -05:00
Ned Batchelder
c329270f43 Dont extract test_root strings 2014-01-10 07:18:17 -05:00
Ned Batchelder
af120fdf53 Better handling of plurals during .po validation
Now any of the plurals being missing will count as an Empty translation,
and for looking at tags, the two English strings and all the translated
strings are mooshed together.
2014-01-07 09:43:46 -05:00
Ned Batchelder
c459633534 Say a little about what's happening when pulling from transifex 2014-01-07 09:43:46 -05:00
Ned Batchelder
dd94af4bdb More validation of .po files: check message structure
The tests in test_validate.py now examine the messages to see that they
have the right structure.  The English and the translation should have
the same tags, the translation can't be blank, and it can't have any
Astral plane characters.
2014-01-07 09:43:46 -05:00
Ned Batchelder
9011e6e17f Fix plural handling, put teeth in msgfmt -c test. 2014-01-07 09:43:46 -05:00
Ned Batchelder
d8df97aa50 Use ddt to separate test cases into tests. 2014-01-07 09:43:46 -05:00
Ned Batchelder
209f8cc3db Lorem is now fancy, and HTML tags are recognized with single-quote attributes. 2014-01-07 09:43:46 -05:00
Ned Batchelder
6d5e13e245 Use the same marker everywhere for translator comments. 2014-01-07 09:43:46 -05:00
Ned Batchelder
550f15caea i18n tests run better: no subprocess output, and no duplication of tests. 2013-12-20 10:26:08 -05:00
Ned Batchelder
f1f76a9ad1 Dummy text has more accents, and properly ignored more non-text things. 2013-12-20 10:25:32 -05:00
Ned Batchelder
5e244b1c3b Minor style changes to the i18n directory. 2013-12-20 10:24:33 -05:00
David Baumgold
3d2ad59c51 Merge pull request #1907 from edx/db/whitespace-fixes
whitespace-only changes
2013-12-13 11:40:54 -08:00
David Baumgold
fb13bed947 Updating comments and docs for MITx -> edX transition 2013-12-10 13:21:18 -05:00
David Baumgold
28f22393bf whitespace-only changes 2013-12-10 11:45:49 -05:00
Sarina Canelake
bd8fce5a8a Change dummy locale to Esperanto 2013-11-19 10:28:02 -05:00
Adam Palay
3be155bd88 fix tests, remove zh_CN from config until we have support 2013-08-01 14:13:41 -04:00
Adam Palay
2b40462263 convert all datetime.now() to datetime.now(UTC) 2013-07-22 17:39:11 -04:00
Steve Strassmann
1f7bf1f00a use global LOG instead of local log 2013-05-12 21:52:07 -04:00
Steve Strassmann
1c5815a844 per-file log objects 2013-05-10 15:11:10 -04:00
Steve Strassmann
35d72f30b9 update .gitignore; fix logger import in execute.py 2013-05-10 14:40:30 -04:00
Steve Strassmann
beb4b39b73 fix logging 2013-05-08 14:25:31 -04:00
Steve Strassmann
d05ba84f13 /usr/bin/env in shebang line 2013-05-08 13:49:42 -04:00
Steve Strassmann
129c02f0b2 forgot to remove stale comment 2013-05-07 14:12:58 -04:00
Steve Strassmann
cf8d6b8965 factor logging out of library calls 2013-05-07 14:10:59 -04:00
Steve Strassmann
4620f50fb1 addressed Cale's comments; switched to path.py paths 2013-05-07 13:24:38 -04:00
Steve Strassmann
bec2ca4086 cleanup headers of files pulled from transifex. 2013-05-06 14:05:05 -04:00
Steve Strassmann
c0278d0ff1 refactor config file; fix duplicate merge 2013-05-06 11:29:27 -04:00
Steve Strassmann
55dd0fc8bc workaround for gettext parser bug 2013-05-03 12:45:55 -04:00
Steve Strassmann
8358e866cf more robust cleanup of default po files 2013-04-29 12:45:07 -04:00
Steve Strassmann
e287244151 rm test dir (replaced by tests dir) 2013-04-29 11:49:51 -04:00
Steve Strassmann
d63a37c252 rename test dir to tests; add SkipTest for test_extract.py 2013-04-29 11:47:56 -04:00
Steve Strassmann
393e6ffc23 added test cases for converter and dummy 2013-04-29 11:35:01 -04:00
Steve Strassmann
c00d71d422 integrate dummy string tools; added rake tasks and unit tests 2013-04-29 11:32:22 -04:00
Steve Strassmann
d55d5c9351 addressed Don\'s comments on pull request 2013-04-29 09:54:32 -04:00
Steve Strassmann
1ca763844b testing 2013-04-26 15:25:00 -04:00
Steve Strassmann
d9381eccf2 test_generate and test_extract
both tests work
2013-04-26 15:01:59 -04:00
Steve Strassmann
87e0b85363 implement extract and generate
ran tests successfully with
$cd i18n; python -m unittest test
2013-04-26 13:20:29 -04:00
Steve Strassmann
6f10348836 addressed comments from pull request 2013-04-23 10:07:51 -04:00
Steve Strassmann
e76419093d uncommit unneeded files 2013-04-17 12:25:23 -04:00
Steve Strassmann
6e34c668bb introduce i18n 2013-04-17 11:30:29 -04:00