A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 regels
1.9 KiB

  1. from toolforge_i18n import TranslationsConfig
  2. config = TranslationsConfig(
  3. variables={
  4. "login-error": ["error_text"],
  5. "settings-updated": ["changes"],
  6. "error-bad-action": ["action"],
  7. "error-invalid-oldid": ["oldid"],
  8. "error-unsupported-uri": ["target_url"],
  9. "error-no-data": ["target_url"],
  10. "error-timeout": ["target_url"],
  11. "error-bad-site": ["project", "lang", "site_url"],
  12. "error-revision-not-found": ["revision_url"],
  13. "error-page-not-found": ["page_url"],
  14. "error-search-error": ["error_cause", "no_engine_url"],
  15. "check-results-time": ["time"],
  16. "check-results-time-search": ["time", "num_queries"],
  17. "cached-line": ["tooltip_text", "time_abbr", "gen_time"],
  18. "cached-line-search": ["tooltip_text", "time_abbr", "gen_time", "num_queries"],
  19. "redirected-from": ["redirect_page_url", "check_original_url"],
  20. "attribution-warning": ["template_url"],
  21. "turnitin-report": ["report_id"],
  22. "turnitin-report-link": ["report_id", "diff_url"],
  23. "turnitin-source": ["percent", "word_count", "source_url"],
  24. "search-ended-early": ["retry_url"],
  25. "urls-hidden": ["num_urls"],
  26. "ago-seconds": ["num"],
  27. "ago-minutes": ["num"],
  28. "ago-hours": ["num"],
  29. "maintained-by": ["author_url"],
  30. "error-description": ["issues_url", "new_issue_url", "email_url"],
  31. "intro-paragraph-3": ["exclusions_url"],
  32. "intro-paragraph-1": ["copyright_url"],
  33. "intro-paragraph-1-copyvio-url": [],
  34. "after-login-redirect": ["redirect_url"],
  35. "settings-background-list": ["potd_subset_url", "commons_url", "potd_url"],
  36. },
  37. allowed_html_elements={
  38. "a": {"href", "id"},
  39. "abbr": {"title"},
  40. "b": set(),
  41. "br": set(),
  42. "code": set(),
  43. "i": set(),
  44. "span": {"class", "id"},
  45. "strong": set(),
  46. },
  47. )