Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 23892 программиста и 1389 роботов. Сейчас ищут 1232 программиста ...

Translation2_Admin::add

Вернуться к: Translation2

Translation2_Admin::add

Translation2_Admin::add() – add a new translation

Synopsis

require_once 'Admin.php';

mixed Translation2_Admin::add ( string $stringID , string $pageID = null , array $stringArray )

Add a new translated string (or a set of translated strings) for a given stringID. For instance, to add the English, Spanish and Italian translations for the stringID 'example', use the following code:

<?php
$stringArray 
= array(

    
'en' => 'example',

    
'es' => 'ejemplo',

    
'it' => 'esempio',

);

$tr->add('example''mypage'$stringArray);
?>

Parameter

string $stringID

identificator for the string

string $pageID

destination pageID, i.e. the group of strings where this string belongs to.

array $stringArray

Associative array with string translations.

Return value

returns true on success, PEAR_Error on failure

Note

This function can not be called statically.



Вернуться к: Translation2

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware