-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from mastogros/translation_fr
i18n for public website and documentation and French translation of existing doc
- Loading branch information
Showing
77 changed files
with
1,437 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
languages: [ | ||
{ | ||
label: "English", | ||
code: "en", | ||
}, | ||
{ | ||
label: "Français", | ||
code: "fr", | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% if translationKey %} | ||
{% set translatedUrl = "" %} | ||
{% for lg in languages.languages %} | ||
{% if loop.first %} | ||
<select class="ml-5" id="lg-switcher" onchange="changeLanguage()"> | ||
{% endif %} | ||
|
||
{% for item in collections.all %} | ||
{% if translatedUrl == "" and item.data.translationKey == translationKey and item.data.locale == lg.code %} | ||
{% set translatedUrl = item.url %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<option class="lg-switcher-item" {% if lg.code == locale %} selected="selected" {% endif %} value="{{ translatedUrl }}"> | ||
{{ lg.label }} | ||
</option> | ||
|
||
{% if loop.last %} | ||
</select> | ||
{% endif %} | ||
{% set translatedUrl = "" %} | ||
{% endfor %} | ||
|
||
<script> | ||
function changeLanguage() { | ||
document.location.href=document.getElementById("lg-switcher").value; | ||
} | ||
</script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Photoview - Redirecting...</title> | ||
<link rel="canonical" href="https://photoview.github.io{{ target }}"/> | ||
<meta http-equiv="refresh" content="0;url={{ target }}" /> | ||
</head> | ||
<body> | ||
<h1>Redirecting to the new page location...</h1> | ||
<a href="{{ target }}">Click here if you are not redirected.<a> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/contribute-feature-request/ | ||
target: '/en/docs/contribute-feature-request/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/contribute-how-to/ | ||
target: '/en/docs/contribute-how-to/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/contribute-setup-locally/ | ||
target: '/en/docs/contribute-setup-locally/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/faq/ | ||
target: '/en/docs/faq/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/getting-started/ | ||
target: '/en/docs/getting-started/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/installation-docker/ | ||
target: '/en/docs/installation-docker/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/installation-environment-variables/ | ||
target: '/en/docs/installation-environment-variables/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/installation-manual/ | ||
target: '/en/docs/installation-manual/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/installation-reverse-proxies/ | ||
target: '/en/docs/installation-reverse-proxies/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/installation-systemd/ | ||
target: '/en/docs/installation-systemd/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/ | ||
target: '/en/docs/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-basic-overview/ | ||
target: '/en/docs/usage-basic-overview/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-nextcloud/ | ||
target: '/en/docs/usage-nextcloud/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-people/ | ||
target: '/en/docs/usage-people/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-places/ | ||
target: '/en/docs/usage-places/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-scanner/ | ||
target: '/en/docs/usage-scanner/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-settings/ | ||
target: '/en/docs/usage-settings/' | ||
sitemap: false | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /docs/usage-sharing/ | ||
target: '/en/docs/usage-sharing/' | ||
sitemap: false | ||
--- | ||
--- | ||
title: Share albums and media | ||
group: Usage | ||
translationKey: usage-sharing | ||
--- | ||
|
||
> TODO: Explain how to share albums and media, how to set a password and how to delete them again |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: 'redirect-layout' | ||
permalink: /en/ | ||
target: '/' | ||
sitemap: false | ||
--- |
1 change: 1 addition & 0 deletions
1
src/docs/contribute-feature-request.md → src/en/docs/contribute-feature-request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
title: Reporting bugs | ||
group: Contributing | ||
translationKey: contribute-feature-request | ||
--- | ||
|
||
If you have found a bug please open a [new issue](https://github.com/photoview/photoview/issues/new). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/docs/contribute-setup-locally.md → src/en/docs/contribute-setup-locally.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
Oops, something went wrong.