开发者

Is it possible to combine the settings bundle and main application localisation resources?

开发者 https://www.devze.com 2023-01-09 06:04 出处:网络
In the documentation for localising settings bundles, here, it seems to imply that the strings in the user defaults are only localised using the .strings files within the settings bundle.

In the documentation for localising settings bundles, here, it seems to imply that the strings in the user defaults are only localised using the .strings files within the settings bundle.

Is it possible to combine these .strings files with the main application's localisation resources so that all translations are in a single location rather than spread across 开发者_JS百科the main application bundle and the settings bundle?


No, bundles have been are meant to encapsulate data contained within them. System settings app cares just about what is inside the settings bundle. On the other hand regular app cares only about what is inside its bundle, by default. I can imagine that it is possible to hack this and store everything in the settings bundle. It is just a matter of creating own NSLocalizedString macros which would search for strings just in the settings bundle, but this creates more problems than solves.

0

精彩评论

暂无评论...
验证码 换一张
取 消