public function StringDatabaseStorage::countTranslations in Localization update 7.2
Implements StringStorageInterface::countTranslations().
Overrides StringStorageInterface::countTranslations
File
- includes/
locale/ StringDatabaseStorage.php, line 87 - Definition of StringDatabaseStorage.
Class
- StringDatabaseStorage
- Defines the locale string class.
Code
public function countTranslations() {
return $this
->dbExecute("SELECT t.language, COUNT(*) AS translated FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid GROUP BY t.language")
->fetchAllKeyed();
}