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

Side by Side Diff: localeTools.py

Issue 29561557: Issue 5763 - Target languages supported by Firefox (Closed)
Patch Set: Created Oct. 1, 2017, 5:12 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | packagerChrome.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 import re 5 import re
6 import os 6 import os
7 import sys 7 import sys
8 import codecs 8 import codecs
9 import json 9 import json
10 import urlparse 10 import urlparse
(...skipping 13 matching lines...) Expand all
24 'hsb': 'hsb-DE', 24 'hsb': 'hsb-DE',
25 'hi-IN': 'hi', 25 'hi-IN': 'hi',
26 'ml': 'ml-IN', 26 'ml': 'ml-IN',
27 'nb-NO': 'nb', 27 'nb-NO': 'nb',
28 'rm': 'rm-CH', 28 'rm': 'rm-CH',
29 'ta-LK': 'ta', 29 'ta-LK': 'ta',
30 'wo-SN': 'wo', 30 'wo-SN': 'wo',
31 } 31 }
32 32
33 langMappingChrome = { 33 langMappingChrome = {
34 'es-419': 'es-MX', 34 'br': 'br-FR',
35 'dsb': 'dsb-DE',
35 'es': 'es-ES', 36 'es': 'es-ES',
37 'fur': 'fur-IT',
38 'fy': 'fy-NL',
39 'ga': 'ga-IE',
40 'gu': 'gu-IN',
41 'hsb': 'hsb-DE',
42 'hy': 'hy-AM',
43 'ml': 'ml-IN',
44 'nn': 'nn-NO',
45 'pa': 'pa-IN',
46 'rm': 'rm-CH',
47 'si': 'si-LK',
36 'sv': 'sv-SE', 48 'sv': 'sv-SE',
37 'ml': 'ml-IN', 49 'ur': 'ur-PK',
38 'gu': 'gu-IN',
39 } 50 }
40 51
41 chromeLocales = [ 52 chromeLocales = [
42 'am', 53 'am',
43 'ar', 54 'ar',
44 'bg', 55 'bg',
45 'bn', 56 'bn',
46 'ca', 57 'ca',
47 'cs', 58 'cs',
48 'da', 59 'da',
49 'de', 60 'de',
50 'el', 61 'el',
51 'en-GB', 62 'en-GB',
52 'en-US', 63 'en-US',
53 'es-419', 64 'es-419',
tlucas 2017/10/02 09:25:43 iirc, removing the mapping for this will trigger a
Sebastian Noack 2017/10/02 23:01:33 The behavior of setuptrans is outdated. I initiall
54 'es', 65 'es',
55 'et', 66 'et',
56 'fa', 67 'fa',
57 'fi', 68 'fi',
58 'fil', 69 'fil',
59 'fr', 70 'fr',
60 'gu', 71 'gu',
61 'he', 72 'he',
62 'hi', 73 'hi',
63 'hr', 74 'hr',
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 516
506 # Remove any extra files 517 # Remove any extra files
507 for dir, files in dirs.iteritems(): 518 for dir, files in dirs.iteritems():
508 baseDir = os.path.join(localeConfig['base_path'], dir) 519 baseDir = os.path.join(localeConfig['base_path'], dir)
509 if not os.path.exists(baseDir): 520 if not os.path.exists(baseDir):
510 continue 521 continue
511 for file in os.listdir(baseDir): 522 for file in os.listdir(baseDir):
512 path = os.path.join(baseDir, file) 523 path = os.path.join(baseDir, file)
513 if os.path.isfile(path) and (file.endswith('.json') or file.endswith ('.properties') or file.endswith('.dtd')) and not file in files: 524 if os.path.isfile(path) and (file.endswith('.json') or file.endswith ('.properties') or file.endswith('.dtd')) and not file in files:
514 os.remove(path) 525 os.remove(path)
OLDNEW
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | packagerChrome.py » ('J')

Powered by Google App Engine
This is Rietveld