Adds an --extension option to generateJsonI18n
authorAdam Roses Wight <awight@wikimedia.org>
Tue, 1 Apr 2014 08:31:43 +0000 (01:31 -0700)
committerReedy <reedy@wikimedia.org>
Sat, 10 May 2014 14:38:23 +0000 (15:38 +0100)
commit68bdc4f7f4eb1109e27fad33676010276853d58f
treea93217b525365aa41cf10a7a14ec07074e5af7ed
parentb3615cdf386d11f945af9c9e6b2aa95cefdb422f
Adds an --extension option to generateJsonI18n

Usage:
php maintenance/generateJsonI18n.php --extension WikiLove
Performs the default conversions in $IP/extensions/WikiLove/, replacing
the WikiLove.i18n.php file with a backwards-compatibility shim and porting
messages to the WikiLove/i18n/ directory.

This patch has the side-effect of making the second cmdline argument in
the ordinary usage optional.  When omitted, we will make the default guess
as to $jsondir, that it should live in the same directory as the .i18n.php file.

Change-Id: I6246d2c4eb7327d6dcc503421b71ffdcaf01769c
maintenance/generateJsonI18n.php