Project

General

Profile

RE: Wiki Extensions Plugin » redmine_wiki_extensions.diff

use 'Tags' translation in sidebar; Russian l10n file - Dim A, 2009-09-09 04:25

View differences:

redmine_wiki_extensions/config/locales/ru.yml 2009-09-09 06:20:37.672198162 +0400
1
# Russian strings go
2
ru:
3
  label_wikiextensions_tags: Метки
4
  label_wikiextensions_new: Новое
5
  wiki_extensions: Расширения Wiki
6
  label_wikiextensions_tab: Вкладка
7
  wiki_extensions_add_tab: "Добавить вкладку в меню проекта."
redmine_wiki_extensions/lib/wiki_extensions_tags_macro.rb 2009-09-09 05:53:14.976596678 +0400
25 25
      page = obj.page
26 26
      return unless page
27 27

  
28
      o = "<h3>Tags</h3>"
28
      o = '<h3>' + l(:label_wikiextensions_tags) + '</h3>'
29 29
      page.tags.each{|tag|
30 30
        o << tag.name
31 31
        o << ','
......
43 43
      page = obj.page
44 44
      return unless page
45 45
      project = page.project
46
      o = "<h3>Tags</h3>"
46
      o = '<h3>' + l(:label_wikiextensions_tags) + '</h3>'
47 47
      tags = WikiExtensionsTag.find(:all, :conditions => ['project_id = ?', project.id])
48 48
      return '' if tags.empty?
49 49
      max_count = tags.sort{|a, b| a.page_count <=> b.page_count}.last.page_count.to_f
    (1-1/1)