Creating Translations: Difference between revisions

From IHRIS Wiki
(Created page with 'There is a utility to create [http://en.wikipedia.org/wiki/GNU_gettext|.POT] translation template files to upload to launchpad. The utility create a ''.POT'' file for each modul...')
 
No edit summary
Line 3: Line 3:
Here is the usage as of version 4.0.0:
Here is the usage as of version 4.0.0:
  Usage: translate_create_templates.php
  Usage: translate_create_templates.php
  [--modules=$module1,$module2..$moduleN]: The module(s) for which we wish  to operate on
  [--modules=$module1,$module2..$moduleN]: The module(s) for which we wish  to operate on <br/>  If not specified, it uses  every valid module
If not specified, it uses  every valid module
  [--search_dirs=$dir1,$dir2]: Set the search directories for modules<br/> If not specified, we search /home/litlfred/rocket_cats/main/i2ce/tools,/home/litlfred/rocket_cats/main/i2ce/tools/sites/*
  [--search_dirs=$dir1,$dir2]: Set the search directories for modules
  [--limit_search=T/F]: Limit the module search results of found sub-modules of a top-level module to those that are real subdirectories of top-level's given directory <br/> If not specified, we search /home/litlfred/rocket_cats/main/i2ce/tools,/home/litlfred/rocket_cats/main/i2ce/tools/sites/*
If not specified, we search /home/litlfred/rocket_cats/main/i2ce/tools,/home/litlfred/rocket_cats/main/i2ce/tools/sites/*
  [--limit_search=T/F]: Limit the module search results of found sub-modules of a top-level module to those that are real subdirectories of top-level's given directory
If not specified, we search /home/litlfred/rocket_cats/main/i2ce/tools,/home/litlfred/rocket_cats/main/i2ce/tools/sites/*

Revision as of 10:13, 14 July 2009

There is a utility to create [1] translation template files to upload to launchpad. The utility create a .POT file for each module and is found in the I2CE package under:

i2ce/tools/translate_create_templates.php

Here is the usage as of version 4.0.0:

Usage: translate_create_templates.php
[--modules=$module1,$module2..$moduleN]: The module(s) for which we wish  to operate on 
If not specified, it uses every valid module [--search_dirs=$dir1,$dir2]: Set the search directories for modules
If not specified, we search /home/litlfred/rocket_cats/main/i2ce/tools,/home/litlfred/rocket_cats/main/i2ce/tools/sites/* [--limit_search=T/F]: Limit the module search results of found sub-modules of a top-level module to those that are real subdirectories of top-level's given directory
If not specified, we search /home/litlfred/rocket_cats/main/i2ce/tools,/home/litlfred/rocket_cats/main/i2ce/tools/sites/*