Dear Android Developers,

I have an application which we are writing to be both a MIDP
application using LWUIT as well as an Android application.

We attempt to share as much common code as possible between the two
platforms.

I'd also really like to be able to share the localization strings when
possible.

Reading through the docs in:

http://developer.android.com/guide/topics/resources/resources-i18n.html

it looks like Android uses an XML format to specify name-value pairs,
e.g.:

{{{
<string name="go_online_message">You are currently offline.  Go
online? This will use the data network</string>
}}}

while LWUIT uses the standard Java properties file format:

{{{
f.go_online.you_are_currently_offine=You are currently offline.  Go
online? This will use the data network
}}}

I understand why the Android XML format has advantages (e.g. ability
to add extra formatting info), but I was wondering if it's somehow
possible to also read in localization resource strings from a standard
Java properties file, so I could use the same string resource file.

Looking through the Android code, it seems like support for Properties
files is there, but not integrated into the Resources infrastructure,
but maybe I missed something.  Is it possible to use the Resource
framework to read in from Java Properties files as well as the Android-
specific XML format string files?

If so, can someone point me in the right direction?

If not, can I request that it might be nice for the Android Resources
framework to also support reading string resource files in in Java
properties file format?

Cheers,
Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to