Added multi language systems in PHP files (by Themanwhoisit)

This commit is contained in:
nipos 2018-07-31 18:51:17 +02:00
parent 3ec266f117
commit c653baa2d0
30 changed files with 146 additions and 145 deletions

View File

@ -11,7 +11,7 @@
<body> <body>
<article> <article>
<h1>404</h1> <h1>404</h1>
<h2>Sorry, something went wrong.</h2> <h2><?=_('Sorry, something went wrong.')?></h2>
</article> </article>
</body> </body>
</html> </html>

View File

@ -10,7 +10,7 @@
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?><span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -58,28 +58,28 @@ resetApp();
<li id="header_nav_item_home" class="header_nav_item"> <li id="header_nav_item_home" class="header_nav_item">
<a href="/" id="home_nav"> <a href="/" id="home_nav">
<i class="fa fa-fw fa-home"></i> <i class="fa fa-fw fa-home"></i>
<span>Home</span> <span><?=_('Home')?></span>
</a> </a>
<div class="home_badge nav_badge invisible"></div> <div class="home_badge nav_badge invisible"></div>
</li> </li>
<li id="header_nav_item_local" class="header_nav_item local_nav"> <li id="header_nav_item_local" class="header_nav_item local_nav">
<a href="/local" id="local_nav"> <a href="/local" id="local_nav">
<i class="fa fa-fw fa-users"></i> <i class="fa fa-fw fa-users"></i>
<span>Local</span> <span><?=_('Local')?></span>
</a> </a>
<div class="local_badge nav_badge invisible"></div> <div class="local_badge nav_badge invisible"></div>
</li> </li>
<li id="header_nav_item_federated" class="header_nav_item federated_nav"> <li id="header_nav_item_federated" class="header_nav_item federated_nav">
<a href="/federated" id="federated_nav"> <a href="/federated" id="federated_nav">
<i class="fa fa-fw fa-globe"></i> <i class="fa fa-fw fa-globe"></i>
<span>Federated</span> <span><?=_('Federated')?></span>
</a> </a>
<div class="federated_badge nav_badge invisible"></div> <div class="federated_badge nav_badge invisible"></div>
</li> </li>
<li id="header_nav_item_notifications" class="header_nav_item notifications_nav"> <li id="header_nav_item_notifications" class="header_nav_item notifications_nav">
<a href="/notifications" id="notifications_nav"> <a href="/notifications" id="notifications_nav">
<i class="fa fa-fw fa-bell"></i> <i class="fa fa-fw fa-bell"></i>
<span>Notifications</span> <span><?=_('Notifications')?></span>
</a> </a>
<div class="notification_badge nav_badge invisible"></div> <div class="notification_badge nav_badge invisible"></div>
</li> </li>
@ -96,7 +96,7 @@ resetApp();
<ul class="header_nav_list"> <ul class="header_nav_list">
<li class="header_nav_item serch_form_wrap"> <li class="header_nav_item serch_form_wrap">
<form class="search_form" action="/search" method="GET"> <form class="search_form" action="/search" method="GET">
<input id="search_form" class="search_form_input" placeholder="Search Mastodon" type="text" name="q" accesskey="/"> <input id="search_form" class="search_form_input" placeholder="<?=_('Search Mastodon')?>" type="text" name="q" accesskey="/">
<span class="search_form_submit"> <span class="search_form_submit">
<button type="submit"> <button type="submit">
<i class="fa fa-fw fa-search"></i> <i class="fa fa-fw fa-search"></i>
@ -115,16 +115,16 @@ resetApp();
<li> <li>
<a class="js_current_profile_link emoji_poss"> <a class="js_current_profile_link emoji_poss">
<span class="js_current_profile_displayname display_name"></span> <span class="js_current_profile_displayname display_name"></span>
<span>View profile</span> <span><?=_('View profile')?></span>
</a> </a>
</li> </li>
</ul> </ul>
<ul> <ul>
<li> <li>
<a href="/settings">Settings</a> <a href="/settings"><?=_('Settings')?></a>
</li> </li>
<li> <li>
<a href="/logout">Log out</a> <a href="/logout"><?=_('Log out')?></a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -133,7 +133,7 @@ resetApp();
<button id="creat_status" class="toot_button" accesskey="n"> <button id="creat_status" class="toot_button" accesskey="n">
<div class="toot_button_label"> <div class="toot_button_label">
<i class="fa fa-fw fa-pencil-square-o"></i> <i class="fa fa-fw fa-pencil-square-o"></i>
<span>Toot</span> <span><?=_('Toot')?></span>
</div> </div>
</button> </button>
</li> </li>

View File

@ -10,7 +10,7 @@
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?><span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -30,39 +30,39 @@
<ul> <ul>
<a href="https://social.csswg.org/@halcyon" class="no-underline"> <a href="https://social.csswg.org/@halcyon" class="no-underline">
<li> <li>
<span><i class="fa fa-newspaper-o" aria-hidden="true"></i>News</span> <span><i class="fa fa-newspaper-o" aria-hidden="true"></i><?=_('News')?></span>
</li> </li>
</a> </a>
<a href="https://notabug.org/halcyon-suite/halcyon" class="no-underline"> <a href="https://notabug.org/halcyon-suite/halcyon" class="no-underline">
<li> <li>
<span><i class="fa fa-code" aria-hidden="true"></i>Source</span> <span><i class="fa fa-code" aria-hidden="true"></i><?=_('Source')?></span>
</li> </li>
</a> </a>
<a href="/terms" class="no-underline"> <a href="/terms" class="no-underline">
<li> <li>
<span><i class="fa fa-balance-scale" aria-hidden="true"></i>Terms</span> <span><i class="fa fa-balance-scale" aria-hidden="true"></i><?=_('Terms')?></span>
</li> </li>
</a> </a>
<a href="/privacy" class="no-underline"> <a href="/privacy" class="no-underline">
<li> <li>
<span><i class="fa fa-shield" aria-hidden="true"></i>Privacy</span> <span><i class="fa fa-shield" aria-hidden="true"></i><?=_('Privacy')?></span>
</li> </li>
</a> </a>
<?php if(file_exists("../config/imprint.txt")) { ?> <?php if(file_exists("../config/imprint.txt")) { ?>
<a href="/imprint" class="no-underline"> <a href="/imprint" class="no-underline">
<li> <li>
<span><i class="fa fa-id-card-o" aria-hidden="true"></i>Imprint</span> <span><i class="fa fa-id-card-o" aria-hidden="true"></i><?=_('Imprint')?></span>
</li> </li>
</a> </a>
<?php } ?> <?php } ?>
<a href="http://www.nikisoft.one/contact.php" class="no-underline"> <a href="http://www.nikisoft.one/contact.php" class="no-underline">
<li> <li>
<span><i class="fa fa-envelope" aria-hidden="true"></i>Contact</span> <span><i class="fa fa-envelope" aria-hidden="true"></i><?=_('Contact')?></span>
</li> </li>
</a> </a>
<a href="/login/#login_form_wrap" class="no-underline"> <a href="/login/#login_form_wrap" class="no-underline">
<li> <li>
<span><i class="fa fa-user-circle-o" aria-hidden="true"></i>Login</span> <span><i class="fa fa-user-circle-o" aria-hidden="true"></i><?=_('Login')?></span>
</li> </li>
</a> </a>
</ul> </ul>

View File

@ -4,7 +4,7 @@ $config = parse_ini_file('../config.ini',true);
?> ?>
<main id="main"> <main id="main">
<article id="article"> <article id="article">
<h2>Imprint</h2> <h2><?=_('Imprint')?></h2>
<?php <?php
if(file_exists("../config/imprint.txt")) { if(file_exists("../config/imprint.txt")) {
$imprint = explode("\n",file_get_contents("../config/imprint.txt")); $imprint = explode("\n",file_get_contents("../config/imprint.txt"));
@ -13,7 +13,7 @@ $imprint = implode("\n",$imprint);
echo nl2br($imprint); echo nl2br($imprint);
} }
else { else {
echo "Imprint not set!"; echo _("Imprint not set!");
} }
?> ?>
</article> </article>

View File

@ -62,39 +62,39 @@ location.href = "/";
<ul> <ul>
<a href="https://social.csswg.org/@halcyon" class="no-underline"> <a href="https://social.csswg.org/@halcyon" class="no-underline">
<li> <li>
<span><i class="fa fa-newspaper-o" aria-hidden="true"></i>News</span> <span><i class="fa fa-newspaper-o" aria-hidden="true"></i><?=_('News')?></span>
</li> </li>
</a> </a>
<a href="https://notabug.org/halcyon-suite/halcyon" class="no-underline"> <a href="https://notabug.org/halcyon-suite/halcyon" class="no-underline">
<li> <li>
<span><i class="fa fa-code" aria-hidden="true"></i>Source</span> <span><i class="fa fa-code" aria-hidden="true"></i><?=_('Source')?></span>
</li> </li>
</a> </a>
<a href="/terms" class="no-underline"> <a href="/terms" class="no-underline">
<li> <li>
<span><i class="fa fa-balance-scale" aria-hidden="true"></i>Terms</span> <span><i class="fa fa-balance-scale" aria-hidden="true"></i><?=_('Terms')?></span>
</li> </li>
</a> </a>
<a href="/privacy" class="no-underline"> <a href="/privacy" class="no-underline">
<li> <li>
<span><i class="fa fa-shield" aria-hidden="true"></i>Privacy</span> <span><i class="fa fa-shield" aria-hidden="true"></i><?=_('Privacy')?></span>
</li> </li>
</a> </a>
<?php if(file_exists("../config/imprint.txt")) { ?> <?php if(file_exists("../config/imprint.txt")) { ?>
<a href="/imprint" class="no-underline"> <a href="/imprint" class="no-underline">
<li> <li>
<span><i class="fa fa-id-card-o" aria-hidden="true"></i>Imprint</span> <span><i class="fa fa-id-card-o" aria-hidden="true"></i><?=_('Imprint')?></span>
</li> </li>
</a> </a>
<?php } ?> <?php } ?>
<a href="http://www.nikisoft.one/contact.php" class="no-underline"> <a href="http://www.nikisoft.one/contact.php" class="no-underline">
<li> <li>
<span><i class="fa fa-envelope" aria-hidden="true"></i>Contact</span> <span><i class="fa fa-envelope" aria-hidden="true"></i><?=_('Contact')?></span>
</li> </li>
</a> </a>
<a href="#login_form_wrap" class="no-underline"> <a href="#login_form_wrap" class="no-underline">
<li> <li>
<span><i class="fa fa-user-circle-o" aria-hidden="true"></i>Login</span> <span><i class="fa fa-user-circle-o" aria-hidden="true"></i><?=_('Login')?></span>
</li> </li>
</a> </a>
</ul> </ul>
@ -106,9 +106,9 @@ location.href = "/";
<div id="login_form_wrap"> <div id="login_form_wrap">
<div class="login_form"> <div class="login_form">
<form method="POST" > <form method="POST" >
<h2>Login to Halcyon</h2> <h2><?=_('Login to Halcyon')?></h2>
<p> <p>
or <a href="https://joinmastodon.org/">create an account</a> <?=_('or')?> <a href="https://joinmastodon.org/"><?=_('create an account')?></a>
</p> </p>
<div class="session_aleart"> <div class="session_aleart">
<span></span> <span></span>
@ -123,7 +123,7 @@ or <a href="https://joinmastodon.org/">create an account</a>
<div class="login_form_agree"> <div class="login_form_agree">
<label class="login_form_agree_check disallow_select pointer"> <label class="login_form_agree_check disallow_select pointer">
<i class="fa fa-check-square-o" aria-hidden="true"></i> <i class="fa fa-check-square-o" aria-hidden="true"></i>
I agree with the <a href="/terms">Terms</a> <?=_('I agree with the')?> <a href="/terms"><?=_('Terms')?></a>
<input id="agree" type="checkbox" required checked class="invisible"> <input id="agree" type="checkbox" required checked class="invisible">
</label> </label>
</div> </div>
@ -131,9 +131,9 @@ I agree with the <a href="/terms">Terms</a>
</div> </div>
</div> </div>
<article id="article"> <article id="article">
<h2>What is Halcyon</h2> <h2><?=_('What is Halcyon')?></h2>
<p> <p>
Halcyon is a webclient for <a href="https://joinmastodon.org">Mastodon</a> and <a href="https://pleroma.social">Pleroma</a> which aims to recreate the simple and beautiful user interface of Twitter while keeping all advantages of decentral networks in focus. <?=_('Halcyon is a webclient for')?><a href="https://joinmastodon.org"> Mastodon </a><?=_('and')?><a href="https://pleroma.social"> Pleroma </a><?=_('which aims to recreate the simple and beautiful user interface of Twitter while keeping all advantages of decentral networks in focus.')?>
</p> </p>
<div class="image_wrap"> <div class="image_wrap">
<ul> <ul>
@ -144,13 +144,13 @@ Halcyon is a webclient for <a href="https://joinmastodon.org">Mastodon</a> and <
<button class="prev_button switch_button"><i class="fa fa-angle-left" aria-hidden="true"></i></button> <button class="prev_button switch_button"><i class="fa fa-angle-left" aria-hidden="true"></i></button>
<button class="next_button switch_button"><i class="fa fa-angle-right" aria-hidden="true"></i></button> <button class="next_button switch_button"><i class="fa fa-angle-right" aria-hidden="true"></i></button>
</div> </div>
<h2>Contact / Feedback</h2> <h2><?=_('Contact / Feedback')?></h2>
<p> <p>
Mastodon: <a href="https://social.csswg.org/@halcyon" target="_blank">ï¼ halcyon@social.csswg.org</a><br/> Mastodon: <a href="https://social.csswg.org/@halcyon" target="_blank">ï¼ halcyon@social.csswg.org</a><br/>
Email: <a href="http://www.nikisoft.one/contact.php" target="_blank">Use my contact form</a><br/> Email: <a href="http://www.nikisoft.one/contact.php" target="_blank"><?=_('Use my contact form')?></a><br/>
Git repository: <a href="https://notabug.org/halcyon-suite/halcyon" target="_blank">halcyon-suite/halcyon</a> Git repository: <a href="https://notabug.org/halcyon-suite/halcyon" target="_blank">halcyon-suite/halcyon</a>
</p> </p>
<h2>Help us</h2> <h2><?=_('Help us')?></h2>
<p> <p>
Bitcoin: 1D6GThQqHQYnruKYrKyW9JC86ZGWxjt1hK<br/> Bitcoin: 1D6GThQqHQYnruKYrKyW9JC86ZGWxjt1hK<br/>
</p> </p>

View File

@ -4,8 +4,8 @@ $config = parse_ini_file('../config.ini',true);
?> ?>
<main id="main"> <main id="main">
<article id="article"> <article id="article">
<h2>Halcyon Terms of Use</h2> <h2><?=_('Halcyon Terms of Use')?></h2>
<p class="description">This terms of use agreement is for the users of web service Halcyon for Mastodon and Pleroma (Halcyon for short) hosted at <a href="<?php echo $config["App"]["api_client_website"] ?>"><?php echo $config["App"]["api_client_website"] ?></a>.</p><br/> <p class="description"><?=_('This terms of use agreement is for the users of web service Halcyon for Mastodon and Pleroma (Halcyon for short) hosted at')?> <a href="<?php echo $config["App"]["api_client_website"] ?>"><?php echo $config["App"]["api_client_website"] ?></a>.</p><br/>
<?php echo file_get_contents("../config/terms.txt") ?> <?php echo file_get_contents("../config/terms.txt") ?>
</article> </article>
</main> </main>

View File

@ -8,14 +8,14 @@
<ul class="header_items"> <ul class="header_items">
<li class="item toots view"> <li class="item toots view">
<a href="#"> <a href="#">
All <?=_('All')?>
</a> </a>
</li> </li>
</ul> </ul>
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new notitification <?=_('View ')?><span></span><?=_(' new notitification')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -15,7 +15,7 @@
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?> <span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -9,25 +9,25 @@
<article class="center_column"> <article class="center_column">
<header class="timeline_header"> <header class="timeline_header">
<ul class="header_items"> <ul class="header_items">
<li class="item toots view">Appearance settings</li> <li class="item toots view"><?=_('Appearance settings')?></li>
</ul> </ul>
</header> </header>
<div class="timeline"> <div class="timeline">
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>New posts streaming</h3> <h3><?=_('New posts streaming')?></h3>
</div> </div>
<div class="post_streaming_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px"> <div class="post_streaming_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px">
<div class="radiobox"> <div class="radiobox">
<input id="streaming-1" name="post_streaming" type="radio" value="auto"> <input id="streaming-1" name="post_streaming" type="radio" value="auto">
<label for="streaming-1" class="radiotext">Auto update</label> <label for="streaming-1" class="radiotext"><?=_('Auto update')?></label>
</div> </div>
<div class="radiobox"> <div class="radiobox">
<input id="streaming-2" name="post_streaming" type="radio" value="manual"> <input id="streaming-2" name="post_streaming" type="radio" value="manual">
<label for="streaming-2" class="radiotext">Manual update</label> <label for="streaming-2" class="radiotext"><?=_('Manual update')?></label>
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Enable link previews</h3> <h3><?=_('Enable link previews')?></h3>
</div> </div>
<div class="link_previews_wrap" style="float:left;width:75%"> <div class="link_previews_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">
@ -38,7 +38,7 @@
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Desktop notifications</h3> <h3><?=_('Desktop notifications')?></h3>
</div> </div>
<div class="desktop_notifications_wrap" style="float:left;width:75%"> <div class="desktop_notifications_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">
@ -49,7 +49,7 @@
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Show replies</h3> <h3><?=_('Show replies')?></h3>
</div> </div>
<div class="show_replies_wrap" style="float:left;width:75%"> <div class="show_replies_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">
@ -60,7 +60,7 @@
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Show all CW content</h3> <h3><?=_('Show all CW content')?></h3>
</div> </div>
<div class="show_content_warning_wrap" style="float:left;width:75%"> <div class="show_content_warning_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">
@ -71,7 +71,7 @@
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Show all NSFW content</h3> <h3><?=_('Show all NSFW content')?></h3>
</div> </div>
<div class="show_nsfw_wrap" style="float:left;width:75%"> <div class="show_nsfw_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">

View File

@ -9,33 +9,33 @@
<article class="center_column"> <article class="center_column">
<header class="timeline_header"> <header class="timeline_header">
<ul class="header_items"> <ul class="header_items">
<li class="item toots view">General settings</li> <li class="item toots view"><?=_('General settings')?></li>
</ul> </ul>
</header> </header>
<div class="timeline"> <div class="timeline">
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Default post privacy</h3> <h3><?=_('Default post privacy')?></h3>
</div> </div>
<div class="post_privacy_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px"> <div class="post_privacy_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px">
<div class="radiobox"> <div class="radiobox">
<input id="privacy-1" name="post_privacy" type="radio" value="public"> <input id="privacy-1" name="post_privacy" type="radio" value="public">
<label for="privacy-1" class="radiotext">Public</label> <label for="privacy-1" class="radiotext"><?=_('Public')?></label>
</div> </div>
<div class="radiobox"> <div class="radiobox">
<input id="privacy-2" name="post_privacy" type="radio" value="unlisted"> <input id="privacy-2" name="post_privacy" type="radio" value="unlisted">
<label for="privacy-2" class="radiotext">Unlisted</label> <label for="privacy-2" class="radiotext"><?=_('Unlisted')?></label>
</div> </div>
<div class="radiobox"> <div class="radiobox">
<input id="privacy-3" name="post_privacy" type="radio" value="private"> <input id="privacy-3" name="post_privacy" type="radio" value="private">
<label for="privacy-3" class="radiotext">Followers-only</label> <label for="privacy-3" class="radiotext"><?=_('Followers-only')?></label>
</div> </div>
<div class="radiobox"> <div class="radiobox">
<input id="privacy-4" name="post_privacy" type="radio" value="direct"> <input id="privacy-4" name="post_privacy" type="radio" value="direct">
<label for="privacy-4" class="radiotext">Direct</label> <label for="privacy-4" class="radiotext"><?=_('Direct')?></label>
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Mark as NSFW by default</h3> <h3><?=_('Mark as NSFW by default')?></h3>
</div> </div>
<div class="post_sensitive_wrap" style="float:left;width:75%"> <div class="post_sensitive_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">
@ -46,26 +46,26 @@
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Local instance</h3> <h3><?=_('Local instance')?></h3>
</div> </div>
<div class="local_instance_wrap" style="float:left;width:75%"> <div class="local_instance_wrap" style="float:left;width:75%">
<input name="local_instance" placeholder="default" type="text" class="disallow_enter textfield" id="setting_local_instance"> <input name="local_instance" placeholder="default" type="text" class="disallow_enter textfield" id="setting_local_instance">
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Hashtag search filter</h3> <h3><?=_('Hashtag search filter')?></h3>
</div> </div>
<div class="search_filter_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px"> <div class="search_filter_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px">
<div class="radiobox"> <div class="radiobox">
<input id="locinstance-1" name="search_filter" type="radio" value="all"> <input id="locinstance-1" name="search_filter" type="radio" value="all">
<label for="locinstance-1" class="radiotext">All instances</label> <label for="locinstance-1" class="radiotext"><?=_('All instances')?></label>
</div> </div>
<div class="radiobox"> <div class="radiobox">
<input id="locinstance-2" name="search_filter" type="radio" value="local"> <input id="locinstance-2" name="search_filter" type="radio" value="local">
<label for="locinstance-2" class="radiotext">Local only</label> <label for="locinstance-2" class="radiotext"><?=_('Local only')?></label>
</div> </div>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Who to follow</h3> <h3><?=_('Who to follow')?></h3>
</div> </div>
<div class="who_to_follow_wrap" style="float:left;width:75%"> <div class="who_to_follow_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">

View File

@ -20,24 +20,24 @@ content:"Select file and upload";
<article class="center_column"> <article class="center_column">
<header class="timeline_header"> <header class="timeline_header">
<ul class="header_items"> <ul class="header_items">
<li class="item toots view">Profile settings</li> <li class="item toots view"><?=_('Profile settings')?></li>
</ul> </ul>
</header> </header>
<div class="timeline"> <div class="timeline">
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Display name</h3> <h3><?=_('Display name')?></h3>
</div> </div>
<div class="display_name_wrap" style="float:left;width:75%"> <div class="display_name_wrap" style="float:left;width:75%">
<input name="display_name" type="text" class="disallow_enter textfield" id="setting_display_name" maxlength="30"> <input name="display_name" type="text" class="disallow_enter textfield" id="setting_display_name" maxlength="30">
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>About me</h3> <h3><?=_('About me')?></h3>
</div> </div>
<div class="about_me_wrap" style="float:left;width:75%"> <div class="about_me_wrap" style="float:left;width:75%">
<textarea name="about_me" class="disallow_enter textfield" id="setting_about_me" maxlength="160" style="resize:none;height:100px;font-family:arial;padding:5px"></textarea> <textarea name="about_me" class="disallow_enter textfield" id="setting_about_me" maxlength="160" style="resize:none;height:100px;font-family:arial;padding:5px"></textarea>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Avatar</h3> <h3><?=_('Avatar')?></h3>
</div> </div>
<div class="avatar_wrap" style="float:left;width:75%"> <div class="avatar_wrap" style="float:left;width:75%">
<span class="halcyon_button uploadbtn" style="width:calc(50% - 2px);margin:10px;padding:0;height:28px;position:relative"> <span class="halcyon_button uploadbtn" style="width:calc(50% - 2px);margin:10px;padding:0;height:28px;position:relative">
@ -45,7 +45,7 @@ content:"Select file and upload";
</span> </span>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Header</h3> <h3><?=_('Header')?></h3>
</div> </div>
<div class="header_wrap" style="float:left;width:75%"> <div class="header_wrap" style="float:left;width:75%">
<span class="halcyon_button uploadbtn" style="width:calc(50% - 2px);margin:10px;padding:0;height:28px;position:relative"> <span class="halcyon_button uploadbtn" style="width:calc(50% - 2px);margin:10px;padding:0;height:28px;position:relative">
@ -53,7 +53,7 @@ content:"Select file and upload";
</span> </span>
</div> </div>
<div style="float:left;width:25%;text-align:right;margin-top:16px"> <div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Lock account</h3> <h3><?=_('Lock account')?></h3>
</div> </div>
<div class="lock_account_wrap" style="float:left;width:75%"> <div class="lock_account_wrap" style="float:left;width:75%">
<div class="switch"> <div class="switch">

View File

@ -11,7 +11,7 @@
<a id="js_profile_displayname" href="#"></a> <a id="js_profile_displayname" href="#"></a>
</h1> </h1>
<h2 class="profile_username"> <h2 class="profile_username">
@<a id="js_profile_username" href="#"></a><span class="profile_followed_by invisible">FOLLOWS YOU</span> @<a id="js_profile_username" href="#"></a><span class="profile_followed_by invisible"><?=_('FOLLOWS YOU')?></span>
</h2> </h2>
<p id="js_profile_bio" class="profile_bio"></p> <p id="js_profile_bio" class="profile_bio"></p>
<?php include dirname(__FILE__).('/widgets/user_recent_images.php'); ?> <?php include dirname(__FILE__).('/widgets/user_recent_images.php'); ?>
@ -22,24 +22,25 @@
<ul class="header_items"> <ul class="header_items">
<li class="item toots view"> <li class="item toots view">
<a id="toots_link"> <a id="toots_link">
Toots <?=_('Toots')?>
</a> </a>
</li> </li>
<li class="item wreplies"> <li class="item wreplies">
<a id="with_replies_link"> <a id="with_replies_link">
Toots &amp; replies <?=_('Toots')?> &amp; <?=_('replies')?>
</a> </a>
</li> </li>
<li class="item media"> <li class="item media">
<a id="media_link"> <a id="media_link">
Media <?=_('Media')?>
</a> </a>
</li> </li>
</ul> </ul>
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?><span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -22,14 +22,14 @@
<ul class="header_items"> <ul class="header_items">
<li class="item toots view"> <li class="item toots view">
<a id="toots_link"> <a id="toots_link">
Favourites <?=_('Favourites')?>
</a> </a>
</li> </li>
</ul> </ul>
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?><span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -22,24 +22,24 @@
<ul class="header_items"> <ul class="header_items">
<li class="item toots"> <li class="item toots">
<a id="toots_link"> <a id="toots_link">
Toots <?=_('Toots')?>
</a> </a>
</li> </li>
<li class="item wreplies view"> <li class="item wreplies view">
<a id="with_replies_link"> <a id="with_replies_link">
Toots &amp; replies <?=_('Toots')?> &amp; <?=_('replies')?>
</a> </a>
</li> </li>
<li class="item media"> <li class="item media">
<a id="media_link"> <a id="media_link">
Media <?=_('Media')?>
</a> </a>
</li> </li>
</ul> </ul>
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?><span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -22,24 +22,24 @@
<ul class="header_items"> <ul class="header_items">
<li class="item toots"> <li class="item toots">
<a id="toots_link"> <a id="toots_link">
Toots <?=_('Toots')?>
</a> </a>
</li> </li>
<li class="item wreplies"> <li class="item wreplies">
<a id="with_replies_link"> <a id="with_replies_link">
Toots &amp; replies <?=_('Toots')?> &amp; <?=_('replies')?>
</a> </a>
</li> </li>
<li class="item media view"> <li class="item media view">
<a id="media_link"> <a id="media_link">
Media <?=_('Media')?>
</a> </a>
</li> </li>
</ul> </ul>
</header> </header>
<div id="js-stream_update"> <div id="js-stream_update">
<button> <button>
View <span></span> new Toots <?=_('View ')?><span></span><?=_(' new Toots')?>
</button> </button>
</div> </div>
<ul id="js-timeline" class="timeline"> <ul id="js-timeline" class="timeline">

View File

@ -7,7 +7,7 @@
<img class="js_current_profile_image"> <img class="js_current_profile_image">
</div> </div>
<div class="status_textarea"> <div class="status_textarea">
<textarea class="emoji_poss" name="status_textarea" placeholder="What's happening?"></textarea> <textarea class="emoji_poss" name="status_textarea" placeholder="<?=_('What\'s happening?')?>"></textarea>
<div class="media_attachments_preview_area invisible"></div> <div class="media_attachments_preview_area invisible"></div>
</div> </div>
</div> </div>
@ -25,16 +25,16 @@
<i class="fa fa-globe" aria-hidden="true"></i> <i class="fa fa-globe" aria-hidden="true"></i>
<div class="expand_privacy_menu invisible"> <div class="expand_privacy_menu invisible">
<label for="header_status_public" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-globe"> <label for="header_status_public" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-globe">
<i class="fa fa-globe" aria-hidden="true"></i>Public <i class="fa fa-globe" aria-hidden="true"></i><?=_('Public')?>
</label> </label>
<label for="header_status_unlisted" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-unlock-alt"> <label for="header_status_unlisted" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-unlock-alt">
<i class="fa fa-unlock-alt" aria-hidden="true"></i>Unlisted <i class="fa fa-unlock-alt" aria-hidden="true"></i><?=_('Unlisted')?>
</label> </label>
<label for="header_status_fonly" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-lock"> <label for="header_status_fonly" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-lock">
<i class="fa fa-lock" aria-hidden="true"></i>Followers-only <i class="fa fa-lock" aria-hidden="true"></i><?=_('Followers-only')?>
</label> </label>
<label for="header_status_direct" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-envelope"> <label for="header_status_direct" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-envelope">
<i class="fa fa-envelope" aria-hidden="true"></i>Direct <i class="fa fa-envelope" aria-hidden="true"></i><?=_('Direct')?>
</label> </label>
</div> </div>
</div> </div>
@ -55,7 +55,7 @@
<label for="header_status_form_submit" class="submit_status_label"> <label for="header_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select" > <div class="toot_button_label disallow_select" >
<i class="fa fa-fw fa-pencil-square-o"></i> <i class="fa fa-fw fa-pencil-square-o"></i>
<span>Toot</span> <span><?=_('Toot')?></span>
</div> </div>
</label> </label>
</div> </div>

View File

@ -1,6 +1,6 @@
<div class="overlay_copy_link invisible"> <div class="overlay_copy_link invisible">
<header class="overlay_copy_link_header"> <header class="overlay_copy_link_header">
<span class="emoji_poss">Copy link to Toot</span> <span class="emoji_poss"><?=_('Copy link to Toot')?></span>
</header> </header>
<div class="overlay_copy_link_form"> <div class="overlay_copy_link_form">
<input type="text" value="" readonly> <input type="text" value="" readonly>

View File

@ -1,10 +1,10 @@
<div class="overlay_status invisible"> <div class="overlay_status invisible">
<header class="overlay_status_header"> <header class="overlay_status_header">
<span>Compose new Toot</span> <span><?=_('Compose new Toot')?></span>
</header> </header>
<form id="overlay_status_form" name="overlay_status_form" class="status_form ready"> <form id="overlay_status_form" name="overlay_status_form" class="status_form ready">
<div class="status_top"> <div class="status_top">
<input class="status_spoiler invisible" name="status_spoiler" placeholder="Content warning" type="text"> <input class="status_spoiler invisible" name="status_spoiler" placeholder="<?=_('Content warning')?>" type="text">
</div> </div>
<div class="status_main"> <div class="status_main">
<div class="status_textarea"> <div class="status_textarea">
@ -26,16 +26,16 @@
<i class="fa fa-globe" aria-hidden="true"></i> <i class="fa fa-globe" aria-hidden="true"></i>
<div class="expand_privacy_menu invisible"> <div class="expand_privacy_menu invisible">
<label for="overlay_status_public" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-globe"> <label for="overlay_status_public" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-globe">
<i class="fa fa-globe" aria-hidden="true"></i>Public <i class="fa fa-globe" aria-hidden="true"></i><?=_('Public')?>
</label> </label>
<label for="overlay_status_unlisted" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-unlock-alt"> <label for="overlay_status_unlisted" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-unlock-alt">
<i class="fa fa-unlock-alt" aria-hidden="true"></i>Unlisted <i class="fa fa-unlock-alt" aria-hidden="true"></i><?=_('Unlisted')?>
</label> </label>
<label for="overlay_status_fonly" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-lock"> <label for="overlay_status_fonly" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-lock">
<i class="fa fa-lock" aria-hidden="true"></i>Followers-only <i class="fa fa-lock" aria-hidden="true"></i><?=_('Followers-only')?>
</label> </label>
<label for="overlay_status_direct" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-envelope"> <label for="overlay_status_direct" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-envelope">
<i class="fa fa-envelope" aria-hidden="true"></i>Direct <i class="fa fa-envelope" aria-hidden="true"></i><?=_('Direct')?>
</label> </label>
</div> </div>
</div> </div>
@ -56,7 +56,7 @@
<label for="overlay_status_form_submit" class="submit_status_label"> <label for="overlay_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select"> <div class="toot_button_label disallow_select">
<i class="fa fa-fw fa-pencil-square-o"></i> <i class="fa fa-fw fa-pencil-square-o"></i>
<span>Toot</span> <span><?=_('Toot')?></span>
</div> </div>
</label> </label>
</div> </div>

View File

@ -1,15 +1,15 @@
<div class="report_status invisible"> <div class="report_status invisible">
<header class="report_status_header"> <header class="report_status_header">
<span>Report a Toot of </span> <span><?=_('Report a Toot of')?> </span>
</header> </header>
<div class="status_preview"></div> <div class="status_preview"></div>
<form id="report_status_form" name="report_status_form" class="status_form"> <form id="report_status_form" name="report_status_form" class="status_form">
<div class="status_top"> <div class="status_top">
<input class="status_spoiler invisible" name="status_spoiler" placeholder="Content warning" type="text"> <input class="status_spoiler invisible" name="status_spoiler" placeholder="<?=_('Content warning')?>" type="text">
</div> </div>
<div class="status_main"> <div class="status_main">
<div class="status_textarea"> <div class="status_textarea">
<textarea name="status_textarea" placeholder="Please describe what the problem with the Toot is."></textarea> <textarea name="status_textarea" placeholder="<?=_('Please describe what the problem with the Toot is.')?>"></textarea>
</div> </div>
</div> </div>
<div class="status_bottom"> <div class="status_bottom">
@ -19,7 +19,7 @@
<label for="report_status_form_submit" class="submit_status_label"> <label for="report_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select"> <div class="toot_button_label disallow_select">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<span>Report</span> <span><?=_('Report')?></span>
</div> </div>
</label> </label>
</div> </div>

View File

@ -1,15 +1,15 @@
<div class="single_reply_status invisible"> <div class="single_reply_status invisible">
<header class="single_reply_status_header"> <header class="single_reply_status_header">
<span>Reply to </span> <span><?=_('Reply to')?> </span>
</header> </header>
<div class="status_preview"></div> <div class="status_preview"></div>
<form id="single_reply_status_form" name="single_reply_status_form" class="status_form"> <form id="single_reply_status_form" name="single_reply_status_form" class="status_form">
<div class="status_top"> <div class="status_top">
<input class="status_spoiler invisible" name="status_spoiler" placeholder="Content warning" type="text"> <input class="status_spoiler invisible" name="status_spoiler" placeholder="<?=_('Content warning')?>" type="text">
</div> </div>
<div class="status_main"> <div class="status_main">
<div class="status_textarea"> <div class="status_textarea">
<textarea class="emoji_poss" name="status_textarea" placeholder="What's happening?"></textarea> <textarea class="emoji_poss" name="status_textarea" placeholder="<?=_('What\'s happening?')?>"></textarea>
<div class="media_attachments_preview_area invisible"></div> <div class="media_attachments_preview_area invisible"></div>
</div> </div>
</div> </div>
@ -27,16 +27,16 @@
<i class="fa fa-globe" aria-hidden="true"></i> <i class="fa fa-globe" aria-hidden="true"></i>
<div class="expand_privacy_menu invisible"> <div class="expand_privacy_menu invisible">
<label for="single_reply_status_public" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-globe"> <label for="single_reply_status_public" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-globe">
<i class="fa fa-globe" aria-hidden="true"></i>Public <i class="fa fa-globe" aria-hidden="true"></i><?=_('Public')?>
</label> </label>
<label for="single_reply_status_unlisted" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-unlock-alt"> <label for="single_reply_status_unlisted" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-unlock-alt">
<i class="fa fa-unlock-alt" aria-hidden="true"></i>Unlisted <i class="fa fa-unlock-alt" aria-hidden="true"></i><?=_('Unlisted')?>
</label> </label>
<label for="single_reply_status_fonly" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-lock"> <label for="single_reply_status_fonly" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-lock">
<i class="fa fa-lock" aria-hidden="true"></i>Followers-only <i class="fa fa-lock" aria-hidden="true"></i><?=_('Followers-only')?>
</label> </label>
<label for="single_reply_status_direct" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-envelope"> <label for="single_reply_status_direct" class="status_privacy select_privacy disallow_select" privacyicon="fa fa-envelope">
<i class="fa fa-envelope" aria-hidden="true"></i>Direct <i class="fa fa-envelope" aria-hidden="true"></i><?=_('Direct')?>
</label> </label>
</div> </div>
</div> </div>
@ -57,7 +57,7 @@
<label for="single_reply_status_form_submit" class="submit_status_label"> <label for="single_reply_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select"> <div class="toot_button_label disallow_select">
<i class="fa fa-reply" aria-hidden="true"></i> <i class="fa fa-reply" aria-hidden="true"></i>
<span>Reply</span> <span><?=_('Reply')?></span>
</div> </div>
</label> </label>
</div> </div>

View File

@ -7,12 +7,12 @@
<ul class="header_nav_list"> <ul class="header_nav_list">
<li id="js-search_nav_toots" class="header_nav_item search_toots"> <li id="js-search_nav_toots" class="header_nav_item search_toots">
<a> <a>
<h2>TOOTS</h2> <h2><?=_('TOOTS')?></h2>
</a> </a>
</li> </li>
<li id="js-search_nav_peoples" class="header_nav_item search_following"> <li id="js-search_nav_peoples" class="header_nav_item search_following">
<a> <a>
<h2>PEOPLE</h2> <h2><?=_('PEOPLE')?></h2>
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -1,5 +1,5 @@
<div id="js-header_title_box"> <div id="js-header_title_box">
<h1>Settings</h1> <h1><?=_('Settings')?></h1>
</div> </div>
<div class="header_nav_wrap"> <div class="header_nav_wrap">
<div class="header_nav"> <div class="header_nav">
@ -7,17 +7,17 @@
<ul class="header_nav_list"> <ul class="header_nav_list">
<li id="js-settings_nav_general" class="header_nav_item settings_general"> <li id="js-settings_nav_general" class="header_nav_item settings_general">
<a href="/settings"> <a href="/settings">
<h2>GENERAL</h2> <h2><?=_('GENERAL')?></h2>
</a> </a>
</li> </li>
<li id="js-settings_nav_profile" class="header_nav_item settings_profile"> <li id="js-settings_nav_profile" class="header_nav_item settings_profile">
<a href="/settings/profile"> <a href="/settings/profile">
<h2>PROFILE</h2> <h2><?=_('PROFILE')?></h2>
</a> </a>
</li> </li>
<li id="js-settings_nav_appearance" class="header_nav_item settings_appearance"> <li id="js-settings_nav_appearance" class="header_nav_item settings_appearance">
<a href="/settings/appearance"> <a href="/settings/appearance">
<h2>APPEARANCE</h2> <h2><?=_('APPEARANCE')?></h2>
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -1,10 +1,10 @@
<div class="side_widget stream_options"> <div class="side_widget stream_options">
<div class="form_title"> <div class="form_title">
<h2>Change instance</h2> <h2><?=_('Change instance')?></h2>
</div> </div>
<form> <form>
<div class="local_instance_wrap"> <div class="local_instance_wrap">
<input name="local_instance" placeholder="Blank for default" type="text" class="disallow_enter"> <input name="local_instance" placeholder="<?=_('Blank for default')?>" type="text" class="disallow_enter">
</div> </div>
</form> </form>
</div> </div>

View File

@ -15,13 +15,13 @@
<ul class="current_profile_counts"> <ul class="current_profile_counts">
<li class="current_profile_count current_profile_toots_count"> <li class="current_profile_count current_profile_toots_count">
<a class="current_toots_count_link"> <a class="current_toots_count_link">
<span class="title">TOOTS</span> <span class="title"><?=_('TOOTS')?></span>
<span class="js_current_toots_count count"></span> <span class="js_current_toots_count count"></span>
</a> </a>
</li> </li>
<li class="current_profile_count current_profile_follows_count"> <li class="current_profile_count current_profile_follows_count">
<a class="current_following_count_link"> <a class="current_following_count_link">
<span class="title">FOLLOWING</span> <span class="title"><?=_('FOLLOWING')?></span>
<span class="js_current_following_count count"></span> <span class="js_current_following_count count"></span>
</a> </a>
</li> </li>

View File

@ -1,5 +1,5 @@
<div class="side_widget what_to_follow"> <div class="side_widget what_to_follow">
<h2>Interesting accounts of devs</h2> <h2><?=_('Interesting accounts of devs')?></h2>
<ul class="account_list"> <ul class="account_list">
<li class="account_box"> <li class="account_box">
<div class="icon_box"> <div class="icon_box">
@ -14,7 +14,7 @@
</a> </a>
<button class="follow_button action_button" data="@halcyon@social.csswg.org"> <button class="follow_button action_button" data="@halcyon@social.csswg.org">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>
@ -31,7 +31,7 @@
</a> </a>
<button class="follow_button" data="@nipos@social.netzkombinat.su"> <button class="follow_button" data="@nipos@social.netzkombinat.su">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>
@ -48,7 +48,7 @@
</a> </a>
<button class="follow_button" data="@Mastodon@mastodon.social"> <button class="follow_button" data="@Mastodon@mastodon.social">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>
@ -65,7 +65,7 @@
</a> </a>
<button class="follow_button" data="@Gargron@mastodon.social"> <button class="follow_button" data="@Gargron@mastodon.social">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>

View File

@ -1,11 +1,11 @@
<footer class="side_widgets_footer side_widget"><ul> <footer class="side_widgets_footer side_widget"><ul>
<li>Halcyon for <a href="https://github.com/tootsuite/mastodon">Mastodon</a> and <a href="https://git.pleroma.social/pleroma/pleroma">Pleroma</a></li> <li><?=_('Halcyon for')?> <a href="https://github.com/tootsuite/mastodon">Mastodon</a> <?=_('and')?> <a href="https://git.pleroma.social/pleroma/pleroma">Pleroma</a></li>
<li><a class="footer_widget_about">About</a></li> <li><a class="footer_widget_about"><?=_('About')?></a></li>
<li><a class="footer_widget_terms">Terms</a></li> <li><a class="footer_widget_terms"><?=_('Terms')?></a></li>
<li><a href="https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md">Apps</a></li> <li><a href="https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md"><?=_('Apps')?></a></li>
<li><a href="https://notabug.org/halcyon-suite/halcyon">Source code</a></li> <li><a href="https://notabug.org/halcyon-suite/halcyon"><?=_('Source code')?></a></li>
<li><a href="https://instances.social">Other instances</a></li> <li><a href="https://instances.social"><?=_('Other instances')?></a></li>
<li><a href="/privacy">Privacy policy</a></li> <li><a href="/privacy"><?=_('Privacy policy')?></a></li>
<?php <?php
if(file_exists("config/imprint.txt")) { if(file_exists("config/imprint.txt")) {
echo "<li><a href='/imprint'>Imprint</a></li>"; echo "<li><a href='/imprint'>Imprint</a></li>";
@ -19,7 +19,7 @@ echo "<li><a href='".$footerlinks[$i]->link."'>".$footerlinks[$i]->title."</a></
} }
} }
?> ?>
<li>Version <?php echo file_get_contents("version.txt") ?></li> <li><?=_('Version')?> <?php echo file_get_contents("version.txt") ?></li>
</ul> </ul>
</footer> </footer>
<img style="display:block;margin:16px auto;width: 30%;opacity: .3;" src="/assets/images/halcyon.png"> <img style="display:block;margin:16px auto;width: 30%;opacity: .3;" src="/assets/images/halcyon.png">

View File

@ -3,16 +3,16 @@ $appSettings = parse_ini_file('config/config.ini',true);
echo "<span id='who-to-follow-provider' style='display:none'>".$appSettings["App"]["who_to_follow_provider"]."</span>"; echo "<span id='who-to-follow-provider' style='display:none'>".$appSettings["App"]["who_to_follow_provider"]."</span>";
?> ?>
<div class="side_widget follow_opt_in side_widgets_footer"> <div class="side_widget follow_opt_in side_widgets_footer">
<h2>Who to follow</h2> <h2><?=_('Who to follow')?></h2>
Halcyon needs to connect to an external server to get a list of users which have similar interests as you. If you want to use this feature, please opt-in. <?=_('Halcyon needs to connect to an external server to get a list of users which have similar interests as you. If you want to use this feature, please opt-in.')?>
<center><br/> <center><br/>
<button class="halcyon_button" id="enable_follow"> <button class="halcyon_button" id="enable_follow">
<span>Enable who to follow</span> <span><?=_('Enable who to follow')?></span>
</button> </button>
</center> </center>
</div> </div>
<div class="side_widget follow_loading" style="display:none;color:#AAB8C2"> <div class="side_widget follow_loading" style="display:none;color:#AAB8C2">
<h2>Who to follow</h2> <h2><?=_('Who to follow')?></h2>
<div style="height:100px"></div> <div style="height:100px"></div>
<center> <center>
<span class="fa-stack fa-2x"> <span class="fa-stack fa-2x">
@ -23,8 +23,8 @@ Halcyon needs to connect to an external server to get a list of users which have
</div> </div>
<div class="side_widget with_button what_to_follow" style="display:none"> <div class="side_widget with_button what_to_follow" style="display:none">
<div class="form_title"> <div class="form_title">
<h2>Who to follow</h2> <h2><?=_('Who to follow')?></h2>
<a href="/whotofollow" class="headerbtn">MORE</a> <a href="/whotofollow" class="headerbtn"><?=_('MORE')?></a>
</div> </div>
<ul class="account_list"> <ul class="account_list">
<li class="account_box what_to_follow_0"> <li class="account_box what_to_follow_0">
@ -40,7 +40,7 @@ Halcyon needs to connect to an external server to get a list of users which have
</a> </a>
<button class="follow_button" mid="" data=""> <button class="follow_button" mid="" data="">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>
@ -57,7 +57,7 @@ Halcyon needs to connect to an external server to get a list of users which have
</a> </a>
<button class="follow_button" mid="" data=""> <button class="follow_button" mid="" data="">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>
@ -74,7 +74,7 @@ Halcyon needs to connect to an external server to get a list of users which have
</a> </a>
<button class="follow_button" mid="" data=""> <button class="follow_button" mid="" data="">
<i class="fa fa-fw fa-user-plus"></i> <i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span> <span><?=_('Follow')?></span>
</button> </button>
</div> </div>
</li> </li>

View File

@ -9,19 +9,19 @@
<ul class="profile_nav_list"> <ul class="profile_nav_list">
<li id="js-profile_nav_toots" class="profile_nav_item profile_toots"> <li id="js-profile_nav_toots" class="profile_nav_item profile_toots">
<a> <a>
<h2>TOOTS</h2> <h2><?=_('TOOTS')?></h2>
<span id="js_toots_count"></span> <span id="js_toots_count"></span>
</a> </a>
</li> </li>
<li id="js-profile_nav_following" class="profile_nav_item profile_following"> <li id="js-profile_nav_following" class="profile_nav_item profile_following">
<a> <a>
<h2>FOLLOWING</h2> <h2><?=_('FOLLOWING')?></h2>
<span id="js_following_count"></span> <span id="js_following_count"></span>
</a> </a>
</li> </li>
<li id="js-profile_nav_followers" class="profile_nav_item profile_followers"> <li id="js-profile_nav_followers" class="profile_nav_item profile_followers">
<a> <a>
<h2>FOLLOWERS</h2> <h2><?=_('FOLLOWERS')?></h2>
<span id="js_followers_count"></span> <span id="js_followers_count"></span>
</a> </a>
</li> </li>