[android-developers] Re: i18n - Extracting String-Resources to a Jar - Referencing problem
Anyone? =( On Jan 27, 12:55 am, plusminus wrote: > Hi all, > > I'm just about to start externalizing all my String-resources to a new > project and then bring them back by including the exported jar-file of > this 'i18n'-project. > Doing soi18nfor different languages becomes easier (I could simply > export just a handful of languages to the jar). > > I can successfully change the java-references to the outsourced > foo.bar.i18n.R.java > > BUT, all references of the xml-layouts fail :( > > Sample: > > ... android:label="@string/app_name"> > > where: "@string/app_name" is now unknown =/ > > I'm asking myself whether this is possible and how to resolve my > issue / properlyreferencethe externalized string-resources. > > Any help appreciated. =) > > Best Regards, > Nicolas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: i18n - Extracting String-Resources to a Jar - Referencing problem
I don't fully understand how your jar file is organized. Does it contain the res/values/strings.xml files for various languages? (.../values-de/..., etc.?) Does packaging into a apk file work properly with your structure? Why not keep everything in the structure, but copy the language- specific directories in and out of the build path (through a (ant) script) just as desired? Peli On 27 Jan., 16:08, plusminus wrote: > Anyone? =( > > On Jan 27, 12:55 am, plusminus wrote: > > > Hi all, > > > I'm just about to start externalizing all my String-resources to a new > > project and then bring them back by including the exported jar-file of > > this 'i18n'-project. > > Doing soi18nfor different languages becomes easier (I could simply > > export just a handful of languages to the jar). > > > I can successfully change the java-references to the outsourced > > foo.bar.i18n.R.java > > > BUT, all references of the xml-layouts fail :( > > > Sample: > > > > ... android:label="@string/app_name"> > > > > where: "@string/app_name" is now unknown =/ > > > I'm asking myself whether this is possible and how to resolve my > > issue / properlyreferencethe externalized string-resources. > > > Any help appreciated. =) > > > Best Regards, > > Nicolas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: i18n - Extracting String-Resources to a Jar - Referencing problem
Hi Peli, the 'i18n-string'-project just contains a couple of res-folders: /res /strings/ /strings-de/ /strings-fr/ The original project (which now lacks all String-resources) completely fails to compile. I'm doing this, because I want to host the 'i18n-string'-project on a separate svn-location with public access, so people can easily contribute new translations. Copying in and out the res folder would lead to confusion and very probably copy-paste errors. =( Best Regards, Nicolas On 27 Jan., 10:46, Peli wrote: > I don't fully understand how your jar file is organized. > > Does it contain the res/values/strings.xml files for various > languages? (.../values-de/..., etc.?) > > Does packaging into a apk file work properly with your structure? > > Why not keep everything in the structure, but copy the language- > specific directories in and out of the build path (through a (ant) > script) just as desired? > > Peli > > On 27 Jan., 16:08, plusminus wrote: > > > Anyone? =( > > > On Jan 27, 12:55 am, plusminus wrote: > > > > Hi all, > > > > I'm just about to start externalizing all my String-resources to a new > > > project and then bring them back by including the exported jar-file of > > > this 'i18n'-project. > > > Doing soi18nfor different languages becomes easier (I could simply > > > export just a handful of languages to the jar). > > > > I can successfully change the java-references to the outsourced > > > foo.bar.i18n.R.java > > > > BUT, all references of the xml-layouts fail :( > > > > Sample: > > > > > > ... android:label="@string/app_name"> > > > > > > where: "@string/app_name" is now unknown =/ > > > > I'm asking myself whether this is possible and how to resolve my > > > issue / properlyreferencethe externalized string-resources. > > > > Any help appreciated. =) > > > > Best Regards, > > > Nicolas > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: i18n - Extracting String-Resources to a Jar - Referencing problem
So you're saying that you moved the string resources out of your project, and now other resources that are referencing those strings are now failing? If so, that is what I would expect. :} The new aapt in Cupcake allows you to specify multiple paths to search for resource definitions; you could trying using that, and changing it to point to both your app's resources and your external string resources. That would of course require having your own build ant script or whatever. On Tue, Jan 27, 2009 at 8:11 AM, plusminus wrote: > > Hi Peli, > > the 'i18n-string'-project just contains a couple of res-folders: > > /res > /strings/ > /strings-de/ > /strings-fr/ > > The original project (which now lacks all String-resources) completely > fails to compile. > > I'm doing this, because I want to host the 'i18n-string'-project on a > separate svn-location with public access, so people can easily > contribute new translations. > > Copying in and out the res folder would lead to confusion and very > probably copy-paste errors. =( > > Best Regards, > Nicolas > > On 27 Jan., 10:46, Peli wrote: > > I don't fully understand how your jar file is organized. > > > > Does it contain the res/values/strings.xml files for various > > languages? (.../values-de/..., etc.?) > > > > Does packaging into a apk file work properly with your structure? > > > > Why not keep everything in the structure, but copy the language- > > specific directories in and out of the build path (through a (ant) > > script) just as desired? > > > > Peli > > > > On 27 Jan., 16:08, plusminus wrote: > > > > > Anyone? =( > > > > > On Jan 27, 12:55 am, plusminus wrote: > > > > > > Hi all, > > > > > > I'm just about to start externalizing all my String-resources to a > new > > > > project and then bring them back by including the exported jar-file > of > > > > this 'i18n'-project. > > > > Doing soi18nfor different languages becomes easier (I could simply > > > > export just a handful of languages to the jar). > > > > > > I can successfully change the java-references to the outsourced > > > > foo.bar.i18n.R.java > > > > > > BUT, all references of the xml-layouts fail :( > > > > > > Sample: > > > > > > > > ... android:label="@string/app_name"> > > > > > > > > where: "@string/app_name" is now unknown =/ > > > > > > I'm asking myself whether this is possible and how to resolve my > > > > issue / properlyreferencethe externalized string-resources. > > > > > > Any help appreciated. =) > > > > > > Best Regards, > > > > Nicolas > > > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: i18n - Extracting String-Resources to a Jar - Referencing problem
Yes it seems like this (sadly) is not possible. Sounds like I have to do copy-pasting for now :( Best Regards, plusminus On 27 Jan., 12:50, Dianne Hackborn wrote: > So you're saying that you moved the string resources out of your project, > and now other resources that are referencing those strings are now failing? > If so, that is what I would expect. :} > > The new aapt in Cupcake allows you to specify multiple paths to search for > resource definitions; you could trying using that, and changing it to point > to both your app's resources and your external string resources. That would > of course require having your own build ant script or whatever. > > > > On Tue, Jan 27, 2009 at 8:11 AM, plusminus wrote: > > > Hi Peli, > > > the 'i18n-string'-project just contains a couple of res-folders: > > > /res > > /strings/ > > /strings-de/ > > /strings-fr/ > > > The original project (which now lacks all String-resources) completely > > fails to compile. > > > I'm doing this, because I want to host the 'i18n-string'-project on a > > separate svn-location with public access, so people can easily > > contribute new translations. > > > Copying in and out the res folder would lead to confusion and very > > probably copy-paste errors. =( > > > Best Regards, > > Nicolas > > > On 27 Jan., 10:46, Peli wrote: > > > I don't fully understand how your jar file is organized. > > > > Does it contain the res/values/strings.xml files for various > > > languages? (.../values-de/..., etc.?) > > > > Does packaging into a apk file work properly with your structure? > > > > Why not keep everything in the structure, but copy the language- > > > specific directories in and out of the build path (through a (ant) > > > script) just as desired? > > > > Peli > > > > On 27 Jan., 16:08, plusminus wrote: > > > > > Anyone? =( > > > > > On Jan 27, 12:55 am, plusminus wrote: > > > > > > Hi all, > > > > > > I'm just about to start externalizing all my String-resources to a > > new > > > > > project and then bring them back by including the exported jar-file > > of > > > > > this 'i18n'-project. > > > > > Doing soi18nfor different languages becomes easier (I could simply > > > > > export just a handful of languages to the jar). > > > > > > I can successfully change the java-references to the outsourced > > > > > foo.bar.i18n.R.java > > > > > > BUT, all references of the xml-layouts fail :( > > > > > > Sample: > > > > > > > > > > ... android:label="@string/app_name"> > > > > > > > > > > where: "@string/app_name" is now unknown =/ > > > > > > I'm asking myself whether this is possible and how to resolve my > > > > > issue / properlyreferencethe externalized string-resources. > > > > > > Any help appreciated. =) > > > > > > Best Regards, > > > > > Nicolas > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---