i18n support

This commit is contained in:
Tony Air 2017-11-07 07:04:39 +07:00 committed by GitHub
parent 2a9df8695d
commit 4a052383e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,35 +17,35 @@
<% with $BetterNavigator %> <% with $BetterNavigator %>
<% if $ArchiveLink.Active %> <% if $ArchiveLink.Active %>
<% if $EditLink %><a href="$EditLink" target="_blank"><span class="bn-icon-edit"></span>Restore</a><% end_if %> <% if $EditLink %><a href="$EditLink" target="_blank"><span class="bn-icon-edit"></span><%t BetterNavigator.Restore 'Restore' %></a><% end_if %>
<% else %> <% else %>
<% if not $LiveLink.Active %> <% if not $LiveLink.Active %>
<% if $LiveLink.Link %> <% if $LiveLink.Link %>
<a href="$LiveLink.Link"><span class="bn-icon-view"></span>View live</a> <a href="$LiveLink.Link"><span class="bn-icon-view"></span><%t BetterNavigator.ViewLive 'View live' %></a>
<% else %> <% else %>
<span class="bn-disabled"><span class="bn-icon-view"></span>Not yet published</span> <span class="bn-disabled"><span class="bn-icon-view"></span><%t BetterNavigator.NotPublished 'Not yet published' %></span>
<% end_if %> <% end_if %>
<% end_if %> <% end_if %>
<% if not $StageLink.Active %> <% if not $StageLink.Active %>
<% if $StageLink.Link %> <% if $StageLink.Link %>
<a href="$StageLink.Link"><span class="bn-icon-view"></span>View draft</a> <a href="$StageLink.Link"><span class="bn-icon-view"></span><%t BetterNavigator.ViewDraft 'View draft' %></a>
<% else %> <% else %>
<span class="bn-disabled"><span class="bn-icon-view"></span>Deleted from draft site</span> <span class="bn-disabled"><span class="bn-icon-view"></span><%t BetterNavigator.DeletedFromDraft 'Deleted from draft site' %></span>
<% end_if %> <% end_if %>
<% end_if %> <% end_if %>
<% if $EditLink %><a href="$EditLink" target="_blank"><span class="bn-icon-edit"></span>Edit in CMS</a><% end_if %> <% if $EditLink %><a href="$EditLink" target="_blank"><span class="bn-icon-edit"></span><%t BetterNavigator.Edit 'Edit in CMS' %></a><% end_if %>
<% end_if %> <% end_if %>
<% if $Member %> <% if $Member %>
<a href="$LogoutLink"><span class="bn-icon-user"></span>Log out<% if $Member.FirstName %><span class="light"> ($Member.FirstName)</span><% end_if %></a> <a href="$LogoutLink"><span class="bn-icon-user"></span><%t BetterNavigator.LogOut 'Log out' %><% if $Member.FirstName %><span class="light"> ($Member.FirstName)</span><% end_if %></a>
<% else %> <% else %>
<a href="$LoginLink"><span class="bn-icon-user"></span>Log in</a> <a href="$LoginLink"><span class="bn-icon-user"></span><%t BetterNavigator.LogIn 'Log in' %></a>
<% end_if %> <% end_if %>
<% end_with %> <% end_with %>
</div> </div>
<% include BetterNavigator\BetterNavigatorExtraContent %> <% include BetterNavigatorExtraContent %>
<% if $BetterNavigator.Mode=='dev' || $BetterNavigator.IsDeveloper %> <% if $BetterNavigator.Mode=='dev' || $BetterNavigator.IsDeveloper %>
@ -65,7 +65,7 @@
</div> </div>
<% include BetterNavigator\BetterNavigatorExtraDevTools %> <% include BetterNavigatorExtraDevTools %>
<div class="bn-heading">Debugging</div> <div class="bn-heading">Debugging</div>
@ -81,7 +81,7 @@
</div> </div>
<% include BetterNavigator\BetterNavigatorExtraDebugging %> <% include BetterNavigatorExtraDebugging %>
<% end_if %> <% end_if %>