Skip to content
This repository was archived by the owner on Jun 24, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions degov_tweets/degov_tweets.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions degov_tweets/degov_tweets.module
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
}
2 changes: 1 addition & 1 deletion degov_tweets/templates/degov-tweets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</a>
</div>
<div class="tweet__timestamp">
{% trans %}<em class="placeholder">{{ tweet.time_ago }}</em> ago{% endtrans %}
{% trans %}<em class="placeholder">{{ tweet.time_ago }} ago</em>{% endtrans %}
</div>
<div class="tweet__name-handle">
<div class="tweet__name">
Expand Down
89 changes: 89 additions & 0 deletions degov_tweets/translations/de-de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# $Id$
#
# LANGUAGE translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\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 "<a href=\"@url\">Create a twitter app on the twitter developer site</a>"
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 "<em class=\"placeholder\">@tweet.time_ago ago</em>"
msgstr "<em class=\"placeholder\">@tweet.time_ago her</em>"

#: 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 ""

89 changes: 89 additions & 0 deletions degov_tweets/translations/general.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# $Id$
#
# LANGUAGE translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\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 "<a href=\"@url\">Create a twitter app on the twitter developer site</a>"
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 "<em class=\"placeholder\">@tweet.time_ago ago</em>"
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 ""