eZPublish  4.4
ezpI18n Class Reference

Static Public Member Functions

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. More...
 

Static Protected Member Functions

static insertArguments ($text, $arguments)
 Replaces keys found in $text with values in $arguments. More...
 
static isEnabled ()
 Enabled if the site.ini settings RegionalSettings/TextTranslation is set to disabled. More...
 
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. More...
 

Member Function Documentation

static ezpI18n::insertArguments (   $text,
  $arguments 
)
staticprotected

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.

Parameters
string$string
array$arguments
Returns
string
static ezpI18n::isEnabled ( )
staticprotected

Enabled if the site.ini settings RegionalSettings/TextTranslation is set to disabled.

Returns
bool
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.

Uses {

See Also
ezpI18n::translateText()}

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 ) );

Parameters
string$context
string$source
string | null$comment
array | null$arguments
Returns
string

Referenced by 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\processAttributesBySchema(), eZXMLInputParser\processBySchemaPresence(), eZXMLInputParser\processBySchemaTree(), eZStepSitePackages\processPostData(), eZStepSiteTemplates\processPostData(), eZStepSiteTypes\processPostData(), eZVatRule\productCategoriesString(), eZSimplifiedXMLInputParser\publishHandlerEmbed(), eZSimplifiedXMLInputParser\publishHandlerLink(), eZSimplifiedXMLInputParser\publishHandlerObject(), eZContentUpload\publishObject(), eZContentClass\removableInformation(), eZECBHandler\requestRates(), eZExchangeRatesUpdateHandler\requestRates(), eZStepSiteTypes\retrieveRemotePackagesList(), eZCollaborationItemParticipantLink\roleName(), 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(), eZAuthorType\validateObjectAttributeHTTPInput(), eZISBNType\validateObjectAttributeHTTPInput(), eZRangeOptionType\validateObjectAttributeHTTPInput(), eZPriceType\validateObjectAttributeHTTPInput(), eZMultiPriceType\validateObjectAttributeHTTPInput(), eZObjectRelationListType\validateObjectAttributeHTTPInput(), eZMatrixType\validateObjectAttributeHTTPInput(), eZTimeType\validateObjectAttributeHTTPInput(), eZObjectRelationType\validateObjectAttributeHTTPInput(), eZProductCategoryType\validateObjectAttributeHTTPInput(), eZDateType\validateObjectAttributeHTTPInput(), eZIniSettingType\validateObjectAttributeHTTPInput(), eZMultiOptionType\validateObjectAttributeHTTPInput(), eZUserType\validateObjectAttributeHTTPInput(), eZOptionType\validateObjectAttributeHTTPInput(), eZEmailType\validateObjectAttributeHTTPInput(), eZBooleanType\validateObjectAttributeHTTPInput(), eZKeywordType\validateObjectAttributeHTTPInput(), eZURLType\validateObjectAttributeHTTPInput(), eZTextType\validateObjectAttributeHTTPInput(), eZDateTimeType\validateObjectAttributeHTTPInput(), eZStringType\validateObjectAttributeHTTPInput(), eZFloatType\validateObjectAttributeHTTPInput(), eZIntegerType\validateObjectAttributeHTTPInput(), eZImageType\validateObjectAttributeHTTPInput(), eZSelectionType\validateObjectAttributeHTTPInput(), eZMediaType\validateObjectAttributeHTTPInput(), eZCountryType\validateObjectAttributeHTTPInput(), eZEnumType\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 
)
staticprotected

Translates the source $source with context $context and optional comment $comment and returns the translation if locale code is not eng-GB.

Uses {

See Also
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 ) );

Parameters
string$context
string$source
string | null$comment
array | null$arguments
Returns
string

The documentation for this class was generated from the following file: