首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 解析器发现所有使用i18n特性在给定的源文件。

解析器发现所有使用i18n特性在给定的源文件。

  • 资源大小:53.01 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: I18n Grails Groovy languages

资 源 简 介

We had a problem, that we had to search for all i18n texts for translation during development of applications in grails. Developer must either each text immediately write down into the properties file, or he must search all texts for translation later. Both possibilities are uncomfortable. In order to solve this problem, we developed an utility that can parse groovy source files (currently .gsp, .groovy) and list all used i18n texts. Use the class cz.bsa.soft.i18nparser.I18nPropertiesParser to retrieve set of used i18n properties in your source file: ``` Set properties = I18nPropertiesParser.getI18nProperties("somefile.gsp"); for(I18nProperty property: properties){ System.out.println(property.code + " (" + property.defaultValue + ")"); } ```

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP