equal
deleted
inserted
replaced
1 #============================================================================ |
|
2 #Name : createlocales.py |
|
3 #Part of : Helium |
|
4 |
|
5 #Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
6 #All rights reserved. |
|
7 #This component and the accompanying materials are made available |
|
8 #under the terms of the License "Eclipse Public License v1.0" |
|
9 #which accompanies this distribution, and is available |
|
10 #at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
11 # |
|
12 #Initial Contributors: |
|
13 #Nokia Corporation - initial contribution. |
|
14 # |
|
15 #Contributors: |
|
16 # |
|
17 #Description: |
|
18 #=============================================================================== |
|
19 |
|
20 """ This script generate the locales_xx.iby files. """ |
|
21 import localisation |
|
22 import sys |
|
23 |
|
24 def main(): |
|
25 """ Main function. """ |
|
26 product = sys.argv[1] |
|
27 lid = sys.argv[2] |
|
28 extra_args = "" |
|
29 if len(sys.argv)>4: |
|
30 extra_args = " ".join(sys.argv[3:]) |
|
31 try: |
|
32 extra_args = r'-include ..\include\oem\feature_settings.hrh -I. -I../../epoc32/rom/include ' + extra_args |
|
33 localisation.create_locales_iby(product, lid, [], '', extra_args) |
|
34 except Exception, exp: |
|
35 print exp |
|
36 sys.exit(-1) |
|
37 sys.exit(0) |
|
38 |
|
39 if __name__ == "__main__": |
|
40 main() |
|