Repository navigation
fix(DB): move the translations to acore_string_locale #51
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 34 additions & 11 deletions
45
data/sql/db-world/updates/mod_individual_xp_acore_string.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,36 @@ | ||
| SET @ENTRY:=100000; | ||
| DELETE FROM `acore_string` WHERE `entry` BETWEEN @ENTRY+0 AND @ENTRY+9; | ||
| INSERT INTO `acore_string` (`entry`, `content_default`, `locale_koKR`, `locale_frFR`, `locale_deDE`, `locale_zhCN`, `locale_zhTW`, `locale_esES`, `locale_esMX`, `locale_ruRU`) VALUES | ||
| (@ENTRY+0, 'This server is running the |cff4CFF00IndividualXpRate |rmodule.', '', '', '', '', '', 'Este servidor está ejecutando el módulo |cff4CFF00 mod-individual-xp.', 'Este servidor está ejecutando el módulo |cff4CFF00 mod-individual-xp.', ''), | ||
| (@ENTRY+1, '[XP] The Individual XP module is deactivated.', '', '', '', '', '', '[XP] El módulo XP individual está desactivado.', '[XP] El módulo XP individual está desactivado.', ''), | ||
| (@ENTRY+2, '[XP] Your Individual XP is currently disabled. Use .xp enable to re-enable it.', '', '', '', '', '', '[XP] Su XP individual está actualmente desactivado. Utilice .xp enable para volver a activarlo.', '[XP] Su XP individual está actualmente desactivado. Utilice .xp enable para volver a activarlo.', ''), | ||
| (@ENTRY+3, '|cffffffff[XP] Your current XP rate is {}.|r', '', '', '', '', '', '|cffffffff[XP] Su experiencia actual es {}.|r', '|cffffffff[XP] su experiencia actual es {}.|r', ''), | ||
| (@ENTRY+4, '|cffffffff[XP] The maximum rate limit is {}.|r', '', '', '', '', '', '|cffffffff[XP] El límite máximo de XP es {}.|r', '|cffffffff[XP] El límite máximo de XP es {}.|r', ''), | ||
| (@ENTRY+5, '[XP] The minimum rate limit is 1.', '', '', '', '', '', '[XP] El límite mínimo de XP es 1.', 'El límite mínimo de XP es 1.', ''), | ||
| (@ENTRY+6, '[XP] You have updated your XP rate to {}.', '', '', '', '', '', '[XP] Has actualizado tu XP a {}.', '[XP] Has actualizado tu XP a {}.', ''), | ||
| (@ENTRY+7, '[XP] You have disabled your XP gain.', '', '', '', '', '', '[XP] Has desactivado tu ganancia de XP.', '[XP] Has desactivado tu ganancia de XP.', ''), | ||
| (@ENTRY+8, '[XP] You have enabled your XP gain.', '', '', '', '', '', '[XP] Has activado tu ganancia de XP.', '[XP] Has activado tu ganancia de XP.', ''), | ||
| (@ENTRY+9, '[XP] You have restored your XP rate to the default value of {}.', '', '', '', '', '', '[XP] Has restaurado tu tasa de XP al valor por defecto de {}.', '[XP] Has restaurado tu tasa de XP al valor por defecto de {}.', ''); | ||
| INSERT INTO `acore_string` (`entry`, `content_default`) VALUES | ||
| (@ENTRY+0, 'This server is running the |cff4CFF00IndividualXpRate |rmodule.'), | ||
| (@ENTRY+1, '[XP] The Individual XP module is deactivated.'), | ||
| (@ENTRY+2, '[XP] Your Individual XP is currently disabled. Use .xp enable to re-enable it.'), | ||
| (@ENTRY+3, '|cffffffff[XP] Your current XP rate is {}.|r'), | ||
| (@ENTRY+4, '|cffffffff[XP] The maximum rate limit is {}.|r'), | ||
| (@ENTRY+5, '[XP] The minimum rate limit is 1.'), | ||
| (@ENTRY+6, '[XP] You have updated your XP rate to {}.'), | ||
| (@ENTRY+7, '[XP] You have disabled your XP gain.'), | ||
| (@ENTRY+8, '[XP] You have enabled your XP gain.'), | ||
| (@ENTRY+9, '[XP] You have restored your XP rate to the default value of {}.'); | ||
|
|
||
| DELETE FROM `acore_string_locale` WHERE `entry` BETWEEN @ENTRY+0 AND @ENTRY+9 AND `locale` IN ('esES', 'esMX'); | ||
| INSERT INTO `acore_string_locale` (`entry`, `locale`, `content`) VALUES | ||
| (@ENTRY+0, 'esES', 'Este servidor está ejecutando el módulo |cff4CFF00 mod-individual-xp.'), | ||
| (@ENTRY+0, 'esMX', 'Este servidor está ejecutando el módulo |cff4CFF00 mod-individual-xp.'), | ||
| (@ENTRY+1, 'esES', '[XP] El módulo XP individual está desactivado.'), | ||
| (@ENTRY+1, 'esMX', '[XP] El módulo XP individual está desactivado.'), | ||
| (@ENTRY+2, 'esES', '[XP] Su XP individual está actualmente desactivado. Utilice .xp enable para volver a activarlo.'), | ||
| (@ENTRY+2, 'esMX', '[XP] Su XP individual está actualmente desactivado. Utilice .xp enable para volver a activarlo.'), | ||
| (@ENTRY+3, 'esES', '|cffffffff[XP] Su experiencia actual es {}.|r'), | ||
| (@ENTRY+3, 'esMX', '|cffffffff[XP] su experiencia actual es {}.|r'), | ||
| (@ENTRY+4, 'esES', '|cffffffff[XP] El límite máximo de XP es {}.|r'), | ||
| (@ENTRY+4, 'esMX', '|cffffffff[XP] El límite máximo de XP es {}.|r'), | ||
| (@ENTRY+5, 'esES', '[XP] El límite mínimo de XP es 1.'), | ||
| (@ENTRY+5, 'esMX', 'El límite mínimo de XP es 1.'), | ||
| (@ENTRY+6, 'esES', '[XP] Has actualizado tu XP a {}.'), | ||
| (@ENTRY+6, 'esMX', '[XP] Has actualizado tu XP a {}.'), | ||
| (@ENTRY+7, 'esES', '[XP] Has desactivado tu ganancia de XP.'), | ||
| (@ENTRY+7, 'esMX', '[XP] Has desactivado tu ganancia de XP.'), | ||
| (@ENTRY+8, 'esES', '[XP] Has activado tu ganancia de XP.'), | ||
| (@ENTRY+8, 'esMX', '[XP] Has activado tu ganancia de XP.'), | ||
| (@ENTRY+9, 'esES', '[XP] Has restaurado tu tasa de XP al valor por defecto de {}.'), | ||
| (@ENTRY+9, 'esMX', '[XP] Has restaurado tu tasa de XP al valor por defecto de {}.'); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Script executed:
Repository: azerothcore/mod-individual-xp
Length of output: 6739
Script executed:
Repository: azerothcore/mod-individual-xp
Length of output: 14493
Web query:
azerothcore-wotlk PR 28281 acore_string acore_string_locale migration 35411Result:
Preserve the legacy
35411–35420range in the uninstall query.When an installation used the older SQL, then applied the core migration, the legacy entries can remain in both tables. The current cleanup removes only
100000–100009, so it can leave module rows behind.Suggested cleanup