Skip to content

Commit

Permalink
- Improved the swedish translation of OMEdit.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11733 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Apr 12, 2012
1 parent 7e126e6 commit af3cff6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions OMEdit/OMEditGUI/Helper.cpp
Expand Up @@ -143,7 +143,8 @@ QString Helper::horizontalCylinderBrush;
QString Helper::verticalCylinderBrush;
QString Helper::sphereBrush;
QString Helper::remove;
QString Helper::location;
QString Helper::fileLocation;
QString Helper::errorLocation;
QString Helper::textProperties;
QString Helper::readOnly;
QString Helper::writable;
Expand Down Expand Up @@ -221,7 +222,8 @@ void Helper::initHelperVariables()
Helper::verticalCylinderBrush = tr("VertitalCylinder");
Helper::sphereBrush = tr("Sphere");
Helper::remove = tr("Remove");
Helper::location = tr("Location");
Helper::fileLocation = tr("Location", "For files");
Helper::errorLocation = tr("Location", "For errors");
Helper::textProperties = tr("Text Properties");
Helper::readOnly = tr("Read-Only");
Helper::writable = tr("Writable");
Expand Down
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Helper.h
Expand Up @@ -158,7 +158,8 @@ class Helper : public QObject
static QString verticalCylinderBrush;
static QString sphereBrush;
static QString remove;
static QString location;
static QString errorLocation;
static QString fileLocation;
static QString textProperties;
static QString readOnly;
static QString writable;
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/PlotWidget.cpp
Expand Up @@ -221,7 +221,7 @@ void PlotWidget::addPlotVariablestoTree(QString fileName, QList<QString> plotVar
}

// insert the top level item in tree
QString toolTip = tr("Simulation Result File: ").append(fileName).append("\n").append(Helper::location).append(": ")
QString toolTip = tr("Simulation Result File: ").append(fileName).append("\n").append(Helper::fileLocation).append(": ")
.append(mpParentMainWindow->mpOMCProxy->changeDirectory()).append("/").append(fileName);
PlotTreeItem *newTreePost = new PlotTreeItem(fileName, "", fileName, fileName, toolTip, (QTreeWidget*)0);
mpPlotTree->insertTopLevelItem(0, newTreePost);
Expand Down
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/ProblemsWidget.cpp
Expand Up @@ -238,7 +238,7 @@ Problem::Problem(ProblemsWidget *pParent)
setIconSize(QSize(12, 12));
setContentsMargins(0, 0, 0, 0);
QStringList labels;
labels << tr("Kind") << tr("Time") << tr("Resource") << Helper::location << tr("Message");
labels << tr("Kind") << tr("Time") << tr("Resource") << Helper::errorLocation << tr("Message");
setHeaderLabels(labels);
setContextMenuPolicy(Qt::CustomContextMenu);
// create actions
Expand Down
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/StringHandler.cpp
Expand Up @@ -614,9 +614,9 @@ QString StringHandler::createTooltip(QStringList info, QString name, QString pat
.append(Helper::name).append(" ").append(name).append("\n")
.append(tr("Description")).append(": ").append(info[1]).append("\n");
if (QString(info[2]).compare("<interactive>") == 0)
tooltip.append(Helper::location).append(": ").append("\n");
tooltip.append(Helper::errorLocation).append(": ").append("\n");
else
tooltip.append(Helper::location).append(": ").append(info[2]).append("\n");
tooltip.append(Helper::errorLocation).append(": ").append(info[2]).append("\n");
tooltip.append(tr("Path")).append(": ").append(path);
return tooltip;
}
Expand Down

0 comments on commit af3cff6

Please sign in to comment.