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>
<article>
<h1>404</h1>
<h2>Sorry, something went wrong.</h2>
<h2><?=_('Sorry, something went wrong.')?></h2>
</article>
</body>
</html>

View File

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

View File

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

View File

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

View File

@ -30,39 +30,39 @@
<ul>
<a href="https://social.csswg.org/@halcyon" class="no-underline">
<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>
</a>
<a href="https://notabug.org/halcyon-suite/halcyon" class="no-underline">
<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>
</a>
<a href="/terms" class="no-underline">
<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>
</a>
<a href="/privacy" class="no-underline">
<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>
</a>
<?php if(file_exists("../config/imprint.txt")) { ?>
<a href="/imprint" class="no-underline">
<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>
</a>
<?php } ?>
<a href="http://www.nikisoft.one/contact.php" class="no-underline">
<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>
</a>
<a href="/login/#login_form_wrap" class="no-underline">
<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>
</a>
</ul>

View File

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

View File

@ -62,39 +62,39 @@ location.href = "/";
<ul>
<a href="https://social.csswg.org/@halcyon" class="no-underline">
<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>
</a>
<a href="https://notabug.org/halcyon-suite/halcyon" class="no-underline">
<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>
</a>
<a href="/terms" class="no-underline">
<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>
</a>
<a href="/privacy" class="no-underline">
<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>
</a>
<?php if(file_exists("../config/imprint.txt")) { ?>
<a href="/imprint" class="no-underline">
<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>
</a>
<?php } ?>
<a href="http://www.nikisoft.one/contact.php" class="no-underline">
<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>
</a>
<a href="#login_form_wrap" class="no-underline">
<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>
</a>
</ul>
@ -106,9 +106,9 @@ location.href = "/";
<div id="login_form_wrap">
<div class="login_form">
<form method="POST" >
<h2>Login to Halcyon</h2>
<h2><?=_('Login to Halcyon')?></h2>
<p>
or <a href="https://joinmastodon.org/">create an account</a>
<?=_('or')?> <a href="https://joinmastodon.org/"><?=_('create an account')?></a>
</p>
<div class="session_aleart">
<span></span>
@ -123,7 +123,7 @@ or <a href="https://joinmastodon.org/">create an account</a>
<div class="login_form_agree">
<label class="login_form_agree_check disallow_select pointer">
<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">
</label>
</div>
@ -131,9 +131,9 @@ I agree with the <a href="/terms">Terms</a>
</div>
</div>
<article id="article">
<h2>What is Halcyon</h2>
<h2><?=_('What is Halcyon')?></h2>
<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>
<div class="image_wrap">
<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="next_button switch_button"><i class="fa fa-angle-right" aria-hidden="true"></i></button>
</div>
<h2>Contact / Feedback</h2>
<h2><?=_('Contact / Feedback')?></h2>
<p>
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>
</p>
<h2>Help us</h2>
<h2><?=_('Help us')?></h2>
<p>
Bitcoin: 1D6GThQqHQYnruKYrKyW9JC86ZGWxjt1hK<br/>
</p>

View File

@ -4,8 +4,8 @@ $config = parse_ini_file('../config.ini',true);
?>
<main id="main">
<article id="article">
<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/>
<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/>
<?php echo file_get_contents("../config/terms.txt") ?>
</article>
</main>

View File

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

View File

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

View File

@ -9,25 +9,25 @@
<article class="center_column">
<header class="timeline_header">
<ul class="header_items">
<li class="item toots view">Appearance settings</li>
<li class="item toots view"><?=_('Appearance settings')?></li>
</ul>
</header>
<div class="timeline">
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>New posts streaming</h3>
<h3><?=_('New posts streaming')?></h3>
</div>
<div class="post_streaming_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px">
<div class="radiobox">
<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 class="radiobox">
<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 style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Enable link previews</h3>
<h3><?=_('Enable link previews')?></h3>
</div>
<div class="link_previews_wrap" style="float:left;width:75%">
<div class="switch">
@ -38,7 +38,7 @@
</div>
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Desktop notifications</h3>
<h3><?=_('Desktop notifications')?></h3>
</div>
<div class="desktop_notifications_wrap" style="float:left;width:75%">
<div class="switch">
@ -49,7 +49,7 @@
</div>
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Show replies</h3>
<h3><?=_('Show replies')?></h3>
</div>
<div class="show_replies_wrap" style="float:left;width:75%">
<div class="switch">
@ -60,7 +60,7 @@
</div>
</div>
<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 class="show_content_warning_wrap" style="float:left;width:75%">
<div class="switch">
@ -71,7 +71,7 @@
</div>
</div>
<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 class="show_nsfw_wrap" style="float:left;width:75%">
<div class="switch">

View File

@ -9,33 +9,33 @@
<article class="center_column">
<header class="timeline_header">
<ul class="header_items">
<li class="item toots view">General settings</li>
<li class="item toots view"><?=_('General settings')?></li>
</ul>
</header>
<div class="timeline">
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Default post privacy</h3>
<h3><?=_('Default post privacy')?></h3>
</div>
<div class="post_privacy_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px">
<div class="radiobox">
<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 class="radiobox">
<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 class="radiobox">
<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 class="radiobox">
<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 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 class="post_sensitive_wrap" style="float:left;width:75%">
<div class="switch">
@ -46,26 +46,26 @@
</div>
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Local instance</h3>
<h3><?=_('Local instance')?></h3>
</div>
<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">
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Hashtag search filter</h3>
<h3><?=_('Hashtag search filter')?></h3>
</div>
<div class="search_filter_wrap" style="float:left;width:75%;margin-top:8px;margin-bottom:-8px">
<div class="radiobox">
<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 class="radiobox">
<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 style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Who to follow</h3>
<h3><?=_('Who to follow')?></h3>
</div>
<div class="who_to_follow_wrap" style="float:left;width:75%">
<div class="switch">

View File

@ -20,24 +20,24 @@ content:"Select file and upload";
<article class="center_column">
<header class="timeline_header">
<ul class="header_items">
<li class="item toots view">Profile settings</li>
<li class="item toots view"><?=_('Profile settings')?></li>
</ul>
</header>
<div class="timeline">
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Display name</h3>
<h3><?=_('Display name')?></h3>
</div>
<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">
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>About me</h3>
<h3><?=_('About me')?></h3>
</div>
<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>
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Avatar</h3>
<h3><?=_('Avatar')?></h3>
</div>
<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">
@ -45,7 +45,7 @@ content:"Select file and upload";
</span>
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Header</h3>
<h3><?=_('Header')?></h3>
</div>
<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">
@ -53,7 +53,7 @@ content:"Select file and upload";
</span>
</div>
<div style="float:left;width:25%;text-align:right;margin-top:16px">
<h3>Lock account</h3>
<h3><?=_('Lock account')?></h3>
</div>
<div class="lock_account_wrap" style="float:left;width:75%">
<div class="switch">

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
<img class="js_current_profile_image">
</div>
<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>
</div>
@ -25,16 +25,16 @@
<i class="fa fa-globe" aria-hidden="true"></i>
<div class="expand_privacy_menu invisible">
<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 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 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 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>
</div>
</div>
@ -55,10 +55,10 @@
<label for="header_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select" >
<i class="fa fa-fw fa-pencil-square-o"></i>
<span>Toot</span>
<span><?=_('Toot')?></span>
</div>
</label>
</div>
<input id="header_status_form_submit" class="submit_status" type="button" class="invisible">
</div>
</form>
</form>

View File

@ -1,6 +1,6 @@
<div class="overlay_copy_link invisible">
<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>
<div class="overlay_copy_link_form">
<input type="text" value="" readonly>

View File

@ -1,10 +1,10 @@
<div class="overlay_status invisible">
<header class="overlay_status_header">
<span>Compose new Toot</span>
<span><?=_('Compose new Toot')?></span>
</header>
<form id="overlay_status_form" name="overlay_status_form" class="status_form ready">
<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 class="status_main">
<div class="status_textarea">
@ -26,16 +26,16 @@
<i class="fa fa-globe" aria-hidden="true"></i>
<div class="expand_privacy_menu invisible">
<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 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 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 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>
</div>
</div>
@ -56,7 +56,7 @@
<label for="overlay_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select">
<i class="fa fa-fw fa-pencil-square-o"></i>
<span>Toot</span>
<span><?=_('Toot')?></span>
</div>
</label>
</div>

View File

@ -1,15 +1,15 @@
<div class="report_status invisible">
<header class="report_status_header">
<span>Report a Toot of </span>
<span><?=_('Report a Toot of')?> </span>
</header>
<div class="status_preview"></div>
<form id="report_status_form" name="report_status_form" class="status_form">
<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 class="status_main">
<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 class="status_bottom">
@ -19,7 +19,7 @@
<label for="report_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<span>Report</span>
<span><?=_('Report')?></span>
</div>
</label>
</div>

View File

@ -1,15 +1,15 @@
<div class="single_reply_status invisible">
<header class="single_reply_status_header">
<span>Reply to </span>
<span><?=_('Reply to')?> </span>
</header>
<div class="status_preview"></div>
<form id="single_reply_status_form" name="single_reply_status_form" class="status_form">
<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 class="status_main">
<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>
</div>
@ -27,16 +27,16 @@
<i class="fa fa-globe" aria-hidden="true"></i>
<div class="expand_privacy_menu invisible">
<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 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 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 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>
</div>
</div>
@ -57,7 +57,7 @@
<label for="single_reply_status_form_submit" class="submit_status_label">
<div class="toot_button_label disallow_select">
<i class="fa fa-reply" aria-hidden="true"></i>
<span>Reply</span>
<span><?=_('Reply')?></span>
</div>
</label>
</div>

View File

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

View File

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

View File

@ -1,10 +1,10 @@
<div class="side_widget stream_options">
<div class="form_title">
<h2>Change instance</h2>
<h2><?=_('Change instance')?></h2>
</div>
<form>
<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>
</form>
</div>

View File

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

View File

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

View File

@ -1,11 +1,11 @@
<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><a class="footer_widget_about">About</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://notabug.org/halcyon-suite/halcyon">Source code</a></li>
<li><a href="https://instances.social">Other instances</a></li>
<li><a href="/privacy">Privacy policy</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_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://notabug.org/halcyon-suite/halcyon"><?=_('Source code')?></a></li>
<li><a href="https://instances.social"><?=_('Other instances')?></a></li>
<li><a href="/privacy"><?=_('Privacy policy')?></a></li>
<?php
if(file_exists("config/imprint.txt")) {
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>
</footer>
<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>";
?>
<div class="side_widget follow_opt_in side_widgets_footer">
<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.
<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.')?>
<center><br/>
<button class="halcyon_button" id="enable_follow">
<span>Enable who to follow</span>
<span><?=_('Enable who to follow')?></span>
</button>
</center>
</div>
<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>
<center>
<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 class="side_widget with_button what_to_follow" style="display:none">
<div class="form_title">
<h2>Who to follow</h2>
<a href="/whotofollow" class="headerbtn">MORE</a>
<h2><?=_('Who to follow')?></h2>
<a href="/whotofollow" class="headerbtn"><?=_('MORE')?></a>
</div>
<ul class="account_list">
<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>
<button class="follow_button" mid="" data="">
<i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span>
<span><?=_('Follow')?></span>
</button>
</div>
</li>
@ -57,7 +57,7 @@ Halcyon needs to connect to an external server to get a list of users which have
</a>
<button class="follow_button" mid="" data="">
<i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span>
<span><?=_('Follow')?></span>
</button>
</div>
</li>
@ -74,7 +74,7 @@ Halcyon needs to connect to an external server to get a list of users which have
</a>
<button class="follow_button" mid="" data="">
<i class="fa fa-fw fa-user-plus"></i>
<span>Follow</span>
<span><?=_('Follow')?></span>
</button>
</div>
</li>

View File

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