mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Fix game phases not being translated in game log (#5798)
This commit is contained in:
parent
13d18986b2
commit
ad06814ac7
3 changed files with 18 additions and 6 deletions
|
|
@ -1,8 +1,16 @@
|
|||
#include "phase.h"
|
||||
|
||||
Phase::Phase(const char *_name, QString _color, QString _soundFileName) : color(_color), soundFileName(_soundFileName)
|
||||
Phase::Phase(const QString &_name, const QString &_color, const QString &_soundFileName)
|
||||
: name(_name), color(_color), soundFileName(_soundFileName)
|
||||
{
|
||||
name = tr(_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The translated name for the phase
|
||||
*/
|
||||
QString Phase::getName() const
|
||||
{
|
||||
return tr(name.toUtf8().data());
|
||||
}
|
||||
|
||||
Phase Phases::getPhase(int phase)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue