Fix paginate locale and a few small style issues

This commit is contained in:
Jyri-Petteri Paloposki 2020-10-27 18:27:41 +02:00
parent c1dbba5f11
commit d30138ee10
3 changed files with 22 additions and 22 deletions

View file

@ -1116,17 +1116,17 @@ en:
user_created: User created.
you_have_to_reset_your_password: You have to reset your password
will_paginate:
next_label: След →
next_label: Next →
page_entries_info:
multi_page: Отображено %{model} %{from} - %{to} из %{count}
multi_page_html: Отображено %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> из <b>%{count}</b>
multi_page: Displaying %{model} %{from} - %{to} of %{count} in total
multi_page_html: Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> of <b>%{count}</b> in total
single_page:
one: Отображен 1 %{model}
other: Отображены все %{count} %{model}
zero: "%{model} не найдено"
one: Displaying 1 %{model}
other: Displaying all %{count} %{model}
zero: No %{model} found
single_page_html:
one: Отображен <b>1</b> %{model}
other: Отображены <b>все&nbsp;%{count}</b> %{model}
zero: "%{model} не найдено"
one: Displaying <b>1</b> %{model}
other: Displaying <b>all&nbsp;%{count}</b> %{model}
zero: No %{model} found
page_gap: "&hellip;"
previous_label: "&#8592; Пред"
previous_label: "&#8592; Previous"

View file

@ -1116,17 +1116,17 @@ fi:
user_created: User created.
you_have_to_reset_your_password: You have to reset your password
will_paginate:
next_label: След &#8594;
next_label: Seuraava &#8594;
page_entries_info:
multi_page: Отображено %{model} %{from} - %{to} из %{count}
multi_page_html: Отображено %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> из <b>%{count}</b>
multi_page: Näytetään %{model} %{from} - %{to} yhtensä %{count} tietueesta
multi_page_html: Näytetään %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b> yhteensä <b>%{count}</b> tietueesta
single_page:
one: Отображен 1 %{model}
other: Отображены все %{count} %{model}
zero: "%{model} не найдено"
one: Näytetään 1 %{model}
other: Näytetään kaikki %{count} %{model}
zero: "%{model} ei löytynyt"
single_page_html:
one: Отображен <b>1</b> %{model}
other: Отображены <b>все&nbsp;%{count}</b> %{model}
zero: "%{model} не найдено"
none: Näytetään <b>1</b> %{model}
other: Näytetään <b>kaikki&nbsp;%{count}</b> %{model}
zero: "%{model} ei löytynyt"
page_gap: "&hellip;"
previous_label: "&#8592; Пред"
previous_label: "&#8592; Edellinen"

View file

@ -38,7 +38,7 @@ module IsTaggable
end
def has_tag?(tag_name)
return tags.any? {|tag| tag.name == tag_name}
return tags.any? { |tag| tag.name == tag_name }
end
# Add tags to <tt>self</tt>. Accepts a string of tagnames, an array of tagnames, or an array of Tags.
@ -62,7 +62,7 @@ module IsTaggable
# Removes tags from <tt>self</tt>. Accepts a string of tagnames, an array of tagnames, or an array of Tags.
def _remove_tags(outgoing)
outgoing = tag_cast_to_string(outgoing)
tags.destroy(*(self.user.tags.select{|tag| outgoing.include? tag.name}))
tags.destroy(*(self.user.tags.select { |tag| outgoing.include? tag.name }))
end
def get_tag_name_from_item(item)