|
eZ Publish
[trunk]
|
Static Public Member Functions | |
| static | reset () |
| Resets the state ezpI18n class. | |
| static | tr ($context, $source, $comment=null, $arguments=null) |
| Translates the source $source with context $context and optional comment $comment and returns the translation if translations are enabled. | |
Static Protected Member Functions | |
| static | insertArguments ($text, $arguments) |
| Replaces keys found in $text with values in $arguments. | |
| static | isEnabled () |
| Enabled if the site.ini settings RegionalSettings/TextTranslation is set to disabled. | |
| static | translateText ($context, $source, $comment=null, $arguments=null) |
| Translates the source $source with context $context and optional comment $comment and returns the translation if locale code is not eng-GB. | |
Static Protected Attributes | |
| static | $isEnabled = null |
Definition at line 11 of file ezpi18n.php.
| static ezpI18n::insertArguments | ( | $ | text, |
| $ | arguments | ||
| ) | [static, protected] |
Replaces keys found in $text with values in $arguments.
If $arguments is an associative array it will use the argument keys as replacement keys. If not it will convert the index to a key looking like n, where n is a number between 1 and 9.
| string | $string | |
| array | $arguments |
Definition at line 31 of file ezpi18n.php.
Referenced by tr(), and translateText().
| static ezpI18n::isEnabled | ( | ) | [static, protected] |
Enabled if the site.ini settings RegionalSettings/TextTranslation is set to disabled.
Definition at line 53 of file ezpi18n.php.
| static ezpI18n::reset | ( | ) | [static] |
Resets the state ezpI18n class.
Definition at line 67 of file ezpi18n.php.
| static ezpI18n::tr | ( | $ | context, |
| $ | source, | ||
| $ | comment = null, |
||
| $ | arguments = null |
||
| ) | [static] |
Translates the source $source with context $context and optional comment $comment and returns the translation if translations are enabled.
Example: translate( 'content/view', 'There are count nodes in this list out of total total nodes.', 'Children view of nodes for whole site', array( 'count' => $c, 'total' => $t ) );
| string | $context | |
| string | $source | |
| string | null | $comment | |
| array | null | $arguments |
Definition at line 86 of file ezpi18n.php.
Referenced by ezpContentAccessDeniedException\__construct(), eZFinishUserRegisterType\__construct(), applyChanges(), eZPDFTable\callIndex(), eZPDFTable\callTOC(), checkEnteredData(), eZBinaryFileType\checkFileUploads(), eZMediaType\checkFileUploads(), checkNodeAssignments(), checkNodeMovements(), checkTimeout(), chooseObjectVersionsToCopy(), chooseOptionsToCopy(), eZDefaultVATHandler\chooseVatType(), eZUserType\classAttributeRemovableInformation(), eZPriceType\contentActionList(), eZMultiPriceType\contentActionList(), eZDataType\contentActionList(), eZRole\copy(), copyPublishContentObject(), copySubtree(), eZDiscountRule\create(), eZProductCategory\create(), eZDiscountSubRule\create(), eZPDFExport\create(), eZRSSExport\create(), eZRSSImport\create(), eZVatType\create(), eZOrderStatus\create(), eZRole\createNew(), eZOrderStatus\createUndefined(), eZStepInstaller\databaseErrorInfo(), eZRSSExport\definition(), eZPDFExport\definition(), eZStepFinal\display(), eZStepSecurity\display(), eZStepSystemCheck\display(), eZStepEmailSettings\display(), eZStepWelcome\display(), eZStepSiteTemplates\display(), eZStepSystemFinetune\display(), eZStepDatabaseChoice\display(), eZStepSitePackages\display(), eZStepSiteAccess\display(), eZStepSiteAdmin\display(), eZStepPackageLanguageOptions\display(), eZStepLanguageOptions\display(), eZStepDatabaseInit\display(), eZStepRegistration\display(), eZStepSiteDetails\display(), eZStepCreateSites\display(), eZStepSiteTypes\display(), eZStepSiteTypes\downloadAndImportPackage(), eZStepSiteTypes\downloadDependantPackages(), eZStepSiteTypes\downloadFile(), eZTemplate\error(), eZCurrencyData\errorMessage(), eZInstallScriptPackageHandler\explainInstallItem(), eZExtensionPackageHandler\explainInstallItem(), eZContentClassPackageHandler\explainInstallItem(), eZContentObjectPackageHandler\explainInstallItem(), eZISBN13\extractISBNNumber(), eZApproveCollaborationHandler\eZApproveCollaborationHandler(), eZApproveType\eZApproveType(), eZAuthorType\eZAuthorType(), eZBinaryFileType\eZBinaryFileType(), eZBooleanType\eZBooleanType(), eZContentClassPackageCreator\eZContentClassPackageCreator(), eZContentObjectPackageCreator\eZContentObjectPackageCreator(), eZContentObjectPackageInstaller\eZContentObjectPackageInstaller(), eZCountryType\eZCountryType(), eZDateTimeType\eZDateTimeType(), eZDateType\eZDateType(), eZEmailType\eZEmailType(), eZEnumType\eZEnumType(), eZExtensionPackageCreator\eZExtensionPackageCreator(), eZFloatType\eZFloatType(), ezi18n(), eZIdentifierType\eZIdentifierType(), eZImageType\eZImageType(), eZIniSettingType\eZIniSettingType(), eZIntegerType\eZIntegerType(), eZISBNType\eZISBNType(), eZKeywordType\eZKeywordType(), eZMatrixType\eZMatrixType(), eZMediaType\eZMediaType(), eZMultiOption2Type\eZMultiOption2Type(), eZMultiOptionType\eZMultiOptionType(), eZMultiplexerType\eZMultiplexerType(), eZMultiPriceType\eZMultiPriceType(), eZObjectRelationListType\eZObjectRelationListType(), eZObjectRelationType\eZObjectRelationType(), eZOptionType\eZOptionType(), eZPackageType\eZPackageType(), eZPaymentGatewayType\eZPaymentGatewayType(), eZPriceType\eZPriceType(), eZProductCategoryType\eZProductCategoryType(), eZRangeOptionType\eZRangeOptionType(), eZSelectionType\eZSelectionType(), eZSimpleShippingType\eZSimpleShippingType(), eZStringType\eZStringType(), eZStylePackageCreator\eZStylePackageCreator(), eZSubtreeSubscriptionType\eZSubtreeSubscriptionType(), eZTemplate\eZTemplate(), eZTextType\eZTextType(), eZTimeType\eZTimeType(), eZTopMenuOperator\eZTopMenuOperator(), eZURLType\eZURLType(), eZUserType\eZUserType(), eZWaitUntilDateType\eZWaitUntilDateType(), eZWorkflowEventType\eZWorkflowEventType(), eZWorkflowGroupType\eZWorkflowGroupType(), ezx18n(), eZXMLTextType\eZXMLTextType(), eZContentFunctionCollection\fetchAvailableSortFieldList(), eZContentUpload\fetchHTTPFile(), eZCache\fetchList(), eZNavigationPart\fetchList(), findErrors(), eZContentUpload\findHandler(), generateUniqueCategoryName(), generateUniqueVatTypeName(), eZContentUpload\handleLocalFile(), eZContentUpload\handleUpload(), eZShopOperationCollection\handleUserCountry(), eZContentObjectTreeNode\hiddenStatusString(), eZNavigationPart\i18nDummy(), eZi18nOperator\i18nTrans(), eZImageAliasHandler\imageName(), eZImageAliasHandler\imageNameByNode(), eZContentClass\initializeCopy(), eZImageType\insertHTTPFile(), eZBinaryFileType\insertHTTPFile(), eZMediaType\insertHTTPFile(), eZImageType\insertRegularFile(), eZExtensionPackageHandler\install(), eZContentClassPackageHandler\install(), eZCollaborationProfile\instance(), eZContentClass\instantiate(), eZContentObjectStateGroupLanguage\isValid(), eZContentObjectStateLanguage\isValid(), eZContentObjectStateGroup\isValid(), eZContentObjectState\isValid(), eZPackage\maintainerRoleName(), eZContentObjectTreeNode\makeObjectsArray(), eZi18nOperator\modify(), eZContentUpload\nodeAliasID(), eZPackageCreationHandler\packageChangelogStep(), eZPackageCreationHandler\packageInformationStep(), eZPackageCreationHandler\packageMaintainerStep(), eZPackage\packageRepositories(), eZPackageCreationHandler\packageThumbnailStep(), eZXMLInputParser\parseTag(), eZXMLInputParser\process(), eZXMLInputParser\processAttributesBySchema(), eZXMLInputParser\processBySchemaPresence(), eZXMLInputParser\processBySchemaTree(), eZStepSitePackages\processPostData(), eZStepSiteTemplates\processPostData(), eZStepRegistration\processPostData(), eZStepSiteTypes\processPostData(), eZVatRule\productCategoriesString(), eZSimplifiedXMLInputParser\publishHandlerEmbed(), eZSimplifiedXMLInputParser\publishHandlerLink(), eZSimplifiedXMLInputParser\publishHandlerObject(), eZContentUpload\publishObject(), eZContentClass\removableInformation(), eZECBHandler\requestRates(), eZExchangeRatesUpdateHandler\requestRates(), eZStepSiteTypes\retrieveRemotePackagesList(), eZCollaborationItemParticipantLink\roleName(), eZUserOperationCollection\sendActivationEmail(), eZUserOperationCollection\sendUserNotification(), eZXMLInputParser\setAttributes(), showNotificationAfterCopying(), eZWorkflowType\statusNameMap(), eZWorkflow\statusNameMap(), eZRSSEditFunction\storeRSSExport(), eZSimplifiedXMLInputParser\structHandlerHeader(), eZApproveCollaborationHandler\title(), eZContentClassPackageHandler\uninstall(), eZContentObjectPackageHandler\uninstall(), eZContentObject\unserialize(), eZMultiPriceData\updateAutoprices(), eZShopFunctions\updateAutoRates(), eZStepSiteTypes\uploadPackage(), eZMultiOption2Type\validateAddToBasket(), eZContentClassPackageCreator\validateClassData(), eZOptionType\validateCollectionAttributeHTTPInput(), eZBooleanType\validateCollectionAttributeHTTPInput(), eZTextType\validateCollectionAttributeHTTPInput(), eZEmailType\validateCollectionAttributeHTTPInput(), eZTimeType\validateCollectionAttributeHTTPInput(), eZStringType\validateCollectionAttributeHTTPInput(), eZDateType\validateCollectionAttributeHTTPInput(), eZDateTimeType\validateCollectionAttributeHTTPInput(), eZSelectionType\validateCollectionAttributeHTTPInput(), eZIntegerType\validateCollectionAttributeHTTPInput(), eZCountryType\validateCollectionAttributeHTTPInput(), eZStylePackageCreator\validateCSSFile(), validateCurrencyData(), eZDateType\validateDateTimeHTTPInput(), eZDateTimeType\validateDateTimeHTTPInput(), eZEmailType\validateEMailHTTPInput(), eZExtensionPackageCreator\validateExtensionName(), eZSimplifiedXMLInput\validateInput(), eZIntegerType\validateIntegerHTTPInput(), eZISBN13\validateISBN13Checksum(), eZRangeOptionType\validateObjectAttributeHTTPInput(), eZAuthorType\validateObjectAttributeHTTPInput(), eZISBNType\validateObjectAttributeHTTPInput(), eZPriceType\validateObjectAttributeHTTPInput(), eZMultiPriceType\validateObjectAttributeHTTPInput(), eZMatrixType\validateObjectAttributeHTTPInput(), eZObjectRelationListType\validateObjectAttributeHTTPInput(), eZTimeType\validateObjectAttributeHTTPInput(), eZObjectRelationType\validateObjectAttributeHTTPInput(), eZProductCategoryType\validateObjectAttributeHTTPInput(), eZDateType\validateObjectAttributeHTTPInput(), eZMultiOptionType\validateObjectAttributeHTTPInput(), eZIniSettingType\validateObjectAttributeHTTPInput(), eZUserType\validateObjectAttributeHTTPInput(), eZOptionType\validateObjectAttributeHTTPInput(), eZBooleanType\validateObjectAttributeHTTPInput(), eZEmailType\validateObjectAttributeHTTPInput(), eZKeywordType\validateObjectAttributeHTTPInput(), eZURLType\validateObjectAttributeHTTPInput(), eZTextType\validateObjectAttributeHTTPInput(), eZDateTimeType\validateObjectAttributeHTTPInput(), eZStringType\validateObjectAttributeHTTPInput(), eZFloatType\validateObjectAttributeHTTPInput(), eZIntegerType\validateObjectAttributeHTTPInput(), eZSelectionType\validateObjectAttributeHTTPInput(), eZMediaType\validateObjectAttributeHTTPInput(), eZCountryType\validateObjectAttributeHTTPInput(), eZEnumType\validateObjectAttributeHTTPInput(), eZImageType\validateObjectAttributeHTTPInput(), eZBinaryFileType\validateObjectAttributeHTTPInput(), eZContentObjectPackageCreator\validateObjectLimits(), eZContentObjectPackageCreator\validateObjectList(), eZPackageCreationHandler\validatePackageChangelog(), eZPackageCreationHandler\validatePackageInformation(), eZPackageCreationHandler\validatePackageMaintainer(), eZStringType\validateStringHTTPInput(), eZTimeType\validateTimeHTTPInput(), eZContentObjectPackageInstaller\validateTopNodes(), eZWebDAVContentServer\virtualContentFolderName(), eZWebDAVContentBackend\virtualContentFolderName(), eZWebDAVContentServer\virtualMediaFolderName(), and eZWebDAVContentBackend\virtualMediaFolderName().
| static ezpI18n::translateText | ( | $ | context, |
| $ | source, | ||
| $ | comment = null, |
||
| $ | arguments = null |
||
| ) | [static, protected] |
Translates the source $source with context $context and optional comment $comment and returns the translation if locale code is not eng-GB.
Uses eZTranslatorMananger::translate() to do the actual translation
Example: translateText( 'content/view', 'There are count nodes in this list out of total total nodes.', 'Children view of nodes for whole site', array( 'count' => $c, 'total' => $t ) );
| string | $context | |
| string | $source | |
| string | null | $comment | |
| array | null | $arguments |
Definition at line 109 of file ezpi18n.php.
Referenced by tr().
ezpI18n::$isEnabled = null [static, protected] |
Definition at line 19 of file ezpi18n.php.
Referenced by isEnabled().