reconstruct the description for more flexible translations

This commit is contained in:
Tobias Diekershoff 2015-08-17 07:20:50 +02:00
parent eea258f74c
commit 621dec1606
2 changed files with 3 additions and 5 deletions

View File

@ -1103,14 +1103,12 @@ function settings_content(&$a) {
info( t('Profile is <strong>not published</strong>.') . EOL );
$subdir = ((strlen($a->get_path())) ? '<br />' . t('or') . ' ' . $a->get_baseurl(true) . '/profile/' . $nickname : '');
//$subdir = ((strlen($a->get_path())) ? '<br />' . t('or') . ' ' . $a->get_baseurl(true) . '/profile/' . $nickname : '');
$tpl_addr = get_markup_template("settings_nick_set.tpl");
$prof_addr = replace_macros($tpl_addr,array(
'$desc' => t('Your Identity Address is'),
'$nickname' => $nickname,
'$subdir' => $subdir,
'$desc' => sprintf(t("Your Identity Address is <strong>'%s'</strong> or '%s'."), $nickname.'@'.$a->get_hostname(), $a->get_baseurl().'/profile/'.$nickname),
'$or' => t('or'),
'$basepath' => $a->get_hostname()
));

View File

@ -1,6 +1,6 @@
<div id="settings-nick-wrapper" >
<div id="settings-nickname-desc" class="info-message"> {{$desc}} <strong>'{{$nickname}}@{{$basepath}}'</strong>{{$subdir}} {{$or}} 'http(s)://{{$basepath}}/profile/{{$nickname}}'</div>
<div id="settings-nickname-desc" class="info-message">{{$desc}}</div>
</div>
<div id="settings-nick-end" ></div>