[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/lokalize/src/catalog/gettext
From: Nickolai Shaforostoff <shafff () ukr ! net>
Date: 2009-05-17 12:44:24
Message-ID: 1242564264.811395.24785.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 969061 by shaforo:
fix original diff display
M +1 -1 gettextexport.cpp
M +1 -2 gettextstorage.cpp
--- trunk/KDE/kdesdk/lokalize/src/catalog/gettext/gettextexport.cpp #969060:969061
@@ -235,7 +235,7 @@
//TODO remove this for KDE 4.4
int pos=0;
while ((pos=text.indexOf("\\\"",pos))!=-1)
- if (pos==0 || (pos>0 && text.at(pos-1)!='\\'))
+ if (pos==0 || text.at(pos-1)!='\\')
text.replace(pos,2,'"');
text.replace('"',"\\\"");
#if 0
--- trunk/KDE/kdesdk/lokalize/src/catalog/gettext/gettextstorage.cpp #969060:969061
@@ -152,7 +152,6 @@
QVector<AltTrans> GettextStorage::altTrans(const DocPosition& pos) const
{
QStringList prev=m_entries.at(pos.entry).comment().split('\n').filter(QRegExp("^#\\|"));
- QString newStr=source(pos);
QString oldSingular;
QString oldPlural;
@@ -180,7 +179,7 @@
QVector<AltTrans> result;
if (!cur->isEmpty())
- result<<AltTrans(CatalogString(userVisibleWordDiff(*cur,newStr,Project::instance()->accel(),Project::instance()->markup(),Html)));
+ result<<AltTrans(CatalogString(*cur));
return result;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic