Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: filters/to_og_locale.py

Issue 29511691: Issue 5444 - Add missing essential meta data to eyeo.com (Closed) Base URL: https://hg.adblockplus.org/web.eyeo.com
Patch Set: Created Aug. 10, 2017, 8:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | settings.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filters/to_og_locale.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/filters/to_og_locale.py
@@ -0,0 +1,33 @@
+og_locales = {
+ 'ar': 'ar_AR',
+ 'bg': 'bg_BG',
+ 'de': 'de_DE',
+ 'dk': 'da_DK',
+ 'da': 'da_DK',
+ 'en': 'en_US',
+ 'es': 'es_LA',
+ 'fr': 'fr_FR',
+ 'el': 'el_GR',
+ 'he': 'he_IL',
+ 'hu': 'hu_HU',
+ 'it': 'it_IT',
+ 'ja': 'ja_JP',
+ 'ko': 'ko_KR',
+ 'lt': 'lt_LT',
+ 'nl': 'nl_NL',
+ 'pl': 'pl_PL',
+ 'pt': 'pt_PT',
+ 'pt_BR': 'pt_BR',
+ 'ro': 'ro_RO',
+ 'ru': 'ru_RU',
+ 'sk': 'sk_SK',
+ 'sl': 'sl_SI',
+ 'sv': 'sv_SE',
+ 'tr': 'tr_TR',
+ 'vi': 'vi_VN',
+ 'zh_CN': 'zh_CN',
+ 'zh_TW': 'zh_TW',
+}
+
+def to_og_locale(locale):
+ return og_locales[locale]
« no previous file with comments | « no previous file | settings.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld