Commit Graph

89 Commits

Author SHA1 Message Date
Sarina Canelake
3422fcfe21 Update how translations are pulled 2014-04-27 17:40:18 -04:00
Sarina Canelake
6fef664309 Update translations (autogenerated message) 2014-03-31 10:42:17 -04:00
Sarina Canelake
9c2a476dcb Update translations (autogenerated message) 2014-03-25 10:46:53 -04:00
David Baumgold
d93238d8de create_dir_if_necessary() is unnecessary
We already have makedirs_p()
2014-03-18 16:10:03 -04:00
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
35f41b7ddd allow stderr if verbosity is off 2014-03-18 15:01:08 -04:00
David Baumgold
19b8b1debe reraise exception without changing traceback 2014-03-18 14:18:33 -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
David Baumgold
337a012c1c Make all i18n scripts use argparse, handle --verbose flag 2014-03-18 13:33:55 -04:00
David Baumgold
c08a73f015 pep8 2014-03-13 16:21:20 -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
Sarina Canelake
c74f30baa4 Remove assert stmt from i18n validate script 2014-03-03 09:02:29 -05:00
Ned Batchelder
830bbb15f3 Generate now removes format flags. 2014-02-25 14:00:52 -05:00
Ned Batchelder
eb4d5f1cbd Also clean up the 3rd-party po files. 2014-02-25 13:58:47 -05:00
Ned Batchelder
be17006022 Use strftime_localized for dates. 2014-02-18 17:35:56 -05:00
Ned Batchelder
3eb69da545 Indicate where i18n tools are being run. 2014-02-10 15:23:13 -05:00
Ned Batchelder
dd6b72382c Include the third-party wiki app into the i18n toolchain
We use pybabel to extract strings from third-party apps, put them on
Transifex, then merge them into django.po.

[LMS-1681]
2014-02-10 15:23:13 -05:00
Ned Batchelder
6635233b3c Merge pull request #2529 from edx/ned/second-dummy-language
Add a second fake translation language
2014-02-10 15:19:27 -05:00
Sarina Canelake
0ea941da69 Add Greek language translations 2014-02-10 14:40:11 -05:00
Ned Batchelder
ece123e90f More than one dummy language 2014-02-08 10:37:01 -05:00
Ned Batchelder
b34ca864fc Make i18n:generate more flexible
Now normal i18n:generate doesn't care about missing files, and
i18n:generate_strict does.  The robot task calls the strict version.

There may well be a better way to make the two tasks, but my Ruby+Rake
skillz are weak, and it's all going away soon.
2014-02-05 22:30:35 -05:00
Will Daly
194c906c19 List which test suites failed
Add section headings to test console output

i18n tests generate XUnit reports

Move i18n and docs test commands out of tests.rake
2014-02-04 12:36:19 -05:00
David Baumgold
b1be29ffbc Use path.py instead of os.path 2014-02-04 11:02:13 -05:00
Will Daly
b03a6096f4 Added missing import of sys to i18n/dummy.py
Removed unused make_dummy.py
Made dummy.py executable
2014-02-04 08:39:54 -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
Calen Pennington
4e879a4c81 Add first pass at i18n automation tasks 2014-02-03 13:35:56 -05:00
Ned Batchelder
79e137c8bd Fix pathological po growth 2014-01-30 16:44:04 -05:00
Calen Pennington
c0470008ba Make i18n dummy dummy-ify all source english strings (rather than a static list) 2014-01-29 09:57:56 -05:00
Sarina Canelake
88789c1d21 Convert i18n/make_dummy.py to a standalone script
LMS-1967
2014-01-28 12:55:48 -05:00
Ned Batchelder
1e8a0cb7e0 Tighten up the extraction I/O
We were writing the main file twice.  No need.
2014-01-24 16:18:43 -05:00
Ned Batchelder
2abd647375 Always add Plural metadata to dummy translations.
When this was conditional, we'd have plural info in some files, not in
others. Then we'd merge them, and msgcat would add wacky markers to
indicate the difference, and the metadata wouldn't parse.
2014-01-24 16:17:46 -05:00
Calen Pennington
58355f071f Merge pull request #2281 from cpennington/fix-i18n-execute
Use subprocess.STDOUT, rather than sys.STDOUT to rebind stderr
2014-01-24 03:48:23 -08:00
Ned Batchelder
9ea21dd9c7 i18n: extract and generate properly handle segments 2014-01-23 17:39:36 -05:00
Ned Batchelder
058569035f A few improvements to extract.
Use the configuration more, and we don't need to delete files we're
about to create.
2014-01-23 17:11:38 -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
c7d53b4219 Use subprocess.STDOUT, rather than sys.STDOUT to rebind stderr 2014-01-23 14:41:13 -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
Calen Pennington
c7bf282111 Don't capture the output of i18n command execution 2014-01-22 14:51:34 -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
2b45ebc82f Change i18n contact address 2014-01-21 08:38:41 -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
c329270f43 Dont extract test_root strings 2014-01-10 07:18:17 -05:00