Index: trunk/extensions/Translate/scripts/sync-group.php |
— | — | @@ -3,7 +3,9 @@ |
4 | 4 | * Command line script to import/update source messages and translations into the wiki database. |
5 | 5 | * |
6 | 6 | * @author Niklas Laxström |
7 | | - * @copyright Copyright © 2007-2010, Niklas Laxström |
| 7 | + * @author Siebrand Mazeland |
| 8 | + * @copyright Copyright © 2007-2012, Niklas Laxström |
| 9 | + * @copyright Copyright © 2009-2012, Siebrand Mazeland |
8 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
9 | 11 | * @file |
10 | 12 | */ |
— | — | @@ -56,6 +58,8 @@ |
57 | 59 | |
58 | 60 | if( $group !== null ) { |
59 | 61 | $groups[$groupId] = $group; |
| 62 | + } else { |
| 63 | + STDERR( "Invalid group $groupId" ); |
60 | 64 | } |
61 | 65 | } |
62 | 66 | } else { |
Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * |
6 | 6 | * @author Niklas Laxstrom |
7 | 7 | * @author Siebrand Mazeland |
8 | | - * @copyright Copyright © 2008-2010, Niklas Laxström, Siebrand Mazeland |
| 8 | + * @copyright Copyright © 2008-2012, Niklas Laxström, Siebrand Mazeland |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | * @file |
11 | 11 | */ |
— | — | @@ -101,6 +101,8 @@ |
102 | 102 | |
103 | 103 | if( $group !== null ) { |
104 | 104 | $groups[$groupId] = $group; |
| 105 | + } else { |
| 106 | + STDERR( "Invalid group $groupId" ); |
105 | 107 | } |
106 | 108 | } |
107 | 109 | } else { |
Index: trunk/extensions/Translate/README |
— | — | @@ -15,30 +15,68 @@ |
16 | 16 | http://translatewiki.net/wiki/Translating:Documentation#Documentation_for_system_administrators |
17 | 17 | |
18 | 18 | == Contributing == |
19 | | -Translations? -> go to http://translatewiki.net and sign up. |
20 | | -Code? File format handlers? New message groups? Graphics? Suggestions? |
21 | | -Bug reports? -> please start a thread at http://translatewiki.net/wiki/Support |
22 | | -or join us at #mediawiki-i18n and let us know what you have in mind. |
| 19 | +* Translations? Go to https://translatewiki.net and sign up. |
| 20 | +* Code? File format handlers? New message groups? Graphics? Suggestions? |
| 21 | +* Bug reports? Please start a thread at http://translatewiki.net/wiki/Support, |
| 22 | + report a bug in https://bugzilla.wikimedia.org or join us at #mediawiki-i18n |
| 23 | + and let us know what you have in mind. |
23 | 24 | |
24 | | -Bugs and feature requests are collected at: |
25 | | - http://translatewiki.net/wiki/Issues_and_features |
| 25 | +Some known bugs and feature requests are collected at: |
| 26 | + https://translatewiki.net/wiki/Issues_and_features |
26 | 27 | |
27 | 28 | Documentation for the extension is at: |
28 | | - http://translatewiki.net/wiki/Translating:Documentation |
| 29 | + https://www.mediawiki.org/wiki/Help:Extension:Translate |
29 | 30 | And for the code at: |
30 | | - http://translatewiki.net/docs/Translate/html/ |
| 31 | + https://translatewiki.net/docs/Translate/html/ |
31 | 32 | |
32 | 33 | == Change log == |
33 | 34 | * 2012-01-31 |
34 | | -- export.php: switch "grouptrail" renamed to "groupprefix" and switch "groups" |
| 35 | +- export.php: switch "grouptrail" renamed to "groupprefix" and switch "groups". |
35 | 36 | was dropped. "group" now takes a comma separated list of groups IDs, too. |
36 | 37 | - sync-group.php: switch "groupprefix" added. |
| 38 | +- Double counting of messages when adding message groups and aggregate groups to |
| 39 | + another aggregate group was partially resolved. |
| 40 | +- Messages for translatable pages for which translation is discouraged, are no |
| 41 | + longer added to aggregate message groups to avoid mismatches in statistics. |
| 42 | +- Special:MessageGroupStats now works for group IDs with spaces. |
| 43 | +- Updates were made for the translation memory service, to avoid serving |
| 44 | + incorrect or outdated suggestions. |
| 45 | +* 2012-01-30 |
| 46 | +- Statictics issues introduced recently were resolved. |
| 47 | +- "lang" attributes were added to Special:SupportedLanguages. |
| 48 | +- [[Special:Translate/groupname]] links for translatable pages with spaces or |
| 49 | + colons in them are now possible. For page "Some page" it is: |
| 50 | + [[Special:Translate/page-Some_page]]. |
| 51 | +- The JavaScript translation editor now shows the code browser and gettext |
| 52 | + comments when translating aggregate message groups. |
| 53 | +- Logging was added group statistics caching to determine if cache purges happen |
| 54 | + too often. |
| 55 | +* 2012-01-29 |
| 56 | +- Update functionality for the translation memory was added. |
| 57 | +* 2012-01-28 |
| 58 | +- Code readability improvements were made. |
| 59 | +- A translation memory service was added, including a bootstrap script. |
| 60 | +* 2012-01-22 |
| 61 | +- Message groups are no longer forced to implement getBools. getTags is the |
| 62 | + official way to do this. |
| 63 | +- getDefinitions was added to the MessageGroupInterface. |
| 64 | +- The public $namespaces variable in MessageGroup was removed. |
| 65 | +* 2012-01-20 |
| 66 | +- Browser compatibility updates were made in CSS. |
| 67 | +* 2012-01-19 |
| 68 | +- Deprecated hook LanguageGetMagic was removed. |
| 69 | +* 2012-01-16 |
| 70 | +- Help icons linking to documentation at |
| 71 | + https://www.mediawiki.org/Help:Extension:Translate or sub pages were added to |
| 72 | + extension functionality. |
| 73 | +- Backward compatibility with MediaWiki 1.18 was restored. |
37 | 74 | * 2012-01-13 |
38 | | -- export.php has a switch "--no-fuzzy" that will filter out fuzzy messages |
39 | | - for file based message groups. |
| 75 | +- export.php has a switch "no-fuzzy" that will filter out fuzzy messages for |
| 76 | + file based message groups. |
40 | 77 | - Special:PageTranslation has now better error checking for invalid and |
41 | 78 | duplicate translation unit names. |
42 | 79 | - Special pages have now help links. |
| 80 | +- Images were moved to a resources sub folder. |
43 | 81 | * 2012-01-11 |
44 | 82 | - Translate page group id prefix was changed from page| to page-. Some old |
45 | 83 | links need to be updated, some still work. |