Commit 11c5d33f authored by Stan Hu's avatar Stan Hu

Add period to expiring subscription message

parent a4ef92d2
...@@ -36,9 +36,9 @@ module Gitlab ...@@ -36,9 +36,9 @@ module Gitlab
def expired_subject def expired_subject
if subscribable.block_changes? if subscribable.block_changes?
if auto_renew? if auto_renew?
_('Something went wrong with your automatic subscription renewal') _('Something went wrong with your automatic subscription renewal.')
else else
_('Your subscription has been downgraded') _('Your subscription has been downgraded.')
end end
else else
_('Your subscription expired!') _('Your subscription expired!')
...@@ -49,9 +49,9 @@ module Gitlab ...@@ -49,9 +49,9 @@ module Gitlab
remaining_days = pluralize(subscribable.remaining_days, 'day') remaining_days = pluralize(subscribable.remaining_days, 'day')
if auto_renew? if auto_renew?
_('Your subscription will automatically renew in %{remaining_days}') % { remaining_days: remaining_days } _('Your subscription will automatically renew in %{remaining_days}.') % { remaining_days: remaining_days }
else else
_('Your subscription will expire in %{remaining_days}') % { remaining_days: remaining_days } _('Your subscription will expire in %{remaining_days}.') % { remaining_days: remaining_days }
end end
end end
......
...@@ -67,7 +67,7 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do ...@@ -67,7 +67,7 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do
it 'has a nice subject' do it 'has a nice subject' do
Timecop.freeze(today) do Timecop.freeze(today) do
expect(subject).to include('Your subscription has been downgraded') expect(subject).to include('Your subscription has been downgraded.')
end end
end end
...@@ -187,7 +187,7 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do ...@@ -187,7 +187,7 @@ RSpec.describe Gitlab::ExpiringSubscriptionMessage do
end end
it 'has a nice subject' do it 'has a nice subject' do
expect(subject).to include('Your subscription will automatically renew in 4 days') expect(subject).to include('Your subscription will automatically renew in 4 days.')
end end
it 'has an expiration blocking message' do it 'has an expiration blocking message' do
......
...@@ -20818,7 +20818,7 @@ msgstr "" ...@@ -20818,7 +20818,7 @@ msgstr ""
msgid "Something went wrong while updating your list settings" msgid "Something went wrong while updating your list settings"
msgstr "" msgstr ""
msgid "Something went wrong with your automatic subscription renewal" msgid "Something went wrong with your automatic subscription renewal."
msgstr "" msgstr ""
msgid "Something went wrong, unable to add %{project} to dashboard" msgid "Something went wrong, unable to add %{project} to dashboard"
...@@ -26174,13 +26174,13 @@ msgstr "" ...@@ -26174,13 +26174,13 @@ msgstr ""
msgid "Your subscription expired!" msgid "Your subscription expired!"
msgstr "" msgstr ""
msgid "Your subscription has been downgraded" msgid "Your subscription has been downgraded."
msgstr "" msgstr ""
msgid "Your subscription will automatically renew in %{remaining_days}" msgid "Your subscription will automatically renew in %{remaining_days}."
msgstr "" msgstr ""
msgid "Your subscription will expire in %{remaining_days}" msgid "Your subscription will expire in %{remaining_days}."
msgstr "" msgstr ""
msgid "Zoom meeting added" msgid "Zoom meeting added"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment