在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):angelolloqui/AGi18n开源软件地址(OpenSource Url):https://github.com/angelolloqui/AGi18n开源编程语言(OpenSource Language):Objective-C 57.1%开源软件介绍(OpenSource Introduction):AGi18nUtility to easily localize your iOS apps by automatically extracting texts from code and XIB files into a Localizable strings and inject them back on runtime without changing your XIB files. Check out the demo video Why use AGi18n?Localizing apps that use Interface Builder is tedious. You have a few methods provided by Apple (like the ibtool) but they are hard to use, time consuming, difficult to mantain and their output format is not as clean as the one in Localizable.strings using NSLocalizableString. You can find more info about the problems of the standard ways here Localization in iOS apps made simple. By using AGi18n you make all your IB elements to use your Localizable.strings by default, without changing any single line of code or property in your IB files. It just works! Moreover, AGi18n comes with two useful utilities:
Installation of the library into your projectFor any project where you want to use AGi18n, you need to include the source files contained in the
Installation of the toolsThe project also includes a set of command line utilities to help you extracting the labels from your Storyboard or XIB files into Localizable files. This step is not required if you do not want to use the extracting tools. To install the command line utilities, just run this installation tool
or, if you want to do it manually, copy and paste the WARNING: The current version of AGi18n tools require ruby 1.9.0. InternalsThe library can run in 2 hook modes:
Since issue #32 the default method is the override. However, you can change it to swizzling by declaring the precompilation header Both hook modes will call to a method called If you want to localize a custom component, just overwrite the method CaveatsAll this magic can not come without some caveats:
LicenseMade available under the BSD3 License CollaborationForks, patches and other feedback are always welcome. Thanks for your pull requests to: CreditsAGi18n is brought to you by Angel Garcia Olloqui. You can contact me on: Project Page: AGi18n Personal webpage: angelolloqui.com Twitter: @angelolloqui LinkedIn: angelolloqui |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论