From 95c223c454c843acdd08bf695a2990802962d9ee Mon Sep 17 00:00:00 2001 From: tobe Date: Sun, 29 Mar 2015 00:07:00 +0800 Subject: [PATCH] Support i18n when search nothing and fix #43 --- static/html/containers.html | 2 +- static/html/images.html | 2 +- static/js/app.js | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/static/html/containers.html b/static/html/containers.html index d89fee6..2d3e50a 100644 --- a/static/html/containers.html +++ b/static/html/containers.html @@ -48,7 +48,7 @@

{{'containers'|translate}} - No search result for {{search}} + {{'no_search_result_for'|translate}} {{search}} diff --git a/static/html/images.html b/static/html/images.html index 4c9ce68..3ffc8a0 100644 --- a/static/html/images.html +++ b/static/html/images.html @@ -33,7 +33,7 @@

{{'images'|translate}} - No search result for {{search}} + {{'no_search_result_for'|translate}} {{search}} diff --git a/static/js/app.js b/static/js/app.js index 060d519..7f7157f 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -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', @@ -400,6 +401,7 @@ seagull.config(function ($translateProvider) { repotags: '项目标签', virtualsize: '虚拟大小', delete: '删除', + no_search_result_for: '找不到相关搜索结果', // Container page container: '容器', start: '启动', @@ -511,6 +513,7 @@ seagull.config(function ($translateProvider) { repotags: '項目標籤', virtualsize: '虛擬大小', delete: '刪除', + no_search_result_for: '找不到相關搜索結果', // Container page container: '容器', start: '啓動', @@ -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', @@ -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',