From a7766654a1dfdf04d45e8930f5e200f2cb500419 Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Sat, 20 Oct 2007 06:17:04 +0000 Subject: [PATCH] ActionItem85: bli --- app/models/enterprises_block.rb | 19 +++++++++---------- app/models/list_block.rb | 3 ++- po/noosfero.pot | 46 +++++++++++++++++++++------------------------- po/pt_BR/noosfero.po | 62 ++++++++++++++++++++++++++++++++++---------------------------- 4 files changed, 66 insertions(+), 64 deletions(-) diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index dc116f8..2f8f9d0 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -3,17 +3,16 @@ class EnterprisesBlock < Design::Block def content lambda do - content_tag( - 'ul', - Enterprise.find(:all).map do |p| - content_tag( - 'li', - content_tag( - 'span', - link_to( p.name, :profile => p.identifier) - )) - end + content_tag(:ul, + Enterprise.find(:all).map do |p| + content_tag(:li, + content_tag(:span, + link_to( p.name, :profile => p.identifier) ) + ) + end.join("\n"), + :class => 'enterprises_list_block' + ) end end diff --git a/app/models/list_block.rb b/app/models/list_block.rb index 8a82c89..625740a 100644 --- a/app/models/list_block.rb +++ b/app/models/list_block.rb @@ -12,7 +12,8 @@ class ListBlock < Design::Block 'span', link_to( p.name, :profile => p.identifier) )) - end + end.join("\n"), + :class => 'people_list_block' ) end diff --git a/po/noosfero.pot b/po/noosfero.pot index e4157c6..0a632e9 100644 --- a/po/noosfero.pot +++ b/po/noosfero.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: noosfero 0.3.0\n" -"POT-Creation-Date: 2007-10-20 00:09-0300\n" +"POT-Creation-Date: 2007-10-20 03:04-0300\n" "PO-Revision-Date: 2007-08-30 18:47-0300\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -16,9 +16,13 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: app/controllers/environment_admin/edit_template_controller.rb:10 +#: app/controllers/environment_admin/edit_template_controller.rb:7 +msgid "List Block" +msgstr "" + +#: app/controllers/environment_admin/edit_template_controller.rb:8 #: app/controllers/profile_admin/profile_editor_controller.rb:14 -msgid "Main content block" +msgid "Link Block" msgstr "" #: app/controllers/environment_admin/manage_tags_controller.rb:26 @@ -82,11 +86,11 @@ msgstr "" msgid "Enterprise sucessfully erased from the system" msgstr "" -#: app/controllers/profile_admin/enterprise_editor_controller.rb:41 +#: app/controllers/profile_admin/enterprise_editor_controller.rb:44 msgid "Enterprise successfuly activacted" msgstr "" -#: app/controllers/profile_admin/enterprise_editor_controller.rb:43 +#: app/controllers/profile_admin/enterprise_editor_controller.rb:46 msgid "Failed to activate the enterprise" msgstr "" @@ -101,45 +105,41 @@ msgid "Enterprise was not created" msgstr "" #: app/controllers/profile_admin/profile_editor_controller.rb:12 -msgid "List Block" +msgid "List of People" msgstr "" #: app/controllers/profile_admin/profile_editor_controller.rb:13 -msgid "Link Block" +msgid "List of Enterprises" msgstr "" #: app/controllers/profile_admin/profile_editor_controller.rb:15 msgid "Recent documents block" msgstr "" -#: app/controllers/public/account_controller.rb:21 +#: app/controllers/public/account_controller.rb:29 msgid "Logged in successfully" msgstr "" -#: app/controllers/public/account_controller.rb:23 +#: app/controllers/public/account_controller.rb:31 msgid "Incorrect username or password" msgstr "" -#: app/controllers/public/account_controller.rb:42 +#: app/controllers/public/account_controller.rb:50 msgid "Thanks for signing up!" msgstr "" -#: app/controllers/public/account_controller.rb:54 +#: app/controllers/public/account_controller.rb:62 msgid "You have been logged out." msgstr "" -#: app/controllers/public/account_controller.rb:65 +#: app/controllers/public/account_controller.rb:73 msgid "Your password has been changed successfully!" msgstr "" -#: app/controllers/public/account_controller.rb:68 +#: app/controllers/public/account_controller.rb:76 msgid "The supplied current password is incorrect." msgstr "" -#: app/controllers/application.rb:43 -msgid "There is no page %s" -msgstr "" - #: app/models/validation_info.rb:- msgid "validation info" msgstr "" @@ -263,7 +263,7 @@ msgstr "" msgid "Edit profile design" msgstr "" -#: app/models/profile.rb:63 +#: app/models/profile.rb:64 msgid "An existing profile cannot be renamed." msgstr "" @@ -643,7 +643,7 @@ msgstr "" msgid "%{fn} must be the same as the parents'" msgstr "" -#: app/models/organization.rb:11 app/models/organization.rb:16 +#: app/models/organization.rb:15 app/models/organization.rb:20 msgid "(not informed)" msgstr "" @@ -1715,18 +1715,14 @@ msgstr "" msgid "My profile" msgstr "" -#: app/views/profile_editor/index.rhtml:13 +#: app/views/profile_editor/index.rhtml:14 msgid "Edit Visual Design" msgstr "" -#: app/views/profile_editor/index.rhtml:15 +#: app/views/profile_editor/index.rhtml:16 msgid "Menage content" msgstr "" -#: app/views/profile_editor/index.rhtml:18 -msgid "Edit enterprise info" -msgstr "" - #: app/views/enterprise_registration/basic_information.rhtml:27 msgid "Management information" msgstr "" diff --git a/po/pt_BR/noosfero.po b/po/pt_BR/noosfero.po index 5f4d0fa..5468f82 100644 --- a/po/pt_BR/noosfero.po +++ b/po/pt_BR/noosfero.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: noosfero 0.3.0\n" -"POT-Creation-Date: 2007-10-20 00:09-0300\n" +"POT-Creation-Date: 2007-10-20 03:04-0300\n" "PO-Revision-Date: 2007-10-19 21:25-0300\n" "Last-Translator: Rafael Tavares Bomfim \n" "Language-Team: \n" @@ -19,10 +19,14 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Pootle 1.0.2\n" -#: app/controllers/environment_admin/edit_template_controller.rb:10 +#: app/controllers/environment_admin/edit_template_controller.rb:7 +msgid "List Block" +msgstr "Bloco de Lista" + +#: app/controllers/environment_admin/edit_template_controller.rb:8 #: app/controllers/profile_admin/profile_editor_controller.rb:14 -msgid "Main content block" -msgstr "Bloco de conteúdo principal" +msgid "Link Block" +msgstr "Bloco de Link" #: app/controllers/environment_admin/manage_tags_controller.rb:26 msgid "Tag was successfully created." @@ -85,11 +89,11 @@ msgstr "Não pôde modificar o empreendimento" msgid "Enterprise sucessfully erased from the system" msgstr "Empreendimento ativado com sucesso" -#: app/controllers/profile_admin/enterprise_editor_controller.rb:41 +#: app/controllers/profile_admin/enterprise_editor_controller.rb:44 msgid "Enterprise successfuly activacted" msgstr "Empreendimento ativado com sucesso" -#: app/controllers/profile_admin/enterprise_editor_controller.rb:43 +#: app/controllers/profile_admin/enterprise_editor_controller.rb:46 msgid "Failed to activate the enterprise" msgstr "Falhou em ativar o empreendimento" @@ -106,45 +110,42 @@ msgid "Enterprise was not created" msgstr "Empreendimento não foi criado" #: app/controllers/profile_admin/profile_editor_controller.rb:12 -msgid "List Block" -msgstr "Bloco de Lista" +msgid "List of People" +msgstr "" #: app/controllers/profile_admin/profile_editor_controller.rb:13 -msgid "Link Block" -msgstr "Bloco de Link" +#, fuzzy +msgid "List of Enterprises" +msgstr "Meus Empreendimentos" #: app/controllers/profile_admin/profile_editor_controller.rb:15 msgid "Recent documents block" msgstr "Bloco de documentos recentes" -#: app/controllers/public/account_controller.rb:21 +#: app/controllers/public/account_controller.rb:29 msgid "Logged in successfully" msgstr "Login bem sucedido" -#: app/controllers/public/account_controller.rb:23 +#: app/controllers/public/account_controller.rb:31 msgid "Incorrect username or password" msgstr "Nome ou senha incorreto" -#: app/controllers/public/account_controller.rb:42 +#: app/controllers/public/account_controller.rb:50 msgid "Thanks for signing up!" msgstr "Obrigado por se registrar!" -#: app/controllers/public/account_controller.rb:54 +#: app/controllers/public/account_controller.rb:62 msgid "You have been logged out." msgstr "Você se saiu do sistema" -#: app/controllers/public/account_controller.rb:65 +#: app/controllers/public/account_controller.rb:73 msgid "Your password has been changed successfully!" msgstr "Sua senha foi alterada com sucesso!" -#: app/controllers/public/account_controller.rb:68 +#: app/controllers/public/account_controller.rb:76 msgid "The supplied current password is incorrect." msgstr "A senha informada está incorreta" -#: app/controllers/application.rb:43 -msgid "There is no page %s" -msgstr "Não há página: %s" - #: app/models/validation_info.rb:- msgid "validation info" msgstr "informação de validação" @@ -271,7 +272,7 @@ msgstr "Conteúdo da postagem" msgid "Edit profile design" msgstr "Editar design de perfil" -#: app/models/profile.rb:63 +#: app/models/profile.rb:64 msgid "An existing profile cannot be renamed." msgstr "Um perfil existente não pode ser renomeado" @@ -663,7 +664,7 @@ msgstr "%{fn} já foi atribuído a outra categoria." msgid "%{fn} must be the same as the parents'" msgstr "%{fn} tem que ser o mesmo que o dos pais'" -#: app/models/organization.rb:11 app/models/organization.rb:16 +#: app/models/organization.rb:15 app/models/organization.rb:20 msgid "(not informed)" msgstr "(não informado)" @@ -1767,18 +1768,14 @@ msgstr "Salvar" msgid "My profile" msgstr "Meu perfil" -#: app/views/profile_editor/index.rhtml:13 +#: app/views/profile_editor/index.rhtml:14 msgid "Edit Visual Design" msgstr "Editar Aparência" -#: app/views/profile_editor/index.rhtml:15 +#: app/views/profile_editor/index.rhtml:16 msgid "Menage content" msgstr "Garenciar conteúdo" -#: app/views/profile_editor/index.rhtml:18 -msgid "Edit enterprise info" -msgstr "Editar informação de empreendimento" - #: app/views/enterprise_registration/basic_information.rhtml:27 msgid "Management information" msgstr "Gerenciamento de informação" @@ -1868,6 +1865,15 @@ msgstr "Editando %s" msgid "Categories" msgstr "Categorias" +#~ msgid "Main content block" +#~ msgstr "Bloco de conteúdo principal" + +#~ msgid "There is no page %s" +#~ msgstr "Não há página: %s" + +#~ msgid "Edit enterprise info" +#~ msgstr "Editar informação de empreendimento" + #~ msgid "Profile|Flexible template template" #~ msgstr "Modelo fexível modelo" -- libgit2 0.21.2