mirror of
https://github.com/friendica/friendica
synced 2024-11-18 06:23:41 +00:00
reconstruct the description for more flexible translations
This commit is contained in:
parent
eea258f74c
commit
621dec1606
2 changed files with 3 additions and 5 deletions
|
@ -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()
|
||||
));
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue