Unable to resolve resource bundle “CairngormMessages” for locale “en

    技术2026-06-14  9

    Unable to resolve resource bundle “CairngormMessages” for locale “en_US”

    我得到这个错误,我每次开始一个新的与Cairngorm的Flex项目。 I get this error every time I start a new flex project with cairngorm. 因为我不希望谷歌这样继续下去了,我写下来的解决方案。 Because I don't want to google this anymore, I write the solution down. 只需添加下面的编译器参数,它应该工作。 Just add the following compiler argument and it should work.

    -资金来源-路径+ =语系/ {区域} - source - path + =locale / { locale } 使用cairngorm框架时,如果设置local为-locale=en_US。则报这个错误。找了好久才解决。记录如下:

    在flex工程目录下新建一个locale目录。local和src是一个级别的。在locale目录在建立en_US,cn_ZH 两个目录。在这2个目录下需要放置一个空内容的文件CairngormMessages.properties。

    然后在flex builder中设置附加的编译参数如下:

    注意先后顺序。

    -source-path=../locale/cn_ZH -locale=en_US

    最新回复(0)