Home » Internationalization » Translation2 » Bug #4227
Error in the saple code
Details
| Submitted | 2005-04-26 18:08 UTC |
|---|---|
| From | damvc at cablenet dot com dot ar |
| Assigned | quipo |
| Status | Closed |
| Package | Translation2 |
| PHP Version | 5.0.4 |
| OS | Debian Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-04-26 18:08 UTC] damvc at cablenet dot com dot ar
Description:
------------
In "Updating a language" section the sample code is:
<?php
// set some info about the new lang
$langData = array(
'lang_id' => 'en',
'table_name' => 'i18n',
'name' => 'English',
'meta' => 'some updated meta info',
'error_text' => 'this text is not available in English',
'encoding' => 'iso-8859-15');
);
$tr->updateLang($langData);
?>
and de ");" alone in a line near de end is wrong. Remove it.
[2005-04-26 18:35 UTC] damvc at cablenet dot com dot ar
The URL is: http://pear.php.net/manual/en/package.internationalization.translation2.introadmin.php
and the error is in the first sample code too.
[2005-04-26 19:02 UTC] damvc at cablenet dot com dot ar
The package is Trasnlation2.
Another error in the same page is that in the first sample code says:
'lang_errmsg_col' => 'error_text',
'lang_encoding_col' => 'error_text',
and the two columns have to be different names.