From edc5d4c5f40e9e24487df2405c7365f5592aeeb3 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Tue, 18 Mar 2014 17:47:19 -0300 Subject: [PATCH] Translate layout template strings --- app/models/layout_template.rb | 6 +++--- app/views/themes/index.rhtml | 2 +- po/pt/noosfero.po | 24 ++++++++++++++++++++++++ public/designs/templates/leftbottom/config.yml | 2 +- public/designs/templates/nosidebars/config.yml | 2 +- 5 files changed, 30 insertions(+), 6 deletions(-) diff --git a/app/models/layout_template.rb b/app/models/layout_template.rb index a6a7ea5..2d084a2 100644 --- a/app/models/layout_template.rb +++ b/app/models/layout_template.rb @@ -16,15 +16,15 @@ class LayoutTemplate end def name - @config['name'] + _ @config['name'] end def title - @config['title'] + _ @config['title'] end def description - @config['description'] + _ @config['description'] end def number_of_boxes diff --git a/app/views/themes/index.rhtml b/app/views/themes/index.rhtml index 4d8dfbc..0b087da 100644 --- a/app/views/themes/index.rhtml +++ b/app/views/themes/index.rhtml @@ -12,7 +12,7 @@ "/designs/templates/#{template.id}/thumbnail.png", :alt => _('The "%s" template')) + '
'.html_safe + - content_tag('strong', template.name, :class => 'name') + + content_tag('strong', template.name, :title => template.title, :class => 'name') + '
'.html_safe if @current_template == template.id # selected diff --git a/po/pt/noosfero.po b/po/pt/noosfero.po index d14e54c..ad17856 100644 --- a/po/pt/noosfero.po +++ b/po/pt/noosfero.po @@ -2875,6 +2875,30 @@ msgstr "Artigo de texto com linguagem de marcação Textile" msgid "Accessible alternative for visually impaired users." msgstr "Alternativa acessível para usuários com deficiência visual." +#: app/models/layout_template.rb +msgid "Left Bar" +msgstr "Uma barra à esquerda" + +#: app/models/layout_template.rb +msgid "2 Left Bars" +msgstr "Duas barras à esquerda" + +#: app/models/layout_template.rb +msgid "Left and Bottom Bar" +msgstr "Uma barra à esquerda e outra ao final" + +#: app/models/layout_template.rb +msgid "Right Bar" +msgstr "Uma barra à direita" + +#: app/models/layout_template.rb +msgid "Default" +msgstr "Padrão" + +#: app/models/layout_template.rb +msgid "No Sidebars" +msgstr "Nenhuma barra lateral" + #: app/models/login_block.rb:4 msgid "Login/logout" msgstr "Login/Sair" diff --git a/public/designs/templates/leftbottom/config.yml b/public/designs/templates/leftbottom/config.yml index f3a563d..0662c1e 100644 --- a/public/designs/templates/leftbottom/config.yml +++ b/public/designs/templates/leftbottom/config.yml @@ -1,4 +1,4 @@ -name: "Left and Bottom bar" +name: "Left and Bottom Bar" title: "Style 2 columns and a box at bottom of content" description: "A theme with 2 columns and a box below the content" number_of_boxes: 3 diff --git a/public/designs/templates/nosidebars/config.yml b/public/designs/templates/nosidebars/config.yml index 36eef2f..1e67736 100644 --- a/public/designs/templates/nosidebars/config.yml +++ b/public/designs/templates/nosidebars/config.yml @@ -1,4 +1,4 @@ -name: "No Side Bars" +name: "No Sidebars" title: "No sidebars, only content" description: "A template without sidebars, only content" number_of_boxes: 1 -- libgit2 0.21.2