mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11201] Allow translation of profile field name and explanation
PHPBB3-11201
This commit is contained in:
@@ -282,8 +282,8 @@ class profilefields
|
|||||||
$tpl_fields['row'] += array(
|
$tpl_fields['row'] += array(
|
||||||
'PROFILE_' . strtoupper($ident) . '_VALUE' => $value,
|
'PROFILE_' . strtoupper($ident) . '_VALUE' => $value,
|
||||||
'PROFILE_' . strtoupper($ident) . '_TYPE' => $ident_ary['data']['field_type'],
|
'PROFILE_' . strtoupper($ident) . '_TYPE' => $ident_ary['data']['field_type'],
|
||||||
'PROFILE_' . strtoupper($ident) . '_NAME' => $ident_ary['data']['lang_name'],
|
'PROFILE_' . strtoupper($ident) . '_NAME' => $this->user->lang($ident_ary['data']['lang_name']),
|
||||||
'PROFILE_' . strtoupper($ident) . '_EXPLAIN'=> $ident_ary['data']['lang_explain'],
|
'PROFILE_' . strtoupper($ident) . '_EXPLAIN'=> $this->user->lang($ident_ary['data']['lang_explain']),
|
||||||
|
|
||||||
'S_PROFILE_' . strtoupper($ident) => true
|
'S_PROFILE_' . strtoupper($ident) => true
|
||||||
);
|
);
|
||||||
@@ -291,8 +291,8 @@ class profilefields
|
|||||||
$tpl_fields['blockrow'][] = array(
|
$tpl_fields['blockrow'][] = array(
|
||||||
'PROFILE_FIELD_VALUE' => $value,
|
'PROFILE_FIELD_VALUE' => $value,
|
||||||
'PROFILE_FIELD_TYPE' => $ident_ary['data']['field_type'],
|
'PROFILE_FIELD_TYPE' => $ident_ary['data']['field_type'],
|
||||||
'PROFILE_FIELD_NAME' => $ident_ary['data']['lang_name'],
|
'PROFILE_FIELD_NAME' => $this->user->lang($ident_ary['data']['lang_name']),
|
||||||
'PROFILE_FIELD_EXPLAIN' => $ident_ary['data']['lang_explain'],
|
'PROFILE_FIELD_EXPLAIN' => $this->user->lang($ident_ary['data']['lang_explain']),
|
||||||
|
|
||||||
'S_PROFILE_' . strtoupper($ident) => true
|
'S_PROFILE_' . strtoupper($ident) => true
|
||||||
);
|
);
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<!-- END dropdown -->
|
<!-- END dropdown -->
|
||||||
|
|
||||||
<!-- BEGIN text -->
|
<!-- BEGIN text -->
|
||||||
<textarea name="{text.FIELD_IDENT}" id="{text.FIELD_IDENT}" rows="{text.FIELD_ROWS}" cols="{text.FIELD_COLS}" class="inputbox autowidth">{text.FIELD_VALUE}</textarea>
|
<textarea name="{text.FIELD_IDENT}" id="{text.FIELD_IDENT}" rows="{text.FIELD_ROWS}" cols="{text.FIELD_COLS}" class="inputbox">{text.FIELD_VALUE}</textarea>
|
||||||
<!-- END text -->
|
<!-- END text -->
|
||||||
|
|
||||||
<!-- BEGIN string -->
|
<!-- BEGIN string -->
|
||||||
|
Reference in New Issue
Block a user