How to localize appirator, when using pods

294 views
Skip to first unread message

Markus Emrich

unread,
May 7, 2013, 9:54:12 AM5/7/13
to appi...@googlegroups.com
Hi,

does anyone have a solution, how to use custom strings, when using Appirator?
You cannot overwrite the defines, because the Pod project is built before the actual project.

Best regards,
Markus

Arash Payan

unread,
May 8, 2013, 1:44:22 AM5/8/13
to appi...@googlegroups.com
I haven't used CocoaPods, so I can't be of any help. Sorry.

Markus Emrich

unread,
May 8, 2013, 5:27:31 AM5/8/13
to appi...@googlegroups.com
Basically if you use cocoapods (like everyone else these days..), all used Pods get built into a static library. The actual project just references this library. So you cannot overwrite any defines within the pods, because they get compiled separately.

It would be nice to set custom loca keys via an API (like [Appirater setLocalizationKeys:@{AppiratorTitleKey:@"my_custom_title_key", ...}]). Or at least a custom loca table (so smth. else is used than AppiraterLocalizable.strings). The Idea is just that you do not need to touch your code at all.

The simplest solution for now is to build a custom podspec (eg. as a gist) without your loca ressources and then reference it in the Podfile via :podspec => 'www.foo.bar/customspec.podspec'.
When you do it that way, you can use your own AppiraterLocalizable.strings files, while still using Appirator as a pod.

Erwann Robin

unread,
Apr 23, 2014, 10:25:19 AM4/23/14
to appi...@googlegroups.com
Any news on this ? 
Have you managed to handle custom translations with the pod repo ? 
Reply all
Reply to author
Forward
0 new messages