Due to some incompatibility problems on iOS (it natively accepts only pt or es and not es-MX, es-CH, etc) and that I'm coming for port from Windows Mobile to other-OS, but using .NET internal localization that recognize correctly es-MX and es-CH and etc, I created a table from server to device that is in the format like Visual Studio, control name and property, value (text or true|false for Enabled, Visible, etc) and then I made an engine to get this and translate controls that now is running on Windows (for cross-platform symmetry) and iOS. Next will run on Android and WP7.
So if something must be corrected or also changed from a client to another, it's just to change values on server and then on next device sync it will update this Library of languages. And has a Library.GetString("StringID") for text messages. So I abandoned resx from Windows (that I have to say, it's awesome and will miss it if I didn't created my own engine inspired on it) The only part that use native translations on iOS and Windows Mobile is the Login screen that, on the first use, do not has a database so it get generic pt, es, en etc. Karl From: Igor Russkih <iruss...@gmail.com> Reply-To: "monodroid@lists.ximian.com" <monodroid@lists.ximian.com> Date: Fri, 2 Dec 2011 17:27:55 +0400 To: "monodroid@lists.ximian.com" <monodroid@lists.ximian.com> Subject: Re: [mono-android] Problems localizing monodroid app In my app I've created the translator which converts original language files into android's string.xml format. Works nicely. Igor On Fri, Dec 2, 2011 at 2:36 PM, Tomasz Cielecki <tom...@ostebaronen.dk> wrote: > Yes but if you want to share localization code between apps that is > not a nice solution. > > On Fri, Dec 2, 2011 at 11:08 AM, Emiel Metselaar <edmetsel...@gmail.com> > wrote: >> > I am localising by placing my strings.xml under Values and Values-nl, this >> > works. >> > >> > >> > On Fri, Dec 2, 2011 at 10:15 AM, Tomasz Cielecki <tom...@ostebaronen.dk> >> > wrote: >>> >> >>> >> It is supposed to be available since Mono for Android 1.0.1, though I >>> >> am not sure if you have to use their template. You can try make one >>> >> from the Mono for Android template and see if that works. >>> >> >>> >> On Fri, Dec 2, 2011 at 10:01 AM, warren burch <warrenbu...@gmail.com> >>> >> wrote: >>>> >> > My app is localized using the standard .NET RESX methods (ie. >>>> >> > String.fr.resx, >>>> >> > Strings.de.resx etc.) works great under Windows Phone. >>>> >> > >>>> >> > I am porting to Android using MonoDroid and I do not see the localized >>>> >> > UI >>>> >> > when I switch locales on the phone. If I rename the APK file to ZIP and >>>> >> > open >>>> >> > it I see that it has not packaged up the locale DLLs produced during the >>>> >> > build (ie. the intermediate \.Resources.dll files are under the bin >>>> >> > directory but are not packaged into the APK). >>>> >> > >>>> >> > What am I missing? I have tried changing the build action on the RESX >>>> >> > files >>>> >> > from "Embedded Resource" to "Android Resource" and even "Android >>>> Asset" >>>> >> > but >>>> >> > to no avail. >>>> >> > >>>> >> > Thanks in advance for any help! >>>> >> > >>>> >> > Cheers Warren >>>> >> > >>>> >> > >>>> >> > -- >>>> >> > View this message in context: >>>> >> > >>>> http://mono-for-android.1047100.n5.nabble.com/Problems-localizing-monodroid >>>> -app-tp5041118p5041118.html >>>> >> > Sent from the Mono for Android mailing list archive at Nabble.com. >>>> >> > _______________________________________________ >>>> >> > Monodroid mailing list >>>> >> > Monodroid@lists.ximian.com >>>> >> > >>>> >> > UNSUBSCRIBE INFORMATION: >>>> >> > http://lists.ximian.com/mailman/listinfo/monodroid >>> >> >>> >> >>> >> >>> >> -- >>> >> Med Venlig Hilsen / With Best Regards >>> >> Tomasz Cielecki >>> >> http://ostebaronen.dk >>> >> _______________________________________________ >>> >> Monodroid mailing list >>> >> Monodroid@lists.ximian.com >>> >> >>> >> UNSUBSCRIBE INFORMATION: >>> >> http://lists.ximian.com/mailman/listinfo/monodroid >> > >> > >> > >> > _______________________________________________ >> > Monodroid mailing list >> > Monodroid@lists.ximian.com >> > >> > UNSUBSCRIBE INFORMATION: >> > http://lists.ximian.com/mailman/listinfo/monodroid >> > > > > > -- > Med Venlig Hilsen / With Best Regards > Tomasz Cielecki > http://ostebaronen.dk > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid