diff --git a/module/Core/config/translator.config.php b/module/Core/config/translator.config.php new file mode 100644 index 00000000..ae120db3 --- /dev/null +++ b/module/Core/config/translator.config.php @@ -0,0 +1,14 @@ + [ + 'translation_file_patterns' => [ + [ + 'type' => 'gettext', + 'base_dir' => __DIR__ . '/../lang', + 'pattern' => '%s.mo', + ], + ], + ], + +]; diff --git a/module/Core/lang/es.mo b/module/Core/lang/es.mo new file mode 100644 index 00000000..d34bb83b Binary files /dev/null and b/module/Core/lang/es.mo differ diff --git a/module/Core/lang/es.po b/module/Core/lang/es.po new file mode 100644 index 00000000..3393f072 --- /dev/null +++ b/module/Core/lang/es.po @@ -0,0 +1,35 @@ +msgid "" +msgstr "" +"Project-Id-Version: Shlink 1.0\n" +"POT-Creation-Date: 2016-07-21 16:50+0200\n" +"PO-Revision-Date: 2016-07-21 16:51+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.7.1\n" +"X-Poedit-Basepath: ..\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: translate;translaePlural;translate_plural\n" +"X-Poedit-SearchPath-0: templates\n" +"X-Poedit-SearchPath-1: config\n" +"X-Poedit-SearchPath-2: src\n" + +msgid "Make sure you included all the characters, with no extra punctuation." +msgstr "Asegúrate de haber incluído todos los caracteres, sin puntuación extra." + +msgid "Oops!" +msgstr "¡Vaya!" + +msgid "This short URL doesn't seem to be valid." +msgstr "Esta URL acortada no parece ser válida." + +msgid "URL Not Found" +msgstr "URL no encontrada" + +#, php-format +msgid "We encountered a %s %s error." +msgstr "Hemos encontrado un error %s %s." diff --git a/module/Core/templates/core/error/404.html.twig b/module/Core/templates/core/error/404.html.twig index 0c28f29d..fe36f047 100644 --- a/module/Core/templates/core/error/404.html.twig +++ b/module/Core/templates/core/error/404.html.twig @@ -1,6 +1,6 @@ {% extends 'core/layout/default.html.twig' %} -{% block title %}URL Not Found{% endblock %} +{% block title %}{{ translate('URL Not Found') }}{% endblock %} {% block stylesheets %}