• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

iv-mexx/update_localization: A Python Script that helps dealing with localizatio ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

iv-mexx/update_localization

开源软件地址(OpenSource Url):

https://github.com/iv-mexx/update_localization

开源编程语言(OpenSource Language):

Python 97.7%

开源软件介绍(OpenSource Introduction):

update_localizations.py

A Python Script that helps dealing with localizations in Xcode. It keeps track of Items that are already translated and doesnt replace them like genstrings does but appends new items.

Moreover it is possible to specify extensions of files that should be scanned and to specify ignore patterns for Files that should be ignored

Swift

As long as you use only the default variant of NSLocalizedString(value: comment:) without additional parameters, this script works for swift as well.

However, as soon as you need additional parameters, the genstrings tool break (rdar://22817000).

When you're working with swift, I'd suggest to manually edit your .strings files and use R.swift or SwiftGen to generate code for them.

More Information

For more information read my original blog post at https://www.innovaptor.com/blog/2013/02/07/a-localization-workflow-that-works-well-in-practice/

For more information about the recommended workflow in swift, read my updated blog post at https://www.innovaptor.com/blog/2016/11/17/update-localization-workflow/




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap