Add browser store translation templates

master
rubenwardy 2022-07-22 12:35:15 +01:00
parent dee89aed08
commit 798c8eb117
12 changed files with 154 additions and 0 deletions

View File

@ -8,6 +8,12 @@ widgets: Widgets
gallery: Gallery
testimonials: Testimonials
likeWhatYouSee: "Like what you see?<br>Available for:"
features: Features
support: Support
support_desc: >-
Need help? Found a bug, or have a request? Check out the <a
href="https://renewedtab.com/help/">Help and FAQ</a> page to see
common questions and to get in contact.
nav.about: About
nav.gallery: Gallery
@ -20,6 +26,24 @@ gallery.sidebar_icons.png: "Icon links: Quick links or bookmarks"
gallery.icons.png: "Top sites / icon links"
gallery.focus.png: "Focus: just a clock and a searchbar"
sfeatures.powerful.title: Powerful Widgets System
sfeatures.powerful.desc: >-
you can add, move, resize, and configure widgets on a grid using intuitive
controls.
sfeatures.backgrounds.desc: >-
see a random curated background every 15 minutes. You can also choose a solid
color, an Unsplash collection, an RSS/Atom feed, or a custom background image.
sfeatures.customisable.desc: >-
change the background, the theme, and configure each widget independently.
sfeatures.locale.desc: >-
supports French, Spanish, Italian, Portuguese, Malay, and Turkish.
Translations are <a
href="https://renewedtab.com/translations/">community-maintained</a>
allowing users to contribute support for their language.
features.dnd.title: Drag and Drop Widgets
features.dnd.desc: |
The core of Renewed Tab is the widget system.

13
_data/store.yml Normal file
View File

@ -0,0 +1,13 @@
features:
- title: sfeatures.powerful.title
desc: sfeatures.powerful.desc
- title: features.backgrounds.title
desc: sfeatures.backgrounds.desc
- title: features.customisable.title
desc: sfeatures.customisable.desc
- title: features.locale.title
desc: sfeatures.customisable.desc

View File

@ -0,0 +1,31 @@
---
encoding: utf-8
---
{%- assign pathsplit = page.path | split: '/' -%}
{%- assign lang = pathsplit[0] -%}
{%- assign l = site.data.locale[lang] -%}
{%- assign en = site.data.locale.en.index -%}
{{ l.index.description | default: en.description }}
## {{ l.index.features | default: en.features }} ##
{% for item in site.data.store.features -%}
{% assign title = l.index[item.title] | default: en[item.title] -%}
{% assign desc = l.index[item.desc] | default: en[item.desc] -%}
- {{ title }}: {{ desc }}
{% endfor %}
## {{ l.index.widgets | default: en.widgets }} ##
{% for item in site.data.widgets -%}
{% assign title_id = "widgets." | append: item -%}
{% assign title = l.index[title_id] | default: en[title_id] -%}
- {{ title | replace: "<b>", "" | replace: "</b>", "" }}
{% endfor %}
## {{ l.index['features.privacy.title'] }} ##
{{ l.index['features.privacy.desc'] }}

View File

@ -0,0 +1,62 @@
---
---
{% assign pathsplit = page.path | split: '/' %}
{% assign lang = pathsplit[0] %}
{% assign l = site.data.locale[lang] %}
{% assign en = site.data.locale.en.index %}
<!doctype html>
<html>
<head>
<title>Renewed Tab Firefox</title>
<meta name="robots" content="noindex">
<style>
body {
font-family: "Arial", sans-serif;
max-width: 900px;
}
</style>
</head>
<body>
<p id="summary">
{{ l.index.description | default: en.description }}
</p>
<h2>{{ l.index.features | default: en.features }}</h2>
<ul>
{% for item in site.data.store.features %}
{% assign title = l.index[item.title] | default: en[item.title] %}
{% assign desc = l.index[item.desc] | default: en[item.desc] %}
<li>
<b>{{ title }}</b>: {{ desc }}
</li>
{% endfor %}
</ul>
<h2>{{ l.index.widgets | default: en.widgets }}</h2>
<ul>
{% for item in site.data.widgets %}
{% assign title_id = "widgets." | append: item %}
{% assign title = l.index[title_id] | default: en[title_id] %}
<li>
{{ title | safe }}
</li>
{% endfor %}
</ul>
<h2>{{ l.index['features.privacy.title'] }}</h2>
<p>
{{ l.index['features.privacy.desc'] }}
</p>
<h2>{{ l.index.support | default: en.support }}</h2>
<p>
{{ l.index.support_desc | default: en.support_desc }}
</p>
</body>
</html>

3
en/stores/chrome.txt Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/chrome
---

3
en/stores/firefox.html Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/firefox
---

3
es/stores/chrome.txt Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/chrome
---

3
es/stores/firefox.html Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/firefox
---

3
fr/stores/chrome.txt Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/chrome
---

3
fr/stores/firefox.html Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/firefox
---

3
ms/stores/chrome.txt Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/chrome
---

3
ms/stores/firefox.html Normal file
View File

@ -0,0 +1,3 @@
---
layout: stores/firefox
---