Skip to content

Instantly share code, notes, and snippets.

@ppadron ppadron/gist:1084693
Created Jul 15, 2011

Embed
What would you like to do?
<?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
You can’t perform that action at this time.