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
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