Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ampreeT committed Jun 23, 2024
1 parent f5fdaa3 commit 5a7c0cc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripting/include/srccoop/deathnotice.inc
Original file line number Diff line number Diff line change
Expand Up @@ -433,21 +433,21 @@ methodmap DnManager
{
// TODO:
// Translations.
MsgAllNoSrv("%s suicided!", sEntry.m_szTarget2Name);
MsgAllNoSrv("%t", "entity suicided", sEntry.m_szTarget1Name);
}
else
{
if (strlen(sEntry.m_szWeapon) != 0)
{
// TODO:
// Translations.
MsgAllNoSrv("%s killed %s with %s!", sEntry.m_szTarget1Name, sEntry.m_szTarget2Name, sEntry.m_szWeapon);
MsgAllNoSrv("%t", "entity killed entity with weapon", sEntry.m_szTarget1Name, sEntry.m_szTarget2Name, sEntry.m_szWeapon);
}
else
{
// TODO:
// Translations.
MsgAllNoSrv("%s killed %s!", sEntry.m_szTarget1Name, sEntry.m_szTarget2Name);
MsgAllNoSrv("%t", "entity killed entity", sEntry.m_szTarget1Name, sEntry.m_szTarget2Name);
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions translations/srccoop.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,21 @@
"ru" "Состояние игрока успешно очищено."
}

"entity suicided"
{
"#format" "{1:s}" // attacker
"en" "{1} suicided!"
}

"entity killed entity with weapon"
{
"#format" "{1:s},{2:s},{3:s}" // attacker, victim, weapon
"en" "{1} killed {2} with {3}!"
}

"entity killed entity"
{
"#format" "{1:s},{2:s}" // attacker, victim
"en" "{1} killed {2}!"
}
}

0 comments on commit 5a7c0cc

Please sign in to comment.