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

List:       kde-commits
Subject:    [rocs] /: Enable localization for API description.
From:       Andreas Cord-Landwehr <cordlandwehr () kde ! org>
Date:       2013-05-21 19:26:12
Message-ID: 20130521192612.91272A6081 () git ! kde ! org
[Download RAW message or body]

Git commit 2c55dc01802c785951521cf0f6b468f3281d4050 by Andreas Cord-Landwehr.
Committed on 21/05/2013 at 21:25.
Pushed by cordlandwehr into branch 'master'.

Enable localization for API description.

M  +1    -1    App/InterfacePlugins/ApiDoc/ApiDocManager.cpp
M  +1    -0    RocsCore/DataStructures/Graph/GraphEdge.xml
M  +1    -0    RocsCore/DataStructures/Graph/GraphNode.xml
M  +1    -0    RocsCore/DataStructures/Graph/GraphStructure.xml
M  +1    -0    RocsCore/DataStructures/LinkedList/ListNode.xml
M  +1    -0    RocsCore/DataStructures/LinkedList/ListStructure.xml
M  +1    -0    RocsCore/Messages.sh

http://commits.kde.org/rocs/2c55dc01802c785951521cf0f6b468f3281d4050

diff --git a/App/InterfacePlugins/ApiDoc/ApiDocManager.cpp \
b/App/InterfacePlugins/ApiDoc/ApiDocManager.cpp index 839c210..b69bc3f 100644
--- a/App/InterfacePlugins/ApiDoc/ApiDocManager.cpp
+++ b/App/InterfacePlugins/ApiDoc/ApiDocManager.cpp
@@ -191,7 +191,7 @@ bool ApiDocManager::loadObjectApi(const KUrl &path)
         !descriptionNode.isNull();
         descriptionNode = descriptionNode.nextSiblingElement())
     {
-        paragraphs.append(descriptionNode.text());
+        paragraphs.append(i18n(descriptionNode.text().toUtf8()));
     }
     objectApi->setDescription(paragraphs);
 
diff --git a/RocsCore/DataStructures/Graph/GraphEdge.xml \
b/RocsCore/DataStructures/Graph/GraphEdge.xml index dd2c0a6..9dcd438 100644
--- a/RocsCore/DataStructures/Graph/GraphEdge.xml
+++ b/RocsCore/DataStructures/Graph/GraphEdge.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <object inherit="Pointer">
 <name>Graph Edge</name>
 <id>GraphEdge</id>
diff --git a/RocsCore/DataStructures/Graph/GraphNode.xml \
b/RocsCore/DataStructures/Graph/GraphNode.xml index 0a369c5..ffd6ef0 100644
--- a/RocsCore/DataStructures/Graph/GraphNode.xml
+++ b/RocsCore/DataStructures/Graph/GraphNode.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <object inherit="Data">
 <name>Graph Node</name>
 <id>GraphNode</id>
diff --git a/RocsCore/DataStructures/Graph/GraphStructure.xml \
b/RocsCore/DataStructures/Graph/GraphStructure.xml index 0822061..a814a25 100644
--- a/RocsCore/DataStructures/Graph/GraphStructure.xml
+++ b/RocsCore/DataStructures/Graph/GraphStructure.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <object inherit="DataStructure">
 <name>Graph Data Structure</name>
 <id>GraphStructure</id>
diff --git a/RocsCore/DataStructures/LinkedList/ListNode.xml \
b/RocsCore/DataStructures/LinkedList/ListNode.xml index 6ea9e28..205cbf9 100644
--- a/RocsCore/DataStructures/LinkedList/ListNode.xml
+++ b/RocsCore/DataStructures/LinkedList/ListNode.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <object inherit="Data">
 <name>List Node</name>
 <id>ListNode</id>
diff --git a/RocsCore/DataStructures/LinkedList/ListStructure.xml \
b/RocsCore/DataStructures/LinkedList/ListStructure.xml index fc52a8e..dea121e 100644
--- a/RocsCore/DataStructures/LinkedList/ListStructure.xml
+++ b/RocsCore/DataStructures/LinkedList/ListStructure.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <object inherit="DataStructure">
 <name>Linked List Data Structure</name>
 <id>ListStructure</id>
diff --git a/RocsCore/Messages.sh b/RocsCore/Messages.sh
index 360daed..1b7ec03 100644
--- a/RocsCore/Messages.sh
+++ b/RocsCore/Messages.sh
@@ -1,4 +1,5 @@
 #! /usr/bin/env bash
 $EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp
+extractrc --context="Scripting API Description" --tag-group=none --tag=para `find \
DataStructures/ -name '*.xml'` >> rc.cpp  $XGETTEXT `find . -name \*.cpp` -o \
$podir/rocscore.pot  rm -f rc.cpp


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

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