05-18-2009 08:41 AM
I have gone through the tutorial to localize . But i this contains the steps for localizing on Eclipse. I have tried it and it works fine. But on JDE i am little confused. If some one can help me on JDE.
I can create a Language Resource by using New -> Project -> Language Resource. For example i created in package com.company.blackberry.samplelocalizedapp. In this i have .rrh and .rrc files. Now i am not sure if i can add my application code here and go on.
But other way round, I already have a project say HelloWorldApplication in package com.company.blackberry.HelloWorldApplication. I don't find a way to create resource files here. Also i can't create a Language Resouce in package com.company.blackberry.HelloWorldApplication, asi have already another project with same name. And Language Resource name must match project. Can't we do it similar to Eclipse at one go in same project. As eclipse gives option to create new Resource file instead of Resource Project (I hope this makes sense).
One more thing, i am not sure what is the reason for LanguageResourceInterface to keep it invisible. We have to extract JAR. I thought we have to decompile the Language Resource project, create a Interface for second project by copying code from decompiled file. And copy the resources to project. But i dont think this is the right approach.
Or can we create the project as Language Resource itself and then add our application code?
I am sorry if i sound confused, but please help me understanding this clearly.
I had posted this earlier but couldn't figure out, so posting it again as per Mark Sohm's instructions (Not to put question in solved thread)
Solved! Go to Solution.
05-18-2009 11:23 AM
I really don't have experience with resource file .. But I know that adding or editing a resource file can be done by right clicking the project-> new -> other or just ctrl+n .. Expand the + mark at the Blackberry then choose Blackberry Resource file ... Then edit as you wish..
05-19-2009 03:14 AM
Thanks for reply. But i guess you are mentioning the steps on Eclipse. As most of time I was using Blackberry JDE. I was looking for similar steps in Blackberry JDE.
In JDE, I tried New File -> Other -> HelloWorldApplication.rrc. Here rrh file is automatically generated in the project folder, but isn't visible in JDE project tree. So i added the files manually. Now when i double click rrc or rrh file. I get error Encountered ".4" at line 1, column 56. Was expecting one of ";" ".".
I am not sure whts the issue here.
05-19-2009 03:43 AM
Though I have never worked on a localization stuff as I already mentioned, the equivalent for the above post by me in JDE must be File->New->Projects->Language resource I suppose..
05-19-2009 04:22 AM
05-19-2009 09:21 AM