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. Simple LinearLayout Question

Maybe I am missing something here:

I have a simple horizontal LinearLayout with fill_parent set
containing 3 TextViews inside it.  I have set each of the TextViews to
have 1.0 weight.  My goal was to get each TextView to take up 33% of
the LinearLayout.  This sort of works, but the TextView sizes change
depending on the text of the TextView.  The TextView with the longest
string is taking up slightly more space than the other two TextViews
with shorter strings.  Since each of the TextViews have equal weights,
they should be evenly distributed across their parent regardless of
the text inside, correct?


2. Android Emulator never opens in Ubuntu 9.10


I decided to install Ubuntu based on some advices of users in this
forum. After a few problems, i could run eclipse and install the
plugin and the sdk.

However, when i start the emulator, it shows the animated android logo
and the home screen never appears (already waited 30 minutes...).

Does someone knows of problems in using 9.10? I know that there's
indeed a problem to start ADB (i have to kill the server and run it
with sudo based on a problem of version 9.1). Only doing this i'm able
to debug in device.



3. Dev Tools app crashes on entering Dev Settings menu (htc tattoo)

4. Save user name and password with SharedPreferences

5. onDestroy() called and activity cycles at "lock screen"

6. iphone app development,outsource iphone development

7. Printing Array on Screen