Author: kmachalkova
Date: Thu Apr 10 13:57:00 2008
New Revision: 46340
URL: http://svn.opensuse.org/viewcvs/yast?rev=46340&view=rev
Log:
Use current (short) hostname instead of hardcoded
one (needs new yast2 base package)
Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp
branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp?rev=46340&r1=46339&r2=46340&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-all.ycp Thu Apr 10 13:57:00 2008
@@ -49,7 +49,10 @@
void CreateAllPanel(any user_data)
{
+ import "Hostname";
+
term header = StorageFields::TableHeader(fields);
+ string short_hostname = Hostname::CurrentHostname();
map target_map = Storage::GetTargetMap();
list table_list = StorageFields::TableContents(fields, target_map, predicate_all);
@@ -57,7 +60,7 @@
UI::ReplaceWidget(`tree_panel,
Greasemonkey::Transform(
`VBox(
- `Left(`Heading("Available Storage on pandora")),
+ `Left(`Heading( sformat(_("Available Storage on %1"), short_hostname))),
`HBox(`HStretch(),
`ComboBoxSelected(`id(`filter), `opt(`notify), "Show",
[`item(`id(`all), "All"),
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp?rev=46340&r1=46339&r2=46340&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp Thu Apr 10 13:57:00 2008
@@ -9,6 +9,7 @@
textdomain "storage";
+ import "Hostname";
import "TabPanel";
import "TreePanel";
import "Popup";
@@ -116,7 +117,9 @@
map tg = Storage::GetTargetMap();
StorageFields::IterateTargetMap(tg, callback);
- list<term> tree = [ `item(`id(`all), "pandora", open(`all), [
+ string short_hostname = Hostname::CurrentHostname();
+
+ list<term> tree = [ `item(`id(`all), short_hostname, open(`all), [
`item(`id(`hd), "Hard Disks", open(`hd), subtree[`hd]:[]),
`item(`id(`lvm), "Volume Management", open(`lvm), subtree[`lvm]:[]),
`item(`id(`md), "RAID", open(`md), subtree[`md]:[]),
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org