From c53cad729f56fbc7e7c033753306da74a4ef9b9c Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sun, 16 Apr 2017 20:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E4=BA=86live=20example?= =?UTF-8?q?=E5=92=8Cdownloadable=20example=E7=9A=84=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/resources/js/directives/live-example.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/resources/js/directives/live-example.js b/public/resources/js/directives/live-example.js index 39c5ae35ef..b676eb9023 100644 --- a/public/resources/js/directives/live-example.js +++ b/public/resources/js/directives/live-example.js @@ -61,7 +61,7 @@ angularIO.directive('liveExample', ['$location', function ($location) { '' + '' + 'plunker' + - '

You can also download this example.

'; + '

你也可以下载这个例子。

'; } return { @@ -69,7 +69,7 @@ angularIO.directive('liveExample', ['$location', function ($location) { scope: true, compile: function (tElement, attrs) { var href, template; - var text = tElement.text() || 'live example'; + var text = tElement.text() || '在线例子'; if (attrs['title'] == undefined) { tElement[0].setAttribute('title', text); } // set default title (tooltip) var ex = attrs.name || NgIoUtil.getExampleName($location); var embedded = attrs.hasOwnProperty('embedded'); @@ -105,13 +105,13 @@ angularIO.directive('liveExample', ['$location', function ($location) { var template = a(text, { href: href, target: '_blank' }); if (!noDownload) { - template += ' / ' + a('downloadable example', { href: zipHref, target: '_blank' }); + template += ' / ' + a('可下载的例子', { href: zipHref, target: '_blank' }); } // The hosted example and sources are in different locations for Dart. // Also show link to sources for Dart, unless noSource is specified. if (isForDart && !attrs.hasOwnProperty('nosource')) { - var srcText = attrs.srcText || 'view source'; + var srcText = attrs.srcText || '查看源码'; var srcHref = 'http://github.com/angular-examples/' + ex; template = span(template + ' (' + a(srcText, { href: srcHref, target: '_blank' }) + ')'); }