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

List:       kde-i18n-doc
Subject:    [kdepimlibs] kcal: differentiate between 'location' of file and
From:       Nick Shaforostoff <shafff () ukr ! net>
Date:       2011-12-02 22:33:48
Message-ID: 20111202223348.3D4D1A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit c2e873f9d464322b96a1ce53d3b3e7d63170458e by Nick Shaforostoff.
Committed on 02/12/2011 at 23:30.
Pushed by shaforo into branch 'master'.

differentiate between 'location' of file and 'location' of human event

CCMAIL: kde-i18n-doc@kde.org

M  +1    -1    kcal/htmlexport.cpp
M  +7    -7    kcal/incidenceformatter.cpp

http://commits.kde.org/kdepimlibs/c2e873f9d464322b96a1ce53d3b3e7d63170458e

diff --git a/kcal/htmlexport.cpp b/kcal/htmlexport.cpp
index 388935c..cf96031 100644
--- a/kcal/htmlexport.cpp
+++ b/kcal/htmlexport.cpp
@@ -266,7 +266,7 @@ void HtmlExport::createEventList( QTextStream *ts )
   *ts << "    <th>" << i18nc( "@title:column event description",
                               "Event" ) << "</th>" << endl;
   if ( d->mSettings->eventLocation() ) {
-    *ts << "    <th>" << i18nc( "@title:column event locatin",
+    *ts << "    <th>" << i18nc( "@title:column event location",
                                 "Location" ) << "</th>" << endl;
     ++columns;
   }
diff --git a/kcal/incidenceformatter.cpp b/kcal/incidenceformatter.cpp
index de43e95..c58625e 100644
--- a/kcal/incidenceformatter.cpp
+++ b/kcal/incidenceformatter.cpp
@@ -488,7 +488,7 @@ static QString displayViewFormatEvent( const QString &calStr, Event *event,
 
   if ( !event->location().isEmpty() ) {
     tmpStr += "<tr>";
-    tmpStr += "<td><b>" + i18n( "Location:" ) + "</b></td>";
+    tmpStr += "<td><b>" + i18nc( "@title:column event location", "Location:" ) + "</b></td>";
     tmpStr += "<td>" + event->richLocation() + "</td>";
     tmpStr += "</tr>";
   }
@@ -661,7 +661,7 @@ static QString displayViewFormatTodo( const QString &calStr, Todo *todo,
 
   if ( !todo->location().isEmpty() ) {
     tmpStr += "<tr>";
-    tmpStr += "<td><b>" + i18n( "Location:" ) + "</b></td>";
+    tmpStr += "<td><b>" + i18nc( "@title:column to-do location", "Location:" ) + "</b></td>";
     tmpStr += "<td>" + todo->richLocation() + "</td>";
     tmpStr += "</tr>";
   }
@@ -1368,7 +1368,7 @@ static QString invitationDetailsEvent( Event *event, bool noHtmlMode, KDateTime:
     }
   }
 
-  QString sLocation = i18n( "Location unspecified" );
+  QString sLocation = i18nc( "event location", "Location unspecified" );
   if ( !event->location().isEmpty() ) {
     if ( !event->locationIsRich() ) {
       sLocation = Qt::escape( event->location() );
@@ -1452,7 +1452,7 @@ static QString invitationDetailsTodo( Todo *todo, bool noHtmlMode, KDateTime::Sp
     }
   }
 
-  QString sLocation = i18n( "Location unspecified" );
+  QString sLocation = i18nc( "todo location", "Location unspecified" );
   if ( !todo->location().isEmpty() ) {
     if ( !todo->locationIsRich() ) {
       sLocation = Qt::escape( todo->location() );
@@ -2276,7 +2276,7 @@ class IncidenceFormatter::IncidenceCompareVisitor
       }
 
       if ( oldInc->location() != newInc->location() ) {
-        mChanges += i18n( "The location has been changed to: \"%1\"",
+        mChanges += i18nc( "event/todo location", "The location has been changed to: \"%1\"",
                           newInc->richLocation() );
       }
 
@@ -3122,7 +3122,7 @@ QString IncidenceFormatter::ToolTipVisitor::generateToolTip( Incidence *incidenc
 
   if ( !incidence->location().isEmpty() ) {
     tmp += "<br>";
-    tmp += "<i>" + i18n( "Location:" ) + "</i>" + "&nbsp;";
+    tmp += "<i>" + i18nc( "event/todo location", "Location:" ) + "</i>" + "&nbsp;";
     tmp += incidence->richLocation();
   }
 
@@ -3236,7 +3236,7 @@ static QString mailBodyIncidence( Incidence *incidence )
     body += i18n( "Organizer: %1\n", incidence->organizer().fullName() );
   }
   if ( !incidence->location().isEmpty() ) {
-    body += i18n( "Location: %1\n", incidence->richLocation() );
+    body += i18nc( "event/todo location", "Location: %1\n", incidence->richLocation() );
   }
   return body;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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