Roo安装i18n
当尝试创建 i18n 插件时:
roo > addon create i18n --topLevelPackage com.gilles.photos.addon --locale ic --messageBundle i18n/messages_ic.properties
我收到消息:
Command 'addon create i18n --topLevelPackage com.gilles.photos.addon --locale ic --messageBundle i18n/messages_ic.properties' was found but is not currently available (type 'help' then ENTER to learn about this command)
我尝试遵循这篇文章的建议: http://forum.springsource.org/showthread .php?101843-addon-create-i18n-does-not-work
这家伙的建议对我来说是不透明的。他说的是什么意思:
插件创建命令需要是 在空目录中运行
网络上没有明确的答案。
when trying to create a i18n addon :
roo > addon create i18n --topLevelPackage com.gilles.photos.addon --locale ic --messageBundle i18n/messages_ic.properties
I get the message :
Command 'addon create i18n --topLevelPackage com.gilles.photos.addon --locale ic --messageBundle i18n/messages_ic.properties' was found but is not currently available (type 'help' then ENTER to learn about this command)
I try to follow the recommandations of this post :
http://forum.springsource.org/showthread.php?101843-addon-create-i18n-does-not-work
The advices of the guy are opaque to me. What does he mean by :
The addon create commands need to be
run in an empty directory
There are no clear answer available on the web.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你到底想做什么?安装对给定语言的支持; use
其中
it
是语言的代码。 “Roo 目前支持六种语言,您可以为您选择的其他语言编写附加语言” - 截至 2011 年 2 月。您尝试的命令应该为尚未创建的语言创建附加语言支持。 (我不认为这是你的意图)问题澄清后编辑:
参见 roo 文档,A.5.2 节。
你所要做的就是
What are you exactly trying to do? To install support for a given language; use
Where
it
is the code of the language. "Roo currently support six languages, and you can write an add-on language for others of your choice" - as of February, 2011. The command you were trying is the one that's supposed to create an addon for a language which is not yet supported. (I don't think that's your intention)EDIT after question clarification:
See roo documentation, section A.5.2.
What you have to do is
addon create i18n --topLevelPackage foo.bar --locale ic --messageBundle i18n/messages_ic.properties