Series 60 Localization Error
| Sat, 2005-12-10 11:58 | |
|
Hi
refer back to the following thread: http://forum.newlc.com/index.php/topic,8799.0.html I have a problem with localization (Arabic), I did the practice as at is, and when I installed the (Helloworldbasics) application on my phone the labels not displayed in Arabic instead it displayed non corrected characters. Note : I'm using series 60 FP2 sdk. The following represents[b][/b] the modification that I did it on my (mmp) and (pkg) and (loc) and (rss) files : 1)HelloWorldBasic.pkg ;Language - standard language definitions &EN,AR ; standard SIS file header #{"HelloWorldBasic","HelloWorldBasic"},(0x10005B91),1,0,0 ;Supports Series 60 v2.0 (0x101F7960), 0, 0, 0, {"Series60ProductID","Series60ProductID"} ; "..\..\..\epoc32\release\thumb\urel\HelloWorldBasic.APP" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic.app" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic.rsc" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic.rsc" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic_caption.rsc" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic_caption.rsc" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic.aif" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic.aif" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic.r01" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic.r01" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic_caption.r01" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic_caption.r01" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic.r37" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic.r37" "..\..\..\epoc32\data\z\system\apps\HelloWorldBasic\HelloWorldBasic_caption.r37" -"!:\system\apps\HelloWorldBasic\HelloWorldBasic_caption.r37" ------------- 2)Hellow WorldBasic.mmp /* Copyright (c) 2004, Nokia. All rights reserved */ TARGET HelloWorldBasic.app TARGETTYPE app // Change the second number here to change the UID for this application UID 0x100039CE 0x10005B91 TARGETPATH \system\apps\helloworldbasic SOURCEPATH ..\src SOURCE HelloWorldBasic.cpp SOURCE HelloWorldBasicApplication.cpp SOURCE HelloWorldBasicAppView.cpp SOURCE HelloWorldBasicAppUi.cpp SOURCE HelloWorldBasicDocument.cpp SOURCEPATH ..\data RESOURCE HelloWorldBasic.rss RESOURCE HelloWorldBasic_caption.rss USERINCLUDE ..\inc SYSTEMINCLUDE \epoc32\include LIBRARY euser.lib LIBRARY apparc.lib LIBRARY cone.lib LIBRARY eikcore.lib LIBRARY avkon.lib LIBRARY commonengine.lib LANG 01 37 AIF HelloWorldBasic.aif ..\aif HelloworldBasicAif.rss c12 qgn_menu_demo_cxt.bmp qgn_menu_demo_cxt_mask.bmp qgn_menu_demo_lst.bmp qgn_menu_demo_lst_mask.bmp // End of File ----------- 3)Loc file: HelloWorldBasic.loc // LOCALISATION STRINGS #ifdef LANGUAGE_01 //d:Caption string for app. #define qtn_hewb_caption_string "HelloWorld" //d:Short caption string for app. #define qtn_hewb_short_caption_string "HW" //d:First item in "Options" menu pane, "hello" event. #define qtn_hewb_command1 "Hello" //#define qtn_hewb_command1 "???C ?C" //d:Second item in "Options" menu pane, "exit" event. #define qtn_hewb_exit "Exit" //d:When user requests EHelloWorldBasicCommand1 event, text below is shown. #define qtn_hewb_command1_text "Hello!" //#define qtn_hewb_command1_text "???C ?C !" // End of File #endif #ifdef LANGUAGE_37 //d:Caption string for app. #define qtn_hewb_caption_string "???C EC??C??" //d:Short caption string for app. #define qtn_hewb_short_caption_string "??C" //d:First item in "Options" menu pane, "hello" event. //#define qtn_hewb_command1 "Hello" #define qtn_hewb_command1 "???C ?C" //d:Second item in "Options" menu pane, "exit" event. #define qtn_hewb_exit "I???" //d:When user requests EHelloWorldBasicCommand1 event, text below is shown. //#define qtn_hewb_command1_text "Hello!" #define qtn_hewb_command1_text "???C ?C !" #endif ---------------- 4)Rss files: helloworldbasic.rss: HelloWorldBasic.rss /* Copyright (c) 2004, Nokia. All rights reserved */ // RESOURCE IDENTIFIER NAME HEWB // 4 letter ID // INCLUDES #include <eikon.rh> #include <avkon.rh> #include <avkon.rsg> #include "HelloWorldBasic.hrh" #include "HelloWorldBasic.loc" // RESOURCE DEFINITIONS // ----------------------------------------------------------------------------- // // Define the resource file signature // This resource should be empty. // // ----------------------------------------------------------------------------- // //#ifdef LANGUAGE_01 // if language code is for UK // #include "01-strings.rls" //#else if defined LANGUAGE_03 // if language code is for German // #include "03-strings.rls" //#else if defined LANGUAGE_37 // if language code is for German // #include "37-strings.rls" //#endif // end conditional compile RESOURCE RSS_SIGNATURE { } // ----------------------------------------------------------------------------- // // Default Document Name // // ----------------------------------------------------------------------------- // RESOURCE TBUF r_default_document_name { buf="HEWB"; } // ----------------------------------------------------------------------------- // // Define default menu and CBA key. // // ----------------------------------------------------------------------------- // RESOURCE EIK_APP_INFO { menubar = r_helloworldbasic_menubar; cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; } // ----------------------------------------------------------------------------- // // r_helloworldbasic_menubar // Menubar for HelloWorldBasic example // // ----------------------------------------------------------------------------- // RESOURCE MENU_BAR r_helloworldbasic_menubar { titles = { MENU_TITLE { menu_pane = r_helloworldbasic_menu; } }; } // ----------------------------------------------------------------------------- // // r_helloworldbasic_menu // Menu for "Options" // // ----------------------------------------------------------------------------- // RESOURCE MENU_PANE r_helloworldbasic_menu { items = { // added the new Options menu command here MENU_ITEM { command = EHelloWorldBasicCommand1; txt = qtn_hewb_command1; }, MENU_ITEM { command = EAknSoftkeyExit; txt = qtn_hewb_exit; } }; } // ----------------------------------------------------------------------------- // // Resources for messages. // // ----------------------------------------------------------------------------- //qtn_hewb_command1_text RESOURCE TBUF32 r_hewb_command1_text { buf=qtn_hewb_command1_text; } RESOURCE TBUF32 r_hewb_caption_string { buf=qtn_hewb_caption_string; } // End of File --------- HelloWorldBasic_Caption.rss /* Copyright (c) 2004, Nokia. All rights reserved */ // INCLUDES #include <apcaptionfile.rh> #include "HelloWorldBasic.loc" // RESOURCE DEFINITIONS // ----------------------------------------------------------------------------- // // Caption data for HelloWorldBasic // // ----------------------------------------------------------------------------- // RESOURCE CAPTION_DATA { caption=qtn_hewb_caption_string; shortcaption= qtn_hewb_short_caption_string; } // End of File -------------- 5)hrh file: HelloWorldBasic.hrh /* Copyright (c) 2004, Nokia. All rights reserved */ #ifndef __HELLOWORLDBASIC_HRH__ #define __HELLOWORLDBASIC_HRH__ // HelloWorldBasic enumerate command codes enum THelloWorldBasicIds { EHelloWorldBasicCommand1 = 1 // start value must not be 0 }; #endif // __HELLOWORLDBASIC_HRH__ From the above list what is the Mistakes that I did it on my application ? if there are mistakes how I solve it? |
|






Forum posts: 25
hi...
i'm doing the same localisation in my appln..can u tell the right way to code it.....reply soon ...
Forum posts: 75