diff --git a/degov_tweets/degov_tweets.info.yml b/degov_tweets/degov_tweets.info.yml index 10a9275c..96f7b5b3 100644 --- a/degov_tweets/degov_tweets.info.yml +++ b/degov_tweets/degov_tweets.info.yml @@ -3,5 +3,6 @@ description: "Erlaubt die Anzeige von Twitternachrichten als feed." package: deGov type: module core: 8.x +project: 'degov_tweets' dependencies: - degov_common diff --git a/degov_tweets/degov_tweets.module b/degov_tweets/degov_tweets.module index 7721b13b..c433899c 100644 --- a/degov_tweets/degov_tweets.module +++ b/degov_tweets/degov_tweets.module @@ -72,3 +72,15 @@ function degov_tweets_parse_tweet($text) { return $text; } + +/** + * Implements hook_locale_translation_projects_alter(). + */ +function degov_tweets_locale_translation_projects_alter(&$projects) { + $projects['degov_tweets'] = [ + 'info' => [ + 'interface translation project' => 'degov_tweets', + 'interface translation server pattern' => drupal_get_path('module', 'degov_tweets').'/translations/%language.po', + ], + ]; +} diff --git a/degov_tweets/templates/degov-tweets.html.twig b/degov_tweets/templates/degov-tweets.html.twig index 136d0d91..a7bd1142 100644 --- a/degov_tweets/templates/degov-tweets.html.twig +++ b/degov_tweets/templates/degov-tweets.html.twig @@ -13,7 +13,7 @@
- {% trans %}{{ tweet.time_ago }} ago{% endtrans %} + {% trans %}{{ tweet.time_ago }} ago{% endtrans %}
diff --git a/degov_tweets/translations/de-de.po b/degov_tweets/translations/de-de.po new file mode 100644 index 00000000..4cab1bf7 --- /dev/null +++ b/degov_tweets/translations/de-de.po @@ -0,0 +1,89 @@ +# $Id$ +# +# LANGUAGE translation of Drupal (general) +# Copyright YEAR NAME +# Generated from files: +# modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php: n/a +# modules/degov/degov_tweets/templates/degov-tweets.html.twig: n/a +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"POT-Creation-Date: 2017-12-19 16:00+0000\n" +"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" +"Last-Translator: NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:25 +msgid "Create a twitter app on the twitter developer site" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:29 +msgid "Twitter username" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:34 +msgid "Limit" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:39 +msgid "Update every" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:40 +msgid "Set the number in seconds. E.g. 3600 = 1 hour" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:45 +msgid "Access token" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:50 +msgid "Token secret" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:55 +msgid "Consumer key" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:60 +msgid "Consumer secret" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:9 +msgid "Twitter block" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:9 +msgid "Follow" +msgstr "Folgen" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:16 +msgid "@tweet.time_ago ago" +msgstr "@tweet.time_ago her" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:30 +msgid "Reply" +msgstr "Antworten" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:31 +msgid "Retweet" +msgstr "Retweeten" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:32 +msgid "Favorite" +msgstr "Gefällt mir" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:38 +msgid "Pause" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:39 +msgid "Play" +msgstr "" + diff --git a/degov_tweets/translations/general.pot b/degov_tweets/translations/general.pot new file mode 100644 index 00000000..346a9412 --- /dev/null +++ b/degov_tweets/translations/general.pot @@ -0,0 +1,89 @@ +# $Id$ +# +# LANGUAGE translation of Drupal (general) +# Copyright YEAR NAME +# Generated from files: +# modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php: n/a +# modules/degov/degov_tweets/templates/degov-tweets.html.twig: n/a +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"POT-Creation-Date: 2017-12-19 16:00+0000\n" +"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" +"Last-Translator: NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:25 +msgid "Create a twitter app on the twitter developer site" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:29 +msgid "Twitter username" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:34 +msgid "Limit" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:39 +msgid "Update every" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:40 +msgid "Set the number in seconds. E.g. 3600 = 1 hour" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:45 +msgid "Access token" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:50 +msgid "Token secret" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:55 +msgid "Consumer key" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:60 +msgid "Consumer secret" +msgstr "" + +#: modules/degov/degov_tweets/src/Plugin/Block/TwitterBlock.php:9 +msgid "Twitter block" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:9 +msgid "Follow" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:16 +msgid "@tweet.time_ago ago" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:30 +msgid "Reply" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:31 +msgid "Retweet" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:32 +msgid "Favorite" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:38 +msgid "Pause" +msgstr "" + +#: modules/degov/degov_tweets/templates/degov-tweets.html.twig:39 +msgid "Play" +msgstr "" +