【问题标题】:Orbeon 4.3 and localistionOrbeon 4.3 和本地化
【发布时间】:2013-09-23 11:36:39
【问题描述】:

我正在尝试按照本指南为 orbeon 4.3pe 创建一个额外的语言条目: http://wiki.orbeon.com/forms/doc/contributor-guide/localizing-orbeon-forms 我为旧版本的 Orbeon(4.2 和 4.0)做了几次,它总是这样工作。

在我删除 app/fr/i18n 目录的那一刻,应用程序再次开始工作。

当我启动应用程序时出现此错误:

Toggle org.orbeon.saxon.trans.XPathException
Exception Class org.orbeon.saxon.trans.XPathException
Message An empty sequence is not allowed as the first argument of xxf:format-message()

错误似乎来自oxf:/apps/fr/components/components.xsl

附加信息:

元素 → 评估 XPath 表达式 表达式 → xxf:format-message( $fr-resources/errors/form-title, ( xxf:instance('fr-error-summary-instance')/visible-counts/(if (count((@error, @warning , @info)[.gt 0]) gt 1) then 3 else if (@error gt 0) then 0 else if (@warning gt 0) then 1 else if (@info gt 0) then 2 else 4), xxf :instance('fr-error-summary-instance')/visible-counts/xs:integer(@alert), $title ) )

【问题讨论】:

    标签: orbeon


    【解决方案1】:

    最可能的情况是您提供的 resources.xml 文件与该特定 Orbeon Forms 版本随附的文件不匹配。试试这个:

    • orbeon-form-runner-jar 中提取resources.xml,或检查this version on github for 4.3
    • 在该文件中,将英语部分与您的语言部分进行比较,并查看资源条目是否不匹配

    【讨论】:

    • 我从一个新的副本开始并翻译了它。从外观上看,我犯了一个错字,导致 xml 无效(带有 2
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-19
    • 2012-10-04
    • 2010-12-20
    • 2022-01-03
    • 2011-09-04
    • 2011-12-03
    相关资源
    最近更新 更多