mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
30 lines
596 B
C++
30 lines
596 B
C++
/**
|
|
* @file translate_counter_name.h
|
|
* @ingroup GameGraphicsPlayers
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef TRANSLATECOUNTERNAME_H
|
|
#define TRANSLATECOUNTERNAME_H
|
|
|
|
#include <QString>
|
|
#include <QtCore>
|
|
|
|
class TranslateCounterName
|
|
{
|
|
Q_DECLARE_TR_FUNCTIONS(TranslateCounterName)
|
|
|
|
static const QMap<QString, QString> translated;
|
|
|
|
public:
|
|
static QString getDisplayName(const QString &name)
|
|
{
|
|
if (translated.contains(name)) {
|
|
return tr(translated[name].toLatin1());
|
|
} else {
|
|
return name;
|
|
}
|
|
}
|
|
};
|
|
|
|
#endif // TRANSLATECOUNTERNAME_H
|