|
eZ Publish
[trunk]
|
Go to the source code of this file.
Functions | |
| handleContextNode ($context, $cli, $data) | |
| handleMessageNode ($contextName, $message, $cli, $data, $requireTranslation) | |
Variables | |
| $children = $treeRoot->childNodes | |
| $cli = eZCLI::instance() | |
| $data | |
| $data ['ignored_context_list'] = array() | |
| $fd = fopen( $translationFile, "rb" ) | |
| $options | |
| $script | |
| $success = $tree->loadXML( $transXML ) | |
| $totalCount = $data['translated_element_count'] + $data['untranslated_element_count'] | |
| $translationFile = $options['arguments'][0] | |
| $translationName = false | |
| $transXML = fread( $fd, filesize( $translationFile ) ) | |
| $tree = new DOMDOcument() | |
| if($options['ignore-tr-setup']) | $treeRoot = $tree->documentElement |
| if(!file_exists($translationFile)) if(!file_exists($translationFile)) $script->shutdown(1 Translation file $translationFile does not | exist |
| if(count($options['arguments']) < 1) $script->shutdown(1 No translation | specified |
| if(!eZTSTranslator::validateDOMTree($tree)) $script->shutdown(1 XML text for file $translationFile did not | validate |
| handleContextNode | ( | $ | context, |
| $ | cli, | ||
| $ | data | ||
| ) |
Definition at line 61 of file ezchecktranslation.php.
| handleMessageNode | ( | $ | contextName, |
| $ | message, | ||
| $ | cli, | ||
| $ | data, | ||
| $ | requireTranslation | ||
| ) |
Definition at line 101 of file ezchecktranslation.php.
Referenced by handleContextNode().
| $children = $treeRoot->childNodes |
Definition at line 175 of file ezchecktranslation.php.
Referenced by eZContentFunctionCollection\calendar(), eZContentStructureTreeOperator\children(), eZTemplateNodeTool\deflateFunctionNode(), eZModuleOperationInfo\executeBody(), eZTemplateFunctionElement\eZTemplateFunctionElement(), eZTemplateRoot\eZTemplateRoot(), eZCollaborationFunctionCollection\fetchGroupTree(), eZCollaborationFunctionCollection\fetchItemList(), eZCollaborationFunctionCollection\fetchMessageList(), eZContentFunctionCollection\fetchObjectTree(), eZCollaborationFunctionCollection\fetchParticipantList(), eZCollaborationFunctionCollection\fetchParticipantMap(), eZTemplateCompiler\generatePHPCode(), eZWebDAVContentBackend\getNodes(), eZTOCOperator\handleSection(), eZTSTranslator\loadTranslationFile(), eZContentStructureTreeOperator\oneLevelChildren(), eZImageAliasHandler\parseInformationNode(), eZTemplateBlockFunction\process(), eZTemplateSwitchFunction\process(), eZTemplateSetFunction\process(), eZTemplateDebugFunction\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(), eZTemplateCacheFunction\processUncached(), eZContentObjectTreeNode\removeSubtrees(), eZTemplateSwitchFunction\templateNodeCaseTransformation(), eZTemplateCacheFunction\templateNodeTransformation(), eZTemplateIfFunction\templateNodeTransformation(), eZTemplateBlockFunction\templateNodeTransformation(), eZTemplateSectionFunction\templateNodeTransformation(), eZTemplateDebugFunction\templateNodeTransformation(), and eZTemplateSwitchFunction\templateNodeTransformation().
| $cli = eZCLI::instance() |
Definition at line 14 of file ezchecktranslation.php.
| $data |
array( 'element_count' => 0, 'context_count' => 0, 'translated_element_count' => 0, 'untranslated_element_count' => 0, 'obsolete_element_count' => 0 )
Definition at line 155 of file ezchecktranslation.php.
Referenced by eZDBFileHandlerMysqlBackend\_exclusiveLock(), eZDBFileHandlerMysqliBackend\_exclusiveLock(), eZExtension\activeExtensions(), Cpdf\addImage(), Cpdf\addJpegFromFile(), Cpdf\addJpegImage_common(), eZContentObject\addLocation(), Cpdf\addPngFromFile(), eZPackage\appendDocument(), eZTemplate\attributeValue(), eZSimplifiedXMLInputParser\breakInlineFlow(), eZMultiPriceData\changeCurrency(), eZURI\codecURL(), eZImageHandler\convertFilterToText(), convertSerializedData(), eZFileHandler\copy(), eZFile\create(), eZOperationMemento\create(), eZPaymentCallbackChecker\createDataFromGET(), eZMultiPriceData\createPriceListForCurrency(), eZDBSchemaInterface\data(), eZContentObjectVersion\dataMap(), eZForwardCompressionHandler\doWrite(), eZGZIPZLIBCompressionHandler\doWrite(), eZFileHandler\doWrite(), eZModuleOperationInfo\execute(), eZCodeMapper\extractUnicodeValue(), eZCodeMapper\extractUnicodeValues(), 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(), eZBooleanType\fetchObjectAttributeHTTPInput(), eZTextType\fetchObjectAttributeHTTPInput(), eZPriceType\fetchObjectAttributeHTTPInput(), eZStringType\fetchObjectAttributeHTTPInput(), eZIntegerType\fetchObjectAttributeHTTPInput(), eZCountryType\fetchObjectAttributeHTTPInput(), eZIniSettingType\fetchObjectAttributeHTTPInput(), eZObjectForwarder\functionTemplateHints(), eZLintSchema\generateDataFile(), eZDBSchemaInterface\generateDataFile(), eZUser\generateUserCacheForFile(), eZHTTPTool\getDataByURL(), eZWebDAVContentBackend\getNodeInfo(), eZWebDAVContentBackend\getResourceContents(), handleContextNode(), handleMessageNode(), handleNodeTemplate(), eZDBPackageHandler\handleParameters(), eZFilePackageHandler\handleParameters(), eZStepSecurity\init(), eZStepDatabaseChoice\init(), eZStepEmailSettings\init(), eZStepSiteAccess\init(), eZStepSitePackages\init(), eZStepSiteAdmin\init(), eZStepDatabaseInit\init(), eZStepLanguageOptions\init(), eZStepSiteDetails\init(), eZStepRegistration\init(), eZStepSiteTypes\init(), eZIniSettingType\initializeObjectAttribute(), eZContentClassAttribute\initializeObjectAttributes(), eZDBSchemaInterface\insertSchema(), eZINI\loadCache(), eZPackage\md5sum(), eZAuthor\metaData(), eZISBNType\objectAttributeContent(), eZIniSettingType\objectAttributeContent(), Cpdf\openFont(), eZTemplateOptimizer\optimizeResourceAcquisition(), eZTemplateOptimizer\optimizeVariable(), eZImageAliasHandler\parseInformationNode(), eZTemplateMultiPassParser\parseIntoTextElements(), eZXMLInputParser\parseTag(), eZSimplifiedXMLInputParser\parsingHandlerLiteral(), eZXMLInputParser\performPass1(), ezpRestCacheStorageClusterObject\prepareData(), eZAutoloadGenerator\printAutoloadArray(), eZGIFImageAnalyzer\process(), eZWebDAVServer\processClientRequest(), Cpdf\PRVT_getBytes(), eZMySQLiDB\query(), eZMySQLDB\query(), eZDbSchema\read(), eZFileHandler\read(), eZMultiPriceData\removePriceListForCurrency(), Cpdf\selectFont(), eZSOAPClient\send(), eZHTTPTool\sendHTTPRequest(), eZFileTransport\sendMail(), eZDiffContent\setChanges(), eZOperationMemento\setData(), eZDiffContent\setNewContent(), eZDiffContent\setOldContent(), eZAutoloadGenerator\setStatArray(), eZTemplateCompiler\staticNodeData(), ezpRestCacheStorageCluster\store(), ezpRestCacheStorageApcCluster\store(), eZPackage\storeString(), eZSOAPServer\stripHTTPHeader(), eZSOAPResponse\stripHTTPHeader(), eZTemplateBlockFunction\templateNodeTransformation(), Cpdf\transaction(), eZDBSchemaInterface\transformData(), eZMultiOption2Type\validateAddToBasket(), eZContentObjectAttribute\validateAddToBasket(), eZBooleanType\validateCollectionAttributeHTTPInput(), eZTextType\validateCollectionAttributeHTTPInput(), eZStringType\validateCollectionAttributeHTTPInput(), eZSelectionType\validateCollectionAttributeHTTPInput(), eZIntegerType\validateCollectionAttributeHTTPInput(), eZCountryType\validateCollectionAttributeHTTPInput(), eZSimplifiedXMLInput\validateInput(), eZIntegerType\validateIntegerHTTPInput(), eZPriceType\validateObjectAttributeHTTPInput(), eZMatrixType\validateObjectAttributeHTTPInput(), eZProductCategoryType\validateObjectAttributeHTTPInput(), eZBooleanType\validateObjectAttributeHTTPInput(), eZKeywordType\validateObjectAttributeHTTPInput(), eZTextType\validateObjectAttributeHTTPInput(), eZStringType\validateObjectAttributeHTTPInput(), eZFloatType\validateObjectAttributeHTTPInput(), eZIntegerType\validateObjectAttributeHTTPInput(), eZSelectionType\validateObjectAttributeHTTPInput(), eZCountryType\validateObjectAttributeHTTPInput(), eZStringType\validateStringHTTPInput(), eZFileHandler\write(), eZDBSchemaInterface\writeArraySchemaFile(), eZAutoloadGenerator\writeAutoloadFiles(), and eZDBSchemaInterface\writeSQLSchemaFile().
| $data['ignored_context_list'] = array() |
Definition at line 160 of file ezchecktranslation.php.
| $fd = fopen( $translationFile, "rb" ) |
Definition at line 46 of file ezchecktranslation.php.
| $options |
$script->getOptions( "[ignore-tr-setup]", "[translation]", array( 'ignore-tr-setup' => 'Tells the analyzer to skip all translations regarding the setup' ) )
Definition at line 25 of file ezchecktranslation.php.
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 ) )
Definition at line 15 of file ezchecktranslation.php.
| $success = $tree->loadXML( $transXML ) |
Definition at line 54 of file ezchecktranslation.php.
Referenced by eZUserShopAccountHandler\accountInformation(), eZSimpleShopAccountHandler\accountInformation(), eZUserShopAccountHandler\accountName(), eZSimpleShopAccountHandler\accountName(), eZImageAliasHandler\aliasList(), eZXMLText\attribute(), eZImageHandler\changeFilePermissions(), eZSelectionType\classAttributeContent(), eZMatrixDefinition\decodeClassAttribute(), eZSOAPResponse\decodeStream(), eZRangeOption\decodeXML(), eZOption\decodeXML(), eZAuthor\decodeXML(), eZMultiOption\decodeXML(), eZMultiOption2\decodeXML(), eZMatrix\decodeXML(), eZDir\doMkdir(), eZImageAliasHandler\domTree(), eZUserShopAccountHandler\email(), eZSimpleShopAccountHandler\email(), eZPackage\fetchDOMFromFile(), eZRSSImport\getRSSVersion(), eZSimplifiedXMLInput\inputXML(), eZTSTranslator\loadTranslationFile(), eZXMLTextType\metaData(), eZDir\mkdir(), eZTOCOperator\modify(), eZXMLTextType\onPublish(), eZWebDAVServer\outputCollectionContent(), eZXMLOutputHandler\outputText(), eZDateTimeType\parseXML(), eZXMLTextType\postUnserializeContentObjectAttribute(), ezpUrlObjectLinkUpdate\processData(), eZSOAPServer\processRequest(), eZECBHandler\requestRates(), eZStepSiteTypes\retrieveRemotePackagesList(), eZSelectionType\serializeContentClassAttribute(), eZDateTimeType\serializeContentClassAttribute(), eZRangeOptionType\serializeContentObjectAttribute(), eZAuthorType\serializeContentObjectAttribute(), eZOptionType\serializeContentObjectAttribute(), eZMultiOptionType\serializeContentObjectAttribute(), eZMatrixType\serializeContentObjectAttribute(), eZXMLTextType\serializeContentObjectAttribute(), eZMultiOption2Type\serializeContentObjectAttribute(), eZObjectRelationListType\serializeContentObjectAttribute(), and eZXMLTextType\title().
| $totalCount = $data['translated_element_count'] + $data['untranslated_element_count'] |
Definition at line 200 of file ezchecktranslation.php.
Referenced by displayProgress().
| $translationFile = $options['arguments'][0] |
Definition at line 34 of file ezchecktranslation.php.
Referenced by eZTSTranslator\fetchList().
| $translationName = false |
Definition at line 33 of file ezchecktranslation.php.
Referenced by ezpLanguageSwitcher\setupTranslationSAList(), and eZContentObject\unserialize().
| $transXML = fread( $fd, filesize( $translationFile ) ) |
Definition at line 47 of file ezchecktranslation.php.
| $tree = new DOMDOcument() |
Definition at line 53 of file ezchecktranslation.php.
Referenced by eZTemplateOptimizer\optimize(), and eZTSTranslator\validateDOMTree().
| if ($options['ignore-tr-setup']) $treeRoot = $tree->documentElement |
Definition at line 174 of file ezchecktranslation.php.
Referenced by eZTSTranslator\loadTranslationFile(), and eZTemplateMultiPassParser\parseIntoTree().
| if (!file_exists($translationFile)) if (!file_exists($translationFile)) $script->shutdown(1 Translation file $translationFile does not exist |
Definition at line 41 of file ezchecktranslation.php.
Definition at line 30 of file ezchecktranslation.php.
| if (!eZTSTranslator::validateDOMTree($tree)) $script->shutdown(1 XML text for file $translationFile did not validate |
Definition at line 57 of file ezchecktranslation.php.
Referenced by eZAuthorType\validateObjectAttributeHTTPInput(), and eZUserType\validateObjectAttributeHTTPInput().