Debian Codegraph @

cleaners/localizations.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <cleaner id="localizations" os="linux">
3 <label>Localizations</label>
4 <localizations>
5 <!-- Here are paths which contain localizations. Each <path> is relative to
6 the parent element, so <path location="/usr"><path location="share"/></path>
7 effects elements in /usr/share.-->
8 <path location="/usr/lib">
9 <!-- This filter deletes /usr/lib/chromium/locales/*.pak, where * is every
10 valid locale not specifically excluded in the configuration.-->
11 <path location="chromium/locales" filter="*.pak"/>
12 <path location="libreoffice/share">
13 <path location="autocorr" filter="acor_*.dat"/>
14 <path location="fingerprint" filter="*.lm"/>
15 </path>
16 </path>
17 <path location="/usr/share">
18 <!-- check for Qt translations in every folder's subfolder locale or translations -->
19 <!-- also check for localizations in folders named locale(s)/translation(s) in every subfolder-->
20 <path directoryregex="^.*$">
21 <path directoryregex="^(locale|translation)s?$">
22 <regexfilter prefix=".*_" postfix="\.qm"/>
23 <path location="." filter="*"/>
24 </path>
25 </path>
26 <path location="apps/ksgmltools/customization" filter="*"/>
27 <path location="calendar" filter="*"/>
28 <path location="cups/doc" filter="*"/>
29 <path location="doc">
30 <path location="kde/HTML" filter="*"/>
31 <path location="HTML/release-notes" filter="*"/>
32 <path location="thunar-data/html" filter="*"/>
33 </path>
34 <path location="help" filter="*"/>
35 <path location="locale" filter="*"/>
36 <!-- for openSuSE -->
37 <path location="locale-bundle">
38 <path location="kf5" filter="*"/>
39 </path>
40 <path location="lyx/doc" filter="*"/>
41 <path location="lyx/examples" filter="*"/>
42 <path location="man" filter="*"/>
43 <path location="octave/">
44 <path directoryregex="^[0-9.]+$">
45 <path location="locale/" filter="*.qm"/>
46 </path>
47 </path>
48 <!-- This already gets cleaned by the more general <path directoryregex="^.*$"> above but might be useful as an example -->
49 <path location="qt/translations">
50 <!-- <regexfilter> enables filtering files/folders with 2 regular expressions.
51 This deletes every file matching |prefix | locale | postfix, e.g.
52 qt_help_hu_HU.UTF-8.qm
53 This can only be used to delete entries in the current <path> -->
54 <regexfilter prefix="q[\w_]*" postfix="\.qm"/>
55 <!-- You can also specify multiple <regexfilter>s within a single path -->
56 <regexfilter prefix="(linguist|designer|assistant)_" postfix="\.qm"/>
57 </path>
58 <path location="speedcrunch/books" filter="*"/>
59 <path location="texmaker/" filter="*.dic"/>
60 <path location="vim/vim74/lang" filter="menu_*.vim"/>
61 <path location="vim/vim74/lang" filter="*"/>
62 </path>
63 <path location="/var/lib/flatpak/runtime">
64 <path directoryregex="^.*$">
65 <path directoryregex="^.*$">
66 <path directoryregex="^.*$">
67 <path directoryregex="^[a-f0-9]{64}$">
68 <path location="files">
69 <path location="lib/locale" filter="*"/>
70 <path location="share/locale" filter="*"/>
71 </path>
72 </path>
73 </path>
74 </path>
75 </path>
76 </path>
77 </localizations>
78 </cleaner>