Skip to content

Commit 6aa57b8

Browse files
committed
Merge pull request #3 from kazupon/translate/layout
Translate layout
2 parents b3ec209 + f0abf9c commit 6aa57b8

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

themes/vue/layout/page.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<%- partial('partials/sidebar', { type: page.type, index: page.index }) %>
33
<% } %>
44
<div class="content <%- page.type ? page.type + ' with-sidebar' : '' %>">
5-
<h1><%- page.title %><%- page.type === 'examples' ? ' Example' : '' %></h1>
5+
<h1><%- page.title %><%- page.type === 'examples' ? ' の例' : '' %></h1>
66
<div id="ad">
77
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=vuejs" id="_carbonads_js"></script>
88
</div>
99
<%- page.content %>
10-
<div class="footer">Caught a mistake or want to contribute to the documentation? <a href="https://github.com/vuejs/vuejs.org" target="_blank">Fork this site on Github</a>!</div>
11-
</div>
10+
<div class="footer">間違いを見つけた、またはドキュメントに貢献したいですか?<a href="https://github.com/vuejs/vuejs.org" target="_blank">Github からこのサイトを Fork しましょう</a></div>
11+
</div>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">Guide</a></li>
2-
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API Reference</a></li>
3-
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">Examples</a></li>
4-
<li><a href="/blog/" class="nav-link<%- (page.path.match(/blog/) || is_post()) ? ' current' : '' %>">Blog</a></li>
5-
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>
1+
<li><a href="/guide/" class="nav-link<%- page.path.match(/guide/) ? ' current' : '' %>">ガイド</a></li>
2+
<li><a href="/api/" class="nav-link<%- page.path.match(/api/) ? ' current' : '' %>">API リファレンス</a></li>
3+
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>"></a></li>
4+
<li><a href="/blog/" class="nav-link<%- (page.path.match(/blog/) || is_post()) ? ' current' : '' %>">ブログ(英語)</a></li>
5+
<li><a href="https://github.com/yyx990803/vue" target="_blank" class="nav-link">GitHub</a></li>

themes/vue/layout/partials/sidebar.ejs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@
33
<%- partial('partials/main_menu') %>
44
</ul>
55
<div class="list">
6-
<h2><%- type.charAt(0).toUpperCase() + type.slice(1) %></h2>
6+
<% if (type === 'guide') { %>
7+
<h2>ガイド</h2>
8+
<% } else if (type === 'api') { %>
9+
<h2>API</h2>
10+
<% } else if (type === 'examples') { %>
11+
<h2></h2>
12+
<% } %>
713
<ul class="menu-root">
814
<% site.pages.find({type: type}).sort('order').each(function (p) { %>
915
<li><a href="/<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %>"><%- p.title %></a></li>
1016
<% }) %>
11-
<li><a href="http://legacy.vuejs.org">Looking for 0.10 docs?</a></li>
17+
<li><a href="http://legacy.vuejs.org">0.10 のドキュメントをお探しですか?</a></li>
1218
<li style="margin:10px 0 3px">
1319
<script data-gittip-username="yyx990803"
1420
data-gittip-widget="button"
1521
src="//gttp.co/v1.js"></script>
1622
</li>
1723
</ul>
1824
</div>
19-
</div>
25+
</div>

0 commit comments

Comments
 (0)