[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/ -> generateJsonI18n.php (summary)

Convert a PHP messages file to a set of JSON messages files. Usage: php generateJsonI18n.php ExtensionName.i18n.php i18n/

File Size: 287 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 maintenance/Maintenance.php

Defines 1 class

GenerateJsonI18n:: (7 methods):
  __construct()
  execute()
  transformI18nFile()
  shimOnly()
  doShim()
  findCommentBefore()
  getAuthorsFromComment()


Class: GenerateJsonI18n  - X-Ref

Maintenance script to generate JSON i18n files from a PHP i18n file.

__construct()   X-Ref
No description

execute()   X-Ref
No description

transformI18nFile( $phpfile, $jsondir = null )   X-Ref
No description

shimOnly( $phpfile, $jsondir )   X-Ref
No description

doShim( $jsondir )   X-Ref
No description

findCommentBefore( $needle, $haystack )   X-Ref
No description

getAuthorsFromComment( $comment )   X-Ref
Get an array of author names from a documentation comment containing @author declarations.

param: string $comment Documentation comment
return: array Array of author names (strings)



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1