Show
Ignore:
Timestamp:
10/08/09 01:27:39 (4 years ago)
Author:
jow
Message:

libs/cbi: i18n for zone picker

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/cbi/luasrc/view/cbi/firewall_zonelist.htm

    r5368 r5369  
    3030 
    3131<ul style="margin:0; list-style-type:none"> 
    32     <% for _, zone in ipairs(zones) do %><%# --utl.spairs(zones, function(a,b) return (zones[a]:name() < zones[b]:name()) end) do %> 
     32    <% for _, zone in utl.spairs(zones, function(a,b) return (zones[a]:name() < zones[b]:name()) end) do %> 
    3333    <li style="padding:0.5em"> 
    3434        <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%=attr("id", cbid .. "." .. zone:name()) .. attr("name", cbid) .. attr("value", zone:name()) .. ifattr(value == zone:name(), "checked", "checked")%> /> &nbsp; 
     
    4646                <% end %> 
    4747            <% end %> 
    48             <% if empty then %><em>(no interfaces attached)</em><% end %> 
     48            <% if empty then %><em><%:a_s_ipt_zone_empty (no interfaces attached)%></em><% end %> 
    4949        </label> 
    5050    </li> 
     
    5454        <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%=attr("id", cbid .. "_new") .. attr("name", cbid) .. attr("value", "-") .. ifattr(not value, "checked", "checked")%> /> &nbsp; 
    5555        <div style="background-color:<%=fwm.zone.get_color()%>; padding:0.5em; display:inline"> 
    56             <label<%=attr("for", cbid .. "_new")%>><em>unspecified / create:&nbsp;</em></label> 
     56            <label<%=attr("for", cbid .. "_new")%>><em><%:a_s_ipt_zone_unspec_create unspecified -or- create:%>&nbsp;</em></label> 
    5757            <input style="width:6em" type="text"<%=attr("name", cbid .. ".newzone")%> /> 
    5858        </div>