]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/1401'
authorTom Hughes <tom@compton.nu>
Sun, 5 Feb 2017 13:50:07 +0000 (13:50 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Feb 2017 13:50:07 +0000 (13:50 +0000)
1  2 
config/locales/en.yml
test/test_helper.rb

diff --combined config/locales/en.yml
index cf80c08621ca34059561401c8f27a0817e1a8e94,d9c6cc8dd7fb3b87ae96c52c1d4322eaaae8d2fb..9389c0e2f9c403038ea3f12939dd7e4b4594a15e
@@@ -1310,6 -1310,7 +1310,7 @@@ en
          commented_note: "%{commenter} has reactivated a map note you have commented on. The note is near %{place}."
        details: "More details about the note can be found at %{url}."
      changeset_comment_notification:
+       hi: "Hi %{to_user},"
        greeting: "Hi,"
        commented:
          subject_own: "[OpenStreetMap] %{commenter} has commented on one of your changesets"
          partial_changeset_with_comment: "with comment '%{changeset_comment}'"
          partial_changeset_without_comment: "without comment"
        details: "More details about the changeset can be found at %{url}."
+       unsubscribe: 'To unsubscribe from updates to this changeset, visit %{url} and click "Unsubscribe".'
    message:
      inbox:
        title: "Inbox"
          header: Map Layers
          notes: Map Notes
          data: Map Data
 +        gps: Public GPS Traces
          overlays: Enable overlays for troubleshooting the map
          title: "Layers"
        copyright: "© <a href='%{copyright_url}'>OpenStreetMap contributors</a>"
diff --combined test/test_helper.rb
index e535d1645bb5f269231d076db3ede273b7ed6643,52d11027f8fdc9d696e26a9aa54fa67cfbce07fb..10a4eb3971d6de1b74a0411803c982cb169626e4
@@@ -50,6 -50,8 +50,6 @@@ module ActiveSuppor
        set_fixture_class :gps_points => Tracepoint
        set_fixture_class :gpx_file_tags => Tracetag
  
 -      fixtures :client_applications
 -
        fixtures :redactions
      end
  
        stub_request(:get, "http://api.hostip.info/country.php?ip=0.0.0.0")
        stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
      end
+     def email_text_parts(message)
+       message.parts.each_with_object([]) do |part, text_parts|
+         if part.content_type.start_with?("text/")
+           text_parts.push(part)
+         elsif part.multipart?
+           text_parts.concat(email_text_parts(part))
+         end
+       end
+     end
    end
  end