From d8d3d21a2c072b9bd7238d918445d6a4d0894fff Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 7 Jun 2009 22:14:22 +0000 Subject: [PATCH 1/1] Use {{count}} instead of {{distance}} for kilometer count as {{count}} is a magical enumerated variable in Rails. --- app/views/user/view.rhtml | 4 ++-- config/locales/be.yml | 2 +- config/locales/de.yml | 2 +- config/locales/en.yml | 2 +- config/locales/fr.yml | 2 +- config/locales/he.yml | 2 +- config/locales/is.yml | 2 +- config/locales/it.yml | 2 +- config/locales/nl.yml | 2 +- config/locales/pl.yml | 2 +- config/locales/ru.yml | 2 +- config/locales/sl.yml | 2 +- config/locales/zh-CN.yml | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/views/user/view.rhtml b/app/views/user/view.rhtml index 37954e54b..36bba478c 100644 --- a/app/views/user/view.rhtml +++ b/app/views/user/view.rhtml @@ -71,7 +71,7 @@ <% end %> <%= link_to h(@friend.display_name), :controller => 'user', :action => 'view', :display_name => @friend.display_name %> - <% if @friend.home_lon and @friend.home_lat %><%= t 'user.view.km away', :distance => @this_user.distance(@friend).round %><% end %> + <% if @friend.home_lon and @friend.home_lat %><%= t 'user.view.km away', :count => @this_user.distance(@friend).round %><% end %> (<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => @friend.id %>) <%end%> @@ -93,7 +93,7 @@ <% @this_user.nearby.each do |nearby| %> <%= link_to h(nearby.display_name), :controller => 'user', :action => 'view', :display_name => nearby.display_name %> - <%= t 'user.view.km away', :distance => @this_user.distance(nearby).round %> + <%= t 'user.view.km away', :count => @this_user.distance(nearby).round %> (<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => nearby.id %>) <% end %> diff --git a/config/locales/be.yml b/config/locales/be.yml index 1ea64082a..e328761f2 100644 --- a/config/locales/be.yml +++ b/config/locales/be.yml @@ -578,7 +578,7 @@ be: settings_link_text: настаўленняў your friends: Вашыя сябры no friends: Вы пакуль не дадалі нікога ў сябры. - km away: "{{distance}} км ад вас" + km away: "{{count}} км ад вас" nearby users: "Карыстальнікі непадалёку: " no nearby users: "Пакуль няма карыстальнікаў, што адмецілі сваё месцазнаходжанне непадалёку." change your settings: змяніць вашыя настаўленні diff --git a/config/locales/de.yml b/config/locales/de.yml index 52d4bec8d..3ca866234 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -659,7 +659,7 @@ de: settings_link_text: Einstellungen your friends: Eigene Freunde no friends: Du hast bis jetzt keine Freunde hinzugefügt. - km away: "{{distance}}km entfernt" + km away: "{{count}}km entfernt" nearby users: "Benutzer in der Nähe: " no nearby users: "Es gibt bisher keine Benutzer, die einen Standort in deiner Nähe angegeben haben." change your settings: Ändere deine Einstellungen diff --git a/config/locales/en.yml b/config/locales/en.yml index bcbd16156..f828f1402 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -707,7 +707,7 @@ en: settings_link_text: settings your friends: Your friends no friends: You have not added any friends yet. - km away: "{{distance}}km away" + km away: "{{count}}km away" nearby users: "Nearby users: " no nearby users: "There are no users who admit to mapping nearby yet." change your settings: change your settings diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 93d43e60e..a1c3c63aa 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -221,7 +221,7 @@ fr: settings_link_text: "options" your friends: "Vos amis" no friends: "Vous n'avez pas encore ajouté d'ami" - km away: "{{distance}} km" + km away: "{{count}} km" nearby users: "Utilisateurs proches de vous : " no nearby users: "Il n'y a pas encore d'utilisateur à proximité." change your settings: "modifiez vos options" diff --git a/config/locales/he.yml b/config/locales/he.yml index 6ed96ccfb..c4dbd2a00 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -581,7 +581,7 @@ he: settings_link_text: settings your friends: Your friends no friends: You have not added any friends yet. - km away: "{{distance}}km away" + km away: "{{count}}km away" nearby users: "Nearby users: " no nearby users: "There are no users who admit to mapping nearby yet." change your settings: change your settings diff --git a/config/locales/is.yml b/config/locales/is.yml index 8f1473a5d..102c6e9f0 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -658,7 +658,7 @@ is: settings_link_text: "stillingarsíðunni" your friends: Vinir þínir no friends: Þú átt enga vini - km away: "í {{distance}} km fjarlægð" + km away: "í {{count}} km fjarlægð" nearby users: "Nálægir notendur:" no nearby users: "Engir notendur hafa stillt staðsetningu sína nálægt þér." change your settings: "breyttu stillingunum þínum" diff --git a/config/locales/it.yml b/config/locales/it.yml index e0dd8eaeb..39400ccbc 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -579,7 +579,7 @@ it: settings_link_text: impostazioni your friends: Amici personali no friends: Non ci sono ancora amici. - km away: "distante {{distance}} km" + km away: "distante {{count}} km" nearby users: "Utenti nelle vicinanze: " no nearby users: "Non c'è ancora alcun utente che ammette di mappare nelle vicinanze." change your settings: modifica le impostazioni personali diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 3dacc1941..9a2008b1c 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -579,7 +579,7 @@ nl: settings_link_text: instellingen-pagina your friends: Je vrienden no friends: Je hebt nog geen vrienden toegevoegd. - km away: "{{distance}}km ver" + km away: "{{count}}km ver" nearby users: "Dichtbijzijnde mappers: " no nearby users: "Er zijn geen dichtbijzijnde mappers." change your settings: instellingen aanpassen diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 8a7ccaecc..0766284a0 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -582,7 +582,7 @@ pl: settings_link_text: stronie ustawień your friends: Twoi znajomi no friends: Nie dodałeś/aś jeszcze żadnych znajomych. - km away: "{{distance}}km z tąd" + km away: "{{count}}km z tąd" nearby users: "Najbliźsi użytkownicy: " no nearby users: "Nikt nie przyznał się jeszcze do mapowania w tej okolicy." change your settings: zmień swoje ustawienia diff --git a/config/locales/ru.yml b/config/locales/ru.yml index a2aeef6bd..f25c8f47f 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -579,7 +579,7 @@ ru: settings_link_text: настройки your friends: Ваши друзья no friends: Вы не добавили ещё ни одного друга. - km away: "{{distance}} км. от вас" + km away: "{{count}} км. от вас" nearby users: "Ближайшие пользователи: " no nearby users: "Поблизости пока нет пользователей, занимающихся составлением карты." change your settings: изменить настройки diff --git a/config/locales/sl.yml b/config/locales/sl.yml index a4d915ec2..95438cc1f 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -687,7 +687,7 @@ sl: settings_link_text: vaših nastavitvah your friends: Vaši prijatelji no friends: Niste še dodali nobenih prijateljev. - km away: "Oddaljen {{distance}} km" + km away: "Oddaljen {{count}} km" nearby users: "Bližnji uporabniki: " no nearby users: "Ni uporabnikov, ki bi priznali, da kartirajo v vaši bližini." change your settings: uredite vaše nastavitve diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml index 9886b19e0..91fe9e4e4 100644 --- a/config/locales/zh-CN.yml +++ b/config/locales/zh-CN.yml @@ -567,7 +567,7 @@ zh-CN: settings_link_text: settings your friends: Your friends no friends: You have not added any friends yet. - km away: "{{distance}}km away" + km away: "{{count}}km away" nearby users: "Nearby users: " no nearby users: "There are no users who admit to mapping nearby yet." change your settings: change your settings -- 2.43.2