mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Fix paginate locale and a few small style issues
This commit is contained in:
parent
c1dbba5f11
commit
d30138ee10
3 changed files with 22 additions and 22 deletions
|
|
@ -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} - %{to}</b> из <b>%{count}</b>
|
||||
multi_page: Displaying %{model} %{from} - %{to} of %{count} in total
|
||||
multi_page_html: Displaying %{model} <b>%{from} - %{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>все %{count}</b> %{model}
|
||||
zero: "%{model} не найдено"
|
||||
one: Displaying <b>1</b> %{model}
|
||||
other: Displaying <b>all %{count}</b> %{model}
|
||||
zero: No %{model} found
|
||||
page_gap: "…"
|
||||
previous_label: "← Пред"
|
||||
previous_label: "← Previous"
|
||||
|
|
|
|||
|
|
@ -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: След →
|
||||
next_label: Seuraava →
|
||||
page_entries_info:
|
||||
multi_page: Отображено %{model} %{from} - %{to} из %{count}
|
||||
multi_page_html: Отображено %{model} <b>%{from} - %{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} - %{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>все %{count}</b> %{model}
|
||||
zero: "%{model} не найдено"
|
||||
none: Näytetään <b>1</b> %{model}
|
||||
other: Näytetään <b>kaikki %{count}</b> %{model}
|
||||
zero: "%{model} ei löytynyt"
|
||||
page_gap: "…"
|
||||
previous_label: "← Пред"
|
||||
previous_label: "← Edellinen"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue