Coverage for app/venv/lib/python3.14/site-packages/weblate/checks/data.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 07:15 +0000

1# Copyright © Michal Čihař <michal@weblate.org> 

2# 

3# SPDX-License-Identifier: GPL-3.0-or-later 

4 

5# We ignore some words which are usually untranslated 

6import string 

7 

8IGNORE_WORDS = { 

9 "abc", 

10 "accelerator", 

11 "account", 

12 "action", 

13 "actions", 

14 "active", 

15 "add", 

16 "addons", 

17 "address", 

18 "admin", 

19 "administration", 

20 "administrator", 

21 "aes", 

22 "africa", 

23 "agenda", 

24 "agent", 

25 "alarm", 

26 "album", 

27 "alias", 

28 "aliases", 

29 "aliasing", 

30 "alibaba", 

31 "alt", 

32 "altitude", 

33 "amazon", 

34 "amex", 

35 "android", 

36 "antialias", 

37 "antialiasing", 

38 "apertium", 

39 "api", 

40 "applet", 

41 "appliance", 

42 "appliances", 

43 "apt", 

44 "aptitude", 

45 "area", 

46 "array", 

47 "artica", 

48 "artist", 

49 "artwork", 

50 "async", 

51 "atom", 

52 "attribute", 

53 "attribution", 

54 "audio", 

55 "auth", 

56 "authentication", 

57 "author", 

58 "auto", 

59 "autostart", 

60 "avatar", 

61 "azure", 

62 "backend", 

63 "backspace", 

64 "backup", 

65 "badge", 

66 "balance", 

67 "baltic", 

68 "bank", 

69 "banner", 

70 "bar", 

71 "baseball", 

72 "battery", 

73 "bazaar", 

74 "begin", 

75 "beta", 

76 "bios", 

77 "bit", 

78 "bitbucket", 

79 "bitcoin", 

80 "bitcoins", 

81 "bitmap", 

82 "bitmaps", 

83 "bitnami", 

84 "bitrate", 

85 "block", 

86 "blog", 

87 "bluetooth", 

88 "bool", 

89 "boolean", 

90 "boot", 

91 "bootloader", 

92 "box", 

93 "branch", 

94 "broadcast", 

95 "browser", 

96 "bsd", 

97 "buffer", 

98 "byte", 

99 "bytes", 

100 "bzip", 

101 "cable", 

102 "cache", 

103 "caps", 

104 "captcha", 

105 "cardinality", 

106 "cdrom", 

107 "celery", 

108 "celsius", 

109 "classic", 

110 "click", 

111 "client", 

112 "clipboard", 

113 "cloud", 

114 "club", 

115 "cmd", 

116 "cockpit", 

117 "code", 

118 "codec", 

119 "collation", 

120 "color", 

121 "command", 

122 "commit", 

123 "component", 

124 "components", 

125 "compression", 

126 "conductor", 

127 "configuration", 

128 "console", 

129 "contact", 

130 "contacts", 

131 "context", 

132 "control", 

133 "cookie", 

134 "cookies", 

135 "copyright", 

136 "core", 

137 "creation", 

138 "criteria", 

139 "crypt", 

140 "csd", 

141 "csv", 

142 "ctrl", 

143 "cvs", 

144 "cyrillic", 

145 "danda", 

146 "dashboard", 

147 "data", 

148 "database", 

149 "databases", 

150 "date", 

151 "datum", 

152 "dbm", 

153 "debconf", 

154 "debian", 

155 "debug", 

156 "deepl", 

157 "default", 

158 "definition", 

159 "del", 

160 "delete", 

161 "demo", 

162 "description", 

163 "design", 

164 "designer", 

165 "desktop", 

166 "destination", 

167 "detail", 

168 "details", 

169 "devanagari", 

170 "developer", 

171 "devscripts", 

172 "dialog", 

173 "diaspora", 

174 "diners", 

175 "ding", 

176 "diplomat", 

177 "direction", 

178 "directory", 

179 "disc", 

180 "distance", 

181 "distribution", 

182 "distro", 

183 "dns", 

184 "doc", 

185 "docs", 

186 "doctor", 

187 "document", 

188 "documentation", 

189 "dollar", 

190 "download", 

191 "downloads", 

192 "doxygen", 

193 "dpi", 

194 "dpkg", 

195 "drizzle", 

196 "droid", 

197 "dropbox", 

198 "dtd", 

199 "dummy", 

200 "dump", 

201 "edition", 

202 "editor", 

203 "eib", 

204 "ellipsis", 

205 "email", 

206 "end", 

207 "engine", 

208 "engines", 

209 "enter", 

210 "enterprise", 

211 "enum", 

212 "error", 

213 "esc", 

214 "escape", 

215 "eta", 

216 "ethereum", 

217 "ethernet", 

218 "event", 

219 "events", 

220 "excel", 

221 "exchange", 

222 "expert", 

223 "explore", 

224 "export", 

225 "express", 

226 "expression", 

227 "extension", 

228 "extra", 

229 "extras", 

230 "facebook", 

231 "false", 

232 "fame", 

233 "fanfare", 

234 "farm", 

235 "fauna", 

236 "fax", 

237 "fediverse", 

238 "fedora", 

239 "feeds", 

240 "feet", 

241 "file", 

242 "files", 

243 "filter", 

244 "filters", 

245 "finalisation", 

246 "finance", 

247 "fingerprint", 

248 "firefox", 

249 "firewall", 

250 "firmware", 

251 "fjord", 

252 "flash", 

253 "flattr", 

254 "float", 

255 "flora", 

256 "font", 

257 "form", 

258 "format", 

259 "forum", 

260 "freemind", 

261 "freeplane", 

262 "frequency", 

263 "frontend", 

264 "full", 

265 "fulltext", 

266 "function", 

267 "gamma", 

268 "gammu", 

269 "gas", 

270 "general", 

271 "genre", 

272 "gentoo", 

273 "geo", 

274 "geocache", 

275 "geocaching", 

276 "geometry", 

277 "get", 

278 "gettext", 

279 "ghz", 

280 "gib", 

281 "git", 

282 "gitea", 

283 "github", 

284 "gitlab", 

285 "global", 

286 "glosbe", 

287 "gmail", 

288 "gnu", 

289 "golf", 

290 "google", 

291 "gpl", 

292 "gps", 

293 "gpt", 

294 "gpx", 

295 "grant", 

296 "graphic", 

297 "graphics", 

298 "gratis", 

299 "greeter", 

300 "gtk", 

301 "gvim", 

302 "gzip", 

303 "hack", 

304 "hacks", 

305 "hall", 

306 "handle", 

307 "handler", 

308 "hardware", 

309 "hash", 

310 "hashed", 

311 "hdmi", 

312 "headset", 

313 "help", 

314 "hex", 

315 "histogram", 

316 "hmpf", 

317 "home", 

318 "homebrew", 

319 "homepage", 

320 "honeypot", 

321 "hong", 

322 "hook", 

323 "horizontal", 

324 "horror", 

325 "host", 

326 "hosted", 

327 "hostel", 

328 "hosting", 

329 "hostname", 

330 "hotel", 

331 "hpa", 

332 "html", 

333 "http", 

334 "https", 

335 "hut", 

336 "hybrid", 

337 "hyperlink", 

338 "charset", 

339 "charsets", 

340 "chat", 

341 "china", 

342 "iban", 

343 "icmp", 

344 "icon", 

345 "icons", 

346 "icu", 

347 "idea", 

348 "ids", 

349 "ieee", 

350 "ignore", 

351 "illustration", 

352 "image", 

353 "imap", 

354 "imei", 

355 "import", 

356 "imsi", 

357 "inconsistent", 

358 "index", 

359 "india", 

360 "indigo", 

361 "individual", 

362 "info", 

363 "information", 

364 "infrastructure", 

365 "inline", 

366 "inno", 

367 "innodb", 

368 "innosetup", 

369 "input", 

370 "ins", 

371 "insert", 

372 "insights", 

373 "instagram", 

374 "install", 

375 "installation", 

376 "int", 

377 "integer", 

378 "interface", 

379 "interlingua", 

380 "international", 

381 "internet", 

382 "intl", 

383 "intro", 

384 "introduction", 

385 "ion", 

386 "ios", 

387 "ipsum", 

388 "iptables", 

389 "ipv", 

390 "irc", 

391 "irda", 

392 "irix", 

393 "isbn", 

394 "isdn", 

395 "ismn", 

396 "iso", 

397 "isrc", 

398 "issn", 

399 "item", 

400 "items", 

401 "jabber", 

402 "jami", 

403 "java", 

404 "javascript", 

405 "jdbc", 

406 "join", 

407 "joins", 

408 "joomla", 

409 "jpeg", 

410 "jpg", 

411 "json", 

412 "kappa", 

413 "karaoke", 

414 "kbps", 

415 "kernel", 

416 "keycloak", 

417 "kgz", 

418 "kib", 

419 "kill", 

420 "knoppix", 

421 "kong", 

422 "korfbal", 

423 "label", 

424 "labels", 

425 "land", 

426 "latex", 

427 "latin", 

428 "latitude", 

429 "layout", 

430 "ldif", 

431 "leap", 

432 "legal", 

433 "level", 

434 "liberapay", 

435 "libgammu", 

436 "libre", 

437 "lime", 

438 "linestring", 

439 "linguist", 

440 "link", 

441 "links", 

442 "linux", 

443 "list", 

444 "litecoin", 

445 "lithium", 

446 "local", 

447 "locales", 

448 "lock", 

449 "log", 

450 "logcheck", 

451 "login", 

452 "logo", 

453 "logos", 

454 "longitude", 

455 "lord", 

456 "lorem", 

457 "ltr", 

458 "lua", 

459 "lzma", 

460 "lzo", 

461 "mac", 

462 "macos", 

463 "magazine", 

464 "magazines", 

465 "magenta", 

466 "mah", 

467 "mail", 

468 "mailbird", 

469 "mailbox", 

470 "mailboxes", 

471 "maildir", 

472 "mailing", 

473 "majordomo", 

474 "mako", 

475 "manager", 

476 "mandrake", 

477 "mandriva", 

478 "manual", 

479 "mapillary", 

480 "markdown", 

481 "master", 

482 "material", 

483 "matrix", 

484 "max", 

485 "maximum", 

486 "media", 

487 "mediawiki", 

488 "medium", 

489 "menu", 

490 "mercurial", 

491 "merge", 

492 "merchandise", 

493 "mesh", 

494 "message", 

495 "messageformat", 

496 "messages", 

497 "meta", 

498 "metadata", 

499 "metal", 

500 "metre", 

501 "metres", 

502 "mhz", 

503 "mib", 

504 "micropayment", 

505 "micropayments", 

506 "microsoft", 

507 "migration", 

508 "mile", 

509 "min", 

510 "minimum", 

511 "mint", 

512 "minus", 

513 "minute", 

514 "minutes", 

515 "mm²", 

516 "mode", 

517 "model", 

518 "module", 

519 "modules", 

520 "monero", 

521 "monitor", 

522 "mono", 

523 "monument", 

524 "motel", 

525 "motif", 

526 "mouse", 

527 "mozilla", 

528 "mph", 

529 "multiplayer", 

530 "musical", 

531 "musicbottle", 

532 "mysql", 

533 "name", 

534 "namecoin", 

535 "namecoins", 

536 "navigation", 

537 "navy", 

538 "net", 

539 "netfilter", 

540 "network", 

541 "neutral", 

542 "next", 

543 "nimh", 

544 "node", 

545 "none", 

546 "normal", 

547 "note", 

548 "notes", 

549 "notification", 

550 "notifications", 

551 "notify", 

552 "null", 

553 "num", 

554 "number", 

555 "numeric", 

556 "oauth", 

557 "obex", 

558 "office", 

559 "offline", 

560 "offset", 

561 "ogg", 

562 "online", 

563 "ons", # codespell:ignore ons 

564 "opac", 

565 "open", 

566 "openai", 

567 "opendocument", 

568 "openmaps", 

569 "openpgp", 

570 "openstreet", 

571 "opensuse", 

572 "openvpn", 

573 "opera", 

574 "operator", 

575 "option", 

576 "options", 

577 "orange", 

578 "orientation", 

579 "original", 

580 "osm", 

581 "osmand", 

582 "osx", 

583 "output", 

584 "overhead", 

585 "package", 

586 "page", 

587 "pager", 

588 "pages", 

589 "panel", 

590 "parameter", 

591 "parameters", 

592 "park", 

593 "parking", 

594 "parser", 

595 "partition", 

596 "partitions", 

597 "party", 

598 "password", 

599 "patreon", 

600 "pause", 

601 "paypal", 

602 "pdf", 

603 "pdu", 

604 "per", 

605 "percent", 

606 "performance", 

607 "perfume", 

608 "personal", 

609 "php", 

610 "phpmyadmin", 

611 "pib", 

612 "picasa", 

613 "pin", 

614 "ping", 

615 "pirate", 

616 "pirates", 

617 "pixel", 

618 "pixels", 

619 "placement", 

620 "plan", 

621 "platform", 

622 "playlist", 

623 "plugin", 

624 "plugins", 

625 "plural", 

626 "plurals", 

627 "plus", 

628 "png", 

629 "podcast", 

630 "podcasts", 

631 "point", 

632 "points", 

633 "polygon", 

634 "polymer", 

635 "pool", 

636 "port", 

637 "portable", 

638 "portrait", 

639 "position", 

640 "post", 

641 "postgresql", 

642 "posts", 

643 "postscript", 

644 "ppp", 

645 "pppoe", 

646 "pre", 

647 "prefix", 

648 "premium", 

649 "prince", 

650 "privacy", 

651 "private", 

652 "procedure", 

653 "procedures", 

654 "process", 

655 "processing", 

656 "profiling", 

657 "program", 

658 "progress", 

659 "project", 

660 "promotion", 

661 "properties", 

662 "property", 

663 "protocol", 

664 "provider", 

665 "proxy", 

666 "public", 

667 "pull", 

668 "push", 

669 "python", 

670 "query", 

671 "question", 

672 "questions", 

673 "radar", 

674 "radio", 

675 "radius", 

676 "rate", 

677 "react", 

678 "reality", 

679 "realm", 

680 "rebase", 

681 "recaptcha", 

682 "recent", 

683 "reddit", 

684 "redhat", 

685 "redis", 

686 "reg", 

687 "regexp", 

688 "region", 

689 "relation", 

690 "relations", 

691 "release", 

692 "render", 

693 "replication", 

694 "report", 

695 "reports", 

696 "repository", 

697 "reset", 

698 "resource", 

699 "responsive", 

700 "restart", 

701 "restaurant", 

702 "restaurants", 

703 "return", 

704 "rich", 

705 "richtext", 

706 "rijndael", 

707 "roadmap", 

708 "robot", 

709 "role", 

710 "roles", 

711 "root", 

712 "route", 

713 "routine", 

714 "routines", 

715 "rss", 

716 "rst", 

717 "rtl", 

718 "ruby", 

719 "salt", 

720 "sauna", 

721 "saver", 

722 "scalable", 

723 "scenario", 

724 "score", 

725 "screen", 

726 "screensaver", 

727 "screenshot", 

728 "script", 

729 "scripting", 

730 "scripts", 

731 "scroll", 

732 "scrum", 

733 "sdk", 

734 "sector", 

735 "seed", 

736 "selinux", 

737 "send", 

738 "sergeant", 

739 "serie", # codespell:ignore serie 

740 "series", 

741 "server", 

742 "servers", 

743 "service", 

744 "set", 

745 "setup", 

746 "shell", 

747 "shift", 

748 "signature", 

749 "sim", 

750 "singular", 

751 "sip", 

752 "site", 

753 "skype", 

754 "slack", 

755 "slash", 

756 "slide", 

757 "slideshow", 

758 "slot", 

759 "slots", 

760 "slug", 

761 "sms", 

762 "smsc", 

763 "smsd", 

764 "smtp", 

765 "snapshot", 

766 "snapshots", 

767 "snmp", 

768 "social", 

769 "socket", 

770 "software", 

771 "solaris", 

772 "source", 

773 "spam", 

774 "spatial", 

775 "spline", 

776 "spoiler", 

777 "sponsor", 

778 "sponsors", 

779 "sport", 

780 "sprint", 

781 "sql", 

782 "sqlite", 

783 "squid", 

784 "ssh", 

785 "ssl", 

786 "sso", 

787 "stack", 

788 "standard", 

789 "start", 

790 "starttls", 

791 "stat", 

792 "statement", 

793 "stats", 

794 "status", 

795 "stereo", 

796 "stop", 

797 "string", 

798 "strings", 

799 "structure", 

800 "studio", 

801 "stun", 

802 "style", 

803 "submit", 

804 "subquery", 

805 "substring", 

806 "suggestion", 

807 "suggestions", 

808 "sum", 

809 "sunos", 

810 "supermarket", 

811 "support", 

812 "surfing", 

813 "suse", 

814 "svg", 

815 "swap", 

816 "symbol", 

817 "synaptic", 

818 "syndication", 

819 "syntax", 

820 "system", 

821 "tab", 

822 "table", 

823 "tables", 

824 "tabs", 

825 "tada", 

826 "tag", 

827 "tags", 

828 "taiwan", 

829 "taxi", 

830 "taxon", 

831 "tbx", 

832 "tcp", 

833 "team", 

834 "teams", 

835 "technologies", 

836 "technology", 

837 "telegram", 

838 "telnet", 

839 "template", 

840 "tent", 

841 "term", 

842 "termbase", 

843 "terminal", 

844 "test", 

845 "text", 

846 "texy", 

847 "theme", 

848 "theora", 

849 "thread", 

850 "threads", 

851 "thriller", 

852 "thunderbird", 

853 "tib", 

854 "timer", 

855 "tip", 

856 "tls", 

857 "todo", 

858 "todos", 

859 "token", 

860 "top", 

861 "tor", 

862 "total", 

863 "tour", 

864 "trailer", 

865 "transfer", 

866 "transformation", 

867 "transformations", 

868 "transistor", 

869 "transport", 

870 "tray", 

871 "trigger", 

872 "triggers", 

873 "true", 

874 "turbo", 

875 "tutorial", 

876 "twiki", 

877 "twitter", 

878 "type", 

879 "ubuntu", 

880 "udp", 

881 "uefi", 

882 "ukolovnik", 

883 "unicode", 

884 "unique", 

885 "unit", 

886 "universal", 

887 "unix", 

888 "update", 

889 "upload", 

890 "upnp", 

891 "url", 

892 "user", 

893 "utf", 

894 "variable", 

895 "variables", 

896 "vcalendar", 

897 "vcard", 

898 "vector", 

899 "vendor", 

900 "version", 

901 "versions", 

902 "vertical", 

903 "video", 

904 "view", 

905 "views", 

906 "vim", 

907 "vip", 

908 "virus", 

909 "visa", 

910 "vkontakte", 

911 "volume", 

912 "vorbis", 

913 "vote", 

914 "votes", 

915 "vue", 

916 "wammu", 

917 "web", 

918 "webdav", 

919 "webextension", 

920 "webgl", 

921 "webhook", 

922 "weblate", 

923 "webmail", 

924 "website", 

925 "widget", 

926 "widgets", 

927 "wifi", 

928 "wiki", 

929 "wikipedia", 

930 "wildcard", 

931 "windowed", 

932 "windows", 

933 "word", 

934 "www", 

935 "xen", 

936 "xhtml", 

937 "xkeys", 

938 "xliff", 

939 "xml", 

940 "yahoo", 

941 "yaml", 

942 "yandex", 

943 "yard", 

944 "youtube", 

945 "zcash", 

946 "zen", 

947 "zero", 

948 "zeta", 

949 "zip", 

950 "zombie", 

951 "zone", 

952 "zoo", 

953 "zoom", 

954 "zstd", 

955 # Currencies 

956 "btc", 

957 "eur", 

958 "usd", 

959 # Months are same in some languages 

960 "january", 

961 "february", 

962 "march", 

963 "april", 

964 "may", 

965 "june", 

966 "july", 

967 "august", 

968 "september", 

969 "october", 

970 "november", 

971 "december", 

972 "jan", 

973 "feb", 

974 "mar", 

975 "apr", 

976 "jun", 

977 "jul", 

978 "aug", 

979 "sep", 

980 "oct", 

981 "nov", 

982 "dec", 

983 # Week names shotrcuts 

984 "mon", 

985 "tue", 

986 "wed", 

987 "thu", 

988 "fri", 

989 "sat", 

990 "sun", 

991 # Roman numbers 

992 "iii", 

993 # Architectures 

994 "alpha", 

995 "amd", 

996 "arm", 

997 "aarch", 

998 "hppa", 

999 "powerpc", 

1000 "sparc", 

1001 # whole alphabet 

1002 string.ascii_lowercase, 

1003}