radioapp/radioapplication/resources/compile_ts.bat
changeset 16 f54ebcfc1b80
child 28 075425b8d9a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/radioapp/radioapplication/resources/compile_ts.bat	Mon May 03 12:31:41 2010 +0300
@@ -0,0 +1,36 @@
+@rem
+@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+@rem All rights reserved.
+@rem This component and the accompanying materials are made available
+@rem under the terms of "Eclipse Public License v1.0"
+@rem which accompanies this distribution, and is available
+@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
+@rem
+@rem Initial Contributors:
+@rem Nokia Corporation - initial contribution.
+@rem
+@rem Contributors:
+@rem
+@rem Description: 
+@rem
+@echo off
+
+set QM_FILE_US=fmradio_en_US.qm
+set QM_FILE=fmradio_en.qm
+set QM_LOCATION=..\..\bin\%QM_FILE_US%
+
+ECHO Creating QM file
+call lrelease -idbased fmradio.ts -qm %QM_LOCATION%
+
+IF EXIST \epoc32\tools\epoc.bat (
+    echo Copying files to epoc32
+    xcopy /y fmradio.ts \epoc32\include\platform\qt\translations\fmradio_en.ts
+    xcopy /y fmradio.ts \epoc32\include\platform\qt\translations\fmradio_en_US.ts
+    
+    xcopy /y %QM_LOCATION% \epoc32\data\z\resource\qt\translations\%QM_FILE%
+    xcopy /y %QM_LOCATION% \epoc32\release\winscw\udeb\z\resource\qt\translations\%QM_FILE%
+    xcopy /y %QM_LOCATION% \epoc32\release\winscw\urel\z\resource\qt\translations\%QM_FILE%
+    xcopy /y %QM_LOCATION% \epoc32\data\z\resource\qt\translations\%QM_FILE_US%
+    xcopy /y %QM_LOCATION% \epoc32\release\winscw\udeb\z\resource\qt\translations\%QM_FILE_US%
+    xcopy /y %QM_LOCATION% \epoc32\release\winscw\urel\z\resource\qt\translations\%QM_FILE_US%
+)