Author: aschnell Date: Thu Dec 3 15:57:54 2009 New Revision: 59938 URL: http://svn.opensuse.org/viewcvs/yast?rev=59938&view=rev Log: - log untranslated messages Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/modules/Storage.ycp trunk/storage/yast2-storage.spec.in Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=59938&r1=59937&r2=59938&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Thu Dec 3 15:57:54 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Dec 03 15:45:27 CET 2009 - aschnell@suse.de + +- log untranslated messages (requires libstorage 2.19.2) + +------------------------------------------------------------------- Wed Dec 02 15:22:20 CET 2009 - aschnell@suse.de - added extra warning for btrfs used as /boot or as / without Modified: trunk/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=59938&r1=59937&r2=59938&view=diff ============================================================================== --- trunk/storage/storage/src/modules/Storage.ycp (original) +++ trunk/storage/storage/src/modules/Storage.ycp Thu Dec 3 15:57:54 2009 @@ -3715,6 +3715,7 @@ LibStorage::StorageInterface::getCommitInfos(sint, infos); list<map> ret = maplist(any info, infos, { return $[ `destructive : LibStorage::CommitInfo::swig_destructive_get(info), + `native : LibStorage::CommitInfo::swig_native_get(info), `text : LibStorage::CommitInfo::swig_text_get(info) ]; }); return ret; @@ -3725,19 +3726,28 @@ global string ChangeText() { - list<string> texts = maplist(map info, GetCommitInfos(), { + list<map> commit_infos = GetCommitInfos(); + + list<string> natives = maplist(map info, commit_infos, { + string native = String::EscapeTags(info[`native]:""); + if (info[`destructive]:false) + native = "<font color=red>" + native + "</font>"; + return native; + }); + + list<string> texts = maplist(map info, commit_infos, { string text = String::EscapeTags(info[`text]:""); if (info[`destructive]:false) text = "<font color=red>" + text + "</font>"; return text; }); - string ret = (size(texts) == 0) ? "" : HTML::List(texts); + string ret = isempty(texts) ? "" : HTML::List(texts); if (ret != save_chtxt) { - foreach(string text, texts, { - y2milestone("ChangeText %1", text); + foreach(string native, natives, { + y2milestone("ChangeText %1", native); }); save_chtxt = ret; } Modified: trunk/storage/yast2-storage.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/yast2-storage.spec.in?rev=59938&r1=59937&r2=59938&view=diff ============================================================================== --- trunk/storage/yast2-storage.spec.in (original) +++ trunk/storage/yast2-storage.spec.in Thu Dec 3 15:57:54 2009 @@ -5,7 +5,7 @@ License: GPL v2 or later BuildRequires: blocxx-devel boost-devel gcc-c++ libxcrypt-devel openssl-devel sablot swig BuildRequires: docbook-xsl-stylesheets doxygen libxslt perl-XML-Writer sgml-skel update-desktop-files -BuildRequires: libstorage-devel >= 2.19.1 yast2 >= 2.18.19 yast2-core-devel >= 2.18.1 yast2-devtools +BuildRequires: libstorage-devel >= 2.19.2 yast2 >= 2.18.19 yast2-core-devel >= 2.18.1 yast2-devtools BuildRequires: yast2-testsuite yast2-perl-bindings Requires: libstorage = %(echo `rpm -q --queryformat '%{VERSION}' libstorage`) Requires: yast2-perl-bindings yast2-core >= 2.18.3 yast2 >= 2.18.19 yast2-libyui >= 2.18.7 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org