Repository navigation
docs(acore_string): document acore_string_locale #1296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # acore\_string\_locale | ||
|
|
||
| [<-Back-to:World](database-world) | ||
|
|
||
| **The \`acore\_string\_locale\` table** | ||
|
|
||
| This table holds the translations of the [acore\_string](acore_string) texts, one row per string and locale. The English text stays in [acore\_string.content\_default](acore_string#contentdefault). | ||
|
|
||
| **Table Structure** | ||
|
|
||
| | Field | Type | Attributes | Key | Null | Default | Extra | Comment | | ||
| | ------------------- | ---------- | ---------- | --- | ---- | ------- | ----- | ------------------ | | ||
| | [entry](#entry) | INT | UNSIGNED | PRI | NO | | | acore_string.entry | | ||
| | [locale](#locale) | VARCHAR(4) | | PRI | NO | | | | | ||
| | [content](#content) | TEXT | | | NO | | | | | ||
|
|
||
| **Description of the fields** | ||
|
|
||
| ### entry | ||
|
|
||
| The string to translate, from [acore\_string.entry](acore_string#entry). | ||
|
|
||
| ### locale | ||
|
|
||
| The locale name of the translation. | ||
|
|
||
| | Locale | | ||
| | ------ | | ||
| | koKR | | ||
| | frFR | | ||
| | deDE | | ||
| | zhCN | | ||
| | zhTW | | ||
| | esES | | ||
| | esMX | | ||
| | ruRU | | ||
|
|
||
| A locale added by a module, for example `itIT`, can be used too. | ||
|
|
||
| ### content | ||
|
|
||
| The translated text of [acore\_string.content\_default](acore_string#contentdefault). | ||
|
|
||
| ### Example | ||
|
|
||
| ```sql | ||
| DELETE FROM `acore_string_locale` WHERE `entry` = 1 AND `locale` = 'esES'; | ||
| INSERT INTO `acore_string_locale` (`entry`, `locale`, `content`) VALUES | ||
| (1, 'esES', 'Debes seleccionar un personaje o una criatura.'); | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # acore\_string\_locale | ||
|
|
||
| [<-返回:World](database-world) | ||
|
|
||
| **\`acore\_string\_locale\` 表** | ||
|
|
||
| 此表保存 [acore\_string](acore_string) 文本的翻译,每个字符串和 locale 一行。英文文本仍保存在 [acore\_string.content\_default](acore_string#contentdefault) 中。 | ||
|
|
||
| **表结构** | ||
|
|
||
| | Field | Type | Attributes | Key | Null | Default | Extra | Comment | | ||
| | ------------------- | ---------- | ---------- | --- | ---- | ------- | ----- | ------------------ | | ||
| | [entry](#entry) | INT | UNSIGNED | PRI | NO | | | acore_string.entry | | ||
| | [locale](#locale) | VARCHAR(4) | | PRI | NO | | | | | ||
| | [content](#content) | TEXT | | | NO | | | | | ||
|
|
||
| **字段描述** | ||
|
|
||
| ### entry | ||
|
|
||
| 要翻译的字符串,对应 [acore\_string.entry](acore_string#entry)。 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 将
|
||
|
|
||
| ### locale | ||
|
|
||
| 翻译的 locale 名称。 | ||
|
|
||
| | Locale | | ||
| | ------ | | ||
| | koKR | | ||
| | frFR | | ||
| | deDE | | ||
| | zhCN | | ||
| | zhTW | | ||
| | esES | | ||
| | esMX | | ||
| | ruRU | | ||
|
|
||
| 也可以使用由模块添加的 locale,例如 `itIT`。 | ||
|
|
||
| ### content | ||
|
|
||
| [acore\_string.content\_default](acore_string#contentdefault) 的翻译文本。 | ||
|
|
||
| ### 示例 | ||
|
|
||
| ```sql | ||
| DELETE FROM `acore_string_locale` WHERE `entry` = 1 AND `locale` = 'esES'; | ||
| INSERT INTO `acore_string_locale` (`entry`, `locale`, `content`) VALUES | ||
| (1, 'esES', 'Debes seleccionar un personaje o una criatura.'); | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # acore\_string\_locale | ||
|
|
||
| [<-Volver a:World](database-world) | ||
|
|
||
| **Tabla \`acore\_string\_locale\`** | ||
|
|
||
| Esta tabla contiene las traducciones de los textos de [acore\_string](acore_string), una fila por cadena y localización. El texto en inglés se queda en [acore\_string.content\_default](acore_string#contentdefault). | ||
|
|
||
| **Estructura** | ||
|
|
||
| | Field | Type | Attributes | Key | Null | Default | Extra | Comment | | ||
| | ------------------- | ---------- | ---------- | --- | ---- | ------- | ----- | ------------------ | | ||
| | [entry](#entry) | INT | UNSIGNED | PRI | NO | | | acore_string.entry | | ||
| | [locale](#locale) | VARCHAR(4) | | PRI | NO | | | | | ||
| | [content](#content) | TEXT | | | NO | | | | | ||
|
|
||
| **Descripción de los campos** | ||
|
|
||
| ### entry | ||
|
|
||
| La cadena a traducir, de [acore\_string.entry](acore_string#entry). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Describe
|
||
|
|
||
| ### locale | ||
|
|
||
| El nombre de la localización de la traducción. | ||
|
|
||
| | Locale | | ||
| | ------ | | ||
| | koKR | | ||
| | frFR | | ||
| | deDE | | ||
| | zhCN | | ||
| | zhTW | | ||
| | esES | | ||
| | esMX | | ||
| | ruRU | | ||
|
|
||
| También se puede usar una localización añadida por un módulo, por ejemplo `itIT`. | ||
|
|
||
| ### content | ||
|
|
||
| El texto traducido de [acore\_string.content\_default](acore_string#contentdefault). | ||
|
|
||
| ### Ejemplo | ||
|
|
||
| ```sql | ||
| DELETE FROM `acore_string_locale` WHERE `entry` = 1 AND `locale` = 'esES'; | ||
| INSERT INTO `acore_string_locale` (`entry`, `locale`, `content`) VALUES | ||
| (1, 'esES', 'Debes seleccionar un personaje o una criatura.'); | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
entryas an ID.acore_string.entryis the numeric identifier for the string, but Line 21 describes it as the string itself. Use “The ID of the string to translate” to distinguish the key fromcontent.