MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / localization_paths

Method localization_paths

bleachbit/Unix.py:167–175  ·  view source on GitHub ↗

Returns all localization items matching the previously added xml configuration

(self, locales_to_keep)

Source from the content-addressed store, hash-verified

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
178def _is_broken_xdg_desktop_application(config, desktop_pathname):

Callers 3

get_commandsMethod · 0.80

Calls 2

get_purgeable_localesFunction · 0.85
get_localizationsMethod · 0.80

Tested by 2