Skip to content

Commit

Permalink
[#18] added more text and l10n.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjendres committed Apr 2, 2020
1 parent 2afcc2a commit ef4d66a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CRM/Mutualaid/Matcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,13 @@ protected function assignHelper(&$help_request, $helper)
// let's make sure it doesn't break matching
Civi::log()->warning("Assigning helper [{$helper['contact_id']}] to request [{$help_request['contact_id']}] didn't work: " . $ex->getMessage());
CRM_Core_Session::setStatus(
E::ts("Assigning helper [%1] to request [%2] didn't work, error was: %3. Maybe try to assign manually.", [
E::ts("Assigning helper [%1] to request [%2] didn't work, error was: %3.<br/>Maybe try to assign this manually...", [
1 => $helper['contact_id'],
2 => $help_request['contact_id'],
3 => $ex->getMessage()
]),
E::ts("Matching Error"));
$this->stats['matched'] -= 1;
}


Expand Down
Binary file modified l10n/de_DE/LC_MESSAGES/mutualaid.mo
Binary file not shown.
17 changes: 14 additions & 3 deletions l10n/de_DE/LC_MESSAGES/mutualaid.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: de.systopia.mutualaid\n"
"POT-Creation-Date: 2020-04-02 13:42+0200\n"
"POT-Creation-Date: 2020-04-02 16:08+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: CiviCRM Translators <[email protected]>\n"
Expand Down Expand Up @@ -183,6 +183,19 @@ msgstr ""
msgid "Languages spoken"
msgstr "Beherrschte Sprachen"

#: CRM/Mutualaid/Matcher.php
msgid ""
"Assigning helper [%1] to request [%2] didn't work, error was: %3.<br/>Maybe "
"try to assign this manually..."
msgstr ""
"Die Zuordnung von Hilfsangebot von Kontakt [%1] zum Hilfsgesuch von Kontakt "
"[%2] ist fehlgeschlagen. Der Feher war: %3.<br/>Sie könnten versuchen, diese "
"Zuweisen manuell vorzunehmen..."

#: CRM/Mutualaid/Matcher.php
msgid "Matching Error"
msgstr "Fehler bei der Zuordnung"

#: CRM/Mutualaid/Page/MatchNow.php
msgid "Matched %2 help offers to help requests in %1 seconds."
msgstr "%2 Hilfsangebote zu Hilfsanfragen in %1 Sekunden zugeordnet."
Expand Down Expand Up @@ -460,8 +473,6 @@ msgid "Help offered within"
msgstr "Hilfe im Radius von"

#: resources/custom_group_relationship_mutualaid.json
#, fuzzy
#| msgid "Mutual Help"
msgid "Mutual Aid"
msgstr "Nachbarschaftshilfe"

Expand Down
12 changes: 11 additions & 1 deletion l10n/mutualaid.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: mutualaid\n"
"POT-Creation-Date: 2020-04-02 13:42+0200\n"
"POT-Creation-Date: 2020-04-02 16:08+0200\n"
"Language-Team: CiviCRM Translators <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -166,6 +166,16 @@ msgstr ""
msgid "Languages spoken"
msgstr ""

#: CRM/Mutualaid/Matcher.php
msgid ""
"Assigning helper [%1] to request [%2] didn't work, error was: %3.<br/>Maybe "
"try to assign this manually..."
msgstr ""

#: CRM/Mutualaid/Matcher.php
msgid "Matching Error"
msgstr ""

#: CRM/Mutualaid/Page/MatchNow.php
msgid "Matched %2 help offers to help requests in %1 seconds."
msgstr ""
Expand Down

0 comments on commit ef4d66a

Please sign in to comment.