More readable way to include HTML in translated strings
This commit is contained in:
parent
bdf5554430
commit
de74808459
7 changed files with 21 additions and 19 deletions
|
@ -1,18 +1,12 @@
|
||||||
</div>
|
</div>
|
||||||
<footer class="small-font">
|
<footer class="small-font">
|
||||||
<div class="footer_wrapper">
|
<div class="footer_wrapper">
|
||||||
{$dev="<a rel='author' target='blank'
|
{include file='snippets/dev.tpl' assign=dev}
|
||||||
href='https://rudloff.pro/'>
|
|
||||||
Pierre Rudloff
|
|
||||||
</a>"}
|
|
||||||
{t params=['@dev'=>$dev]}Code by @dev{/t}
|
{t params=['@dev'=>$dev]}Code by @dev{/t}
|
||||||
|
|
||||||
·
|
·
|
||||||
|
|
||||||
{$designer="<a rel='author' target='blank'
|
{include file='snippets/designer.tpl' assign=designer}
|
||||||
href='https://ographik.fr/'>
|
|
||||||
Olivier Haquette
|
|
||||||
</a>"}
|
|
||||||
{t params=['@designer' => $designer]}Design by @designer{/t}
|
{t params=['@designer' => $designer]}Design by @designer{/t}
|
||||||
|
|
||||||
·
|
·
|
||||||
|
@ -23,9 +17,7 @@
|
||||||
|
|
||||||
·
|
·
|
||||||
|
|
||||||
{$youtubedl="<a href='https://ytdl-org.github.io/youtube-dl/'>
|
{include file='snippets/youtubedl.tpl' assign=youtubedl}
|
||||||
youtube-dl
|
|
||||||
</a>"}
|
|
||||||
{t params=['@youtubedl'=>$youtubedl]}Based on @youtubedl{/t}
|
{t params=['@youtubedl'=>$youtubedl]}Based on @youtubedl{/t}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -3,10 +3,7 @@
|
||||||
<div itemscope itemtype="https://schema.org/VideoObject">
|
<div itemscope itemtype="https://schema.org/VideoObject">
|
||||||
<main class="main">
|
<main class="main">
|
||||||
{include file="inc/logo.tpl"}
|
{include file="inc/logo.tpl"}
|
||||||
{$title="<i itemprop='name'>
|
{include file='snippets/title.tpl' assign=title}
|
||||||
<a itemprop='url' id='video_link'
|
|
||||||
href='{$video->webpage_url}'>
|
|
||||||
{$video->title}</a></i>"}
|
|
||||||
<p id="download_intro">
|
<p id="download_intro">
|
||||||
{t params=['@title' => $title]}You are going to download @title.{/t}
|
{t params=['@title' => $title]}You are going to download @title.{/t}
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -4,10 +4,7 @@
|
||||||
{include file="inc/logo.tpl"}
|
{include file="inc/logo.tpl"}
|
||||||
|
|
||||||
{if isset($video->title)}
|
{if isset($video->title)}
|
||||||
{$title="<i>
|
{include file='snippets/title.tpl' assign=title}
|
||||||
<a href='{$video->webpage_url}'>
|
|
||||||
{$video->title}</a>
|
|
||||||
</i>"}
|
|
||||||
<p>
|
<p>
|
||||||
{t params=['@title'=>$title]}Videos extracted from @title:{/t}
|
{t params=['@title'=>$title]}Videos extracted from @title:{/t}
|
||||||
</p>
|
</p>
|
||||||
|
|
4
templates/snippets/designer.tpl
Normal file
4
templates/snippets/designer.tpl
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<a rel="author" target="blank"
|
||||||
|
href="https://ographik.fr/">
|
||||||
|
Olivier Haquette
|
||||||
|
</a>
|
4
templates/snippets/dev.tpl
Normal file
4
templates/snippets/dev.tpl
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<a rel="author" target="blank"
|
||||||
|
href="https://rudloff.pro/">
|
||||||
|
Pierre Rudloff
|
||||||
|
</a>
|
5
templates/snippets/title.tpl
Normal file
5
templates/snippets/title.tpl
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<i itemprop="name">
|
||||||
|
<a itemprop="url" id="video_link"
|
||||||
|
href="{$video->webpage_url}">
|
||||||
|
{$video->title}</a>
|
||||||
|
</i>
|
3
templates/snippets/youtubedl.tpl
Normal file
3
templates/snippets/youtubedl.tpl
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<a href="https://ytdl-org.github.io/youtube-dl/">
|
||||||
|
youtube-dl
|
||||||
|
</a>
|
Loading…
Reference in a new issue