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

Delta Between Two Patch Sets: filters/to_og_locale.py

Issue 29680647: Issue 5329 - Provide a template for social media meta data in website-defaults (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Left Patch Set: Addressed comments #3 Created Jan. 30, 2018, 8:18 a.m.
Right Patch Set: Addressed NITs Created Feb. 1, 2018, 9:06 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | includes/meta/social.tmpl » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 og_locales = { 1 og_locales = {
2 'ar': 'ar_AR', 2 'ar': 'ar_AR',
3 'bg': 'bg_BG', 3 'bg': 'bg_BG',
4 'de': 'de_DE', 4 'de': 'de_DE',
5 'da': 'da_DK', 5 'da': 'da_DK',
6 'en': 'en_US', 6 'en': 'en_US',
7 'es': 'es_ES', 7 'es': 'es_ES',
8 'es_MX': 'es_LA', 8 'es_MX': 'es_LA',
9 'fr': 'fr_FR', 9 'fr': 'fr_FR',
10 'el': 'el_GR', 10 'el': 'el_GR',
(...skipping 11 matching lines...) Expand all
22 'ru': 'ru_RU', 22 'ru': 'ru_RU',
23 'sk': 'sk_SK', 23 'sk': 'sk_SK',
24 'th': 'th_TH', 24 'th': 'th_TH',
25 'tr': 'tr_TR', 25 'tr': 'tr_TR',
26 'vi': 'vi_VN', 26 'vi': 'vi_VN',
27 'zh_CN': 'zh_CN', 27 'zh_CN': 'zh_CN',
28 'zh_TW': 'zh_TW', 28 'zh_TW': 'zh_TW',
29 } 29 }
30 30
31 def to_og_locale(locale): 31 def to_og_locale(locale):
32 return og_locales[locale] if locale in og_locales else locale 32 return og_locales[locale] if locale in og_locales else locale
33
LEFTRIGHT

Powered by Google App Engine
This is Rietveld