Manual talk:GenerateJsonI18n.php

DRY
The amount of repeated code-spew in EXTENSION.i18n.php is really dreadful. I assume it's only being done to pick up the value of "__DIR__"?? Also, adding a hook doesn't seem like a healthy way to accomplish what you want. How about a simple: $wgLanguageJsonSearchPaths[] = __DIR__; Urp. Okay, I reluctantly accept the backward-compatibility kludge. My only recommendation is to add a comment in the generated code explaining that it is only there for compat, and will be deprecated in the unforseeable future :p Adamw (talk) 16:17, 25 March 2014 (UTC)