本文整理汇总了PHP中text::set方法的典型用法代码示例。如果您正苦于以下问题:PHP text::set方法的具体用法?PHP text::set怎么用?PHP text::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类text
的用法示例。
在下文中一共展示了text::set方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
text::set('system/dbError', 'd4tab4s3 3rr.');
text::set('system/msgSeperator', ':.::.: ');
#Form Bits
text::set('form/save','s4v3 ^.^');
text::set('form/reset','r3s3tz');
text::set('form/delete','Delete');
text::set('form/foreignTableNotExist','0h n0 foreign k3 4 %s n0t ex8szt. J00 V1LL PH41L.');
#Login Messages
text::set('login/loggedInAs','L0gg3d az <span class="alt">%s</span> (<a href="%s">Log Out</a>)');
text::set('login/failedLogin', 'j00 fa1lz @ t3h l0ginz.');
# Auth Messages
text::set('auth/notAuth','GTf0 Hax0r we no say you can go h3r3.');
text::set('auth/notAuthTitle','gTf0');
# SQL Generator Errors
text::set('system/sql/invalidQueryType', 'gtf0 not a qu3ry "%s".');
# Validation Errors
text::set('validation/defaultValidationError', '0h sh1 no validz.');
text::set('validation/checkingForeignKeyForNonExistantTable', 'Trying to check foreign key for non existant table.');
text::set('validation/success', 'w00p, it w0rked!! ^__^.');
text::set('validation/error_exists', '%s is m1ssing.');
text::set('validation/error_unique', '%s must be uniqu3.');
text::set('validation/error_validDate', '%s !S NOT V4L1D DATE 0MGYYYY-MM-DD.');
text::set('validation/error_alphaNumeric', '%s must consist of only let0rs // numb0rs.');
text::set('validation/error_realItem', '%s is not a reaeeeallll.');
text::set('validation/error_realEmail', '%s is not a valid ~~@.');
text::set('validation/error_notBothSame', '%ssN0T SAme.');
text::set('validation/errorsProcessing', 'F0rm 0wnz j00!');
# Metaclass Errors
text::set('metaclass/missingClassFile', 'Class file is missing for class "%s."');
text::set('metaclass/couldNotCreateObject', 'Could not create object "%s"');
?>
示例2:
text::set('form/reset','Reset');
text::set('form/delete','Delete');
text::set('form/foreignTableNotExist','Foreign key table for %s does not exist. You may not be able to save this entry.');
#Login Messages
text::set('login/loggedInAs','Logged in as <span class="alt">%s</span> (<a href="%s">Log Out</a>)');
text::set('login/failedLogin', 'Sorry, login failed. Try again.');
# Auth Messages
text::set('auth/notAuth','Sorry, you are not authorized to view this page.');
text::set('auth/notAuthTitle','Not Authorized');
# SQL Generator Errors
text::set('system/sql/invalidQueryType', 'Invalid query type "%s" passed to generator.');
# Validation Errors
text::set('validation/defaultValidationError', 'Something did not validate.');
text::set('validation/checkingForeignKeyForNonExistantTable', 'Trying to check foreign key for non existant table.');
text::set('validation/success', 'Submission was successful.');
text::set('validation/error_exists', '%s is missing.');
text::set('validation/error_unique', '%s must be unique.');
text::set('validation/error_validDate', '%s must be a valid date in the format YYYY-MM-DD.');
text::set('validation/error_alphaNumeric', '%s must consist of only letters and numbers.');
text::set('validation/error_realItem', '%s is not a real item.');
text::set('validation/error_realEmail', '%s is not a valid e-mail address.');
text::set('validation/error_notBothSame', '%ss are not the same.');
text::set('validation/errorsProcessing', 'There were errors processing your request. Please review them below:');
# Metaclass Errors
text::set('metaclass/missingClassFile', 'Class file is missing for class "%s."');
text::set('metaclass/couldNotCreateObject', 'Could not create object "%s"');
# Scaffold Related
text::set('scaffold/returntoitems', 'Return to Item List');
text::set('scaffold/createnew', 'Create New Item');
?>
示例3:
text::set('form/reset','Resetuj');
text::set('form/delete','Usuń');
text::set('form/foreignTableNotExist','Obcy klucz tabeli dla %s nie istnieje. Mżesz nie być w stanie zapisać tą właściwość.');
#Login Messages
text::set('login/loggedInAs','Zalogowany jako <span class="alt">%s</span> (<a href="%s">Wylogowany</a>)');
text::set('login/failedLogin', 'Przepraszamy, błędny login.');
# Auth Messages
text::set('auth/notAuth','Przepraszamy, nie posiadasz autoryzacji do oglądania tej strony.');
text::set('auth/notAuthTitle','Nie autoryzowany');
# SQL Generator Errors
text::set('system/sql/invalidQueryType', 'Niewłaściwy rodzaj pytania %s zdany do generatora.');
# Validation Errors
text::set('validation/defaultValidationError', 'Coś jest nie właściwe.');
text::set('validation/checkingForeignKeyForNonExistantTable', 'Próba sprawdzenia obcego klucza dla nie istniejącej tabeli.');
text::set('validation/success', 'Formularz został poprawnie wysłany.');
text::set('validation/error_exists', '%s jest zagubiony.');
text::set('validation/error_unique', '%s musi być unikatowy.');
text::set('validation/error_validDate', '%s data musi być w formacie YYYY-MM-DD.');
text::set('validation/error_alphaNumeric', '%s musi składać się tylko z liter lub liczb.');
text::set('validation/error_realItem', '%s nie jest właściwą pozycją.');
text::set('validation/error_realEmail', '%s nie jest właściwym adresem email.');
text::set('validation/error_notBothSame', '%s nie są tem same.');
text::set('validation/errorsProcessing', 'Wystąpiły błędy w Twoim żądaniu. Proszę przejrzyj je poniżej:');
# Metaclass Errors
text::set('metaclass/missingClassFile', 'Plik klasy zagubiony dla klasy %s."');
text::set('metaclass/couldNotCreateObject', 'Nie mogę utworzyć obiektu "%s".');
# Scaffold Related
text::set('scaffold/returntoitems', 'Powrót od Listy Obiektów');
text::set('scaffold/createnew', 'Utworzenie Nowego Obiektu');
?>