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

Delta Between Two Patch Sets: filters/to_og_location.py

Issue 29564702: Issue 5636 - Refactored language selector to use og locale location codes instead of locale codes (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Left Patch Set: Created Oct. 4, 2017, 4:43 p.m.
Right Patch Set: Added copyright notice Created Oct. 5, 2017, 12:17 p.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 | templates/default.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 # This file is part of the Adblock Plus website,
2 # Copyright (C) 2006-present eyeo GmbH
3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation.
7 #
8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
15
1 def to_og_location(og_locale): 16 def to_og_location(og_locale):
ire 2017/10/04 22:09:35 NIT: Missing copyright notice
juliandoucette 2017/10/05 12:11:12 Acknowledged.
juliandoucette 2017/10/05 12:17:39 Done.
2 return og_locale.split('_')[-1] 17 return og_locale.split('_')[-1]
LEFTRIGHT

Powered by Google App Engine
This is Rietveld