[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    KDE/kdeedu/rocs/src
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2010-01-04 23:20:57
Message-ID: 1262647257.836764.24559.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1070130 by aacid:

Add some i18n here and there
Reported by Yuri Chornoivan
Acked by Tomaz
CCMAIL: kde-i18n-doc@kde.org


 M  +1 -1      Core/graph.cpp  
 M  +1 -1      Core/graph.h  
 M  +1 -1      Interface/GraphLayers.cpp  
 M  +3 -3      Interface/MainWindow.cpp  
 M  +1 -1      Models/model_GraphLayers.cpp  
 M  +1 -1      UndoRedo/URAddNode.cpp  


--- trunk/KDE/kdeedu/rocs/src/Core/graph.cpp #1070129:1070130
@@ -44,7 +44,7 @@
         remove(n);
     }
     if (_document->size() == 0){
-	_document->addGraph("Untitled");
+	_document->addGraph(i18n("Untitled"));
     }
     kDebug() << "_document.size" << _document->size();
 }
--- trunk/KDE/kdeedu/rocs/src/Core/graph.h #1070129:1070130
@@ -167,7 +167,7 @@
     \p name the name of the node to be returned.
     \return a node, or null if an invalid name is provided.
     */
-    Node* node(const QString& name = "Untitled");
+    Node* node(const QString& name = i18n("Untitled"));
 
     /*! removes a node.
     \p n the node to be removed.
--- trunk/KDE/kdeedu/rocs/src/Interface/GraphLayers.cpp #1070129:1070130
@@ -51,7 +51,7 @@
 void GraphLayers::btnADDClicked() {
     QString name = _lineEdit->text();
     if (name == QString()) {
-        name = "Untitled" + QString("%1").arg(_mainWindow->activeDocument()->count());
+        name = i18n("Untitled%1", _mainWindow->activeDocument()->count());
     }
     _mainWindow->activeDocument()->addGraph(name);
 }
--- trunk/KDE/kdeedu/rocs/src/Interface/MainWindow.cpp #1070129:1070130
@@ -85,8 +85,8 @@
     setupActions();
 
     // this will create a new opened file by default
-    setActiveGraphDocument( new GraphDocument("Untitled", 800, 600));
-    _activeGraphDocument->addGraph("Untitled0");
+    setActiveGraphDocument( new GraphDocument(i18n("Untitled"), 800, 600));
+    _activeGraphDocument->addGraph(i18n("Untitled0"));
     setupGUI();
     _moveNodeAction->setView( _graphVisualEditor->view() );
 
@@ -291,7 +291,7 @@
   _graphVisualEditor->scene()->clearGraph();
   _graphVisualEditor->scene()->setActiveGraphDocument(0);
   delete _activeGraphDocument;
-  setActiveGraphDocument(new GraphDocument("Untitled", 800,600));
+  setActiveGraphDocument(new GraphDocument(i18n("Untitled"), 800,600));
   if (name.isEmpty()){
     _activeGraphDocument->addGraph(i18n("Untitled0"));
   }
--- trunk/KDE/kdeedu/rocs/src/Models/model_GraphLayers.cpp #1070129:1070130
@@ -80,7 +80,7 @@
     if ( _document == 0) return false;
 
     beginInsertRows(QModelIndex(), position, position);
-    _document->addGraph(QString("Untitled%1").arg(rowCount()));
+    _document->addGraph(i18n("Untitled%1", rowCount()));
     kDebug() << "Called!";
     endInsertRows();
     return true;
--- trunk/KDE/kdeedu/rocs/src/UndoRedo/URAddNode.cpp #1070129:1070130
@@ -35,6 +35,6 @@
 }
 
 void URAddNode::redo() {
-    Node *n = _graph->addNode("Untitled");
+    Node *n = _graph->addNode(i18n("Untitled"));
     n->setPos(_pos.x(), _pos.y());
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic