Scripts
[ class tree: Scripts ] [ index: Scripts ] [ all elements ]

Procedural File: pot_tools.php

Source Location: /scripts/pot_tools.php



Page Details:

pot_tools.php - useful functions for POT scripts



Tags:

author:  Yves Bolognini <yves.bolognini@camptocamp.com>


Includes:

require_once(CARTOCOMMON_HOME.'common/Encoding.php') [line 17]
Encoding class for charset

require_once(CARTOCOMMON_HOME.'common/ProjectHandler.php') [line 22]
Project handler class for constants






CARTOCOMMON_PODIR [line 12]

CARTOCOMMON_PODIR = CARTOCOMMON_HOME.'po/'

[ Top ]




addPhpStrings [line 92]

void addPhpStrings( string $type, string $path, mixed $poTemplate, mixed $project)

Finds recursively all strings in PHP code and add them to PO template

Will detect methods gt() from classes I18n and I18nNoop.




Parameters

string   $type  
string   $path  
[ Top ]



getCharset [line 29]

string getCharset( string $type, mixed $project)

Finds charset in client.ini



Parameters

string   $type  
[ Top ]



getProjects [line 63]

array getProjects( )

Gets list of projects by reading projects directory



[ Top ]



getTranslatedPo [line 144]

array getTranslatedPo( string $type, mixed $project)

Finds list of already translated PO files for a project



Parameters

string   $type  
[ Top ]



Documentation generated on Wed, 6 Apr 2005 12:06:51 +0200 by phpDocumentor 1.3.0RC3