Commit Graph

37 Commits

Author SHA1 Message Date
David Baumgold
380d2177f5 pep8/pyflakes 2014-03-18 16:09:59 -04:00
David Baumgold
a2e910b133 tests only work when generate.main() is called with strict=False 2014-03-18 15:21:08 -04:00
David Baumgold
a6d5b7f2c7 Added message to run during i18n tests to inform people that test_generate takes a long time 2014-03-18 13:39:24 -04:00
Calen Pennington
561ecc7682 Make i18n tests quieter 2014-03-13 16:18:22 -04:00
Sarina Canelake
fbc76c5c48 i18n tests don't regenerate checked-in eo files 2014-03-06 09:54:01 -05:00
Ned Batchelder
ece123e90f More than one dummy language 2014-02-08 10:37:01 -05:00
Calen Pennington
b06cf9cfbb Make i18n tests work with a clean checkout 2014-02-03 14:27:48 -05:00
Calen Pennington
f5ffc94d16 Prep for initial language release 2014-02-03 13:35:56 -05:00
Calen Pennington
788ed13b76 Rename djangojs.po to djangojs-partial.po in transifex, to prevent header creep 2014-02-03 13:35:56 -05:00
Ned Batchelder
9ea21dd9c7 i18n: extract and generate properly handle segments 2014-01-23 17:39:36 -05:00
Ned Batchelder
f76a5e174c I18n segmenting tool.
Messages can be segmented into different .po files based on the location
of their occurrences.  This is so Studio strings can go into different
.po files so we can direct Transifex workers to the LMS strings we
really need done.
2014-01-23 17:11:38 -05:00
Ned Batchelder
aa1ab5c792 Use yaml for a civilized config file. 2014-01-23 17:11:38 -05:00
Calen Pennington
cb77826a4d Merge pull request #2257 from cpennington/test-compiled-translations
Add tests of compiled translated strings, so that we can check them into the repo safely.
2014-01-23 07:22:24 -08:00
Calen Pennington
d70eb3aa6a Add a test that validates that the .po and .mo files match for all active languages 2014-01-22 14:51:35 -05:00
Sarina Canelake
8f3ba3271d Make test_validate into separate command-line script (i18n)
LMS-1963
2014-01-22 12:30:12 -05:00
Sarina Canelake
fffa4f36da Change i18n contact address 2014-01-20 16:01:45 -05:00
Ned Batchelder
cab1c04e5e Make i18n a real package. 2014-01-20 11:34:54 -05:00
Ned Batchelder
4e298a1abb Add an apostrophe to the Lorem text. 2014-01-10 14:35: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
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
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
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
beb4b39b73 fix logging 2013-05-08 14:25:31 -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
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
d63a37c252 rename test dir to tests; add SkipTest for test_extract.py 2013-04-29 11:47:56 -04:00