プロジェクト

全般

プロフィール

Backport(バックポート) #2437

Yuya Watanabe12年以上前に更新

h3. Overview (現象)

管理画面プロフィール項目追加・編集画面 (/pc_backend.php/profile/edit)にある「重複の可否」の選択肢が以下のようになっています。

* 表示する
* 表示しない

「表示〜」では意味が異なるので、以下のような選択肢に変更したほうがいいと感じました。

* 許可
* 禁止

(変更する文言については検討をお願いします)

h3. 確認バージョン

OpenPNE 3.6RC1

h3. Causes (原因)

翻訳のカタログが適切でない



h3. Way to fix (修正内容)

<pre>
diff --git a/apps/pc_backend/i18n/messages.ja.xml b/apps/pc_backend/i18n/messages.ja.xml
index be359b6..585e62c 100644
--- a/apps/pc_backend/i18n/messages.ja.xml
+++ b/apps/pc_backend/i18n/messages.ja.xml
@@ -236,7 +236,7 @@
<target>表示する</target>
</trans-unit>
<trans-unit id="">
- <source>Not show</source>
+ <source>Hide</source>
<target>表示しない</target>
</trans-unit>
<trans-unit id="">
@@ -1087,11 +1087,11 @@
</trans-unit>
<trans-unit id="">
<source>Allow</source>
- <target>表示する</target>
+ <target>許可</target>
</trans-unit>
<trans-unit id="">
<source>Deny</source>
- <target>表示しない</target>
+ <target>禁止</target>
</trans-unit>
<trans-unit id="">
<source>Fixed</source>
@@ -1182,10 +1182,6 @@
<target>※この項目に対するメンバーの入力値も失われます。</target>
</trans-unit>
<trans-unit id="">
- <source>Delete</source>
- <target>削除する</target>
- </trans-unit>
- <trans-unit id="">
<source>Option name (%language%)</source>
<target>項目名 (%language%)</target>
</trans-unit>
diff --git a/lib/form/doctrine/ProfileForm.class.php b/lib/form/doctrine/ProfileForm.class.php
index 599bd39..411197b 100644
--- a/lib/form/doctrine/ProfileForm.class.php
+++ b/lib/form/doctrine/ProfileForm.class.php
@@ -23,7 +23,7 @@ class ProfileForm extends BaseProfileForm

$this->widgetSchema->getFormFormatter()->setTranslationCatalogue('profile_form');

- $isDispOption = array('choices' => array('1' => 'Allow', '0' => 'Deny'));
+ $isDispOption = array('choices' => array('1' => 'Show', '0' => 'Hide'));
$this->setWidgets(array(
'name' => new sfWidgetFormInputText(),
'is_public_web' => new sfWidgetFormSelectRadio(array('choices' => array('0' => 'Deny', '1' => 'Allow'))),
</pre>

h3. 補足

3.4へのバックポートはcommit:8e8f473f および commit:356bc7ad に相当するコミットが行われていないが commit:68190f96 に相当するコミットは行われているため,前者2つを適用する必要があると思われる.

戻る