diff options
Diffstat (limited to 'modules/locale/locale.install')
-rw-r--r-- | modules/locale/locale.install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install index b532fecfa..f283dca1c 100644 --- a/modules/locale/locale.install +++ b/modules/locale/locale.install @@ -106,6 +106,15 @@ function locale_update_6004() { } /** + * Prune strings with no translations (will be automatically re-registered if still in use) + */ +function locale_update_6005() { + $ret = array(); + $ret[] = update_sql("DELETE s FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid WHERE t.lid IS NULL"); + return $ret; +} + +/** * @} End of "defgroup updates-5.x-to-6.x" */ |