]> source.dussan.org Git - redmine.git/commitdiff
Translated 'Sort by' label on table headers.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Aug 2007 14:42:15 +0000 (14:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 12 Aug 2007 14:42:15 +0000 (14:42 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@618 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 files changed:
app/helpers/sort_helper.rb
lang/bg.yml
lang/de.yml
lang/en.yml
lang/es.yml
lang/fr.yml
lang/it.yml
lang/ja.yml
lang/nl.yml
lang/pt-br.yml
lang/pt.yml
lang/sv.yml
lang/zh.yml

index 5201b7ef4d291279abfd4e398c78fba51390f4ab..e1e87cbbbc5bdc1059985dad91bfef7a063a7bc3 100644 (file)
@@ -137,13 +137,8 @@ module SortHelper
   #   </th>
   #
   def sort_header_tag(column, options = {})
-    if options[:caption]
-      caption = options[:caption]
-      options.delete(:caption)
-    else
-      caption = titleize(Inflector::humanize(column))
-    end
-    options[:title]= "Sort by #{caption}" unless options[:title]
+    caption = options.delete(:caption) || titleize(Inflector::humanize(column))
+    options[:title]= l(:label_sort_by, caption) unless options[:title]
     content_tag('th', sort_link(column, caption), options)
   end
 
index 1c7b5e4a999c77a8be4dea53bb1531758ff68f61..4daf691e827d9d832fa91872fd6977281d7b555a 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Вход
 button_submit: Изпращане
index 7f1876e8b1cf4b4fb9eb088b6d2111f063863be5..cd8b82b17266c8a9f3a7880e76467f9badd38fd8 100644 (file)
@@ -405,6 +405,7 @@ label_week: Woche
 label_date_from: Von
 label_date_to: Bis
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Einloggen
 button_submit: OK
index 7f77eca3d98d711a21fa39ae41986f64a37655c4..d1e45fcc0b53f08b7ac792a72d3b3a0236586e9e 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Login
 button_submit: Submit
index a6e068af5a733b5d635299aea5610d45f2c8379d..e2fa8ad5c5954718c0e5b018e1873e709f91153c 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Conexión
 button_submit: Someter
index 86cc9ceadfad72bd63942f2e2ed6ad033ffb7d75..4c679bb6ed1192801ffd70c312bbbaae556b3f0d 100644 (file)
@@ -405,6 +405,7 @@ label_week: Semaine
 label_date_from: Du
 label_date_to: Au
 label_language_based: Basé sur la langue
+label_sort_by: Trier par "%s"
 
 button_login: Connexion
 button_submit: Soumettre
index 1bc6dccbf14a5c3794c024651e55e87654118300..f674a47284b69ea4cbe767666b91de919a95c93a 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Login
 button_submit: Invia
index b5fc4845c4475ced82ae18a539e3f3c8b02a85d2..4495c0a520a8cb6555bc95979c58b9fba6856fcd 100644 (file)
@@ -406,6 +406,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: ログイン
 button_submit: 変更
index 4e221ce2e5cc40caac6d2482181e7fe3ddb1fe22..bb753f978a23a91a2336ff3909efb9264a585511 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Inloggen
 button_submit: Toevoegen
index c439036658c1ec55a3b2a9d33d9e47c29313e720..b1505f267b87d7db34b5ab279c4968d09f1a12d0 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From\r
 label_date_to: To\r
 label_language_based: Language based\r
+label_sort_by: Sort by "%s"\r
 \r
 button_login: Login\r
 button_submit: Enviar\r
index 8c7d2cf71e244d5c3b06a5df2bfe8e44bad640bf..4c072971660e666f1bd920ed930027e6fe651517 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Login
 button_submit: Enviar
index e18f824c8544c4ab9d4c9944504102a6f06274dd..eb10f95eab6488026fab2defe9f7ff724d03117c 100644 (file)
@@ -405,6 +405,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: Logga in
 button_submit: Skicka
index 2af952552f63355daf63c17dec457595cdbecc04..fa58056b678fef3a430960474311f43df2cffde0 100644 (file)
@@ -407,6 +407,7 @@ label_week: Week
 label_date_from: From
 label_date_to: To
 label_language_based: Language based
+label_sort_by: Sort by "%s"
 
 button_login: 登录
 button_submit: 提交