プロジェクト

全般

プロフィール

Backport(バックポート) #2720

Yuya Watanabe約12年前に更新

h3. Overview (現象)

コミュニティ詳細画面(/community/detail/id/xxx) の画面下部にある「Community Top」というリンクの文言が翻訳されていない

!20111118-community_detail.png!

h5. 現象確認バージョン

OpenPNE 3.6.0


h3. Causes (原因)

翻訳カタログが存在しない

h3. Way to fix (修正内容)

翻訳カタログを追加する
<pre>
diff --git a/apps/mobile_frontend/i18n/messages.ja.xml b/apps/mobile_frontend/i18n/messages.ja.xml
index b29ff74..02e4d5e 100644
--- a/apps/mobile_frontend/i18n/messages.ja.xml
+++ b/apps/mobile_frontend/i18n/messages.ja.xml
@@ -515,6 +515,10 @@
<target>コミュニティ検索</target>
</trans-unit>
<trans-unit id="">
+ <source>%Community% Top</source>
+ <target>%Community% トップ</target>
+ </trans-unit>
+ <trans-unit id="">
<source>Categories</source>
<target>カテゴリ</target>
</trans-unit>
diff --git a/apps/mobile_frontend/modules/community/templates/detailSuccess.php b/apps/mobile_frontend/modules/community/templates/detailSuccess.php
index 257d7f6..d5492a7 100644
--- a/apps/mobile_frontend/modules/community/templates/detailSuccess.php
+++ b/apps/mobile_frontend/modules/community/templates/detailSuccess.php
@@ -37,4 +37,4 @@ $list[__('%community% Description', array(), 'form_community')] = op_auto_link_t

<hr color="<?php echo $op_color['core_color_11'] ?>">

-<?php echo link_to(__('Community Top'), '@community_home?id='.$community->getId()) ?>
+<?php echo link_to(__('%Community% Top'), '@community_home?id='.$community->getId()) ?>
</pre>

戻る