Skip to content

Instantly share code, notes, and snippets.

@ppadron
Created July 15, 2011 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppadron/1084693 to your computer and use it in GitHub Desktop.
Save ppadron/1084693 to your computer and use it in GitHub Desktop.
<?php
$po = new Po4a(array(
'masterTranslationFile' => "{$this->translationsDir}/%master.pot",
'translationFile' => "{$this->translationsDir}/%master-%lang.po",
'sourceLanguage' => 'pt',
'targetLanguages' => array('en', 'es', 'de'),
'force' => true,
'files' => array(
array(
'fileType' => 'xhtml',
'masterFile' => 'page1.html',
'targetFile' => 'page1-%lang.html'
),
array(
'fileType' => 'xhtml',
'masterFile' => 'page2.html',
'targetFile' => 'page2-%lang.html'
)
),
'buildOptions' => array(
'masterCharset' => 'UTF-8',
'localizedCharset' => 'UTF-8',
'keep' => '0'
)
));
$po->build();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment