Skip to content

Commit

Permalink
- Swedish translations
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11703 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 10, 2012
1 parent 905201b commit cd6e069
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 31 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Makefile.unix.in
Expand Up @@ -9,7 +9,7 @@ runtimedir=$(top_builddir)/Compiler/runtime/
NAME=OMEdit
EXE=@EXE@
QMAKE=@QMAKE@
QM=$(echo *.qm)
QM=OMEdit_sv.qm OMEdit_ru.qm OMEdit_de.qm

install: build $(QM)
if [ "$(EXE)" = ".app" ]; then cp -rp ../bin/OMEdit.app ../../build/Applications/ ; else cp -p ../bin/OMEdit ../../build/bin/OMEdit; fi
Expand Down
21 changes: 19 additions & 2 deletions OMEdit/OMEditGUI/OMEdit_de.ts
Expand Up @@ -1400,7 +1400,12 @@ This is probably wrong because the component is decalred as %3.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1301"/>
<location filename="mainwindow.cpp" line="1186"/>
<source>Connected to OpenModelica </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1300"/>
<source>Exporting model as FMI</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1570,8 +1575,20 @@ This is probably wrong because the component is decalred as %3.</oldsource>
<source>Exporting model as an Image</source>
<translation type="unfinished"></translation>
</message>
<message utf8="true">
<location filename="mainwindow.cpp" line="1187"/>
<source>Copyright Linköping University.
Distributed under OSMC-PL and GPL, see www.openmodelica.org.

Created by Adeel Asghar and Sonia Tariq as part of their final thesis.</source>
<oldsource>Copyright Linköping University.
Distributed under OSMC-PL and GPL, see www.openmodelica.org.

Created by Adeel Asghar and Sonia Tariq as part of their final thesis.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1296"/>
<location filename="mainwindow.cpp" line="1295"/>
<source>make FMU</source>
<translation type="unfinished"></translation>
</message>
Expand Down
21 changes: 19 additions & 2 deletions OMEdit/OMEditGUI/OMEdit_ru.ts
Expand Up @@ -1316,6 +1316,18 @@ This is probably wrong because the component is decalred as %3.</oldsource>
<source>Exports the current model to Image</source>
<translation>Экспортировать текущую модель в изображение</translation>
</message>
<message utf8="true">
<location filename="mainwindow.cpp" line="1187"/>
<source>Copyright Linköping University.
Distributed under OSMC-PL and GPL, see www.openmodelica.org.

Created by Adeel Asghar and Sonia Tariq as part of their final thesis.</source>
<oldsource>Copyright Linköping University.
Distributed under OSMC-PL and GPL, see www.openmodelica.org.

Created by Adeel Asghar and Sonia Tariq as part of their final thesis.</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="478"/>
<source>Shows the options window</source>
Expand Down Expand Up @@ -1578,12 +1590,17 @@ This is probably wrong because the component is decalred as %3.</oldsource>
<translation>Экспортировать модель как изображение</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1296"/>
<location filename="mainwindow.cpp" line="1186"/>
<source>Connected to OpenModelica </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1295"/>
<source>make FMU</source>
<translation>FMU (в процессе)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1301"/>
<location filename="mainwindow.cpp" line="1300"/>
<source>Exporting model as FMI</source>
<translation>Экспортировать модель как FMI</translation>
</message>
Expand Down
62 changes: 41 additions & 21 deletions OMEdit/OMEditGUI/OMEdit_sv.ts
Expand Up @@ -514,17 +514,17 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="Helper.cpp" line="228"/>
<source>Icon View</source>
<translation>Ikon Visa</translation>
<translation>Ikonvy</translation>
</message>
<message>
<location filename="Helper.cpp" line="229"/>
<source>Diagram View</source>
<translation>Diagrammet Visa</translation>
<translation>Diagramvy</translation>
</message>
<message>
<location filename="Helper.cpp" line="230"/>
<source>Modelica Text View</source>
<translation>Modelica Text Visa</translation>
<translation>Textuell Vy</translation>
</message>
<message>
<location filename="Helper.cpp" line="231"/>
Expand All @@ -545,7 +545,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="Helper.cpp" line="165"/>
<source>Error</source>
<translation>fel</translation>
<translation>Fel</translation>
</message>
<message>
<location filename="Helper.cpp" line="166"/>
Expand Down Expand Up @@ -625,7 +625,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="Helper.cpp" line="182"/>
<source>Check Model</source>
<translation>Ta Model</translation>
<translation>Kontrollera Modell</translation>
</message>
<message>
<location filename="Helper.cpp" line="183"/>
Expand All @@ -650,12 +650,12 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="Helper.cpp" line="187"/>
<source>Copy</source>
<translation>Kopiera</translation>
<translation>K&amp;opiera</translation>
</message>
<message>
<location filename="Helper.cpp" line="188"/>
<source>Paste</source>
<translation>klistra in</translation>
<translation>K&amp;listra in</translation>
</message>
<message>
<location filename="Helper.cpp" line="189"/>
Expand Down Expand Up @@ -1093,7 +1093,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="mainwindow.cpp" line="119"/>
<source>Model Browser</source>
<translation>Modell Webbläsare</translation>
<translation>Modellbläddrare</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="139"/>
Expand Down Expand Up @@ -1205,7 +1205,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="mainwindow.cpp" line="377"/>
<source>Cut</source>
<translation>Skära</translation>
<translation>&amp;Klipp ut</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="388"/>
Expand Down Expand Up @@ -1402,15 +1402,30 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<source>Draws an Ellipse.</source>
<translation>Drar en ellips.</translation>
</message>
<message utf8="true">
<location filename="mainwindow.cpp" line="1187"/>
<source>Copyright Linköping University.
Distributed under OSMC-PL and GPL, see www.openmodelica.org.

Created by Adeel Asghar and Sonia Tariq as part of their final thesis.</source>
<oldsource>Copyright Linköping University.
Distributed under OSMC-PL and GPL, see www.openmodelica.org.

Created by Adeel Asghar and Sonia Tariq as part of their final thesis.</oldsource>
<translation>Copyright Linköpings universitet.
Distribueras under OSMC-PL och GPL, se www.openmodelica.org.

Skapad av Adeel Asghar och Sonia Tariq som en del av deras examensarbete.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="58"/>
<source>Connecting to OpenModelica Compiler</source>
<translation>Ansluta till OpenModelica Compiler</translation>
<translation>Ansluter till OpenModelica Compiler</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="62"/>
<source>Reading Settings</source>
<translation>Läsa Inställningar</translation>
<translation>Läser Inställningar</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="65"/>
Expand All @@ -1425,7 +1440,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="mainwindow.cpp" line="157"/>
<source>Creating Components</source>
<translation>Skapa Komponenter</translation>
<translation>Skapar Komponenter</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="343"/>
Expand All @@ -1435,7 +1450,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="mainwindow.cpp" line="515"/>
<source>Draws a Text.</source>
<translation>Drar en text.</translation>
<translation>Ritar en text.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="519"/>
Expand All @@ -1461,27 +1476,27 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="mainwindow.cpp" line="530"/>
<source>New Plot Window</source>
<translation>Ny Tomt fönster</translation>
<translation>Nytt diagram</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="531"/>
<source>Inserts new plot window</source>
<translation>Infogar nytt tomt fönster</translation>
<translation>Infogar nytt diagram</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="533"/>
<source>New Plot Parametric Window</source>
<translation>Ny Tomt Parametrisk Fönster</translation>
<translation>Nytt parametriskt diagram</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="534"/>
<source>Inserts new plot parametric window</source>
<translation>Infogar nytt tomt parametrisk fönster</translation>
<translation>Infogar nytt parametriskt diagram</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="538"/>
<source>Export as an Image</source>
<translation>Exportera som en Bild</translation>
<translation>Exportera som en bild</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="539"/>
Expand Down Expand Up @@ -1574,12 +1589,17 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<translation>Exportera model som en Bild</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1296"/>
<location filename="mainwindow.cpp" line="1186"/>
<source>Connected to OpenModelica </source>
<translation>Ansluten till OpenModelica </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1295"/>
<source>make FMU</source>
<translation>göra FMU</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1301"/>
<location filename="mainwindow.cpp" line="1300"/>
<source>Exporting model as FMI</source>
<translation>Exportera model som FMI</translation>
</message>
Expand Down Expand Up @@ -1624,7 +1644,7 @@ Detta är förmodligen fel eftersom komponenten deklarerade%3.</translation>
<message>
<location filename="LibraryWidget.cpp" line="1614"/>
<source>Outline</source>
<translation>Beskriva</translation>
<translation>Översikt</translation>
</message>
</context>
<context>
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/main.cpp
Expand Up @@ -60,6 +60,8 @@ int main(int argc, char *argv[])

QApplication a(argc, argv);
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
a.setAttribute(Qt::AA_DontShowIconsInMenus, false);
// Localization
//*a.severin/ add localization
Expand Down
9 changes: 4 additions & 5 deletions OMEdit/OMEditGUI/mainwindow.cpp
Expand Up @@ -1183,11 +1183,10 @@ void MainWindow::openAbout()
QString OMCVersion = mpOMCProxy->getVersion();
QString aboutText = QString("OMEdit - ").append(Helper::applicationIntroText).append(" ")
.append(Helper::applicationVersion).append("\n")
.append("Connected to OpenModelica ").append(OMCVersion).append("\n\n")
.append("Copyright ").append(dateStr + 7)
.append(" Link").append(QChar(246, 0)).append("ping University.\n")
.append("Distributed under OSMC-PL and GPL, see www.openmodelica.org.\n\n")
.append("Created by Adeel Asghar and Sonia Tariq as part of their final thesis.");
.append(tr("Connected to OpenModelica ")).append(OMCVersion).append("\n\n")
.append(trUtf8("Copyright Linköping University.\n"
"Distributed under OSMC-PL and GPL, see www.openmodelica.org.\n\n"
"Created by Adeel Asghar and Sonia Tariq as part of their final thesis."));

QMessageBox::about(this, QString("About ").append(Helper::applicationName), aboutText);
}
Expand Down

0 comments on commit cd6e069

Please sign in to comment.