Browse Source

i18n re-arrange

pull/1/head
Friendika 11 years ago
parent
commit
4240a23a8a
  1. 12
      index.php
  2. 2
      mod/notifications.php
  3. 0
      view/en/auto_request.tpl
  4. 0
      view/en/cmnt_received_eml.tpl
  5. 0
      view/en/contact_edit.tpl
  6. 0
      view/en/contact_self.tpl
  7. 0
      view/en/dfrn_req_confirm.tpl
  8. 0
      view/en/dfrn_request.tpl
  9. 0
      view/en/follow_notify_eml.tpl
  10. 0
      view/en/friend_complete_eml.tpl
  11. 0
      view/en/insecure_net.tpl
  12. 0
      view/en/install_db.tpl
  13. 0
      view/en/intro_complete_eml.tpl
  14. 0
      view/en/lostpass.tpl
  15. 0
      view/en/lostpass_eml.tpl
  16. 0
      view/en/mail_received_eml.tpl
  17. 0
      view/en/passchanged_eml.tpl
  18. 0
      view/en/profile_advanced.php
  19. 0
      view/en/pwdreset.tpl
  20. 0
      view/en/register-link.tpl
  21. 0
      view/en/register_open_eml.tpl
  22. 0
      view/en/register_verify_eml.tpl
  23. 0
      view/en/request_notify_eml.tpl
  24. 0
      view/en/settings.tpl
  25. 0
      view/en/settings_nick_set.tpl
  26. 0
      view/en/settings_nick_subdir.tpl
  27. 0
      view/en/settings_nick_unset.tpl
  28. 0
      view/en/wall_received_eml.tpl
  29. 4
      view/intros.tpl
  30. 18
      view/sidenote.tpl

12
index.php

@ -123,14 +123,18 @@ $a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array(
$page = $a->page;
$profile = $a->profile;
$lang = get_config('system','language');
if($lang === false)
$lang = 'en';
header("Content-type: text/html; charset=utf-8");
$template = "view/" . (($lang) ? $lang . "/" : "")
. ((x($a->page,'template')) ? $a->page['template'] : 'default' )
. ".php";
$template = 'view/' . $lang . '/'
. ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php';
require_once($template);
if(file_exists($template))
require_once($template);
else
require_once(str_replace($lang . '/', '', $template));
session_write_close();
exit;

2
mod/notifications.php

@ -104,6 +104,7 @@ function notifications_content(&$a) {
$o .= replace_macros($tpl,array(
'$str_notifytype' => t('Notification type: '),
'$notify_type' => (($rr['network'] === 'dfrn') ? t('Friend/Connect Request') : t('New Follower')),
'$dfrn_text' => $dfrn_text,
'$dfrn_id' => $rr['issued-id'],
@ -114,6 +115,7 @@ function notifications_content(&$a) {
'$fullname' => $rr['name'],
'$url' => $rr['url'],
'$knowyou' => $knowyou,
'$approve' => t('Approve'),
'$note' => $rr['note']
));
}

0
view/auto_request.tpl → view/en/auto_request.tpl

0
view/cmnt_received_eml.tpl → view/en/cmnt_received_eml.tpl

0
view/contact_edit.tpl → view/en/contact_edit.tpl

0
view/contact_self.tpl → view/en/contact_self.tpl

0
view/dfrn_req_confirm.tpl → view/en/dfrn_req_confirm.tpl

0
view/dfrn_request.tpl → view/en/dfrn_request.tpl

0
view/follow_notify_eml.tpl → view/en/follow_notify_eml.tpl

0
view/friend_complete_eml.tpl → view/en/friend_complete_eml.tpl

0
view/insecure_net.tpl → view/en/insecure_net.tpl

0
view/install_db.tpl → view/en/install_db.tpl

0
view/intro_complete_eml.tpl → view/en/intro_complete_eml.tpl

0
view/lostpass.tpl → view/en/lostpass.tpl

0
view/lostpass_eml.tpl → view/en/lostpass_eml.tpl

0
view/mail_received_eml.tpl → view/en/mail_received_eml.tpl

0
view/passchanged_eml.tpl → view/en/passchanged_eml.tpl

0
view/profile_advanced.php → view/en/profile_advanced.php

0
view/pwdreset.tpl → view/en/pwdreset.tpl

0
view/register-link.tpl → view/en/register-link.tpl

0
view/register_open_eml.tpl → view/en/register_open_eml.tpl

0
view/register_verify_eml.tpl → view/en/register_verify_eml.tpl

0
view/request_notify_eml.tpl → view/en/request_notify_eml.tpl

0
view/settings.tpl → view/en/settings.tpl

0
view/settings_nick_set.tpl → view/en/settings_nick_set.tpl

0
view/settings_nick_subdir.tpl → view/en/settings_nick_subdir.tpl

0
view/settings_nick_unset.tpl → view/en/settings_nick_unset.tpl

0
view/wall_received_eml.tpl → view/en/wall_received_eml.tpl

4
view/intros.tpl

@ -1,7 +1,7 @@
<div class="intro-wrapper" id="intro-$contact_id" >
<p class="intro-desc">Notification type: $notify_type</p>
<p class="intro-desc">$str_notifytype $notify_type</p>
<div class="intro-fullname" id="intro-fullname-$contact_id" >$fullname</div>
<a class="intro-url-link" id="intro-url-link-$contact_id" href="$url" ><img id="photo-$contact_id" class="intro-photo" src="$photo" width="175" height=175" name="$fullname" alt="fullname" /></a>
<div class="intro-knowyou">$knowyou</div>
@ -20,7 +20,7 @@
$dfrn_text
<input class="intro-submit-approve" type="submit" name="submit" value="Approve" />
<input class="intro-submit-approve" type="submit" name="submit" value="$approve" />
</form>
</div>
<div class="intro-end"></div>

18
view/sidenote.tpl

@ -1,18 +0,0 @@
<div id="sidenote-wrapper" >
<p id="sidenote-desc" >
Write something
</p>
<form id="sidenote-form" action="profiles/$profile_id" method="post" >
<input type="hidden" name="type" value="sidenote" />
<textarea rows="40" cols="24" id="sidenote-text" name="sidenote" >$sidenote</textarea>
</div>
<div id="sidenote-submit-wrapper" >
<input type="submit" id="sidenote-submit" name="submit" value="Submit" />
</div>
<div id="sidenote-end"></div>
</form>
</div>
Loading…
Cancel
Save