From: Dr. A. K. S. <al...@se...> - 2010-01-22 14:47:13
|
Hi, I've just uploaded another patch set that supports localized strings (via getString() and in the activity.xml file) and the textSize/Color/Background tags. I found that the mapping of java strings is slightly incorrect: the strings from... return stringMap.get(new Integer(id)).replaceAll("\\\\n","\\n").replaceAll("\\",""); get mapped like this: \\n -> @"\n" (i.e. the line feed character 0x0a - a string of length 1) \\\\n -> @"\\n" (i.e. '\n' - two characters, one backslash followed by 'n') \\ -> @"\" - the last of which gives an error during compilation. The others seem ok. Similar to the float and double constants NaN which need to be called NAN in objectiveC, this can be solved by postprocessing with vi... vi Target.m -c ':%s/NaN/NAN/' -c ':%s/@"\\"/@"\\\\"/' -c ':wq' Best, Alex -- Dr. Alexander K. Seewald Seewald Solutions www.seewald.at Tel. +43(664)1106886 Fax. +43(1)2533033/2764 |