[Pkg-owncloud-commits] [owncloud-client] 101/333: Keep string translatable

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 5e012366ab2548bc3167e22b6174cee09307aa14
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Mar 6 15:01:34 2014 +0100

    Keep string translatable
    
    (In french, one may want to add a space before the colon.
    Other languages may want to change the order)
    
    Also use the two argument version of arg() to avoid issues if the first
    string contains a '%1' sign
---
 src/mirall/folder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mirall/folder.cpp b/src/mirall/folder.cpp
index 184b190..8032554 100644
--- a/src/mirall/folder.cpp
+++ b/src/mirall/folder.cpp
@@ -310,7 +310,7 @@ void Folder::bubbleUpSyncResult()
 
     foreach (const SyncFileItem &item, _syncResult.syncFileItemVector() ) {
         if( item._status == SyncFileItem::FatalError || item._status == SyncFileItem::NormalError ) {
-            slotCSyncError( QString::fromLatin1("%1: %2").arg(item._file).arg(item._errorString) );
+            slotCSyncError( tr("%1: %2").arg(item._file, item._errorString) );
             logger->postOptionalGuiLog(item._file, item._errorString);
 
         } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list