How does Monotouch manage resources (strings, images, etc.)?

In Android, I put application strings in a file called strings.xml . For example, to translate into Italian, I need to create a values โ€‹โ€‹folder and put the strings.xml file with Italian labels in this new folder.

How does Monotouch manage this string internationalization?

+7
iphone ipad monodevelop
source share
1 answer

Usually you use Apple's localization features โ€” special โ€œlprojโ€ folders in your application bundle that contain localized versions of your feathers, files, string resources, etc.

For more information, see Apple iOS Internationalization Docs , and there are third-party tutorials that are useful.

Although MonoDevelop does not provide explicit support for localization, simply adding the lproj folders to the root directory of the project and marking their contents as "Content", you need to correctly add them to the application package.

Any resource that you download from the package should then download the corresponding localized version, if any. This includes APIs that automatically load elements from the package, such as instantiating from xibs / nibs, as well as APIs for explicitly retrieving resources from the package. For example, NSBundle.LocalizedString will load the corresponding row from your row resources.

+19
source share

All Articles