Author: aschnell Date: Thu Aug 28 15:19:46 2008 New Revision: 50456 URL: http://svn.opensuse.org/viewcvs/yast?rev=50456&view=rev Log: - work on help texts Modified: trunk/storage/storage/src/include/ep-all.ycp trunk/storage/storage/src/include/ep-dm.ycp trunk/storage/storage/src/include/ep-hd.ycp trunk/storage/storage/src/include/ep-log.ycp trunk/storage/storage/src/include/ep-lvm.ycp trunk/storage/storage/src/include/ep-raid.ycp trunk/storage/storage/src/include/ep-unused.ycp Modified: trunk/storage/storage/src/include/ep-all.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-all.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-all.ycp (original) +++ trunk/storage/storage/src/include/ep-all.ycp Thu Aug 28 15:19:46 2008 @@ -24,13 +24,32 @@ UI::ReplaceWidget(`tree_panel, Greasemonkey::Transform( `VBox( + // dialog heading, %1 is replaced with hostname `IconAndHeading(sformat(_("Available Storage on %1"), short_hostname), all_icon), `Table(`id(`table), `opt(`keepSorting, `notify), table_header, table_contents) )) ); - string helptext = _("<p>Help about view with all devices TODO.</p>"); + // helptext + string helptext = _("<p>This view shows all storage devices +available.</p>"); + + map display_info = UI::GetDisplayInfo(); + + if (!display_info["TextMode"]:false) + { + // helptext + helptext = helptext + _("<p>By double clicking on a table entry +you can navigate to the view with detailed information about the +device.</p>"); + } + else + { + // helptext + helptext = helptext + _("<p>By selecting a table entry you can +navigate to the view with detailed information about the device.</p>"); + } Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } Modified: trunk/storage/storage/src/include/ep-dm.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-dm.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-dm.ycp (original) +++ trunk/storage/storage/src/include/ep-dm.ycp Thu Aug 28 15:19:46 2008 @@ -38,7 +38,10 @@ ) ); - string helptext = _("<p>DM TODO</p>"); + // helptext + string helptext = _("<p>This view shows all Device Mapper devices +except for those already included in some other view. Thus Multipath Disks, +BIOS RAIDs and LVM logical volumes are not shown here.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } @@ -66,7 +69,9 @@ ) ); - string helptext = _("<p>DM TODO</p>"); + // helptext + string helptext = _("<p>This view shows detailed information about the +selected Device Mapper device.</p>"); Wizard::RestoreHelp(helptext + StorageFields::OverviewHelptext(fields)); } @@ -111,7 +116,9 @@ ) ); - string helptext = _("<p>DM TODO</p>"); + // helptext + string helptext = _("<p>This view shows all devices used by the +selected Device Mapper device.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } Modified: trunk/storage/storage/src/include/ep-hd.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-hd.ycp (original) +++ trunk/storage/storage/src/include/ep-hd.ycp Thu Aug 28 15:19:46 2008 @@ -217,7 +217,9 @@ ) ); - string helptext = _("<p>HD TODO</p>"); + // helptext + string helptext = _("<p>This view shows detailed information about the +selected hard disk.</p>"); Wizard::RestoreHelp(helptext + StorageFields::OverviewHelptext(fields)); } @@ -291,7 +293,9 @@ ) )); - string helptext = _("<p>HD TODO</p>"); + // helptext + string helptext = _("<p>This view shows all partitions of the selected +hard disk.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } @@ -355,7 +359,10 @@ ) ); - string helptext = _("<p>Disk TODO</p>"); + // helptext + string helptext = _("<p>This view shows all devices used by the +selected hard disk. The table is non-empty only for BIOS RAIDs and Multipath +Disks.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } @@ -427,7 +434,9 @@ ) ); - string helptext = _("<p>HD TODO</p>"); + // helptext + string helptext = _("<p>This view shows detailed information about the +selected partition.</p>"); Wizard::RestoreHelp(helptext + StorageFields::OverviewHelptext(fields)); } Modified: trunk/storage/storage/src/include/ep-log.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-log.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-log.ycp (original) +++ trunk/storage/storage/src/include/ep-log.ycp Thu Aug 28 15:19:46 2008 @@ -24,7 +24,10 @@ ) )); - Wizard::RestoreHelp("Log help TODO"); + // helptext, %1 is replaced by a filename + string helptext = sformat(_("This view shows the content of %1."), file); + + Wizard::RestoreHelp(helptext); LogViewCore::Start(`id(`log), $[ "file" : file ]); } Modified: trunk/storage/storage/src/include/ep-lvm.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-lvm.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-lvm.ycp (original) +++ trunk/storage/storage/src/include/ep-lvm.ycp Thu Aug 28 15:19:46 2008 @@ -80,7 +80,9 @@ ) ); - string helptext = _("<p>LVM TODO</p>"); + // helptext + string helptext = _("<p>This view shows detailed information about the +selected volume group.</p>"); Wizard::RestoreHelp(helptext + StorageFields::OverviewHelptext(fields)); } @@ -135,7 +137,9 @@ ) ); - string helptext = _("<p>LVM TODO</p>"); + // helptext + string helptext = _("<p>This view shows all logical volumes of the +selected volume group.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } @@ -191,7 +195,9 @@ ) ); - string helptext = _("<p>LVM TODO</p>"); + // helptext + string helptext = _("<p>This view shows all physical volumes used by +the selected volume group.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } @@ -255,7 +261,9 @@ ) ); - string helptext = _("<p>LVM TODO</p>"); + // helptext + string helptext = _("<p>This view shows detailed information about the +selected logical volume.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } Modified: trunk/storage/storage/src/include/ep-raid.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-raid.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-raid.ycp (original) +++ trunk/storage/storage/src/include/ep-raid.ycp Thu Aug 28 15:19:46 2008 @@ -84,7 +84,9 @@ ) ); - string helptext = _("<p>RAID TODO</p>"); + // helptext + string helptext = _("<p>This view shows detailed information about the +selected RAID.</p>"); Wizard::RestoreHelp(helptext + StorageFields::OverviewHelptext(fields)); } @@ -135,7 +137,9 @@ ) ); - string helptext = _("<p>RAID TODO</p>"); + // helptext + string helptext = _("<p>This view shows all devices used by the +selected RAID.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } Modified: trunk/storage/storage/src/include/ep-unused.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-unused.ycp?rev=50456&r1=50455&r2=50456&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-unused.ycp (original) +++ trunk/storage/storage/src/include/ep-unused.ycp Thu Aug 28 15:19:46 2008 @@ -53,7 +53,10 @@ )) ); - string helptext = _("<p>Unused TODO</p>"); + // helptext + string helptext = _("<p>This view shows devices that have no mount +point assigned to them, disks that are unpartitioned and logical volumes that +have no logical volumes.</p>"); Wizard::RestoreHelp(helptext + StorageFields::TableHelptext(fields)); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org