Commit 3d81fcb5 authored by Jan Möbius's avatar Jan Möbius

Translations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6753 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c2ee15d0
include (plugin)
openflipper_plugin ()
openflipper_plugin ( TRANSLATION_LANGUAGES de_DE )
......@@ -34,7 +34,7 @@
/*===========================================================================*\
* *
* $Revision$ *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
......@@ -181,7 +181,7 @@ bool FileTriangleMeshPlugin::saveObject(int _id, QString _filename){
PluginFunctions::getObject(_id,object);
if (object == 0){
emit log(LOGERR, "Unable to save (Could not get object)");
emit log(LOGERR, tr("Unable to save (Could not get object)"));
return false;
}
......@@ -221,15 +221,15 @@ bool FileTriangleMeshPlugin::saveObject(int _id, QString _filename){
}
if (OpenMesh::IO::write_mesh(*triObj->mesh(), filename.c_str(),opt) ){
emit log(LOGINFO, "Saved object to " + object->path() + OpenFlipper::Options::dirSeparator() + object->name() );
emit log(LOGINFO, tr("Saved object to ") + object->path() + OpenFlipper::Options::dirSeparator() + object->name() );
return true;
}else{
emit log(LOGERR, "Unable to save " + object->path() + OpenFlipper::Options::dirSeparator() + object->name());
emit log(LOGERR, tr("Unable to save ") + object->path() + OpenFlipper::Options::dirSeparator() + object->name());
return false;
}
}else{
emit log(LOGERR, "Unable to save (object isn't a triangle mesh)");
emit log(LOGERR, tr("Unable to save (object isn't a triangle mesh)"));
return false;
}
}
......@@ -241,7 +241,7 @@ bool FileTriangleMeshPlugin::saveObject(int _id, QString _filename, bool _binary
PluginFunctions::getObject(_id,object);
if (object == 0){
emit log(LOGERR, "Unable to save (Could not get object)");
emit log(LOGERR, tr("Unable to save (Could not get object)"));
return false;
}
......@@ -259,14 +259,14 @@ bool FileTriangleMeshPlugin::saveObject(int _id, QString _filename, bool _binary
opt += OpenMesh::IO::Options::Binary;
if (OpenMesh::IO::write_mesh(*triObj->mesh(), filename.c_str(),opt) ){
emit log(LOGINFO, "Saved object to " + object->path() + OpenFlipper::Options::dirSeparator() + object->name() );
emit log(LOGINFO, tr("Saved object to ") + object->path() + OpenFlipper::Options::dirSeparator() + object->name() );
return true;
}else{
emit log(LOGERR, "Unable to save " + object->path() + OpenFlipper::Options::dirSeparator() + object->name());
emit log(LOGERR, tr("Unable to save ") + object->path() + OpenFlipper::Options::dirSeparator() + object->name());
return false;
}
}else{
emit log(LOGERR, "Unable to save (object isn't a triangle mesh)");
emit log(LOGERR, tr("Unable to save (object isn't a triangle mesh)"));
return false;
}
}
......@@ -290,7 +290,7 @@ DataType FileTriangleMeshPlugin::supportedType() {
void FileTriangleMeshPlugin::loadIniFileLast( INIFile& _ini ,int _id ) {
BaseObjectData* baseObject;
if ( !PluginFunctions::getObject(_id,baseObject) ) {
emit log(LOGERR,"Cannot find object for id " + QString::number(_id) + " in saveFile" );
emit log(LOGERR,tr("Cannot find object for id %1 in saveFile").arg(_id) );
return;
}
......@@ -330,7 +330,7 @@ void FileTriangleMeshPlugin::loadIniFileLast( INIFile& _ini ,int _id ) {
void FileTriangleMeshPlugin::saveIniFile( INIFile& _ini ,int _id) {
BaseObjectData* baseObject;
if ( !PluginFunctions::getObject(_id,baseObject) ) {
emit log(LOGERR,"Cannot find object for id " + QString::number(_id) + " in saveFile" );
emit log(LOGERR,tr("Cannot find object for id %1 in saveFile!").arg(_id) );
return;
}
......
......@@ -34,7 +34,7 @@
/*===========================================================================*\
* *
* $Revision$ *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
......@@ -94,7 +94,7 @@ class FileTriangleMeshPlugin : public QObject, BaseInterface, FileInterface, Loa
FileTriangleMeshPlugin();
QString name() { return (QString("FileTriangleMesh")); };
QString description( ) { return (QString("Load/Save Triangle Meshes Meshes")); };
QString description( ) { return (QString(tr("Load/Save Triangle Meshes Meshes"))); };
int addEmpty( );
......
......@@ -34,7 +34,7 @@
/*===========================================================================*\
* *
* $Revision$ *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
......
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>FileTriangleMeshPlugin</name>
<message>
<source>Unable to save (Could not get object)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Saved object to </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to save </source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to save (object isn&apos;t a triangle mesh)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Cannot find object for id %1 in saveFile</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Cannot find object for id %1 in saveFile!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Load/Save Triangle Meshes Meshes</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment