简体   繁体   English

用于语言翻译的种子堆栈 i18n 插件问题

[英]Seed Stack i18n AddOn Issue for language translation

Hell Team,地狱队,

While using LocalizationService.localize(key, value) for key translation it gives the below exception,在使用 LocalizationService.localize(key, value) 进行键翻译时,它给出了以下异常,

  1. javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147) javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)

  2. org.hibernate.exception.SQLGrammarException: could not extract ResultSet at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63) org.hibernate.exception.SQLGrammarException: 无法在 org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.Z93F725A07423FE1C846F) 处提取 ResultSet

  3. java.sql.SQLSyntaxErrorException: Unknown column 'translatio1_.Key_ID' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) java.sql.SQLSyntaxErrorException: Unknown column 'translatio1_.Key_ID' in 'field list' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)

Thanks谢谢

There is a mismatch in DDL scripts provided as part of the addon source code: scripts for mysql and Oracle are outdated.作为插件源代码的一部分提供的 DDL 脚本不匹配:mysql 和 Oracle 的脚本已过时。 Correct structure is available in the script for hsql: TRANS_ID_FK column in table SEED_I18N_KEY_TRANS should now be named KEY_ID. hsql 脚本中提供了正确的结构:表 SEED_I18N_KEY_TRANS 中的 TRANS_ID_FK 列现在应该命名为 KEY_ID。

A ticket has been opened on Github for correction follow-up.已在 Github 上开票以进行更正跟进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM