radioapp/radioapplication/resources/compile_ts.bat
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:31:41 +0300
changeset 16 f54ebcfc1b80
child 28 075425b8d9a4
permissions -rw-r--r--
Revision: 201015 Kit: 201018

@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%
)