TWLCon (2019 India)/Citation Hunt localisation
Appearance
As a part of the pre-event work, participants work on localisation of Citation Hunt for their individual language Wikipedias. It is a tool for browsing snippets of Wikipedia articles that lack citations. The sections below contain sample code, the instructions to localise the code are as follows:
|
Telugu [Working]
[edit]
te = dict(
# A friendly name for the language
lang_name = 'Telugu',
# The direction of the language, either ltr or rtl
lang_dir = 'ltr',
# The database to use on Tools Labs
database = 'tewiki_p',
# The domain for Wikipedia in this language
wikipedia_domain = 'te.wikipedia.org',
# A link to an introductory article about adding citations
beginners_link = 'https://en.wikipedia.org/wiki/Help:Introduction_to_referencing_with_VisualEditor/1', # <-- here
# A human-readable title for the article specified above. This gets
# interpolated into the localizable string 'beginners_hint'
beginners_link_title = 'Introduction to referencing with VisualEditor', # <-- here
# A link to an introductory article about identifying reliable sources.
# Optional.
reliable_sources_link = 'https://en.wikipedia.org/wiki/Help:Introduction_to_referencing_with_VisualEditor/5', # <-- here
# Some Wikipedias have specific policies for adding citations to the
# lead section of an article. This should be a link to that policy.
lead_section_policy_link = 'https://en.wikipedia.org/wiki/Wikipedia:CITELEAD',
# A human-readable title for the link above. This gets interpolated
# into the localizable string 'lead_section_hint'
lead_section_policy_link_title = 'WP:CITELEAD', # <-- here
# The name of the category containing articles lacking
# citations, without the 'Category:' prefix and with underscores
# instead of spaces.
citation_needed_category = 'All_articles_with_unsourced_statements', # <-- here
# The name of the category for hidden categories, without the
# 'Category:' prefix and with underscores instead of spaces.
# Categories belonging to this category are typically used for
# maintenance and will not show up on Citation Hunt.
hidden_category = 'Hidden_categories', # <-- here
),
Hindi [Done]
[edit]
hi = dict(
# A friendly name for the language
lang_name = 'Hindi',
# The direction of the language, either ltr or rtl
lang_dir = 'ltr',
# The database to use on Tools Labs
database = 'hiwiki_p',
# The domain for Wikipedia in this language
wikipedia_domain = 'hi.wikipedia.org',
# A link to an introductory article about adding citations
beginners_link = 'https://hi.wikipedia.org/s/egmz', # <-- here
# A human-readable title for the article specified above. This gets
# interpolated into the localizable string 'beginners_hint'
beginners_link_title = 'यथादृश्य संपादिका के साथ संदर्भ देने के लिए परिचय', # <-- here
# A link to an introductory article about identifying reliable sources.
# Optional.
reliable_sources_link = 'https://hi.wikipedia.org/s/egqm', # <-- here
# Some Wikipedias have specific policies for adding citations to the
# lead section of an article. This should be a link to that policy.
lead_section_policy_link = 'https://en.wikipedia.org/wiki/Wikipedia:CITELEAD',
# A human-readable title for the link above. This gets interpolated
# into the localizable string 'lead_section_hint'
lead_section_policy_link_title = 'w:en:WP:CITELEAD', # <-- here
# The name of the category containing articles lacking
# citations, without the 'Category:' prefix and with underscores
# instead of spaces.
citation_needed_category = 'सभी_लेख_जिनमें_स्रोतहीन_कथन_हैं', # <-- here
# The name of the category for hidden categories, without the
# 'Category:' prefix and with underscores instead of spaces.
# Categories belonging to this category are typically used for
# maintenance and will not show up on Citation Hunt.
hidden_category = 'छुपाई हुई श्रेणियाँ', # <-- here
),
Kannada [Done]
[edit]
kn = dict(
# A friendly name for the language
lang_name = 'Kannada',
# The direction of the language, either ltr or rtl
lang_dir = 'ltr',
# The database to use on Tools Labs
database = 'knwiki_p',
# The domain for Wikipedia in this language
wikipedia_domain = 'kn.wikipedia.org',
# A link to an introductory article about adding citations
beginners_link = 'https://kn.wikipedia.org/s/sm', # <-- here
# A human-readable title for the article specified above. This gets
# interpolated into the localizable string 'beginners_hint'
beginners_link_title = 'VisualEditorನೊಂದಿಗೆ ಉಲ್ಲೇಖ ಸೇರಿಸುವುದು', # <-- here
# A link to an introductory article about identifying reliable sources.
# Optional.
reliable_sources_link = 'https://kn.wikipedia.org/s/4u6', # <-- here
# Some Wikipedias have specific policies for adding citations to the
# lead section of an article. This should be a link to that policy.
lead_section_policy_link = 'https://en.wikipedia.org/wiki/Wikipedia:CITELEAD',
# A human-readable title for the link above. This gets interpolated
# into the localizable string 'lead_section_hint'
lead_section_policy_link_title = 'WP:CITELEAD', # <-- here
# The name of the category containing articles lacking
# citations, without the 'Category:' prefix and with underscores
# instead of spaces.
citation_needed_category = 'ಉಲ್ಲೇಖಗಳು ಬೇಕಾಗಿರುವ ಲೇಖನಗಳು', # <-- here
# The name of the category for hidden categories, without the
# 'Category:' prefix and with underscores instead of spaces.
# Categories belonging to this category are typically used for
# maintenance and will not show up on Citation Hunt.
hidden_category = 'ಮರೆಮಾಡಲಾಗಿರುವ ವರ್ಗಗಳು', # <-- here
),
Marathi [Working]
[edit]
mr = dict(
# A friendly name for your language
lang_name = 'Marathi',
# The direction of the language, either ltr or rtl
lang_dir = 'ltr',
# The database to use on Tools Labs
database = 'mrwiki_p',
# The domain for Wikipedia in this language
wikipedia_domain = 'mr.wikipedia.org',
# A link to an introductory article about adding citations
beginners_link = 'https://mr.wikipedia.org/wiki/विकिपीडिया:संदर्भ_द्या', # <-- here
# A human-readable title for the article specified above. This gets
# interpolated into the localizable string 'beginners_hint'
beginners_link_title = 'यथादृश्य संपादक वापरून संदर्भ देणे', # <-- here
# A link to an introductory article about identifying reliable sources.
# Optional.
reliable_sources_link = 'https://mr.wikipedia.org/wiki/विकिपीडिया:सोपे_संदर्भीकरण_-_साचे_वापरून', # <-- here
# Some Wikipedias have specific policies for adding citations to the
# lead section of an article. This should be a link to that policy.
lead_section_policy_link = 'https://en.wikipedia.org/wiki/Wikipedia:CITELEAD',
# A human-readable title for the link above. This gets interpolated
# into the localizable string 'lead_section_hint'
lead_section_policy_link_title = 'WP:CITELEAD', # <-- here
# The name of the category containing articles lacking
# citations, without the 'Category:' prefix and with underscores
# instead of spaces.
citation_needed_category = 'वर्ग:एक_ही_संदर्भ_नसलेले_लेख', # <-- here
# The name of the category for hidden categories, without the
# 'Category:' prefix and with underscores instead of spaces.
# Categories belonging to this category are typically used for
# maintenance and will not show up on Citation Hunt.
hidden_category = 'लपविलेले_वर्ग', # <-- here
),
Punjabi [Working]
[edit]
pa = dict(
# A friendly name for the language
lang_name = 'Punjabi',
# The direction of the language, either ltr or rtl
lang_dir = 'ltr',
# The database to use on Tools Labs
database = 'pawiki_p',
# The domain for Wikipedia in this language
wikipedia_domain = 'pa.wikipedia.org',
# A link to an introductory article about adding citations
beginners_link = 'https://en.wikipedia.org/wiki/Help:Introduction_to_referencing_with_VisualEditor/1', # <-- here
# A human-readable title for the article specified above. This gets
# interpolated into the localizable string 'beginners_hint'
beginners_link_title = 'Introduction to referencing with VisualEditor', # <-- here
# A link to an introductory article about identifying reliable sources.
# Optional.
reliable_sources_link = 'https://en.wikipedia.org/wiki/Help:Introduction_to_referencing_with_VisualEditor/5', # <-- here
# Some Wikipedias have specific policies for adding citations to the
# lead section of an article. This should be a link to that policy.
lead_section_policy_link = 'https://en.wikipedia.org/wiki/Wikipedia:CITELEAD',
# A human-readable title for the link above. This gets interpolated
# into the localizable string 'lead_section_hint'
lead_section_policy_link_title = 'WP:CITELEAD', # <-- here
# The name of the category containing articles lacking
# citations, without the 'Category:' prefix and with underscores
# instead of spaces.
citation_needed_category = 'All_articles_with_unsourced_statements', # <-- here
# The name of the category for hidden categories, without the
# 'Category:' prefix and with underscores instead of spaces.
# Categories belonging to this category are typically used for
# maintenance and will not show up on Citation Hunt.
hidden_category = 'Hidden_categories', # <-- here
),
Gujarati [Working]
[edit]
gu = dict(
# A friendly name for the language
lang_name = 'Gujarati',
# The direction of the language, either ltr or rtl
lang_dir = 'ltr',
# The database to use on Tools Labs
database = 'guwiki_p',
# The domain for Wikipedia in this language
wikipedia_domain = 'gu.wikipedia.org',
# A link to an introductory article about adding citations
beginners_link = 'https://en.wikipedia.org/wiki/Help:Introduction_to_referencing_with_VisualEditor/1', # <-- here
# A human-readable title for the article specified above. This gets
# interpolated into the localizable string 'beginners_hint'
beginners_link_title = 'Introduction to referencing with VisualEditor', # <-- here
# A link to an introductory article about identifying reliable sources.
# Optional.
reliable_sources_link = 'https://en.wikipedia.org/wiki/Help:Introduction_to_referencing_with_VisualEditor/5', # <-- here
# Some Wikipedias have specific policies for adding citations to the
# lead section of an article. This should be a link to that policy.
lead_section_policy_link = 'https://en.wikipedia.org/wiki/Wikipedia:CITELEAD',
# A human-readable title for the link above. This gets interpolated
# into the localizable string 'lead_section_hint'
lead_section_policy_link_title = 'WP:CITELEAD', # <-- here
# The name of the category containing articles lacking
# citations, without the 'Category:' prefix and with underscores
# instead of spaces.
citation_needed_category = 'All_articles_with_unsourced_statements', # <-- here
# The name of the category for hidden categories, without the
# 'Category:' prefix and with underscores instead of spaces.
# Categories belonging to this category are typically used for
# maintenance and will not show up on Citation Hunt.
hidden_category = 'Hidden_categories', # <-- here
),