Bug 84934

Summary: welcome msg not translatable
Product: [Applications] akregator Reporter: Wilbert Berendsen <wbsoft>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: LO    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Wilbert Berendsen 2004-07-11 18:28:47 UTC
Version:           1.0-beta4 "PhantomsRSS" (using KDE 3.2.91 (CVS >= 20040706), compiled sources)
Compiler:          gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.5-gentoo-r1

The welcome message in the viewer is not translatable because it is contained in src/welcome.html and loaded from the data dir.

I propose to put the entire welcome message in a i18n string so it appears in the po file. Or, the technique used by KMail and Konqueror (webprofile) can be used, which displays a fancy welcome page.
Comment 1 Wilbert Berendsen 2004-07-11 18:29:30 UTC
forgot to say: aKregator really rocks!! Very nice app, just discovered it today and updated the Dutch translation :-)
Comment 2 Teemu Rytilahti 2004-07-12 00:57:20 UTC
Yes this is known problem and I've been thinking if we should wait for the new welcome page (KMail/Konqi style) until i18nizing it. It depends on Berkus/Sashmit, but if we decide not to wait for that this can be implemented fairly easily...
Comment 3 Stanislav Karchebny 2004-07-12 01:51:32 UTC
Teemu if you have spare time you could try to implement it the way KMail/Konqy does. Attach the patch here, I don't want it in cvs yet.
Comment 4 Sashmit Bhaduri 2004-07-15 14:45:43 UTC
I think the Konqi/kmail intro screen is a bit heavy, although it looks cool. Hopefully we come up with something that looks as cool, but isn't as heavy, and then filter it back down to konqui and kmail in kde 4.0 :-)
Comment 5 Sashmit Bhaduri 2004-07-19 18:38:00 UTC
CVS commit by sashmit: 

make welcome msg translatable

CCMAIL: 84934-done@bugs.kde.org


  M +33 -1     articleviewer.cpp   1.42


--- kdenonbeta/akregator/src/articleviewer.cpp  #1.41:1.42
@@ -49,5 +49,36 @@ ArticleViewer::ArticleViewer(QWidget *pa
 void ArticleViewer::openDefault()
 {
-    openURL( ::locate( "data", "akregatorpart/welcome.html" ) );
+    QString text= QString("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"
+                        "<html><head><title></title></head><body>\n");
+
+    text += QString("<h1>%1</h1>\n"
+                    "<p>%2</p><ul>\n"
+                    "<li>%3</li><ul>\n"
+                    "<li><b>%4</b>%5</li>\n"
+                    "<li><b>%6</b>%7</li>\n"
+                    "<li><b>%8</b>%9</li>")
+                    .arg(i18n("Welcome to aKregator"))
+                    .arg(i18n("Use the tree to manage your feeds."))
+                    .arg(i18n("Right click a folder, such as \"All Feeds\", and choose:"))
+                    .arg(i18n("Add..."))
+                    .arg(i18n(" to add a new feed to your feed list."))
+                    .arg(i18n("New Folder..."))
+                    .arg(i18n(" to add a new folder to your list."))
+                    .arg(i18n("Edit"))
+                    .arg(i18n(" to edit an existing feed or folder."));
+   
+    text += QString("<li><b>%1</b>%2</li>\n"
+                    "<li><b>%3</b>%4</li></ul></ul>\n"
+                    "<p>%5</p></body></html>")
+                    .arg(i18n("Delete"))
+                    .arg(i18n(" to remove an existing feed or folder."))
+                    .arg(i18n("Fetch"))
+                    .arg(i18n(" to update a feed or folder."))
+                    .arg(i18n("Click \"Fetch All\" to update all feeds."));
+
+    begin();
+    write(text);
+    end();
+
 }
 
@@ -265,2 +296,3 @@ void ArticleViewer::slotOpenLinkInternal
 
 #include "articleviewer.moc"
+// vim: set et ts=4 sts=4 sw=4: