Commit e9f8d06df2fccd56054e2615bc15816dc566b522

Authored by Antonio Terceiro
1 parent b8ba9734

ActionItem1163: fixing translation problem

app/helpers/forms_helper.rb
... ... @@ -15,7 +15,8 @@ module FormsHelper
15 15 def labelled_check_box( human_name, name, value = "1", checked = false, options = {} )
16 16 options[:id] ||= 'checkbox-' + FormsHelper.next_id_number
17 17 check_box_tag( name, value, checked, options ) +
18   - content_tag( 'label', human_name, :for => options[:id] )
  18 + content_tag( 'label', human_name, :for => options[:id] ) +
  19 + hidden_field_tag(name, '0')
19 20 end
20 21  
21 22 def labelled_text_field( human_name, name, value=nil, options={} )
... ...
app/views/profile_editor/_organization.rhtml
... ... @@ -60,7 +60,7 @@
60 60  
61 61 <%= render :partial => 'shared/custom_fields', :locals => { :f => f, :object_name => 'profile_data', :profile => @profile, :only_required => false } %>
62 62  
63   - <%= f.check_box(:enable_contact_us) if @profile.enterprise? %>
  63 + <%= labelled_check_box(_('Enable "contact us"'), 'profile_data[enable_contact_us]', "1", @profile.enable_contact_us) if @profile.enterprise? %>
64 64  
65 65 <h1><%= _('Moderation options') %></h1>
66 66 <div style='margin-bottom: 1em'>
... ...
po/bg/noosfero.po
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2007-08-30 18:47-0300\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5072,6 +5072,10 @@ msgid &quot;&quot;
5072 5072 "the homepage or to content inside it. Do you really want to change? "
5073 5073 msgstr ""
5074 5074  
  5075 +#: app/views/profile_editor/_organization.rhtml:63
  5076 +msgid "Enable \"contact us\""
  5077 +msgstr ""
  5078 +
5075 5079 #: app/views/profile_editor/_organization.rhtml:65
5076 5080 msgid "Moderation options"
5077 5081 msgstr ""
... ...
po/de/noosfero.po
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2007-08-30 18:47-0300\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5072,6 +5072,10 @@ msgid &quot;&quot;
5072 5072 "the homepage or to content inside it. Do you really want to change? "
5073 5073 msgstr ""
5074 5074  
  5075 +#: app/views/profile_editor/_organization.rhtml:63
  5076 +msgid "Enable \"contact us\""
  5077 +msgstr ""
  5078 +
5075 5079 #: app/views/profile_editor/_organization.rhtml:65
5076 5080 msgid "Moderation options"
5077 5081 msgstr ""
... ...
po/es/noosfero.po
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2007-08-30 18:47-0300\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5072,6 +5072,10 @@ msgid &quot;&quot;
5072 5072 "the homepage or to content inside it. Do you really want to change? "
5073 5073 msgstr ""
5074 5074  
  5075 +#: app/views/profile_editor/_organization.rhtml:63
  5076 +msgid "Enable \"contact us\""
  5077 +msgstr ""
  5078 +
5075 5079 #: app/views/profile_editor/_organization.rhtml:65
5076 5080 msgid "Moderation options"
5077 5081 msgstr ""
... ...
po/fr/noosfero.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  11 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
12 12 "PO-Revision-Date: 2008-06-13 16:15-0300\n"
13 13 "Last-Translator: Raphael Rousseau <pootle.colivre.coop.br@r4f.org>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5433,6 +5433,11 @@ msgid &quot;&quot;
5433 5433 "the homepage or to content inside it. Do you really want to change? "
5434 5434 msgstr ""
5435 5435  
  5436 +#: app/views/profile_editor/_organization.rhtml:63
  5437 +#, fuzzy
  5438 +msgid "Enable \"contact us\""
  5439 +msgstr "Gérer les contacts."
  5440 +
5436 5441 #: app/views/profile_editor/_organization.rhtml:65
5437 5442 msgid "Moderation options"
5438 5443 msgstr "Options de modération"
... ...
po/hy/noosfero.po
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2009-07-11 17:27-0300\n"
12 12 "Last-Translator: Anahit Minassian <anahit.minassian@cooperation.net>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5523,6 +5523,32 @@ msgid &quot;&quot;
5523 5523 "the homepage or to content inside it. Do you really want to change? "
5524 5524 msgstr ""
5525 5525  
  5526 +#: app/views/profile_editor/_organization.rhtml:63
  5527 +#, fuzzy
  5528 +msgid "Enable \"contact us\""
  5529 +msgstr ""
  5530 +"#-#-#-#-# noosfero.po.REMOTE.16110.po (noosfero 0.18.4) #-#-#-#-#\n"
  5531 +"#-#-#-#-# noosfero.po.LOCAL.16110.po (noosfero 0.18.4) #-#-#-#-#\n"
  5532 +"#-#-#-#-# noosfero.po.REMOTE.9201.po (noosfero 0.16.0) #-#-#-#-#\n"
  5533 +"#-#-#-#-# noosfero.po.LOCAL.9201.po (noosfero 0.15.0) #-#-#-#-#\n"
  5534 +"#-#-#-#-# noosfero.po.REMOTE.17090.po (noosfero 0.15.0) #-#-#-#-#\n"
  5535 +"#-#-#-#-# noosfero.po.LOCAL.17090.po (noosfero 0.15.0) #-#-#-#-#\n"
  5536 +"#-#-#-#-# noosfero.po.REMOTE.26849.po (noosfero 0.15.0) #-#-#-#-#\n"
  5537 +"#-#-#-#-# noosfero.po.LOCAL.26849.po (noosfero 0.14.0) #-#-#-#-#\n"
  5538 +"#-#-#-#-# noosfero.po.REMOTE.21532.po (noosfero 0.14.0) #-#-#-#-#\n"
  5539 +"#-#-#-#-# noosfero.po.LOCAL.21532.po (noosfero 0.13.0) #-#-#-#-#\n"
  5540 +"#-#-#-#-# noosfero.po.REMOTE.8544.po (noosfero 0.13.0) #-#-#-#-#\n"
  5541 +"#-#-#-#-# noosfero.po.LOCAL.8544.po (noosfero 0.13.0) #-#-#-#-#\n"
  5542 +"#-#-#-#-# noosfero.po.REMOTE.17206.po (noosfero 0.13.0) #-#-#-#-#\n"
  5543 +"#-#-#-#-# noosfero.po.LOCAL.17206.po (noosfero 0.13.0) #-#-#-#-#\n"
  5544 +"#-#-#-#-# noosfero.po.REMOTE.9928.po (noosfero 0.13.0) #-#-#-#-#\n"
  5545 +"#-#-#-#-# noosfero.po.LOCAL.9928.po (noosfero 0.13.0) #-#-#-#-#\n"
  5546 +"#-#-#-#-# noosfero.po.REMOTE.21758.po (noosfero 0.13.0) #-#-#-#-#\n"
  5547 +"#-#-#-#-# noosfero.po.LOCAL.21758.po (noosfero 0.13.0) #-#-#-#-#\n"
  5548 +"#-#-#-#-# noosfero.po.REMOTE.25844.po (noosfero 0.13.0) #-#-#-#-#\n"
  5549 +"#-#-#-#-# noosfero.po.LOCAL.25844.po (noosfero 0.11.0) #-#-#-#-#\n"
  5550 +"Կապ պահպանող անձ"
  5551 +
5526 5552 #: app/views/profile_editor/_organization.rhtml:65
5527 5553 msgid "Moderation options"
5528 5554 msgstr "Կառավարման հատկություններ"
... ...
po/it/noosfero.po
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2007-08-30 18:47-0300\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5072,6 +5072,10 @@ msgid &quot;&quot;
5072 5072 "the homepage or to content inside it. Do you really want to change? "
5073 5073 msgstr ""
5074 5074  
  5075 +#: app/views/profile_editor/_organization.rhtml:63
  5076 +msgid "Enable \"contact us\""
  5077 +msgstr ""
  5078 +
5075 5079 #: app/views/profile_editor/_organization.rhtml:65
5076 5080 msgid "Moderation options"
5077 5081 msgstr ""
... ...
po/nl/noosfero.po
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2007-08-30 18:47-0300\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5072,6 +5072,10 @@ msgid &quot;&quot;
5072 5072 "the homepage or to content inside it. Do you really want to change? "
5073 5073 msgstr ""
5074 5074  
  5075 +#: app/views/profile_editor/_organization.rhtml:63
  5076 +msgid "Enable \"contact us\""
  5077 +msgstr ""
  5078 +
5075 5079 #: app/views/profile_editor/_organization.rhtml:65
5076 5080 msgid "Moderation options"
5077 5081 msgstr ""
... ...
po/noosfero.pot
... ... @@ -7,7 +7,7 @@
7 7 msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: noosfero 0.19.0\n"
10   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
  10 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
11 11 "PO-Revision-Date: 2007-08-30 18:47-0300\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -5072,6 +5072,10 @@ msgid &quot;&quot;
5072 5072 "the homepage or to content inside it. Do you really want to change? "
5073 5073 msgstr ""
5074 5074  
  5075 +#: app/views/profile_editor/_organization.rhtml:63
  5076 +msgid "Enable \"contact us\""
  5077 +msgstr ""
  5078 +
5075 5079 #: app/views/profile_editor/_organization.rhtml:65
5076 5080 msgid "Moderation options"
5077 5081 msgstr ""
... ...
po/pt_BR/noosfero.po
... ... @@ -12,8 +12,8 @@
12 12 msgid ""
13 13 msgstr ""
14 14 "Project-Id-Version: noosfero 0.19.0\n"
15   -"POT-Creation-Date: 2009-08-03 12:50-0300\n"
16   -"PO-Revision-Date: 2009-08-03 12:51-0300\n"
  15 +"POT-Creation-Date: 2009-08-03 13:06-0300\n"
  16 +"PO-Revision-Date: 2009-08-03 13:20-0300\n"
17 17 "Last-Translator: Joenio Costa <joenio@colivre.coop.br>\n"
18 18 "Language-Team: LANGUAGE <LL@li.org>\n"
19 19 "MIME-Version: 1.0\n"
... ... @@ -4530,7 +4530,7 @@ msgstr &quot;Entrar nessa comunidade&quot;
4530 4530 #: app/views/blocks/profile_info_actions/community.rhtml:16
4531 4531 #: app/views/blocks/profile_info_actions/enterprise.rhtml:8
4532 4532 msgid "Contact us"
4533   -msgstr "Contacte-nos"
  4533 +msgstr "Fale conosco"
4534 4534  
4535 4535 #: app/views/blocks/profile_info_actions/person.rhtml:5
4536 4536 msgid "Add friend"
... ... @@ -5243,6 +5243,10 @@ msgstr &quot;&quot;
5243 5243 "Você está prestes a alterar o endereço, e isto vai quebrar links externos "
5244 5244 "para a homepage ou para conteúdo dentro dela. Você quer realmente mudar?"
5245 5245  
  5246 +#: app/views/profile_editor/_organization.rhtml:63
  5247 +msgid "Enable \"contact us\""
  5248 +msgstr "Habilitar \"fale conosco\""
  5249 +
5246 5250 #: app/views/profile_editor/_organization.rhtml:65
5247 5251 msgid "Moderation options"
5248 5252 msgstr "Opções de moderação"
... ...