Skip to content

Commit

Permalink
Support i18n when search nothing and fix #43
Browse files Browse the repository at this point in the history
  • Loading branch information
tobegit3hub committed Mar 28, 2015
1 parent 1fe4705 commit 95c223c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/html/containers.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="page-header-left">{{'containers'|translate}} <a ng-href="{{canonicalS
<tbody>
<!-- When search result is null, display the message -->
<tr ng-show="(containers | filter: search).length == 0">
<td colspan="7" align="center">No search result for <b style="color:blue">{{search}}</b></td>
<td colspan="7" align="center">{{'no_search_result_for'|translate}} <b style="color:blue">{{search}}</b></td>
</tr>

<tr ng-repeat="container in containers | filter: search | orderBy:predicate:reverse track by $index">
Expand Down
2 changes: 1 addition & 1 deletion static/html/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1 class="page-header-left">{{'images'|translate}} <a ng-href="{{canonicalServe
<tbody>
<!-- When search result is null, display the message -->
<tr ng-show="(images | filter: search).length == 0">
<td colspan="7" align="center">No search result for <b style="color:blue">{{search}}</b></td>
<td colspan="7" align="center">{{'no_search_result_for'|translate}} <b style="color:blue">{{search}}</b></td>
</tr>

<tr ng-repeat="image in images | filter: search | orderBy:predicate:reverse track by $index ">
Expand Down
5 changes: 5 additions & 0 deletions static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ seagull.config(function ($translateProvider) {
repotags: 'RepoTags',
virtualsize: 'VirtualSize',
delete: 'Delete',
no_search_result_for: 'No search result for',
// Container page
container: 'Container',
start: 'Start',
Expand Down Expand Up @@ -400,6 +401,7 @@ seagull.config(function ($translateProvider) {
repotags: '项目标签',
virtualsize: '虚拟大小',
delete: '删除',
no_search_result_for: '找不到相关搜索结果',
// Container page
container: '容器',
start: '启动',
Expand Down Expand Up @@ -511,6 +513,7 @@ seagull.config(function ($translateProvider) {
repotags: '項目標籤',
virtualsize: '虛擬大小',
delete: '刪除',
no_search_result_for: '找不到相關搜索結果',
// Container page
container: '容器',
start: '啓動',
Expand Down Expand Up @@ -622,6 +625,7 @@ seagull.config(function ($translateProvider) {
repotags: 'Bezeichnung (Tag)',
virtualsize: 'Virtuelle Größe',
delete: 'Löschen',
no_search_result_for: 'No search result for', // TODO translate for French
// Container page
container: 'Container',
start: 'Starten',
Expand Down Expand Up @@ -735,6 +739,7 @@ seagull.config(function ($translateProvider) {
repotags: 'Tag',
virtualsize: 'Espace disque',
delete: 'Delete',
no_search_result_for: 'No search result for', // TODO: Translate for German
// Container page
container: 'Conteneur',
start: 'Démarrer',
Expand Down

0 comments on commit 95c223c

Please sign in to comment.