Commit da4e2772 authored by Thomas's avatar Thomas
Browse files

Move translations

parent fb09ea8d
......@@ -289,6 +289,14 @@ class FediPlanController extends AbstractController
return new JsonResponse($response);
}
/**
* @Route("/about", name="about")
*/
public function about()
{
return $this->render("fediplan/about.html.twig");
}
/**
* @Route("/logout", name="logout")
*/
......
{% trans_default_domain 'fediplan' %}
<!DOCTYPE html>
<html lang="en">
<head>
......@@ -49,7 +50,7 @@
</div>
<div class="col-md-4" style="margin-top: 10px; text-align: center;">
License: <a href="https://www.gnu.org/licenses/gpl-3.0.fr.html" target="_blank">GPL 3</a><br/>
<a href="https://framagit.org/tom79/fediplan" target="_blank">Source code</a>
<a href="https://framagit.org/tom79/fediplan" target="_blank">{{ 'common.source_code'|trans}}</a>
</div>
</div>
</div>
......
{% extends 'base.html.twig' %}
{% trans_default_domain 'fediplan' %}
{% block title %}{{ 'common.about'|trans }}{% endblock %}
{% block content %}
{% include 'nav.html.twig' %}
<h1>About</h1>
<div class="row well">
<div class="col-md-8 jumbotron">
{{ 'page.about.scheduling'|trans |raw}}
</div>
</div>
<div class="row">
<div class="col-md-8 alert alert-primary" role="alert">
{{ 'page.about.data'|trans |raw}}
</div>
</div>
<div class="row">
<div class="col-md-8 alert alert-success" role="alert">
{{ 'page.about.issues'|trans |raw}}
</div>
</div>
{% endblock %}
{% extends 'base.html.twig' %}
{% trans_default_domain 'fediplan' %}
{% block title %}{{ 'common.login'|trans }}{% endblock %}
{% block title %}{{ 'common.about_fediplan'|trans }}{% endblock %}
{% block content %}
{% include 'nav.html.twig' %}
<h1>Login</h1>
<h1>{{ 'common.login'|trans}}</h1>
{{ form_start(form) }}
{{ form_row(form._token) }}
......@@ -73,8 +73,8 @@
<blockquote class="blockquote text-center" style="margin-top: 50px;">
<p class="mb-0">FediPlan is an open source application (<a href="https://framagit.org/tom79/fediplan" target="_blank">source code</a>) built for scheduling your messages with <a href="https://joinmastodon.org/" target="_blank">Mastodon</a> or <a href="https://pleroma.social/" target="_blank">Pleroma</a> (2.7+).</p>
<p>It <b>does not store any data</b> (token or messages), that is why you need to create a new Token when your session expired.</p>
<p class="mb-0">{{ 'page.index.about'|trans |raw}}</p>
<p>{{ 'page.index.data'|trans |raw}}</p>
<footer class="blockquote-footer">FediPlan 1.0.0</footer>
</blockquote>
......
......@@ -174,7 +174,7 @@
</span>
<button type="submit" class="btn btn-primary start">
<i class="glyphicon glyphicon-upload"></i>
<span>Start upload</span>
<span>{{ 'common.start_upload'|trans }}</span>
</button>
<!-- The global file processing state -->
<span class="fileupload-process"></span>
......@@ -383,7 +383,7 @@
setHeader(xhr);
},
success: function (data) {
var message = "{{ 'common.delete'|trans }}";
var content;
content = ' <div class="row" id="media_container_'+data.id+'">\n' +
' <div class="col-md-4">\n' +
......@@ -396,7 +396,7 @@
' <div class="col-md-2">\n' +
' <button type="button" class="btn btn-danger delete_media" data-id="'+data.id+'">\n' +
' <i class="glyphicon glyphicon-trash"></i>\n' +
' <span>Delete</span>\n' +
' <span>'+message+'</span>\n' +
' </button>\n' +
' </div>\n' +
' </div>'
......
......@@ -4,7 +4,7 @@
{% block content %}
{% include 'nav.html.twig' %}
<h1>Scheduled</h1>
<h1>{{ 'common.scheduled'|trans }}</h1>
......@@ -14,7 +14,7 @@
<div class="row container hide" id="loader" style="text-align: center;margin-top: 50px;"><div class="lds-ring"><div></div><div></div><div></div><div></div></div></div>
<div class="row hide" id="no_content" style="margin-top: 50px;">
<div class="col-md-offset-3 col-md-6">
<div class="alert alert-warning" style="font-size: 1.5em;text-align: center;">No results found!</div>
<div class="alert alert-warning" style="font-size: 1.5em;text-align: center;">{{ 'common.no_results_found'|trans }}</div>
</div>
</div>
......@@ -25,16 +25,16 @@
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Confirm Delete</h4>
<h4 class="modal-title" id="myModalLabel">{{ 'common.confirm_delete'|trans }}</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<p>You are about to delete <b><i class="title"></i></b></p>
<p>Do you want to proceed?</p>
<p>{{ 'common.delete_message'|trans }} <b><i class="title"></i></b></p>
<p>{{ 'common.proceed_confirm'|trans }}</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger btn-ok">Delete</button>
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'common.cancel'|trans }}</button>
<button type="button" class="btn btn-danger btn-ok">{{ 'common.delete'|trans }}</button>
</div>
</div>
</div>
......
......@@ -25,11 +25,13 @@
<li class="nav-item">
<a class="nav-link" href="{{ path('logout') }}" tabindex="-1" >{{ 'common.logout'|trans }}</a>
</li>
{% endif %}
<li class="nav-item {% if app.request.attributes.get('_route') == 'about' %} active {% endif %}">
<a class="nav-link" href="{{ path('about') }}" tabindex="-1" >{{ 'common.about'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fedilab.app/page/donations/" tabindex="-1" >Support my work</a>
<a class="nav-link" href="https://fedilab.app/page/donations/" tabindex="-1" >{{ 'common.support_my_work'|trans }}</a>
</li>
{% endif %}
</ul>
</div>
</nav>
......
......@@ -6,6 +6,17 @@ common:
schedule: Schedule
scheduled: Scheduled
logout: Logout
about: About
support_my_work: Support my work
about_fediplan: Safely schedule messages with Mastodon and Pleroma
source_code: Source code
no_results_found: No results found!
confirm_delete: Confirm Delete
delete_message: You are about to delete
cancel: Cancel
delete: Delete
proceed_confirm: Do you want to proceed?
start_upload: Start upload
status:
visibility:
public: Public
......@@ -26,3 +37,22 @@ error:
mastodon_token: Something went wrong when getting the token!
mastodon_account: Something went wrong when retrieving the account!
mastodon_account_already_used: This account is already managed by someone else!
page:
index:
about:
FediPlan is an open source application (<a href="https://framagit.org/tom79/fediplan" target="_blank">source code</a>) built for scheduling your messages with <a href="https://joinmastodon.org/" target="_blank">Mastodon</a> or <a href="https://pleroma.social/" target="_blank">Pleroma</a> (2.7+).
data:
It <b>does not store any data</b> (token or messages), that is why you need to create a new Token when your session expired.
about:
scheduling:
FediPlan allows users to schedule a message (with media attachments) to be published at a certain future date.<br/>
The scheduled date must be at least 5 minutes into the future. At most, 300 statuses can be scheduled at the same time.
Only 50 statuses can be scheduled for any given day.
data:
FediPlan does not store your scheduled messages nor your credentials. It only uses the Mastodon API for <a href="https://docs.joinmastodon.org/api/rest/statuses/#scheduled-status" target="_blank">scheduling messages</a>
issues:
You can report issues or ask improvements on <a href="https://github.com/stom79/FediPlan/issues" target="_blank">Github</a> or <a href="https://framagit.org/tom79/fediplan/issues" target="_blank">Framagit</a>.
scheduled:
delete:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment