PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Internationalization » Translation2 » Bug #4227

Error in the saple code

Details

Submitted2005-04-26 18:08 UTC
Fromdamvc at cablenet dot com dot ar
Assignedquipo
StatusClosed
PackageTranslation2
PHP Version5.0.4
OSDebian 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.