Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.0
-
Component/s: Zend_Translate
-
Labels:None
Description
In Zend_Translate_Adapter file we have following method:
<?php
public function translate($messageId, $locale = null)
{
// ..... method code ........
// no translation found, return original
return $messageId;
}
?>
so if no translation found for particular message ID then original message Id returned.
Any way, its good to have the mechanism to collect untranslated message IDs and for example build some untranslated IDs list or add some missed translations reporting mechanism. Also such functionality would be good on application development stage to debug interface internationalization functionality.
From my point of view it need to have some enableTrackingMissedId() / disableTrackingMissedId()
And then at the end we can call ->getUntranslatedIds(); receive the list of all untranslated message Ids and use this array for further purposes.
Regards!
Use the isTranslated() method and log the requested translation when the method returns false.
All other ways are not practicable.