tag:blogger.com,1999:blog-1868573757941616071.post7812351655664541478..comments2024-03-22T11:02:23.238-07:00Comments on Schöb goes Mobile: Using resx-files for localization in MvvmCrossAnonymoushttp://www.blogger.com/profile/06997301960253387620noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-1868573757941616071.post-61368399907073744262019-05-20T07:43:26.886-07:002019-05-20T07:43:26.886-07:00Did you get the solution for it?? I am still not a...Did you get the solution for it?? I am still not able to run it on iOS. It is working fine on Android.Ayushihttps://www.blogger.com/profile/06296697906792081650noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-78883931671863768752017-01-16T09:35:03.497-08:002017-01-16T09:35:03.497-08:00I could not get this to work for iOS.I could not get this to work for iOS.Charliehttps://www.blogger.com/profile/07242400515204146766noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-4420985867572174962016-09-12T23:39:29.929-07:002016-09-12T23:39:29.929-07:00Hi
Thanks for your post. It's a while back sin...Hi<br />Thanks for your post. It's a while back since you wrote it and I guess there are some changes:<br />1. the changes to the common.Targets is done by default. At least on my installations<br />2. The code snippet for register the text provider didn't work for me. I had to make it like this: <br />Mvx.RegisterSingleton(new MvxResxTextProvider(Strings.ResourceManager));<br /><br />Thanks<br />Nino<br />Anonymoushttps://www.blogger.com/profile/08250991002549531444noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-71831014548310192002014-08-01T02:01:39.291-07:002014-08-01T02:01:39.291-07:00Also wanted to add (for others reading this) if yo...Also wanted to add (for others reading this) if you wanted to added Strings that go across ViewModels. <br /><br />1. Add a property to VM public IMvxLanguageBinder SharedSource<br />2. Pass empty strings to MvxLanguageBinder folr namespaceName AND typeName. In the earlier examples you would have passed viewModelType.Name<br />3. Now in the bindings AFAIK you can no longer use the local:MvxLang shorthand but that is fine as @slodge expalins the long hand in this video http://slodge.blogspot.co.uk/2013/05/n21-internationalisation-i18n-n1-days.html. It is local:MvxBind="Text SharedSource, Converter=Language,ConverterParameter=YourSharedStringId, Mode=OneWay" /><br /><br />HTH helps some onePat Longhttps://www.blogger.com/profile/13055744314594533050noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-67764622534602808162014-08-01T01:29:12.469-07:002014-08-01T01:29:12.469-07:00I am used to using RESX files with .NET however th...I am used to using RESX files with .NET however that meant I fell into the trap of adding my strings as "Test1" rather than "MyViewModel.Test1". I really appreciate your work on this but would ask that you make it obvious that you will be required to add an "Invalid Identiifer" and that you need to prefix your string with the ViewModel type. I know that your screenshot shows it but it is very small and I did not zoom it because I thought "I know how to use RESX files".<br /><br />This change will stop others as foolish as me getting confused :-)<br /><br />Thanks<br /><br />PatPat Longhttps://www.blogger.com/profile/13055744314594533050noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-73726242879094613862014-01-20T07:42:21.214-08:002014-01-20T07:42:21.214-08:00Hi! If you’re interested to localize web software,...Hi! If you’re interested to localize web software, PC software, mobile software or any other type of software, I warmly recommend this collaborative online localization tool: https://poeditor.com/ <br />summ3rhttps://www.blogger.com/profile/17264858902399301903noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-86453140860138444662013-07-30T04:39:32.007-07:002013-07-30T04:39:32.007-07:00Hey Stefan, this is great. Will come handy. For iO...Hey Stefan, this is great. Will come handy. For iOS, instead of creating a new instance of the converter, you can register it as well like you did for Android.<br /><br />protected override System.Collections.Generic.List ValueConverterAssemblies {<br /> get {<br /> var toReturn = base.ValueConverterAssemblies;<br /> toReturn.Add (typeof(MvxLanguageConverter).Assembly);<br /> return toReturn;<br /> }<br /> }<br /><br />I think you should make it available as a plugin. :)mohibshethhttps://www.blogger.com/profile/02913377466471094352noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-44143389023377560642013-05-14T06:45:52.269-07:002013-05-14T06:45:52.269-07:00Ou crap.. missed that in my blog, sorry..
Actuall...Ou crap.. missed that in my blog, sorry..<br /><br />Actually I'm not sure whether this is a bug.. in my opinion it should respect the language as well... <br />But when the behaviour on WP is the same.. hmm.. really have to check this by myself on my test-project!<br />Anonymoushttps://www.blogger.com/profile/06997301960253387620noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-7142757946259109182013-05-14T06:42:58.385-07:002013-05-14T06:42:58.385-07:00Thanks Stefan. Further testing on iOS simulator sh...Thanks Stefan. Further testing on iOS simulator shown that it uses the region format instead of the phone language. Setting the region format and resetting the iPhone simulator shown the same behavior that WP.Redenthttps://www.blogger.com/profile/01145080936492347675noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-6773639393868302422013-05-14T04:16:17.675-07:002013-05-14T04:16:17.675-07:00Actually on WP8 it should work this way.. as this ...Actually on WP8 it should work this way.. as this idea of resource-files is comming out of the microsoft world :-)<br />But I'll check this as soon as I can find a free time-slot...<br /><br />What is not working on iOS? Errors?Anonymoushttps://www.blogger.com/profile/06997301960253387620noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-40970536726800786862013-05-14T04:14:13.263-07:002013-05-14T04:14:13.263-07:00I've been testing Windows Phone mostly. On iOS...I've been testing Windows Phone mostly. On iOS I didn't get it to work.Redenthttps://www.blogger.com/profile/01145080936492347675noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-18222103994636258012013-05-14T03:52:58.199-07:002013-05-14T03:52:58.199-07:00On which platform does this problem occur?
Actuall...On which platform does this problem occur?<br />Actually I've never tried this.. :-)<br /><br />Anonymoushttps://www.blogger.com/profile/06997301960253387620noreply@blogger.comtag:blogger.com,1999:blog-1868573757941616071.post-53881559632813921452013-05-14T01:57:48.828-07:002013-05-14T01:57:48.828-07:00Hey Stefan, good work with this. I'm facing on...Hey Stefan, good work with this. I'm facing one issue, not sure if it's my fault or something that is not implemented, but I'm not able to load .resx files without country code.<br /><br />For example, modifying your example and adding a Strings.es-ES.resx works fine, but adding changing it to String.es.resx shows the English value.Redenthttps://www.blogger.com/profile/01145080936492347675noreply@blogger.com