Skip to content

Commit

Permalink
Merge pull request #31 from Cjewett/feature/update_german_translations
Browse files Browse the repository at this point in the history
quick fix for german translations and chat message output
  • Loading branch information
Cjewett authored Jan 11, 2020
2 parents c2bccdb + ab10c2c commit 3df7907
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion HonorAssist.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 11303
## Title: HonorAssist
## Author: Eulav, CptMerlot
## Version: 0.9.3
## Version: 0.9.4
## SavedVariablesPerCharacter: HonorAssistData, HonorAssistLogging, HonorAssistTrackerFramePositionX, HonorAssistTrackerFramePositionY, HonorAssistShowTrackerUi, HonorAssistNameplateToggle, HonorAssistShortKillMessageToggle, HonorAssistBattlegroundFramesPositionX, HonorAssistBattlegroundFramesPositionY, HonorAssistBattlegroundFramesToggle, HonorAssistBattlegroundFramesLockToggle

# Localization
Expand Down
12 changes: 9 additions & 3 deletions HonorAssistChatMessage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ function HonorAssist:CreateHonorableKillMessage(estimatedHonorGained, playerKill
local chatInfo = ChatTypeInfo["COMBAT_HONOR_GAIN"]

if not HonorAssistShortKillMessageToggle then
text = HonorAssist:GetTranslation("YOU_HAVE_KILLED") .. ' ' .. playerKilled .. ' (' .. playerRank .. ') ' .. timesKilled .. ' ' .. HonorAssist:GetTranslation(timeText) .. '. '
.. HonorAssist:GetTranslation("THIS_KILL_GRANTED") .. ' ' .. percentage * 100 .. '% ' .. HonorAssist:GetTranslation("VALUE_FOR") .. ' |cFF00ccff' .. realisticHonor .. ' '
.. HonorAssist:GetTranslation("HONOR"):lower() .. '|cFF' .. HonorAssist:RGBPercToHex(chatInfo.r, chatInfo.g, chatInfo.b) .. ' ' .. string.match(text, "(%(.+)") .. '.'
if (GetLocale() == "deDE") then
text = HonorAssist:GetTranslation("YOU_HAVE_KILLED") .. ' ' .. playerKilled .. ' (' .. playerRank .. ') ' .. timesKilled .. ' ' .. HonorAssist:GetTranslation(timeText) .. '. '
.. HonorAssist:GetTranslation("THIS_KILL_GRANTED") .. ' ' .. percentage * 100 .. '% ' .. HonorAssist:GetTranslation("VALUE_FOR") .. ' |cFF00ccff' .. realisticHonor .. ' '
.. HonorAssist:GetTranslation("HONOR") .. '|cFF' .. HonorAssist:RGBPercToHex(chatInfo.r, chatInfo.g, chatInfo.b) .. ' ' .. string.match(text, "(%(.+)") .. '.'
else
text = HonorAssist:GetTranslation("YOU_HAVE_KILLED") .. ' ' .. playerKilled .. ' (' .. playerRank .. ') ' .. timesKilled .. ' ' .. HonorAssist:GetTranslation(timeText) .. '. '
.. HonorAssist:GetTranslation("THIS_KILL_GRANTED") .. ' ' .. percentage * 100 .. '% ' .. HonorAssist:GetTranslation("VALUE_FOR") .. ' |cFF00ccff' .. realisticHonor .. ' '
.. HonorAssist:GetTranslation("HONOR"):lower() .. '|cFF' .. HonorAssist:RGBPercToHex(chatInfo.r, chatInfo.g, chatInfo.b) .. ' ' .. string.match(text, "(%(.+)") .. '.'
end
else
text = playerKilled .. ' (' .. playerRank .. ') ' .. timesKilled .. 'x: |cFF00ccff' .. realisticHonor .. ' ' .. HonorAssist:GetTranslation("HONOR"):lower()
end
Expand Down
12 changes: 6 additions & 6 deletions Localizations/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ local L = {
["KILLS"] = "Siege";
["DAILY"] = "Täglich";
["HOUR"] = "Stunde";
["HONOR_ASSIST"] = "Honour Assist";
["YOU_HAVE_KILLED"] = "Du hast getötet";
["TIME"] = "zeit";
["TIMES"] = "mal";
["THIS_KILL_GRANTED"] = "Dieser Mord wurde gewährt";
["VALUE_FOR"] = "wert für";
["HONOR_ASSIST"] = "Honor Assist";
["YOU_HAVE_KILLED"] = "Du hast";
["TIME"] = "mal getötet";
["TIMES"] = "mal getötet";
["THIS_KILL_GRANTED"] = "Dieser Mord gab";
["VALUE_FOR"] = "für";
["THIS_WEEK"] = "Diese Woche";
["HISTORY"] = "Geschichte";
["FROM_BONUS"] = "From Bonus";
Expand Down

0 comments on commit 3df7907

Please sign in to comment.