mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Pluralize scheduled status limits (untested)
This commit is contained in:
parent
ba75ba3adc
commit
34a631c622
|
|
@ -31,10 +31,10 @@ class ScheduledStatus < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate_total_limit
|
def validate_total_limit
|
||||||
errors.add(:base, I18n.t('scheduled_statuses.over_total_limit', limit: TOTAL_LIMIT)) if account.scheduled_statuses.count >= TOTAL_LIMIT
|
errors.add(:base, I18n.t('scheduled_statuses.over_total_limit', count: TOTAL_LIMIT)) if account.scheduled_statuses.count >= TOTAL_LIMIT
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate_daily_limit
|
def validate_daily_limit
|
||||||
errors.add(:base, I18n.t('scheduled_statuses.over_daily_limit', limit: DAILY_LIMIT)) if account.scheduled_statuses.where('scheduled_at::date = ?::date', scheduled_at).count >= DAILY_LIMIT
|
errors.add(:base, I18n.t('scheduled_statuses.over_daily_limit', count: DAILY_LIMIT)) if account.scheduled_statuses.where('scheduled_at::date = ?::date', scheduled_at).count >= DAILY_LIMIT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1754,9 +1754,13 @@ en:
|
||||||
account: Public posts from @%{acct}
|
account: Public posts from @%{acct}
|
||||||
tag: 'Public posts tagged #%{hashtag}'
|
tag: 'Public posts tagged #%{hashtag}'
|
||||||
scheduled_statuses:
|
scheduled_statuses:
|
||||||
over_daily_limit: You have exceeded the limit of %{limit} scheduled posts for today
|
over_daily_limit:
|
||||||
over_total_limit: You have exceeded the limit of %{limit} scheduled posts
|
one: You have exceeded the limit of %{limit} scheduled post for today
|
||||||
too_soon: date must be in the future
|
other: You have exceeded the limit of %{limit} scheduled posts for today
|
||||||
|
over_total_limit:
|
||||||
|
one: You have exceeded the limit of %{limit} scheduled post
|
||||||
|
other: You have exceeded the limit of %{limit} scheduled posts
|
||||||
|
too_soon: The scheduled date must be in the future
|
||||||
self_destruct:
|
self_destruct:
|
||||||
lead_html: Unfortunately, <strong>%{domain}</strong> is permanently closing down. If you had an account there, you will not be able to continue using it, but you can still request a backup of your data.
|
lead_html: Unfortunately, <strong>%{domain}</strong> is permanently closing down. If you had an account there, you will not be able to continue using it, but you can still request a backup of your data.
|
||||||
title: This server is closing down
|
title: This server is closing down
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user