| 86 | | if ($display_friendly_name) { |
|---|
| 87 | | $name_label_raw = $c['name']; |
|---|
| 88 | | $description_raw = $c['description']; |
|---|
| 89 | | if ($c['module'] && extension_loaded('gettext') && is_dir("modules/".$c['module']."/i18n")) { |
|---|
| 90 | | bindtextdomain($c['module'],"modules/".$c['module']."/i18n"); |
|---|
| 91 | | bind_textdomain_codeset($c['module'], 'utf8'); |
|---|
| 92 | | $name_label = dgettext($c['module'],$name_label_raw); |
|---|
| 93 | | $tt_description = dgettext($c['module'],$description_raw); |
|---|
| 94 | | if ($name_label == $name_label_raw) { |
|---|
| 95 | | $name_label = _($name_label_raw); |
|---|
| 96 | | } |
|---|
| 97 | | if ($tt_description == $description_raw) { |
|---|
| 98 | | $tt_description = _($description_raw); |
|---|
| 99 | | } |
|---|
| 100 | | } else { |
|---|
| | 86 | $name_label_raw = $c['name']; |
|---|
| | 87 | $description_raw = $c['description']; |
|---|
| | 88 | if ($c['module'] && extension_loaded('gettext') && is_dir("modules/".$c['module']."/i18n")) { |
|---|
| | 89 | bindtextdomain($c['module'],"modules/".$c['module']."/i18n"); |
|---|
| | 90 | bind_textdomain_codeset($c['module'], 'utf8'); |
|---|
| | 91 | $name_label = dgettext($c['module'],$name_label_raw); |
|---|
| | 92 | $tt_description = dgettext($c['module'],$description_raw); |
|---|
| | 93 | if ($name_label == $name_label_raw) { |
|---|