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

List:       kde-i18n-doc
Subject:    I18n for Kolf
From:       Stefan =?iso-8859-1?q?Asserh=E4ll?= <stefan.asserhall () telia ! com>
Date:       2002-06-30 12:39:24
[Download RAW message or body]

Hello,

Here is a patch to fix some i18n issues for Kolf:

1. I18n strings in *.h files were not included for translation. Fixed
    in Makefile.am.
2. I18n strings from libkdegames were not translated. Fixed by 
    removing comment in main.cpp.
3. I18n strings in course files (names and signs) were not available 
    for translation. Fixed by removing illegal trailing "\s" in tutorial.kolf
    and courses/Medium.kolf.

Ok to commit to CVS?

/ Stefan Asserhäll

["kolf.diff" (text/x-diff)]

Index: Makefile.am
===================================================================
RCS file: /home/kde/kdegames/kolf/Makefile.am,v
retrieving revision 1.15
diff -u -3 -p -r1.15 Makefile.am
--- Makefile.am	19 Jun 2002 23:41:13 -0000	1.15
+++ Makefile.am	30 Jun 2002 11:57:25 -0000
@@ -50,8 +50,8 @@ magic_DATA = kolf.magic
 
 METASOURCES = AUTO
 
-messages: rc.cpp
-	$(XGETTEXT) *.cpp -o $(podir)/kolf.pot
+messages: rc.cpp canvasitem.h game.h
+	$(XGETTEXT) *.cpp canvasitem.h game.h -o $(podir)/kolf.pot
 
 install-data-local:
 	rm -rf $(DESTDIR)$(kde_appsdir)/Games/kolf.desktop
Index: main.cpp
===================================================================
RCS file: /home/kde/kdegames/kolf/main.cpp,v
retrieving revision 1.9
diff -u -3 -p -r1.9 main.cpp
--- main.cpp	20 Jun 2002 21:23:09 -0000	1.9
+++ main.cpp	30 Jun 2002 11:57:25 -0000
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
 
 	QApplication::setColorSpec(QApplication::ManyColor);
 	KApplication a;
-	//KGlobal::locale()->insertCatalogue("libkdegames");
+	KGlobal::locale()->insertCatalogue("libkdegames");
 
 	args->clear();
 
Index: tutorial.kolf
===================================================================
RCS file: /home/kde/kdegames/kolf/tutorial.kolf,v
retrieving revision 1.14
diff -u -3 -p -r1.14 tutorial.kolf
--- tutorial.kolf	22 Jun 2002 18:33:55 -0000	1.14
+++ tutorial.kolf	30 Jun 2002 11:57:25 -0000
@@ -16,7 +16,7 @@ maxstrokes=10
 par=2
 
 [1-sign@2,2|3]
-Comment=<h3>Welcome</h3> to the tutorial course for Kolf!\s
+Comment=<h3>Welcome</h3> to the tutorial course for Kolf!
 botWallVisible=true
 height=74
 leftWallVisible=true
@@ -371,7 +371,7 @@ maxstrokes=10
 par=3
 
 [4-sign@6,3|3]
-Comment=The steepness of a slope is shown when you press Up Arrow or the right mouse \
button. Steepness goes from 8 (steepest) to 1 (shallowest).\s +Comment=The steepness \
of a slope is shown when you press Up Arrow or the right mouse button. Steepness goes \
from 8 (steepest) to 1 (shallowest).  botWallVisible=true
 height=158
 leftWallVisible=true
@@ -480,7 +480,7 @@ topWallVisible=true
 width=138
 
 [6-sign@3,5|4]
-Comment=<h3>Puddles (Water)</h3>Hitting into a puddle (blue) adds a penalty stroke \
to your score, and your ball is placed outside the puddle.\s +Comment=<h3>Puddles \
(Water)</h3>Hitting into a puddle (blue) adds a penalty stroke to your score, and \
your ball is placed outside the puddle.  botWallVisible=true
 height=145
 leftWallVisible=true
@@ -505,7 +505,7 @@ maxstrokes=10
 par=2
 
 [7-sign@130,2|4]
-Comment=<h3>Windmills</h3>Windmills (brown base with moving arm) have brown walls \
(or half walls). The  windmill arm's speed may vary by hole.\s \
+Comment=<h3>Windmills</h3>Windmills (brown base with moving arm) have brown walls \
(or half walls). The  windmill arm's speed may vary by hole.  botWallVisible=true
 height=206
 leftWallVisible=true
Index: courses/Medium.kolf
===================================================================
RCS file: /home/kde/kdegames/kolf/courses/Medium.kolf,v
retrieving revision 1.12
diff -u -3 -p -r1.12 Medium.kolf
--- courses/Medium.kolf	25 Jun 2002 01:11:52 -0000	1.12
+++ courses/Medium.kolf	30 Jun 2002 11:57:26 -0000
@@ -1,7 +1,7 @@
 [0-course@-50,-50]
-Name=Medium Course\s
+Name=Medium Course
 author=Jason Katz-Brown
-name=Medium Course\s
+name=Medium Course
 
 [1-ball@342,322]
 dummykey=true



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

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