Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

18n

  • Loading branch information...
commit c6457f4b70e3a881e2dfc9d949cf35df4ed306ef 1 parent 059611f
lestrrat lestrrat authored
15 etc/gettext/ja.po
@@ -189,3 +189,18 @@ msgstr "'%1'は必須項目です"
189 189
190 190 msgid "Thank you for your submission. You will be notified if you talk has been accepted or not"
191 191 msgstr "トーク応募ありがとうございます。トークの採否は後ほどご連絡させていただきます"
  192 +
  193 +msgid "advanced"
  194 +msgstr "アドバンスド"
  195 +
  196 +msgid "regular"
  197 +msgstr "レギュラー"
  198 +
  199 +msgid "beginner"
  200 +msgstr "ビギナー"
  201 +
  202 +msgid "No video available"
  203 +msgstr "動画は登録されていません"
  204 +
  205 +msgid "No slides available"
  206 +msgstr "スライドは登録されてません"
5 lib/YAPC2012.pm
@@ -80,6 +80,7 @@ sub setup_xslate {
80 80 my $markdown = $self->get('Markdown');
81 81 my $oembed = $self->get('API::OEmbed');
82 82 my $scrubber = $self->get('Scrubber');
  83 + my $localizer = $self->get('Localizer');
83 84 $self->plugin( xslate_renderer => {
84 85 template_options => {
85 86 syntax => "TTerse",
@@ -91,7 +92,7 @@ sub setup_xslate {
91 92 embed_talk_video => Text::Xslate::html_builder(sub {
92 93 my $url = shift;
93 94 if (! $url) {
94   - return "No video available";
  95 + return $localizer->localize("No video available");
95 96 }
96 97 $url = URI->new($url);
97 98 if ($url->host =~ /youtube\.com$/) {
@@ -107,7 +108,7 @@ sub setup_xslate {
107 108 embed_talk_slide => Text::Xslate::html_builder(sub {
108 109 my $url = shift;
109 110 if (! $url) {
110   - return "No slides available";
  111 + return $localizer->localize("No slides available");
111 112 }
112 113
113 114 $url = URI->new($url);
4 templates/talk/show.html.tx
@@ -19,6 +19,10 @@
19 19 <h4>[% loc("Talk Details") %]</h4>
20 20 <table class="table">
21 21 <tr>
  22 + <td>[% loc("Talk Category") %]</td>
  23 + <td>[% loc(talk.category) %]</td>
  24 + </tr>
  25 + <tr>
22 26 <td>[% loc("Language") %]</td>
23 27 <td>[% loc(talk.language) %]</td>
24 28 </tr>

0 comments on commit c6457f4

Please sign in to comment.
Something went wrong with that request. Please try again.