On Sat, May 05, 2012 at 09:50:30PM +0530, Raghav Sood wrote:
> Well, HTML files are just text, right? Can't you have them as a giant
> string in strings.xml?
That might work ... but it would certainly be, ummm, interesting....
The largest (so far) of the files is 8 kB of plain text. That is one
GIGANTIC string. I've always kept them as text files for ease of
maintaining them. But I suppose I could, when they're completely
finished, tack them on at the very end of strings.xml.....
> That Android has no limit to the length of a string in strings.xml
I'd also basically assumed that using a single string for multiple
paragraphs, etc., would probably cause problems. In other words, this:
--------------------------- CUT HERE ---------------------------
<string name="usage">
This is a paragraph...about, say, 5 to 10 lines long.
This is another paragraph, also 5--10 lines long.
This is yet another paragraph, also 5--10 lines long.
This is yet another paragraph, also 5--10 lines long.
: :
: etc..... :
: :
This is yet another paragraph, also 5--10 lines long.
This is yet another paragraph, also 5--10 lines long.
This is yet another paragraph, also 5--10 lines long.
This is the last paragraph, ending at around 8 kB total.
</string>
--------------------------- CUT HERE ---------------------------
I could replace blank lines between paragraphs with \n, but there's
still the issue of the size of the string. Or is there?
> This approach could work, unless I'm missing something here.
If it would work, it'd certainly be a nice alternative to doing
all of those translations....
Thanks,
--jim
--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 >
[email protected] ICBM/Hurricane: 30.44406N 86.59909W
Do not look into laser with remaining eye.
Android Apps Listing at http://www.jstrack.org/barcodes.html
--
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