如何处理femanager扩展的Ajax验证翻译?

问题描述

我正在使用femanager。我已经为德语翻译和默认的locallang.xlf并行创建了de.locallang.xlf。从表单字段到电子邮件,所有这些都可以正常工作,但是唯一的问题是客户端Ajax验证。它为德语页面提供英语消息。例如,它们全部来自文件ext:femanager / Classes / Domain / Validator / ClientsideValidator.php。

摘录自de.locallang.xlf:

            <xliff version="1.0">
                <file source-language="en" datatype="plaintext" original="messages" date="2013-04-13T15:49:07Z" product-name="femanager">
                    <header/>
                        <body>
                            <trans-unit id="validationErrorMin">
                                <source>Please add more characters to field %s</source>
                                <target>Bitte fügen Sie dem Feld %s weitere Zeichen hinzu</target>
                            </trans-unit>
                        </body>
                </file>
            </xliff>

我要从ClientsideValidator翻译的示例部分:

            case stristr($validationSetting,'min('):
                if ($this->getValue() &&
                    !$this->validateMin($this->getValue(),StringUtility::getValuesInBrackets($validationSetting))
                ) {
                    $this->addMessage('validationErrorMin');
                    $this->isValid = false;
                }
                break;

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...