eZPublish  3.8
ezchecktranslation.php File Reference

Functions

 handleContextNode ($context, &$cli, &$data)
 
 handleMessageNode ($contextName, &$message, &$cli, &$data, $requireTranslation)
 

Variables

 $children = $treeRoot->children()
 
 $cli =& eZCLI::instance()
 
 $data
 
 $data ['ignored_context_list'] = array()
 
 $fd = fopen( $translationFile, "rb" )
 
 $options
 
 $percentText = number_format( $percent, 2 ) . "%"
 
 $script
 
 $totalCount = $data['translated_element_count'] + $data['untranslated_element_count']
 
 $translationFile = $options['arguments'][0]
 
 $translationName = false
 
 $transXML = fread( $fd, filesize( $translationFile ) )
 
 $tree =& $xml->domTree( $transXML )
 
if($options['ignore-tr-setup']) $treeRoot =& $tree->get_root()
 
 $xml = new eZXML()
 
if($totalCount==0) else
 

Function Documentation

handleContextNode (   $context,
$cli,
$data 
) -> shutdown( 1, "XML text for file $translationFile did not validate" )
handleMessageNode (   $contextName,
$message,
$cli,
$data,
  $requireTranslation 
)

Referenced by handleContextNode().

Variable Documentation

$children = $treeRoot->children()

Referenced by eZXMLText\attribute(), eZTemplateCompiler\calculateVariableStatistics(), eZTemplateCompiler\calculateVariableStatisticsChildren(), eZContentFunctionCollection\calendar(), eZContentStructureTreeOperator\children(), eZContentObjectTreeNode\children(), eZTemplateNodeTool\deflateFunctionNode(), eZDOMNode\elementChildrenByName(), eZModuleOperationInfo\executeBody(), eZTemplateFunctionElement\eZTemplateFunctionElement(), eZTemplateRoot\eZTemplateRoot(), eZCollaborationFunctionCollection\fetchGroupTree(), eZCollaborationFunctionCollection\fetchItemList(), eZCollaborationFunctionCollection\fetchMessageList(), eZContentFunctionCollection\fetchObjectTree(), eZCollaborationFunctionCollection\fetchParticipantList(), eZCollaborationFunctionCollection\fetchParticipantMap(), findAndReplaceLinks(), eZTemplateCompiler\generatePHPCode(), getCDATA(), eZTOCOperator\handleSection(), eZTSTranslator\loadTranslationFile(), eZDOMNode\nextSibling(), eZContentStructureTreeOperator\oneLevelChildren(), eZImageAliasHandler\parseInformationNode(), eZDOMNode\previousSibling(), eZSchema\printTree(), eZTemplateBlockFunction\process(), eZTemplateSwitchFunction\process(), eZTemplateCacheFunction\process(), eZTemplateDebugFunction\process(), eZTemplateSetFunction\process(), eZTemplateSectionFunction\process(), eZTemplateCompiledLoop\processChildren(), eZTemplateSectionFunction\processChildren(), eZTemplateSectionFunction\processChildrenOnce(), eZTemplate\processNode(), eZTemplateCompiler\processNodeCombining(), eZTemplateCompiler\processNodeCombiningChildren(), eZTemplateCompiler\processNodeTransformationChildren(), eZTemplateCompiler\processNodeTransformationRoot(), eZSOAPServer\processRequest(), eZTemplateCompiler\processStaticOptimizations(), eZXMLInputParser\processSubtree(), eZContentObjectTreeNode\removeSubtrees(), eZTemplateSwitchFunction\templateNodeCaseTransformation(), eZTemplateCacheFunction\templateNodeTransformation(), eZTemplateIfFunction\templateNodeTransformation(), eZTemplateBlockFunction\templateNodeTransformation(), eZTemplateDebugFunction\templateNodeTransformation(), eZTemplateSwitchFunction\templateNodeTransformation(), eZTemplateSectionFunction\templateNodeTransformation(), and updateAvailableClasses().

$cli =& eZCLI::instance()
$data
Initial value:
= array( 'element_count' => 0,
'context_count' => 0,
'translated_element_count' => 0,
'untranslated_element_count' => 0,
'obsolete_element_count' => 0 )

Referenced by Cpdf\addImage(), Cpdf\addJpegFromFile(), Cpdf\addJpegImage_common(), eZContentObject\addLocation(), Cpdf\addPngFromFile(), eZTemplate\attributeValue(), eZSimplifiedXMLInputParser\breakInlineFlow(), eZMultiPriceData\changeCurrency(), eZImageHandler\convertFilterToText(), eZFileHandler\copy(), eZFile\create(), eZOperationMemento\create(), eZPaymentCallbackChecker\createDataFromGET(), eZMultiPriceData\createPriceListForCurrency(), eZDBSchemaInterface\data(), eZContentObjectVersion\dataMap(), eZForwardCompressionHandler\doWrite(), eZGZIPZLIBCompressionHandler\doWrite(), eZFileHandler\doWrite(), eZCodeMapper\extractUnicodeValue(), eZCodeMapper\extractUnicodeValues(), eZSessionRead(), eZPDFTable\ezTable(), eZTemplateVariableElement\eZTemplateVariableElement(), eZBooleanType\fetchClassAttributeHTTPInput(), eZProductCategoryType\fetchCollectionAttributeHTTPInput(), eZBooleanType\fetchCollectionAttributeHTTPInput(), eZIntegerType\fetchCollectionAttributeHTTPInput(), eZContentObject\fetchDataMap(), eZPackageType\fetchObjectAttributeHTTPInput(), eZFloatType\fetchObjectAttributeHTTPInput(), eZProductCategoryType\fetchObjectAttributeHTTPInput(), eZSubtreeSubscriptionType\fetchObjectAttributeHTTPInput(), eZKeywordType\fetchObjectAttributeHTTPInput(), eZEmailType\fetchObjectAttributeHTTPInput(), eZCountryType\fetchObjectAttributeHTTPInput(), eZBooleanType\fetchObjectAttributeHTTPInput(), eZTextType\fetchObjectAttributeHTTPInput(), eZPriceType\fetchObjectAttributeHTTPInput(), eZStringType\fetchObjectAttributeHTTPInput(), eZIntegerType\fetchObjectAttributeHTTPInput(), eZIniSettingType\fetchObjectAttributeHTTPInput(), eZArchiveHandler\fileWrite(), eZObjectForwarder\functionTemplateHints(), eZLintSchema\generateDataFile(), eZDBSchemaInterface\generateDataFile(), eZRSSImport\getRSSVersion(), handleContextNode(), handleMessageNode(), handleNodeTemplate(), eZDBPackageHandler\handleParameters(), eZFilePackageHandler\handleParameters(), eZStepSecurity\init(), eZStepDatabaseChoice\init(), eZStepEmailSettings\init(), eZStepSiteAccess\init(), eZStepSitePackages\init(), eZStepSiteAdmin\init(), eZStepDatabaseInit\init(), eZStepLanguageOptions\init(), eZStepRegistration\init(), eZStepSiteDetails\init(), eZStepSiteTypes\init(), eZIniSettingType\initializeObjectAttribute(), eZDBSchemaInterface\insertSchema(), PEAR\isError(), eZAuthor\metaData(), eZISBNType\objectAttributeContent(), eZIniSettingType\objectAttributeContent(), Cpdf\openFont(), eZTemplateOptimizer\optimizeResourceAcquisition(), eZTemplateOptimizer\optimizeVariable(), eZImageAliasHandler\parseInformationNode(), eZTemplateMultiPassParser\parseIntoTextElements(), eZXMLInputParser\parseTag(), eZSimplifiedXMLInputParser\parsingHandlerLiteral(), eZXMLInputParser\performPass1(), eZGIFImageAnalyzer\process(), eZWebDAVServer\processClientRequest(), Cpdf\PRVT_getBytes(), eZMySQLDB\query(), eZDbSchema\read(), eZFileHandler\read(), referenceReadFile(), eZMultiPriceData\removePriceListForCurrency(), eZINI\saveCache(), Cpdf\selectFont(), eZSOAPClient\send(), smtp\send_data(), eZHTTPTool\sendHTTPRequest(), eZDiffContent\setChanges(), eZOperationMemento\setData(), eZDiffContent\setNewContent(), eZDiffContent\setOldContent(), eZTemplateCompiler\staticNodeData(), eZSOAPServer\stripHTTPHeader(), eZSOAPResponse\stripHTTPHeader(), eZTemplateBlockFunction\templateNodeTransformation(), Cpdf\transaction(), eZDBSchemaInterface\transformData(), eZCountryType\validateCollectionAttributeHTTPInput(), eZBooleanType\validateCollectionAttributeHTTPInput(), eZTextType\validateCollectionAttributeHTTPInput(), eZStringType\validateCollectionAttributeHTTPInput(), eZIntegerType\validateCollectionAttributeHTTPInput(), eZSimplifiedXMLInput\validateInput(), eZIntegerType\validateIntegerHTTPInput(), eZPriceType\validateObjectAttributeHTTPInput(), eZMatrixType\validateObjectAttributeHTTPInput(), eZProductCategoryType\validateObjectAttributeHTTPInput(), eZCountryType\validateObjectAttributeHTTPInput(), eZBooleanType\validateObjectAttributeHTTPInput(), eZKeywordType\validateObjectAttributeHTTPInput(), eZTextType\validateObjectAttributeHTTPInput(), eZFloatType\validateObjectAttributeHTTPInput(), eZStringType\validateObjectAttributeHTTPInput(), eZIntegerType\validateObjectAttributeHTTPInput(), eZSelectionType\validateObjectAttributeHTTPInput(), eZStringType\validateStringHTTPInput(), eZTemplate\variableElementValue(), eZFileHandler\write(), eZDBSchemaInterface\writeArraySchemaFile(), and eZDBSchemaInterface\writeSQLSchemaFile().

$data['ignored_context_list'] = array()
$options
Initial value:
= $script->getOptions( "[ignore-tr-setup]",
"[translation]",
array( 'ignore-tr-setup' => 'Tells the analyzer to skip all translations regarding the setup' ) )
$script
Definition: clusterize.php:132
$percentText = number_format( $percent, 2 ) . "%"

Referenced by eZScript\iterate().

$script
Initial value:
=& eZScript::instance( array( 'description' => ( "eZ publish Translation Checker\n\n" .
"Will display some statistics on a given translation" .
"\n" .
"ezchecktranslation.php ita-IT" ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true ) )
& instance($settings=array())
Definition: ezscript.php:1011
$totalCount = $data['translated_element_count'] + $data['untranslated_element_count']
$translationFile = $options['arguments'][0]
$translationName = false
$transXML = fread( $fd, filesize( $translationFile ) )
if ($options['ignore-tr-setup']) $treeRoot =& $tree->get_root()
$xml = new eZXML()

Referenced by eZUserShopAccountHandler\accountInformation(), eZSimpleShopAccountHandler\accountInformation(), eZSimpleShopAccountHandler\accountName(), eZUserShopAccountHandler\accountName(), eZImageAliasHandler\aliasList(), eZXMLText\attribute(), eZSelectionType\classAttributeContent(), eZDiffXMLTextEngine\createDifferenceObject(), eZMatrixDefinition\decodeClassAttribute(), eZSOAPResponse\decodeStream(), eZRangeOption\decodeXML(), eZOption\decodeXML(), eZAuthor\decodeXML(), eZMultiOption\decodeXML(), eZMatrix\decodeXML(), eZImageAliasHandler\domTree(), eZSimpleShopAccountHandler\email(), eZUserShopAccountHandler\email(), eZSelectionType\fetchClassAttributeHTTPInput(), eZSimplifiedXMLInput\inputXML(), eZTSTranslator\loadTranslationFile(), eZXMLTextType\metaData(), eZTOCOperator\modify(), eZWebDAVServer\outputCollectionContent(), eZDateTimeType\parseXML(), eZObjectRelationListType\parseXML(), eZPDFXMLOutput\pdf(), eZXMLTextType\postUnserializeContentObjectAttribute(), eZWebDAVServer\processClientRequest(), eZSOAPServer\processRequest(), eZECBHandler\requestRates(), eZStepSiteTypes\retrieveRemotePackagesList(), eZSelectionType\serializeContentClassAttribute(), eZDateTimeType\serializeContentClassAttribute(), eZRangeOptionType\serializeContentObjectAttribute(), eZAuthorType\serializeContentObjectAttribute(), eZOptionType\serializeContentObjectAttribute(), eZMultiOptionType\serializeContentObjectAttribute(), eZXMLTextType\serializeContentObjectAttribute(), eZMatrixType\serializeContentObjectAttribute(), eZObjectRelationListType\serializeContentObjectAttribute(), eZSchema\setSchema(), eZXMLTextType\title(), eZSelectionType\unserializeContentClassAttribute(), eZXMLTextType\unserializeContentObjectAttribute(), eZXHTMLXMLOutput\xhtml(), eZMatrixDefinition\xmlString(), eZRangeOption\xmlString(), eZOption\xmlString(), eZAuthor\xmlString(), eZMultiOption\xmlString(), and eZMatrix\xmlString().

if ($totalCount==0) else
Initial value:
{
$percent = ( $data['translated_element_count'] * 100 ) / $totalCount
$totalCount
Definition: ezchecktranslation.php:232
$data
Definition: ezchecktranslation.php:187