Commit b04db9e0 authored by Jan Möbius's avatar Jan Möbius

Translations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6750 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a8a40728
include (plugin)
openflipper_plugin ()
openflipper_plugin ( TRANSLATION_LANGUAGES de_DE )
......@@ -34,7 +34,7 @@
/*===========================================================================*\
* *
* $Revision$ *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
......@@ -154,15 +154,15 @@ bool FilePolyMeshPlugin::saveObject(int _id, QString _filename){
PolyMeshObject* polyObj = dynamic_cast<PolyMeshObject* >( object );
if (OpenMesh::IO::write_mesh(*polyObj->mesh(), filename.c_str()) ){
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 poly mesh)");
emit log(LOGERR, tr("Unable to save (object isn't a poly mesh)"));
return false;
}
}
......@@ -186,7 +186,7 @@ DataType FilePolyMeshPlugin::supportedType() {
void FilePolyMeshPlugin::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 ") + QString::number(_id) + tr(" in saveFile") );
return;
}
......@@ -226,7 +226,7 @@ void FilePolyMeshPlugin::loadIniFileLast( INIFile& _ini ,int _id ) {
void FilePolyMeshPlugin::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 ") + QString::number(_id) + tr(" in saveFile") );
return;
}
......
......@@ -34,7 +34,7 @@
/*===========================================================================*\
* *
* $Revision$ *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
......@@ -92,7 +92,7 @@ class FilePolyMeshPlugin : public QObject, BaseInterface, FileInterface, LoadSav
~FilePolyMeshPlugin() {};
QString name() { return (QString("FilePolyMesh")); };
QString description( ) { return (QString("Load/Save Poly Meshes")); };
QString description( ) { return (QString(tr("Load/Save Poly Meshes"))); };
int addEmpty( );
......
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>FilePolyMeshPlugin</name>
<message>
<location filename="../FilePolyMesh.cc" line="157"/>
<source>Saved object to </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../FilePolyMesh.cc" line="160"/>
<source>Unable to save </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../FilePolyMesh.cc" line="165"/>
<source>Unable to save (object isn&apos;t a poly mesh)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../FilePolyMesh.cc" line="189"/>
<location filename="../FilePolyMesh.cc" line="229"/>
<source>Cannot find object for id </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../FilePolyMesh.cc" line="189"/>
<location filename="../FilePolyMesh.cc" line="229"/>
<source> in saveFile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../FilePolyMesh.hh" line="95"/>
<source>Load/Save Poly 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