Skip to content

Commit

Permalink
translate "Datawrapper" and related texts as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph committed Aug 17, 2015
1 parent 6e3b407 commit 0dedef0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions controller/login.php
Expand Up @@ -6,7 +6,7 @@
if (DatawrapperSession::getUser()->isLoggedIn()) $app->redirect('/');

$page = array(
'title' => 'Datawrapper',
'title' => __('Datawrapper'),
'pageClass' => 'login',
'noHeader' => true,
'noFooter' => true,
Expand All @@ -25,7 +25,7 @@
|| UserQuery::create()->filterByRole(array('admin', 'sysadmin'))->count() > 0) $app->redirect('/');

$page = array(
'title' => 'Datawrapper',
'title' => __('Datawrapper'),
'pageClass' => 'setup',
'noHeader' => true,
'noFooter' => true,
Expand Down
6 changes: 3 additions & 3 deletions templates/core.twig
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8">
{% set project_title = config.custom_title | default('Datawrapper') %}
{% set project_title = config.custom_title | default('Datawrapper'|trans) %}
<title>{{ project_title }}{% if title and title != project_title %} :: {{ title }}{% endif %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Datawrapper is an open source tool helping everyone to create simple, correct and embeddable charts in minutes.">
<meta name="author" content="Mirko Lorenz, Nicolas Kayser-Bril, Gregor Aisch">
<meta name="description" content="{% trans "Datawrapper is an open source tool helping everyone to create simple, correct and embeddable charts in minutes." %}">
<meta name="author" content="{% trans "Mirko Lorenz, Nicolas Kayser-Bril, Gregor Aisch" %}">
<meta http-equiv="X-UA-Compatible" content="IE=8" />

<!-- Le styles -->
Expand Down
4 changes: 2 additions & 2 deletions templates/header.twig
Expand Up @@ -77,7 +77,7 @@
{% if custom_logo %}
<img src="{{ custom_logo }}" />
{% endif %}
{% if config.custom_title %}{{ config.custom_title }}{% else %}Datawrapper{% endif %}<span class="beta">{{ config.custom_title_tag }}</span>
{% if config.custom_title %}{{ config.custom_title }}{% else %}{% trans "Datawrapper" %}{% endif %}<span class="beta">{{ config.custom_title_tag }}</span>
</a>

<div class="nav-collapse">
Expand Down Expand Up @@ -105,4 +105,4 @@
</script>


{% endblock %}
{% endblock %}

0 comments on commit 0dedef0

Please sign in to comment.