Translate user prefixes
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -66,7 +66,8 @@ function selectOptsPrefixesNoBlank($selected = null) | ... | @@ -66,7 +66,8 @@ function selectOptsPrefixesNoBlank($selected = null) |
| 66 | continue; | 66 | continue; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | $sel = ($val == $selected ? ' selected' : ''); | 69 | $label = tz_($label); |
| 70 | $sel = $val == $selected ? ' selected' : ''; | ||
| 70 | $string = '<option value="'.$val.'"'.$sel.'>'.$label.'</option>'; | 71 | $string = '<option value="'.$val.'"'.$sel.'>'.$label.'</option>'; |
| 71 | 72 | ||
| 72 | $return .= $string; | 73 | $return .= $string; |
| ... | @@ -453,10 +454,9 @@ if (!function_exists('url_title')) { | ... | @@ -453,10 +454,9 @@ if (!function_exists('url_title')) { |
| 453 | 454 | ||
| 454 | class Vars | 455 | class Vars |
| 455 | { | 456 | { |
| 456 | |||
| 457 | public static $prefixes = [ | 457 | public static $prefixes = [ |
| 458 | '' => '-- select --', | 458 | '' => '-- select --', |
| 459 | 'Mr.' => 'Mr', | 459 | 'Mr.' => 'Mr.', |
| 460 | 'Mrs.' => 'Mrs.', | 460 | 'Mrs.' => 'Mrs.', |
| 461 | 'Ms.' => 'Ms.', | 461 | 'Ms.' => 'Ms.', |
| 462 | 'Miss' => 'Miss', | 462 | 'Miss' => 'Miss', | ... | ... |
-
Please register or sign in to post a comment