{exp:channel:form}のグリッドテーブル内でデータを変換する方法はありますか?
私は翻訳される表の見出しを変更したい。
また、ボタンを変更して、新しい行を翻訳可能な単語(「行の追加」など)に追加する必要があります。
これはGridで可能ですか?あるいは、私たちはチャンネルに入力したものにこだわっていますか?
EDIT:
私の質問はチャンネルフォームタグ内の公開フォームにのみ適用されます。私は、EEコントロールパネルで動作するソリューションを探しているわけではありません。
序文:これは単なるアイデアです。
Brian Litzingerの出版社( http://devot-ee.com/add-ons/publisher )を exp:channel:form
に追加してください。
ヘッダーとボタンを変更するには、グリッドをチャンネルフォームに追加するには、レンダリングされたコードをつかんでテンプレートに直接貼り付けます(フィールドにHTMLを生成させるのではなく)。その後、Publisherの言語タグを使用してヘッダーとボタン。
たとえば、チャンネルフォームを作成してグリッドを表示するように指示することがあります。私はそれが生成することがわかりますコードを見て...
Column 1
Column 2
<input type="text" name="testing[rows][new_row_0][col_id_1]" value="" dir="ltr" field_content_type="all" maxlength="256" />
Delete Row
<input type="text" name="testing[rows][new_row_0][col_id_2]" value="" dir="ltr" field_content_type="all" maxlength="256" />
You have not added any rows of data yet. Add some data?
Add Row
Well you could now change that to use Publisher "Phrases" (https://boldminded.com/add-ons/publisher/phrases)
{phrase:form_col1}
{phrase:form_col1}
<input type="text" name="testing[rows][new_row_0][col_id_1]" value="" dir="ltr" field_content_type="all" maxlength="256" />
{phrase:form_delete}
<input type="text" name="testing[rows][new_row_0][col_id_2]" value="" dir="ltr" field_content_type="all" maxlength="256" />
{phrase:form_no-rows} {phrase:form_add-data}
{phrase:form_add-row}
You would then just set those phrases in your Publisher's control panel and it should do the job.
Bare in mind: this is a bit of a hacky solution, and if Grid's markup changes you'll have to rinse and repeat.
それは2014年の問題だと分かっています。これを見ている人が将来的に役立つように、「低置換」を使用できます。例:
{exp:low_replace find="You have not added any rows of data yet|Add some data" replace="No agregaste informacion|Agregar" multiple="yes"}
{field:estudios_en_curso_y_terminados}
{/exp:low_replace}