Added "tr" description language.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2022-05-20 14:09:02 +03:00
committed by zyphlar
parent 980bd36d02
commit 0d08a53224
2 changed files with 5 additions and 3 deletions

View File

@@ -40,7 +40,6 @@ BAD_SECTIONS = {
"Further reading", "Further reading",
"References", "References",
], ],
"ru": ["Литература", "Ссылки", "См. также", "Библиография", "Примечания"],
"de": [ "de": [
"Einzelnachweise", "Einzelnachweise",
"Weblinks", "Weblinks",
@@ -51,7 +50,6 @@ BAD_SECTIONS = {
"Filme", "Filme",
"Einzelbelege", "Einzelbelege",
], ],
"es": ["Vínculos de interés", "Véase también", "Enlaces externos", "Referencias"],
"fr": [ "fr": [
"Bibliographie", "Bibliographie",
"Lien externe", "Lien externe",
@@ -61,6 +59,9 @@ BAD_SECTIONS = {
"Notes et références", "Notes et références",
"Articles connexes", "Articles connexes",
], ],
"es": ["Vínculos de interés", "Véase también", "Enlaces externos", "Referencias"],
"ru": ["Литература", "Ссылки", "См. также", "Библиография", "Примечания"],
"tr": ["Kaynakça", "Ayrıca bakınız", "Dış bağlantılar", "Notlar", "Dipnot"],
} }

View File

@@ -156,7 +156,8 @@ class StageDownloadDescriptions(Stage):
threads_count=settings.THREADS_COUNT, threads_count=settings.THREADS_COUNT,
) )
langs = ("en", "ru", "es", "fr", "de") # https://en.wikipedia.org/wiki/Wikipedia:Multilingual_statistics
langs = ("en", "de", "fr", "es", "ru", "tr")
checker = check_and_get_checker(env.paths.popularity_path) checker = check_and_get_checker(env.paths.popularity_path)
download_from_wikipedia_tags( download_from_wikipedia_tags(
env.paths.wiki_url_path, env.paths.descriptions_path, langs, checker env.paths.wiki_url_path, env.paths.descriptions_path, langs, checker