[Ktutorial-commits] SF.net SVN: ktutorial:[273] trunk/ktutorial
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2010-10-03 19:17:33
|
Revision: 273 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=273&view=rev Author: danxuliu Date: 2010-10-03 19:17:27 +0000 (Sun, 03 Oct 2010) Log Message: ----------- Fix Krazy2 i18ncheckarg issues. Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/src/serialization/Serialization.cpp trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp trunk/ktutorial/ktutorial-library/src/view/TutorialManagerDialog.cpp Modified: trunk/ktutorial/ktutorial-editor/src/serialization/Serialization.cpp =================================================================== --- trunk/ktutorial/ktutorial-editor/src/serialization/Serialization.cpp 2010-10-03 19:14:30 UTC (rev 272) +++ trunk/ktutorial/ktutorial-editor/src/serialization/Serialization.cpp 2010-10-03 19:17:27 UTC (rev 273) @@ -38,8 +38,8 @@ Q_ASSERT(url.isValid()); if (url.fileName(KUrl::ObeyTrailingSlash).isEmpty()) { - throw IOException(i18n("A file was expected, but '%1' is a folder", - url.prettyUrl())); + throw IOException(i18nc("@info/plain", "A file was expected, but '%1' " + "is a folder", url.prettyUrl())); } QString temporaryFileName; Modified: trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp =================================================================== --- trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp 2010-10-03 19:14:30 UTC (rev 272) +++ trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp 2010-10-03 19:17:27 UTC (rev 273) @@ -64,7 +64,7 @@ textEdit->setAttribute(Qt::WA_DeleteOnClose); textEdit->setWindowFlags(Qt::Window); textEdit->setObjectName("usingKTutorialTextEdit"); - textEdit->setText(i18nc("Plain text in a QTextEdit", + textEdit->setText(i18nc("@info/plain Plain text in a QTextEdit", "Look at me! I am the text area!")); textEdit->show(); @@ -136,9 +136,10 @@ UsingKTutorial::UsingKTutorial(): Tutorial(0) { mTutorialInformation = new TutorialInformation("usingKTutorial"); - mTutorialInformation->setName(i18n("Using the tutorials")); - mTutorialInformation->setDescription(i18n("This tutorial shows how the " - "tutorial system works")); + mTutorialInformation->setName(i18nc("@info/plain", "Using the tutorials")); + mTutorialInformation->setDescription(i18nc("@info/plain", "This tutorial " + "shows how the tutorial system " + "works")); //Step start Step* startStep = new Step("start"); @@ -245,8 +246,8 @@ highlightTextEditStep->setText(i18nc("@info", "<para>Sometimes, a tutorial may provide a link to a <emphasis>widget" "</emphasis> (an element of the graphical user interface, like a button). For " -"example, <a href=\"widget:usingKTutorialTextEdit\">this is a link to the text " -"area</a>.</para>" +"example, <link url=\"widget:usingKTutorialTextEdit\">this is a link to the " +"text area</link>.</para>" "<para>When you click on a link to a widget, the widget is highlighted to help " "you to spot it. If you click again on it, the highlighting will be stopped. " "In this example it is pretty clear what the text area refers to, but it can " Modified: trunk/ktutorial/ktutorial-library/src/view/TutorialManagerDialog.cpp =================================================================== --- trunk/ktutorial/ktutorial-library/src/view/TutorialManagerDialog.cpp 2010-10-03 19:14:30 UTC (rev 272) +++ trunk/ktutorial/ktutorial-library/src/view/TutorialManagerDialog.cpp 2010-10-03 19:17:27 UTC (rev 273) @@ -44,7 +44,7 @@ ui->tutorialsList->setModel(new TutorialListModel(tutorialManager, this)); setButtonIcon(User1, KIcon("dialog-ok")); - setButtonText(User1, i18nc("@action:button", "Start")); + setButtonText(User1, i18nc("@action:button Used to start a tutorial", "Start")); setButtonToolTip(User1, i18nc("@info:tooltip", "Start the selected tutorial")); setButtonWhatsThis(User1, i18nc("@info:whatsthis", "Start the selected tutorial")); setDefaultButton(User1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |