mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-11-25 20:42:40 +00:00
Added tweet translation mechanism (#96)
* Added tweet translation mechanism. * Removed test translation. It was done via Google Translate which I don't trust for this application.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
<meta name="referrer" content="origin-when-cross-origin">
|
||||
<meta name="author" content="{{site.author}}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta property="og:site_name" content="{{site.title}}">
|
||||
<meta name="twitter:site" content="{{site.title}}">
|
||||
<meta property="og:site_name" content="{{{lang 'SITE_TITLE'}}}">
|
||||
<meta name="twitter:site" content="{{{lang 'SITE_TITLE'}}}">
|
||||
<meta name="twitter:creator" content="{{site.creator}}">
|
||||
{{block "meta"}}
|
||||
<title>{{page.title}}</title>
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="root">
|
||||
<header>
|
||||
<nav>
|
||||
<a href="/" class="top-brand">{{{lang 'HEADER_TITLE'}}}</a>
|
||||
<a href="/{{page.lang}}" class="top-brand">{{{lang 'HEADER_TITLE'}}}</a>
|
||||
|
||||
<div class="top-nav">
|
||||
<ul class="top-nav-inner">
|
||||
@@ -82,7 +82,7 @@
|
||||
</div>
|
||||
<footer>
|
||||
{{import "~/patreon"}}
|
||||
<p class="copyright">{{{lang 'FOOTER_COPYRIGHT'}}}<span class="cc-by-nc-sa">{{icon 'symbols/cc'}}{{icon 'symbols/cc-by'}}{{icon 'symbols/cc-nc'}}{{icon 'symbols/cc-sa'}}</span><br>© {{date "yyyy"}} <a href="https://curvyandtrans.com">Jocelyn Badgley</a> {{lang 'FOOTER_COPYRIGHT2'}}</p>
|
||||
<p class="copyright">{{{lang 'FOOTER_COPYRIGHT'}}}<span class="cc-by-nc-sa">{{icon 'symbols/cc'}}{{icon 'symbols/cc-by'}}{{icon 'symbols/cc-nc'}}{{icon 'symbols/cc-sa'}}</span><br>© {{date "now" "yyyy"}} <a href="https://curvyandtrans.com">Jocelyn Badgley</a> {{lang 'FOOTER_COPYRIGHT2'}}</p>
|
||||
<p class="foot-nav"><a href="/privacy.html">{{lang 'Privacy Policy'}}</a></p>
|
||||
|
||||
</footer>
|
||||
|
||||
@@ -24,17 +24,29 @@
|
||||
<strong>{{{user.name_html}}}</strong>
|
||||
<span>@{{user.screen_name}}</span>
|
||||
</a>
|
||||
{{#if html_i18n[page.lang]}}
|
||||
<div class="tweet-quoted-text">{{{html_i18n[page.lang]}}}</div>
|
||||
{{else}}
|
||||
<div class="tweet-quoted-text">{{{html}}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="tweet-quoted missing">Quoted Tweet Unavailable</div>
|
||||
<div class="tweet-quoted missing">{{{lang 'QUOTED_TWEET_UNAVAILABLE'}}}</div>
|
||||
{{/with}}{{/compare}}
|
||||
<div class="tweet-quoted-text">{{{html}}}</div>
|
||||
{{#if html_i18n[page.lang]}}
|
||||
<div class="tweet-quoted-text">{{{html_i18n[page.lang]}}}</div>
|
||||
{{else}}
|
||||
<div class="tweet-quoted-text">{{{html}}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="tweet-quoted missing">Quoted Tweet Unavailable</div>
|
||||
<div class="tweet-quoted missing">{{{lang 'QUOTED_TWEET_UNAVAILABLE'}}}</div>
|
||||
{{/with}}{{/if}}
|
||||
<div class="tweet-text">{{{html}}}</div>
|
||||
{{#if html_i18n[page.lang]}}
|
||||
<div class="tweet-text">{{{html_i18n[page.lang]}}}</div>
|
||||
{{else}}
|
||||
<div class="tweet-text">{{{html}}}</div>
|
||||
{{/if}}
|
||||
{{#any extended_entities.media entities.media}}
|
||||
<div class="tweet-entities lightbox entity-count-{{this.length}} entity-type-{{this.0.type}}"><div class="tweet-entities-inner"><div><div class="tweet-entities-grid">
|
||||
{{#each this}}
|
||||
@@ -63,8 +75,8 @@
|
||||
</div></div></div></div>
|
||||
{{/any}}
|
||||
<div class="tweet-footer">
|
||||
<a class="tweet-date" href="https://twitter.com/{{user.screen_name}}/status/{{id_str}}" target="_blank">{{date created_at "h:mm aa - LLL do, yyyy"}}</a>
|
||||
<a class="tweet-date" href="https://twitter.com/{{user.screen_name}}/status/{{id_str}}" target="_blank" title="{{date created_at 'iso'}}">{{date created_at (lang 'TWEET_DATE_FORMAT')}}</a>
|
||||
</div>
|
||||
{{else}}Missing tweet for {{this}}{{/with}}</div>
|
||||
{{else}}{{{lang 'MISSING_TWEET_FOR'}}} {{this}}{{/with}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user