Commit c84e99d0 authored by Jan Möbius's avatar Jan Möbius
Browse files

Translations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7169 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2e3f43d6
......@@ -436,9 +436,6 @@ Core::init() {
);
scriptEngine_.globalObject().setProperty("core", scriptInstance);
emit log(LOGOUT,tr("Core Scripting initialized with Name : core "));
emit log(LOGOUT,tr("Available scripting functions :"));
QScriptValueIterator it(scriptInstance);
while (it.hasNext()) {
......@@ -450,11 +447,8 @@ Core::init() {
scriptingFunctions_.push_back( "core." + it.name() );
emit log(LOGOUT,"\t" + it.name());
}
emit log(LOGOUT,"=============================================================================================");
loadPlugins();
if ( OpenFlipper::Options::gui() ) {
......
......@@ -161,7 +161,7 @@ void Core::loadPlugins()
if (ini.get_entry( additionalPlugins,"Plugins",loadKeys[keyit] ) ) {
for ( uint i = 0 ; i < additionalPlugins.size(); ++i) {
iniPlugins << additionalPlugins[i];
emit log(LOGOUT,tr("Additional Plugin from ini file : ") + additionalPlugins[i] );
emit log(LOGOUT,tr("Additional Plugin from ini file: %1").arg( additionalPlugins[i] ) );
}
}
}
......@@ -169,7 +169,7 @@ void Core::loadPlugins()
ini.disconnect();
} else
emit log(LOGWARN,tr("Failed to connect to ProgramOptions.ini file: ") + configFiles[fileCount]);
emit log(LOGWARN,tr("Failed to connect to ProgramOptions.ini file: %1").arg( configFiles[fileCount]) );
}
pluginlist = iniPlugins << pluginlist;
......@@ -195,7 +195,7 @@ void Core::loadPlugins()
dontLoadPlugins_[i] = dontLoadPlugins_[i].trimmed();
for ( int i = 0 ; i < dontLoadPlugins_.size(); ++i )
emit log(LOGWARN,tr("Skipping Plugins :\t ") + dontLoadPlugins_[i] );
emit log(LOGWARN,tr("Skipping Plugins :\t %1").arg( dontLoadPlugins_[i] ) );
emit log(LOGOUT,"=============================================================================================");
......@@ -204,7 +204,7 @@ void Core::loadPlugins()
for ( int i = 0 ; i < pluginlist.size() ; ++i) {
if ( OpenFlipper::Options::gui() && OpenFlipper::Options::splash() ) {
splashMessage_ = tr("Loading Plugin ") + QString::number(i) + "/" + QString::number(pluginlist.size());
splashMessage_ = tr("Loading Plugin %1/%2").arg(i).arg(pluginlist.size()) ;
splash_->showMessage( splashMessage_ , Qt::AlignBottom | Qt::AlignLeft , Qt::white);
QApplication::processEvents();
}
......@@ -216,7 +216,7 @@ void Core::loadPlugins()
emit pluginsInitialized();
emit log(LOGOUT,tr("Loaded ") + QString::number(plugins.size()) + tr(" Plugin(s)") );
emit log(LOGOUT,tr("Loaded %n Plugin(s)","",plugins.size()) );
}
/** @brief slot for loading Plugins
......@@ -320,12 +320,12 @@ void Core::unloadPlugin(QString name){
plugins.erase(plugins.begin() + i);
emit log(LOGOUT,tr("Unloaded Plugin :\t\t ") + name);
emit log(LOGOUT,tr("Unloaded Plugin :\t\t %1").arg( name) );
return;
}
log(LOGERR, tr("Unable to unload plugin '") + name + tr("' (plugin wasn't found)"));
log(LOGERR, tr("Unable to unload plugin '%1' (plugin wasn't found)").arg(name));
}
/** @brief prevent OpenFlipper from loading plugins on the next start (slot)
......@@ -368,7 +368,7 @@ void Core::loadPlugin(QString filename, bool silent){
// Check if it is a BasePlugin
BaseInterface* basePlugin = qobject_cast< BaseInterface * >(plugin);
if ( basePlugin ) {
emit log(LOGOUT,tr("Found Plugin :\t\t ") + basePlugin->name() + tr(" at ") + filename);
emit log(LOGOUT,tr("Found Plugin :\t\t %1 at %2.").arg(basePlugin->name()).arg( filename));
if ( OpenFlipper::Options::gui() && OpenFlipper::Options::splash() ) {
splashMessage_ = splashMessage_ + " " + basePlugin->name() ;
......@@ -384,21 +384,20 @@ void Core::loadPlugin(QString filename, bool silent){
if (plugins[k].name == name_nospace){
if (silent || OpenFlipper::Options::nogui() ){ //dont load the plugin
emit log(LOGWARN, tr("\t\t\t Already loaded from ") + plugins[k].path);
emit log(LOGWARN, tr("\t\t\t Already loaded from %1").arg( plugins[k].path) );
emit log(LOGOUT,"=============================================================================================");
return;
}else{ //ask the user
int ret = QMessageBox::question(coreWidget_,
tr("Plugin already loaded"),
tr("A Plugin with the same name was already loaded from ") +
plugins[k].path + tr(".\n"
tr("A Plugin with the same name was already loaded from %1.\n"
"You can only load the new plugin if you unload the existing one first.\n\n"
"Do you want to unload the existing plugin first?"),
"Do you want to unload the existing plugin first?").arg( plugins[k].path),
QMessageBox::Yes|QMessageBox::No, QMessageBox::No);
if (ret == QMessageBox::Yes)
unloadPlugin(plugins[k].name);
else{
emit log(LOGWARN, tr("\t\t\t Already loaded from ") + plugins[k].path);
emit log(LOGWARN, tr("\t\t\t Already loaded from %1.").arg( plugins[k].path));
emit log(LOGOUT,"=============================================================================================");
return;
}
......@@ -407,7 +406,7 @@ void Core::loadPlugin(QString filename, bool silent){
}
if ( dontLoadPlugins_.contains(basePlugin->name(), Qt::CaseInsensitive) ) {
emit log(LOGWARN,tr("OpenFlipper.ini prevented Plugin ") + basePlugin->name() + tr(" from being loaded! "));
emit log(LOGWARN,tr("OpenFlipper.ini prevented Plugin %1 from being loaded! ").arg( basePlugin->name() ));
emit log(LOGOUT,"=============================================================================================");
return;
}
......@@ -430,7 +429,7 @@ void Core::loadPlugin(QString filename, bool silent){
}
emit log(LOGOUT,tr("Plugin Desciption :\t\t ") + basePlugin->description());
emit log(LOGOUT,tr("Plugin Desciption :\t %1 ").arg( basePlugin->description()) );
supported = "BaseInterface ";
......@@ -1004,12 +1003,9 @@ void Core::loadPlugin(QString filename, bool silent){
QString scriptingName = info.name.remove(" ").toLower();
scriptEngine_.globalObject().setProperty(scriptingName, scriptInstance);
emit log(LOGOUT,tr("Registered scriping with name :\t ") + scriptingName);
info.rpcName = scriptingName;
emit log(LOGOUT,tr("Available scripting functions :"));
QScriptValueIterator it(scriptInstance);
while (it.hasNext()) {
it.next();
......@@ -1022,13 +1018,9 @@ void Core::loadPlugin(QString filename, bool silent){
scriptingFunctions_.push_back( scriptingName + "." + it.name() );
// QScriptValue function = it.value();
// scriptEngine_.globalObject().setProperty(it.name(), function );
emit log(LOGOUT,"\t" + it.name());
}
//Check if the plugin supports RPC-Interface
//Check if the plugin supports RPC-Interface
ScriptInterface* scriptPlugin = qobject_cast< ScriptInterface * >(plugin);
if ( scriptPlugin ) {
supported = supported + "Scripting ";
......@@ -1092,9 +1084,6 @@ void Core::loadPlugin(QString filename, bool silent){
}
emit log(LOGOUT,tr("Supported Interfaces :\t ") + supported);
//========================================================================================
//========================================================================================
......@@ -1124,7 +1113,7 @@ void Core::loadPlugin(QString filename, bool silent){
emit log(LOGOUT,"=============================================================================================");
} else {
emit log(LOGERR,tr("Unable to load Plugin :\t ") + filename );
emit log(LOGERR,tr("Unable to load Plugin :\t %1").arg( filename ) );
emit log(LOGERR,tr("Error was : ") + loader.errorString() );
emit log(LOGOUT,"=============================================================================================");
}
......
......@@ -172,7 +172,7 @@ int Core::loadObject ( QString _filename ) {
return -2;
} else
if (_filename.endsWith(".ofs")) {
emit log(LOGINFO ,tr("Starting script execution of ") + _filename);
emit log(LOGINFO ,tr("Starting script execution of %1.").arg( _filename)) ;
emit executeFileScript(_filename);
} else
return loadObject( DATA_TRIANGLE_MESH, _filename);
......@@ -191,7 +191,7 @@ int Core::loadObject( DataType _type, QString _filename) {
if ( OpenFlipper::Options::gui() ) {
coreWidget_->statusMessage( tr("Loading ") + _filename + " ...");
coreWidget_->statusMessage( tr("Loading %1 ... ").arg(_filename));
if ( !OpenFlipper::Options::loadingSettings() )
coreWidget_->setStatus(ApplicationStatus::PROCESSING );
}
......@@ -201,9 +201,9 @@ int Core::loadObject( DataType _type, QString _filename) {
if ( OpenFlipper::Options::gui() ) {
if ( id != -1 )
coreWidget_->statusMessage( tr("Loading ") + _filename + tr(" ... done"), 4000 );
coreWidget_->statusMessage( tr("Loading %1 ... done").arg(_filename), 4000 );
else
coreWidget_->statusMessage( tr("Loading ") + _filename + tr(" ... failed!"), 4000 );
coreWidget_->statusMessage( tr("Loading %1 ... failed!").arg(_filename), 4000 );
if ( !OpenFlipper::Options::loadingSettings() )
coreWidget_->setStatus(ApplicationStatus::READY );
......@@ -235,7 +235,7 @@ void Core::slotAddEmptyObject( DataType _type , int& _id ) {
void Core::slotCopyObject( int _oldId , int& _newId ) {
if ( _oldId == -1 ) {
emit log(LOGERR,tr("Requested copy for illegal Object id : ") + QString::number(_oldId) );
emit log(LOGERR,tr("Requested copy for illegal Object id: %1").arg(_oldId) );
_newId = -1;
return;
}
......@@ -244,7 +244,7 @@ void Core::slotCopyObject( int _oldId , int& _newId ) {
BaseObject* object = objectRoot_->childExists(_oldId);
if ( !object ) {
emit log(LOGERR,tr("Requested copy for unknown Object id : ") + QString::number(_oldId) );
emit log(LOGERR,tr("Requested copy for unknown Object id: %1 ").arg(_oldId) );
_newId = -1;
return ;
}
......
......@@ -79,36 +79,6 @@ p, li { white-space: pre-wrap; }
</context>
<context>
<name>Core</name>
<message>
<location filename="../../Core/PluginLoader.cc" line="164"/>
<source>Additional Plugin from ini file : </source>
<translation>Zusätzliches Plugin aus INI Datei : </translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="172"/>
<source>Failed to connect to ProgramOptions.ini file: </source>
<translation>Konnte nicht zur ProgramOptions.ini verbinden. Datei: </translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="198"/>
<source>Skipping Plugins : </source>
<translation>Überspringe Plugins : </translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="207"/>
<source>Loading Plugin </source>
<translation>Lade Plugin </translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="219"/>
<source>Loaded </source>
<translation>Geladen</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="219"/>
<source> Plugin(s)</source>
<translation></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="239"/>
<source>Load Plugin</source>
......@@ -127,134 +97,133 @@ Do you want to enable this plugin?</source>
Wollen sie das Plugin dennoch aktivieren?</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="323"/>
<source>Unloaded Plugin : </source>
<translation>Plguin entladen:</translation>
<location filename="../../Core/PluginLoader.cc" line="392"/>
<source>Plugin already loaded</source>
<translation>Plugin bereits geladen</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="328"/>
<source>Unable to unload plugin &apos;</source>
<translation>Kann Plugin nicht entladen &apos;</translation>
<location filename="../../Core/PluginLoader.cc" line="417"/>
<source>Plugin uses security interface. Trying to authenticate against plugin ...</source>
<translation>Das Plugin nutzt die Sicherheitsschnittstelle. Authentifikation beim Plugin ...</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="328"/>
<source>&apos; (plugin wasn&apos;t found)</source>
<translation>&apos; ( Plugin nicht gefunden)</translation>
<location filename="../../Core/PluginLoader.cc" line="423"/>
<source>... ok. Loading plugin </source>
<translation>... ok. Lade Plugin </translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="371"/>
<source>Found Plugin : </source>
<translation>Plugin gefunden : </translation>
<location filename="../../Core/PluginLoader.cc" line="425"/>
<source>... failed. Plugin access denied.</source>
<translation>... Fehlgeschlagen. zugriff auf Plugin verweigert.</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="371"/>
<source> at </source>
<translation> mit Namen </translation>
<location filename="../../Core/PluginLoader.cc" line="164"/>
<source>Additional Plugin from ini file: %1</source>
<translation>Zusätzliches Plugin aus INI Datei: %1</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="387"/>
<location filename="../../Core/PluginLoader.cc" line="401"/>
<source> Already loaded from </source>
<translation> bereits geladen aus </translation>
<location filename="../../Core/PluginLoader.cc" line="172"/>
<source>Failed to connect to ProgramOptions.ini file: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="392"/>
<source>Plugin already loaded</source>
<translation>Plugin bereits geladen</translation>
<location filename="../../Core/PluginLoader.cc" line="198"/>
<source>Skipping Plugins : %1</source>
<translation>Überspringe Plugin:\t %1</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="393"/>
<source>A Plugin with the same name was already loaded from </source>
<translation>Ein Plugin mit dem gleichen Name wurde bereits geladen von </translation>
<location filename="../../Core/PluginLoader.cc" line="207"/>
<source>Loading Plugin %1/%2</source>
<translation>Lade Plugin %1/%2</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="394"/>
<source>.
You can only load the new plugin if you unload the existing one first.
Do you want to unload the existing plugin first?</source>
<message numerus="yes">
<location filename="../../Core/PluginLoader.cc" line="219"/>
<source>Loaded %n Plugin(s)</source>
<translation>
Sie können das neue Plugin nur laden wenn Sie das bestehende vorher entladen.
Wollen Sie das bestehende Plugin entladen?</translation>
<numerusform>%n Plugin geladen</numerusform>
<numerusform>%n Plugins geladen</numerusform>
</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="410"/>
<source>OpenFlipper.ini prevented Plugin </source>
<translation>OpenFlipper.ini verhinderte das laden von </translation>
<location filename="../../Core/PluginLoader.cc" line="323"/>
<source>Unloaded Plugin : %1</source>
<translation>Entladenes Plugin: \t\t %1</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="410"/>
<source> from being loaded! </source>
<translation>!</translation>
<location filename="../../Core/PluginLoader.cc" line="328"/>
<source>Unable to unload plugin &apos;%1&apos; (plugin wasn&apos;t found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="418"/>
<source>Plugin uses security interface. Trying to authenticate against plugin ...</source>
<translation>Das Plugin nutzt die Sicherheitsschnittstelle. Authentifikation beim Plugin ...</translation>
<location filename="../../Core/PluginLoader.cc" line="371"/>
<source>Found Plugin : %1 at %2.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="424"/>
<source>... ok. Loading plugin </source>
<translation>... ok. Lade Plugin </translation>
<location filename="../../Core/PluginLoader.cc" line="387"/>
<source> Already loaded from %1</source>
<translation> Bereits aus %1 geladen</translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="426"/>
<source>... failed. Plugin access denied.</source>
<translation>... Fehlgeschlagen. zugriff auf Plugin verweigert.</translation>
<location filename="../../Core/PluginLoader.cc" line="393"/>
<source>A Plugin with the same name was already loaded from %1.
You can only load the new plugin if you unload the existing one first.
Do you want to unload the existing plugin first?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="433"/>
<source>Plugin Desciption : </source>
<translation>Plugin Beschreibung : </translation>
<location filename="../../Core/PluginLoader.cc" line="400"/>
<source> Already loaded from %1.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="450"/>
<source>Running in nogui mode which is unsupported by this plugin, skipping</source>
<location filename="../../Core/PluginLoader.cc" line="409"/>
<source>OpenFlipper.ini prevented Plugin %1 from being loaded! </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="460"/>
<source>Plugin Uses old style updated_objects! Convert to updatedObject!</source>
<location filename="../../Core/PluginLoader.cc" line="432"/>
<source>Plugin Desciption : %1 </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="466"/>
<source>Plugin Uses old style update_view! Convert to updateView!</source>
<location filename="../../Core/PluginLoader.cc" line="449"/>
<source>Running in nogui mode which is unsupported by this plugin, skipping</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="493"/>
<source>Signal visibilityChanged() now requires objectid or -1 as argument </source>
<location filename="../../Core/PluginLoader.cc" line="459"/>
<source>Plugin Uses old style updated_objects! Convert to updatedObject!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="502"/>
<source>Signal activeObjectChanged() is now objectSelectionChanged( int _objectId ) </source>
<location filename="../../Core/PluginLoader.cc" line="465"/>
<source>Plugin Uses old style update_view! Convert to updateView!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="505"/>
<source>Slot slotActiveObjectChanged() is now slotObjectSelectionChanged( int _objectId ) </source>
<location filename="../../Core/PluginLoader.cc" line="492"/>
<source>Signal visibilityChanged() now requires objectid or -1 as argument </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="1007"/>
<source>Registered scriping with name : </source>
<location filename="../../Core/PluginLoader.cc" line="501"/>
<source>Signal activeObjectChanged() is now objectSelectionChanged( int _objectId ) </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="1095"/>
<source>Supported Interfaces : </source>
<location filename="../../Core/PluginLoader.cc" line="504"/>
<source>Slot slotActiveObjectChanged() is now slotObjectSelectionChanged( int _objectId ) </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="1127"/>
<source>Unable to load Plugin : </source>
<location filename="../../Core/PluginLoader.cc" line="1116"/>
<source>Unable to load Plugin : %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/PluginLoader.cc" line="1128"/>
<location filename="../../Core/PluginLoader.cc" line="1117"/>
<source>Error was : </source>
<translation>Fehler war: </translation>
</message>
......@@ -263,33 +232,40 @@ Wollen Sie das bestehende Plugin entladen?</translation>
<source>No scripting support available, please check if we load a scripting plugin .. Skipping script execution on startup</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/saveFunctions.cc" line="79"/>
<location filename="../../Core/saveFunctions.cc" line="95"/>
<source> ... failed!</source>
<translation> ... Fehlgeschlagen!</translation>
</message>
<message>
<location filename="../../Core/openFunctions.cc" line="175"/>
<source>Starting script execution of </source>
<source>Starting script execution of %1.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/openFunctions.cc" line="194"/>
<source>Loading %1 ... </source>
<translation>Lade %1 ... </translation>
</message>
<message>
<location filename="../../Core/openFunctions.cc" line="204"/>
<location filename="../../Core/openFunctions.cc" line="206"/>
<source>Loading </source>
<translation>Lade </translation>
<source>Loading %1 ... done</source>
<translation>Lade %1 ... ok</translation>
</message>
<message>
<location filename="../../Core/openFunctions.cc" line="206"/>
<location filename="../../Core/saveFunctions.cc" line="79"/>
<location filename="../../Core/saveFunctions.cc" line="95"/>
<source> ... failed!</source>
<translation> ... Fehlgeschlagen!</translation>
<source>Loading %1 ... failed!</source>
<translation>Lade %1 ... fehlgeschlagen!</translation>
</message>
<message>
<location filename="../../Core/openFunctions.cc" line="238"/>
<source>Requested copy for illegal Object id : </source>
<source>Requested copy for illegal Object id: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/openFunctions.cc" line="247"/>
<source>Requested copy for unknown Object id : </source>
<source>Requested copy for unknown Object id: %1 </source>
<translation type="unfinished"></translation>
</message>
<message>
......@@ -459,95 +435,84 @@ Should it be opened as a triangle mesh?</source>
<translation>Initialisiere Hauptfenster</translation>
</message>
<message>
<location filename="../../Core/Core.cc" line="439"/>
<source>Core Scripting initialized with Name : core </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../Core/Core.cc" line="441"/>
<location filename="../../Core/PluginLoader.cc" line="1011"/>
<source>Available scripting functions :</source>
<translation>Vorhandene Script-Funktionen :</translation>
</message>
<message>
<location filename="../../Core/Core.cc" line="498"/>
<location filename="../../Core/Core.cc" line="492"/>
<source>Loading Configuration File </source>
<translation>Lade Konfigurationen </translation>
</message>
<message>
<location filename="../../Core/Core.cc" line="517"/>
<location filename="../../Core/Core.cc" line="511"/>
<source>UTF8-Locale used!</source>
<translation type="unfinished"></translation>
<translation>UTF8-Locale wird benutzt!</translation>
</message>
<message>
<location filename="../../Core/Core.cc" line="603"/>
<location filename="../../Core/Core.cc" line="597"/>
<source>slotMouseEventIdentify from examiner </source>
<translation>slotMouseEventIdentify aus examiner </translation>
</message>
<message>
<location filename="../../Core/Core.cc" line="637"/>
<location filename="../../Core/Core.cc" line="631"/>
<source>slotMouseEvent from examiner </source>
<translation>slotMouseEvent aus examiner </translation>