Fix #231: Enable translation for more strings
This commit is contained in:
@ -82,10 +82,10 @@ QVariant BaseVersionList::headerData(int section, Qt::Orientation orientation, i
|
||||
switch (section)
|
||||
{
|
||||
case NameColumn:
|
||||
return "Name";
|
||||
return tr("Name");
|
||||
|
||||
case TypeColumn:
|
||||
return "Type";
|
||||
return tr("Type");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
@ -95,10 +95,10 @@ QVariant BaseVersionList::headerData(int section, Qt::Orientation orientation, i
|
||||
switch (section)
|
||||
{
|
||||
case NameColumn:
|
||||
return "The name of the version.";
|
||||
return tr("The name of the version.");
|
||||
|
||||
case TypeColumn:
|
||||
return "The version's type.";
|
||||
return tr("The version's type.");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
|
@ -57,10 +57,10 @@ QVariant LWJGLVersionList::headerData(int section, Qt::Orientation orientation,
|
||||
switch (role)
|
||||
{
|
||||
case Qt::DisplayRole:
|
||||
return "Version";
|
||||
return tr("Version");
|
||||
|
||||
case Qt::ToolTipRole:
|
||||
return "LWJGL version name.";
|
||||
return tr("LWJGL version name.");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
|
@ -467,9 +467,9 @@ QVariant ModList::headerData(int section, Qt::Orientation orientation, int role)
|
||||
case ActiveColumn:
|
||||
return QString();
|
||||
case NameColumn:
|
||||
return QString("Name");
|
||||
return tr("Name");
|
||||
case VersionColumn:
|
||||
return QString("Version");
|
||||
return tr("Version");
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
@ -478,11 +478,11 @@ QVariant ModList::headerData(int section, Qt::Orientation orientation, int role)
|
||||
switch (section)
|
||||
{
|
||||
case ActiveColumn:
|
||||
return "Is the mod enabled?";
|
||||
return tr("Is the mod enabled?");
|
||||
case NameColumn:
|
||||
return "The name of the mod.";
|
||||
return tr("The name of the mod.");
|
||||
case VersionColumn:
|
||||
return "The version of the mod.";
|
||||
return tr("The version of the mod.");
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
|
@ -183,10 +183,10 @@ QVariant MojangAccountList::headerData(int section, Qt::Orientation orientation,
|
||||
switch (section)
|
||||
{
|
||||
case ActiveColumn:
|
||||
return "Active?";
|
||||
return tr("Active?");
|
||||
|
||||
case NameColumn:
|
||||
return "Name";
|
||||
return tr("Name");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
@ -196,7 +196,7 @@ QVariant MojangAccountList::headerData(int section, Qt::Orientation orientation,
|
||||
switch (section)
|
||||
{
|
||||
case NameColumn:
|
||||
return "The name of the version.";
|
||||
return tr("The name of the version.");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
|
@ -99,13 +99,13 @@ QVariant ForgeVersionList::headerData(int section, Qt::Orientation orientation,
|
||||
switch (section)
|
||||
{
|
||||
case 0:
|
||||
return "Version";
|
||||
return tr("Version");
|
||||
|
||||
case 1:
|
||||
return "Minecraft";
|
||||
return tr("Minecraft");
|
||||
|
||||
case 2:
|
||||
return "Type";
|
||||
return tr("Type");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
@ -115,13 +115,13 @@ QVariant ForgeVersionList::headerData(int section, Qt::Orientation orientation,
|
||||
switch (section)
|
||||
{
|
||||
case 0:
|
||||
return "The name of the version.";
|
||||
return tr("The name of the version.");
|
||||
|
||||
case 1:
|
||||
return "Minecraft version";
|
||||
return tr("Minecraft version");
|
||||
|
||||
case 2:
|
||||
return "The version's type.";
|
||||
return tr("The version's type.");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
|
@ -99,13 +99,13 @@ QVariant JavaVersionList::headerData(int section, Qt::Orientation orientation, i
|
||||
switch (section)
|
||||
{
|
||||
case 0:
|
||||
return "Version";
|
||||
return tr("Version");
|
||||
|
||||
case 1:
|
||||
return "Arch";
|
||||
return tr("Arch");
|
||||
|
||||
case 2:
|
||||
return "Path";
|
||||
return tr("Path");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
@ -115,13 +115,13 @@ QVariant JavaVersionList::headerData(int section, Qt::Orientation orientation, i
|
||||
switch (section)
|
||||
{
|
||||
case 0:
|
||||
return "The name of the version.";
|
||||
return tr("The name of the version.");
|
||||
|
||||
case 1:
|
||||
return "The architecture this version is for.";
|
||||
return tr("The architecture this version is for.");
|
||||
|
||||
case 2:
|
||||
return "Path to this Java version.";
|
||||
return tr("Path to this Java version.");
|
||||
|
||||
default:
|
||||
return QVariant();
|
||||
|
Reference in New Issue
Block a user