XML With Xliff

by MaTriXy » Mon, 13 Apr 2009 22:06:01 GMT

Sponsored Links
I have seen projects with Xliff and wanted to know how exactly it's
i saw it on the lock screen and wanted to do it myself
so i took this line:
    <string name="lockpattern_recording_incorrect_too_short">Connect
at least
    <xliff:g id="number">%d</xliff:g> dots. Try again:</string>

But i get XML Parsing Error until i erase the entire xliff tag...
Thx for replying.


XML With Xliff

by Dianne Hackborn » Tue, 14 Apr 2009 03:49:00 GMT

 You probably need to declare the xliff namespace prior to its use.

Also the xliff stuff is only for localization; if you aren't giving your
strings to localizers (who use this information to determine how to handle
parts of the string), there is little reason for dealing with it.  Of course
if you think you may be doing this in the future, it is certainly not a
problem to pro-actively but the stuff in now.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Sponsored Links

Other Threads

1. Help with ACTION_SEND

Hi there,
              i'm writing a image uploader that takes the send intent... i
want to provide support for bulk send...
that is i should be able to attach many EXTRA_STREAM's to the intent... how
can this be done???

George Bernard 
- "A government that robs Peter to pay Paul can always depend on the
support of Paul."


2. Accessing android DB(Created by Android media app) using Native code.

Hi All,

I need to access media's(which is stored on SDCard) metadata which
android keeps in database file created by its media app. Android keeps
separate db file for each sdcard at the location /data/data/
com.android.providers.media/databases by associating sdcard id to
filenames e.g. external-<sdcard-id>.db

Now I need to read this db file but due to permissions(rw-rw----) I
dont be able to do that. If I excecute Native code as a root then
Obviously I'm able to access it but when I trigger my Native code
using some UI It's not able to access this db.

Could anybody throw some light on this?
How can I be able to access the db associated to sdcard using Native
code(which is triggerred thru some UI) ?


3. Wait for activity finishes

4. Surface flinger - overlay

5. Getting Android Market data

6. Getting Current Location on my Device works on emulator but not on my device

7. 1.5 *did* fix my bugs (gloat, gloat)