Skip to content

Commit 7181d89

Browse files
committed
make event archive widget translatable
1 parent e4a04ea commit 7181d89

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

templates/events/index.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
{% if archives is defined and archives|length > 0 %}
2727
<section class="archive-links">
28-
<h2 class="txt-jupiter">W3C archived events</h2>
28+
<h2 class="txt-jupiter">{{ 'events.archive.title'|trans }}</h2>
2929
<button type="button" class="button button--ghost with-icon with-icon--after" style=""
30-
data-toggle="true" aria-expanded="false">Browse archives
30+
data-toggle="true" aria-expanded="false">{{ 'events.archive.browse'|trans }}
3131
</button>
32-
<nav id="archive-nav" aria-label="Event archive">
32+
<nav id="archive-nav" aria-label="{{ 'events.archive.label'|trans }}">
3333
<ul class="clean-list" role="list">
3434
{% for archive in archives %}
3535
<li><a href="{{ archive.url }}">{{ archive.title }}</a></li>

translations/messages+intl-icu.en.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ blog:
3434
components:
3535
groups_list:
3636
title: Active groups
37+
events:
38+
archive:
39+
title: W3C archived events
40+
browse: Browse archives
41+
label: Event archive
3742
error404:
3843
title: Page not found
39-
message: <p>Sorry, the page you were trying to reach does not exist. Here are some steps you may try to find the page you were looking for:</p><ul><li>If you typed the URL by hand then please make sure that it is exactly as it should be.</li><li>If you are looking for information on a particular subject, please start on the <a href="/">W3C home page</a>.</li><li>Try searching the site using the search icon at the top of this page.</li></ul>
44+
message: <p>Sorry, the page you were trying to reach does not exist. Here are some steps you may try to find the page you were looking for:</p><ul><li>If you typed the URL by hand then please make sure that it is exactly as it should be.</li><li>If you are looking for information on a particular subject, please start on the <a href="/">W3C home page</a>.</li><li>Try searching the site using the search icon at the top of this page.</li></ul>

translations/messages+intl-icu.ja.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ blog:
3434
components:
3535
groups_list:
3636
title: アクティブなグループ
37+
events:
38+
archive:
39+
title: W3C archived events
40+
browse: Browse archives
41+
label: Event archive
3742
error404:
3843
title: ページが見つかりません
3944
message: <p>申し訳ありませんが、アクセスしようとしていたページは存在しません。以下は、お探しのページを見つけるために試すことができるいくつかの手順です:</p><ul><li>URLを手動で入力した場合は、正確であることを確認してください。</li><li>特定のトピックの情報を探している場合は、<a href="/">W3Cホームページ</a>から始めてください。</li><li>このページの上部にある検索アイコンを使用してサイトを検索してみてください。</li></ul>
40-

translations/messages+intl-icu.zh-hans.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ blog:
3434
components:
3535
groups_list:
3636
title: 活跃组
37+
events:
38+
archive:
39+
title: W3C archived events
40+
browse: Browse archives
41+
label: Event archive
3742
error404:
3843
title: 页面丢失
3944
message: <p>很抱歉,您试图访问的页面并不存在。您可以参考下面的步骤来寻找您访问的页面:</p><ul><li>如果您是手动输入的 URL 网址,请您确认一下网址是否正确。</li><li>如果您在寻找某一特定主题的信息,请在<a href="/">W3C 主页上开始检索</a>。</li><li>请尝试用本页面顶端的搜索图标来搜寻网站。</li></ul>

0 commit comments

Comments
 (0)