How do I get resx files to work with Xamarin.iOS for localization

旧巷老猫 提交于 2019-12-19 03:56:48

问题


I'm trying to get resource files to work in Xamarin.iOS from VS2012. Basically I've created a separate project (PCL), named xxxx.Localization, with two .resx files in it - Strings.resx and Strings.da-DK.resx. In both of them I have a string named String1 with localized version of 'Hello'. The project generates two dll's - xxxx.Localization.dll and da-DK\xxxx.Localization.resources.dll. The problem is that only the xxxx.Localization.dll is added to the final xxxx.app and then only the default language is available. How do I get da-DK\xxxx.Localization.resources.dll (and other languages) to be added to the app? Or is there any other way to do cross platform localization, that works?

来源:https://stackoverflow.com/questions/20608106/how-do-i-get-resx-files-to-work-with-xamarin-ios-for-localization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!