Skip to content

Commit

Permalink
Merge pull request #3056 from mzazrivec/make_labels_translatable_in_c…
Browse files Browse the repository at this point in the history
…loud_subnet_helper_ts

cloud_subnet_helper textual summary: make labels translatable
(cherry picked from commit 1b593cd)

https://bugzilla.redhat.com/show_bug.cgi?id=1526083
  • Loading branch information
martinpovolny authored and simaishi committed Dec 14, 2017
1 parent 84185ba commit 50856c3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/helpers/cloud_subnet_helper/textual_summary.rb
Expand Up @@ -27,11 +27,11 @@ def textual_group_relationships
# Items
#
def textual_type
ui_lookup(:model => @record.type)
{:label => _('Type'), :value => ui_lookup(:model => @record.type)}
end

def textual_cidr
@record.cidr
{:label => _('CIDR'), :value => @record.cidr}
end

def textual_gateway
Expand Down Expand Up @@ -63,7 +63,7 @@ def textual_ip_version
end

def textual_parent_ems_cloud
@record.ext_management_system.try(:parent_manager)
textual_link(@record.ext_management_system.try(:parent_manager), :label => _('Parent Cloud Provider'))
end

def textual_instances
Expand All @@ -77,15 +77,15 @@ def textual_instances
end

def textual_cloud_network
@record.cloud_network
textual_link(@record.cloud_network, :label => _('Cloud Network'))
end

def textual_cloud_tenant
@record.cloud_tenant
end

def textual_network_router
@record.network_router
textual_link(@record.network_router, :label => _('Network Router'))
end

def textual_parent_subnet
Expand All @@ -104,6 +104,6 @@ def textual_managed_subnets
end

def textual_availability_zone
@record.availability_zone
textual_link(@record.availability_zone, :label => _('Availability Zone'))
end
end

0 comments on commit 50856c3

Please sign in to comment.