Returns all localization items matching the previously added xml configuration
(self, locales_to_keep)
| 165 | self.add_xml(child_xml, parent) |
| 166 | |
| 167 | def localization_paths(self, locales_to_keep): |
| 168 | """Returns all localization items matching the previously added xml configuration""" |
| 169 | purgeable_locales = get_purgeable_locales(locales_to_keep) |
| 170 | |
| 171 | for (locale, specifier, path) in self._paths.get_localizations('/'): |
| 172 | specific = locale + (specifier or '') |
| 173 | if specific in purgeable_locales or \ |
| 174 | (locale in purgeable_locales and specific not in locales_to_keep): |
| 175 | yield path |
| 176 | |
| 177 | |
| 178 | def _is_broken_xdg_desktop_application(config, desktop_pathname): |