summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWalter Pagani <paganiwalter@gmail.com>2021-05-16 14:37:27 -0300
committerGitHub <noreply@github.com>2021-05-16 19:37:27 +0200
commit98de9816b6101fd430a62d5f04d38ec613ac2349 (patch)
tree21f7753df4e7de31fc0026bf8cf2ef904f5e5684 /docs
parent76b9a242778d20f7d8eef40c6cb4529361eebb51 (diff)
downloadwiki-98de9816b6101fd430a62d5f04d38ec613ac2349.tar.gz
wiki-98de9816b6101fd430a62d5f04d38ec613ac2349.tar.bz2
wiki-98de9816b6101fd430a62d5f04d38ec613ac2349.zip
docs(c_t_l): update (#473)
* Updating creature_text_locale attributes * Miscellaneous corrections * Updated standards. * UNSIGNED * Modifying the content of the attributes. * Various modifications * Update creature_text_locale.md * Update creature_text_locale.md Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/creature_text_locale.md63
1 files changed, 38 insertions, 25 deletions
diff --git a/docs/creature_text_locale.md b/docs/creature_text_locale.md
index b7f3e75..e80020a 100644
--- a/docs/creature_text_locale.md
+++ b/docs/creature_text_locale.md
@@ -1,44 +1,57 @@
-# creature\_text\_locale
+# creature_text_locale
[<-Back-to:World](database-world.md)
-**The \`creature\_text\_locale\` table**
+**The \`creature_text_locale\` table**
This table is used to provide to localized clients with localized string for creatures texts.
**Structure**
-| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
-|----------------------------------------------|--------------|------------|-----|------|---------|-------|---------|
-| [entry](#creature_text_locale-entry) | MEDIUMINT | UNSIGNED | PRI | NO | 0 |   |   |
-| [groupid](#creature_text_locale-groupid) | TINYINT | UNSIGNED | PRI | NO | 0 |   |   |
-| [id](#creature_text_locale-id) | TINYINT | UNSIGNED | PRI | NO | 0 |   |   |
-| [text\_loc1](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc2](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc3](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc4](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc5](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc6](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc7](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
-| [text\_loc8](#creature_text_locale-text_loc) | text |   |   | YES | NULL |   |   |
+| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
+|-----------------|------------|------------|-----|------|---------|-------|---------|
+| [CreatureID][1] | MEDIUMINT | UNSIGNED | PRI | NO | 0 | | |
+| [GroupID][2] | TINYINT | UNSIGNED | PRI | NO | 0 | | |
+| [ID][3] | TINYINT | UNSIGNED | PRI | NO | 0 | | |
+| [Locale][4] | VARCHAR(4) | | PRI | NO | | | |
+| [Text][5] | TEXT | | | YES | NULL | | |
+
+[1]: #creatureid
+[2]: #groupid
+[3]: #id
+[4]: #locale
+[5]: #text
**Description of the fields**
-### entry
+### CreatureID
+
+This is the [creature\_template.entry](creature_template#entry) to which the script is linked to.
+
+### GroupID
-This entry must be the same as [creature\_text.entry](https://trinitycore.atlassian.net/wiki/display/tc/creature_text#creature_text-entry) and then the row will be used to provide localization support for this creature record.
+If there is more than one of the same entry (more than one text the creature says), this column is used to choose if it is a random say or an ordered list. If a creature has got more than one say text to be shown in a given order, it must be incremented for each new matching entry (ex. 0, 1, 2, 3...). If there is only one entry or only one group, this value should be 0. If there are multiple groups of texts, this value stays the same within the group while the id increments within the same group.
-### groupid
+### ID
-This entry must be the same as [creature\_text.groupid](https://trinitycore.atlassian.net/wiki/display/tc/creature_text#creature_text-groupid) and then the row will be used to provide localization support for this creature record.
+Entry for each group of texts. This is the unique identifier when entry (creature) is the same and groupid is unchanged, it must be incremented (ex. 0, 1, 2, 3...). A creature say will be randomly selected from this list based on the groupid it belongs to.
-### id
+### Locale
-This entry must be the same as [creature\_text.id](https://trinitycore.atlassian.net/wiki/display/tc/creature_text#creature_text-id) and then the row will be used to provide localization support for this creature record.
+It is the language in which you want to make the translation.
+You can choose from the following:
-### text\_loc
+| ID | Language |
+|----|----------|
+| 1 | koKR |
+| 2 | frFR |
+| 3 | deDE |
+| 4 | zhCN |
+| 5 | zhTW |
+| 6 | esES |
+| 7 | esMX |
+| 8 | ruRU |
-Translated content for [creature\_text.text](https://trinitycore.atlassian.net/wiki/display/tc/creature_text#creature_text-text) field for language X.
-See [localization languages](Localization+lang) list to know which value to use for X.
+### Text
+The translated text the creature will say.