プロジェクト

全般

プロフィール

Bug(バグ) #2533

Yuya Watanabe12年以上前に更新

h3. 概要

管理画面コミュニティ削除画面(pc_backend.php/community/delete/id/○○)で「削除」が英語に翻訳されない.

h3. 原因

下記コード部分で「削除」という文言がハードコーディングされている.

apps/pc_backend/modules/community/templates/deleteSuccess.php
<pre>
14 <form action="<?php url_for('community/delete?id='.$community->getId()) ?>" method="post">
15 <?php include_partial('community/communityInfo', array(
16 'community' => $community,
17 'moreInfo' => array($csrfToken.'<input type="submit" value="削除" />')
18 )); ?>
19 </form>
20
</pre>

h3. 修正案

<pre>
diff --git a/apps/pc_backend/modules/community/templates/deleteSuccess.php b/apps/pc_backend/modules/community/templates/deleteSuccess.php
index 00a4f5c..3f4ecfe 100644
--- a/apps/pc_backend/modules/community/templates/deleteSuccess.php
+++ b/apps/pc_backend/modules/community/templates/deleteSuccess.php
@@ -14,7 +14,7 @@ $csrfToken = '<input type="hidden" name="'.$form->getCSRFFieldName().'" value="'
<form action="<?php url_for('community/delete?id='.$community->getId()) ?>" method="post">
<?php include_partial('community/communityInfo', array(
'community' => $community,
- 'moreInfo' => array($csrfToken.'<input type="submit" value="削除" />')
+ 'moreInfo' => array($csrfToken.'<input type="submit" value="'.__('Delete').'" />')
)); ?>
</form>

</pre>



h3. 参考画像

!http://redmine.openpne.jp/attachments/353/スクリーンショット.png!

戻る