From 52fbca4c1e18e49c0624bad8859c400f7bdc7452 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Tue, 24 Feb 2015 17:15:36 -0300 Subject: [PATCH] Changing filenames --- controllers/mpog_software_plugin_controller.rb | 257 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- controllers/mpog_software_plugin_myprofile_controller.rb | 213 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- controllers/software_communities_plugin_controller.rb | 257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ controllers/software_communities_plugin_myprofile_controller.rb | 213 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ features/step_definitions/mpog_steps.rb | 242 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- features/step_definitions/software_communities_steps.rb | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/mpog_software_plugin.rb | 380 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- lib/software_communities_plugin.rb | 380 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/mpog_software.pot | 1130 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- po/pt/mpog_software.po | 1130 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- po/pt/software_communities_software.po | 1130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ po/software_communities_software.pot | 1130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/functional/mpog_software_plugin_controller_test.rb | 257 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test/functional/mpog_software_plugin_myprofile_controller_test.rb | 260 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test/functional/software_communities_plugin_controller_test.rb | 257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/functional/software_communities_plugin_myprofile_controller_test.rb | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/unit/mpog_person_test.rb | 95 ----------------------------------------------------------------------------------------------- test/unit/mpog_software_plugin_user_test.rb | 138 ------------------------------------------------------------------------------------------------------------------------------------------ test/unit/software_communities_person_test.rb | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/unit/software_communities_plugin_user_test.rb | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ views/mpog_software_plugin/_institution.html.erb | 129 --------------------------------------------------------------------------------------------------------------------------------- views/mpog_software_plugin/create_institution.html.erb | 1 - views/mpog_software_plugin/create_institution_admin.html.erb | 1 - views/mpog_software_plugin_myprofile/_database_fields.html.erb | 12 ------------ views/mpog_software_plugin_myprofile/_language_fields.html.erb | 12 ------------ views/mpog_software_plugin_myprofile/_library_fields.html.erb | 12 ------------ views/mpog_software_plugin_myprofile/_license_info_fields.html.erb | 15 --------------- views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb | 27 --------------------------- views/mpog_software_plugin_myprofile/_operating_system_fields.html.erb | 12 ------------ views/mpog_software_plugin_myprofile/_public_software_info.html.erb | 103 ------------------------------------------------------------------------------------------------------- views/mpog_software_plugin_myprofile/edit_institution.html.erb | 119 ----------------------------------------------------------------------------------------------------------------------- views/mpog_software_plugin_myprofile/edit_software.html.erb | 20 -------------------- views/mpog_software_plugin_myprofile/new_software.html.erb | 70 ---------------------------------------------------------------------- views/search/_mpog_search_form.html.erb | 57 --------------------------------------------------------- views/search/_software_search_form.html.erb | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ views/software_communities_plugin/_institution.html.erb | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ views/software_communities_plugin/create_institution.html.erb | 1 + views/software_communities_plugin/create_institution_admin.html.erb | 1 + views/software_communities_plugin_myprofile/_database_fields.html.erb | 12 ++++++++++++ views/software_communities_plugin_myprofile/_language_fields.html.erb | 12 ++++++++++++ views/software_communities_plugin_myprofile/_library_fields.html.erb | 12 ++++++++++++ views/software_communities_plugin_myprofile/_license_info_fields.html.erb | 15 +++++++++++++++ views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb | 27 +++++++++++++++++++++++++++ views/software_communities_plugin_myprofile/_operating_system_fields.html.erb | 12 ++++++++++++ views/software_communities_plugin_myprofile/_public_software_info.html.erb | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ views/software_communities_plugin_myprofile/edit_institution.html.erb | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ views/software_communities_plugin_myprofile/edit_software.html.erb | 20 ++++++++++++++++++++ views/software_communities_plugin_myprofile/new_software.html.erb | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 48 files changed, 4692 insertions(+), 4692 deletions(-) delete mode 100644 controllers/mpog_software_plugin_controller.rb delete mode 100644 controllers/mpog_software_plugin_myprofile_controller.rb create mode 100644 controllers/software_communities_plugin_controller.rb create mode 100644 controllers/software_communities_plugin_myprofile_controller.rb delete mode 100644 features/step_definitions/mpog_steps.rb create mode 100644 features/step_definitions/software_communities_steps.rb delete mode 100644 lib/mpog_software_plugin.rb create mode 100644 lib/software_communities_plugin.rb delete mode 100644 po/mpog_software.pot delete mode 100644 po/pt/mpog_software.po create mode 100644 po/pt/software_communities_software.po create mode 100644 po/software_communities_software.pot delete mode 100644 test/functional/mpog_software_plugin_controller_test.rb delete mode 100644 test/functional/mpog_software_plugin_myprofile_controller_test.rb create mode 100644 test/functional/software_communities_plugin_controller_test.rb create mode 100644 test/functional/software_communities_plugin_myprofile_controller_test.rb delete mode 100644 test/unit/mpog_person_test.rb delete mode 100644 test/unit/mpog_software_plugin_user_test.rb create mode 100644 test/unit/software_communities_person_test.rb create mode 100644 test/unit/software_communities_plugin_user_test.rb delete mode 100644 views/mpog_software_plugin/_institution.html.erb delete mode 100644 views/mpog_software_plugin/create_institution.html.erb delete mode 100644 views/mpog_software_plugin/create_institution_admin.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_database_fields.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_language_fields.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_library_fields.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_license_info_fields.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_operating_system_fields.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/_public_software_info.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/edit_institution.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/edit_software.html.erb delete mode 100644 views/mpog_software_plugin_myprofile/new_software.html.erb delete mode 100644 views/search/_mpog_search_form.html.erb create mode 100644 views/search/_software_search_form.html.erb create mode 100644 views/software_communities_plugin/_institution.html.erb create mode 100644 views/software_communities_plugin/create_institution.html.erb create mode 100644 views/software_communities_plugin/create_institution_admin.html.erb create mode 100644 views/software_communities_plugin_myprofile/_database_fields.html.erb create mode 100644 views/software_communities_plugin_myprofile/_language_fields.html.erb create mode 100644 views/software_communities_plugin_myprofile/_library_fields.html.erb create mode 100644 views/software_communities_plugin_myprofile/_license_info_fields.html.erb create mode 100644 views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb create mode 100644 views/software_communities_plugin_myprofile/_operating_system_fields.html.erb create mode 100644 views/software_communities_plugin_myprofile/_public_software_info.html.erb create mode 100644 views/software_communities_plugin_myprofile/edit_institution.html.erb create mode 100644 views/software_communities_plugin_myprofile/edit_software.html.erb create mode 100644 views/software_communities_plugin_myprofile/new_software.html.erb diff --git a/controllers/mpog_software_plugin_controller.rb b/controllers/mpog_software_plugin_controller.rb deleted file mode 100644 index 749dbb6..0000000 --- a/controllers/mpog_software_plugin_controller.rb +++ /dev/null @@ -1,257 +0,0 @@ -require 'csv' -class SoftwareCommunitiesPluginController < ApplicationController - - def check_reactivate_account - if request.xhr? && params[:email] - result = "" - user = User.where(:email => params[:email]) - - if user.length == 1 && !user[0].person.visible - result = " Reactive account" - end - - render :json => result.to_json - end - end - - def hide_registration_incomplete_percentage - response = false - - if request.xhr? && params[:hide] - session[:hide_incomplete_percentage] = true - response = session[:hide_incomplete_percentage] - end - - render :json=>response.to_json - end - - def create_institution - @show_sisp_field = environment.admins.include?(current_user.person) - @state_list = get_state_list() - - if request.xhr? - render :layout=>false - else - redirect_to "/" - end - end - - def split_http_referer http_referer - split_list = [] - split_list = http_referer.split("/") - @url_token = split_list.last - return @url_token - end - - def create_institution_admin - @show_sisp_field = environment.admins.include?(current_user.person) - @state_list = get_state_list() - - @url_token = split_http_referer request.original_url() - end - - def new_institution - redirect_to "/" if params[:community].blank? || params[:institutions].blank? - - response_message = {} - - institution_template = Community["institution"] - add_template_in_params institution_template - - institution = private_create_institution - add_environment_admins_to_institution institution - - response_message = save_institution institution - - if request.xhr? #User create institution - render :json => response_message.to_json - else #Admin create institution - session[:notice] = response_message[:message] # consume the notice - - redirect_depending_on_institution_creation response_message - end - end - - def institution_already_exists - redirect_to "/" if !request.xhr? || params[:name].blank? - - already_exists = !Community.where(:name=>params[:name]).empty? - - render :json=>already_exists.to_json - end - - def get_institutions - redirect_to "/" if !request.xhr? || params[:query].blank? - - list = Institution.search_institution(params[:query]).map{ |institution| - {:value=>institution.name, :id=>institution.id} - } - - render :json => list.to_json - end - - def get_categories - redirect_to "/" if !request.xhr? || params[:query].blank? - - list = [] - - Category.where("name ILIKE ?", "%#{params[:query]}%").collect { |c| - list << {:label=>c.name, :id=>c.id} if c.name != "Software" - } - - render :json => list.to_json - end - - def get_brazil_states - redirect_to "/" unless request.xhr? - - state_list = get_state_list() - render :json=>state_list.collect {|state| state.name }.to_json - end - - def get_field_data - condition = !request.xhr? || params[:query].nil? || params[:field].nil? - return render :json=>{} if condition - - model = get_model_by_params_field - - data = model.where("name ILIKE ?", "%#{params[:query]}%").select("id, name") - .collect { |db| - {:id=>db.id, :label=>db.name} - } - - other = [model.select("id, name").last].collect { |db| - {:id=>db.id, :label=>db.name} - } - - # Always has other in the list - data |= other - - render :json=> data - end - - def get_license_data - return render :json=>{} if !request.xhr? || params[:query].nil? - - data = if params[:query].empty? - LicenseInfo.all - else - LicenseInfo.where("version ILIKE ?", "%#{params[:query]}%").select("id, version") - end - - render :json=> data.collect { |license| - {:id=>license.id, :label=>license.version} - } - end - - protected - - def get_state_list - NationalRegion.find( - :all, - :conditions=>["national_region_type_id = ?", 2], - :order=>"name" - ) - end - - def set_institution_type - institution_params = params[:institutions].except( - :governmental_power, - :governmental_sphere, - :juridical_nature - ) - if params[:institutions][:type] == "PublicInstitution" - PublicInstitution::new institution_params - else - PrivateInstitution::new institution_params - end - end - - def set_public_institution_fields institution - inst_fields = params[:institutions] - - begin - gov_power = GovernmentalPower.find inst_fields[:governmental_power] - gov_sphere = GovernmentalSphere.find inst_fields[:governmental_sphere] - jur_nature = JuridicalNature.find inst_fields[:juridical_nature] - - institution.juridical_nature = jur_nature - institution.governmental_power = gov_power - institution.governmental_sphere = gov_sphere - rescue - institution.errors.add( - :governmental_fields, - _("Could not find Governmental Power or Governmental Sphere") - ) - end - end - - def private_create_institution - community = Community.new(params[:community]) - community.environment = environment - institution = set_institution_type - - institution.name = community[:name] - institution.community = community - - if institution.type == "PublicInstitution" - set_public_institution_fields institution - end - - institution.date_modification = DateTime.now - institution.save - - institution - end - - def add_template_in_params institution_template - com_fields = params[:community] - if !institution_template.blank? && institution_template.is_template - com_fields[:template_id]= institution_template.id unless com_fields.blank? - end - end - - def add_environment_admins_to_institution institution - edit_page = params[:edit_institution_page] == false - if environment.admins.include?(current_user.person) && edit_page - environment.admins.each do |adm| - institution.community.add_admin(adm) - end - end - end - - def save_institution institution - inst_errors = institution.errors.full_messages - com_errors = institution.community.errors.full_messages - - if inst_errors.empty? && com_errors.empty? && institution.valid? && institution.save - { :success => true, - :message => _("Institution successful created!"), - :institution_data => {:name=>institution.name, :id=>institution.id} - } - else - { :success => false, - :message => _("Institution could not be created!"), - :errors => inst_errors << com_errors - } - end - end - - def redirect_depending_on_institution_creation response_message - if response_message[:success] - redirect_to :controller => "/admin_panel", :action => "index" - else - flash[:errors] = response_message[:errors] - redirect_to :controller => "software_communities_plugin", :action => "create_institution_admin" - end - end - - def get_model_by_params_field - case params[:field] - when "software_language" - return ProgrammingLanguage - else - return DatabaseDescription - end - end -end diff --git a/controllers/mpog_software_plugin_myprofile_controller.rb b/controllers/mpog_software_plugin_myprofile_controller.rb deleted file mode 100644 index 1e6a4c5..0000000 --- a/controllers/mpog_software_plugin_myprofile_controller.rb +++ /dev/null @@ -1,213 +0,0 @@ -class SoftwareCommunitiesPluginMyprofileController < MyProfileController - append_view_path File.join(File.dirname(__FILE__) + '/../views') - - def index - end - - def edit_institution - @show_sisp_field = environment.admins.include?(current_user.person) - @state_list = NationalRegion.find(:all, :conditions => - { :national_region_type_id => 2 }, - :order => 'name') - @institution = @profile.institution - update_institution if request.post? - end - - def new_software - set_software_as_template - - @community = Community.new(params[:community]) - @community.environment = environment - @software_info = SoftwareInfo.new(params[:software_info]) - - @license_info = if params[:license].blank? or params[:license][:license_infos_id].blank? - LicenseInfo.new - else - LicenseInfo.find(params[:license][:license_infos_id]) - end - - control_software_creation - end - - def search_offerers - arg = params[:q].downcase - result = environment.people.find(:all, - :conditions => [ 'LOWER(name) LIKE ?', "%#{arg}%"]) - render :text => prepare_to_token_input(result).to_json - end - - def edit_software - update_software_atributes - - return unless request.post? - @software_info = constroy_software - software_info_insert_models.call(@list_libraries, 'libraries') - software_info_insert_models.call(@list_languages, 'software_languages') - software_info_insert_models.call(@list_databases, 'software_databases') - software_info_insert_models.call(@list_operating_systems, 'operating_systems') - - begin - @software_info.save! - if params[:commit] == _('Save and Configure Community') - redirect_to :controller => 'profile_editor', :action => 'edit' - else - redirect_to :controller => 'profile_editor', :action => 'index' - session[:notice] = _('Software updated sucessefuly') - end - rescue ActiveRecord::RecordInvalid => invalid - session[:notice] = _('Could not update software') - end - end - - def disabled_public_software_field - !environment.admins.include?(current_user.person) - end - - def community_must_be_approved - end - - private - - def add_software_erros - @errors = [] - @errors |= @community.errors.full_messages - @errors |= @software_info.errors.full_messages - @errors |= @license_info.errors.full_messages - end - - def control_software_creation - valid_models = request.post? && (@community.valid? && @software_info.valid? && @license_info.valid?) - if valid_models - send_software_to_moderation - else - add_software_erros - end - end - - def update_institution - @institution.community.update_attributes(params[:community]) - @institution.update_attributes(params[:institutions].except(:governmental_power, :governmental_sphere, :juridical_nature)) - if @institution.type == "PublicInstitution" - begin - governmental_updates - rescue - @institution.errors.add(:governmental_fields, - _("Could not find Governmental Power or Governmental Sphere")) - end - end - flash[:errors] = @institution.errors.full_messages unless @institution.valid? - end - - def governmental_updates - gov_power = GovernmentalPower.find params[:institutions][:governmental_power] - gov_sphere = GovernmentalSphere.find params[:institutions][:governmental_sphere] - jur_nature = JuridicalNature.find params[:institutions][:juridical_nature] - - @institution.juridical_nature = jur_nature - @institution.governmental_power = gov_power - @institution.governmental_sphere = gov_sphere - @institution.save - end - - def software_info_insert_models - proc { |list,model_attr| - @software_info.send(model_attr).destroy_all - list.collect!{|m| @software_info.send(model_attr) << m } unless list.nil? - } - end - - def constroy_software - params[:software][:public_software] ||= false - @software_info = @profile.software_info - @license = LicenseInfo.find(params[:license][:license_infos_id]) - @software_info.license_info = @license - @software_info.update_attributes(params[:software]) - - another_license_version = nil - another_license_link = nil - if params[:license] - another_license_version = params[:license][:version] - another_license_link = params[:license][:link] - end - - @software_info.verify_license_info(another_license_version, another_license_link) - - create_list_model_helpers - - @software_info - end - - def create_list_model_helpers - @list_libraries = LibraryHelper.list_library(params[:library]) - @list_languages = SoftwareLanguageHelper.list_language(params[:language]) - @list_databases = DatabaseHelper.list_database(params[:database]) - @list_operating_systems = OperatingSystemHelper.list_operating_system(params[:operating_system]) - end - - def send_software_to_moderation - another_license_version = "" - another_license_link = "" - if params[:license] - another_license_version = params[:license][:version] - another_license_link = params[:license][:link] - end - @software_info = SoftwareInfo.create_after_moderation(user, - params[:software_info].merge({ - :environment => environment, - :name => params[:community][:name], - :license_info => @license_info, - :another_license_version => another_license_version, - :another_license_link => another_license_link })) - - add_admin_to_community - - if !environment.admins.include?(current_user.person) - session[:notice] = _('Your new software request will be evaluated by an'\ - 'administrator. You will be notified.') - redirect_to user.admin_url - else - redirect_to :controller => 'profile_editor', - :action => 'edit', - :profile => @community.identifier - end - end - - def update_software_atributes - @software_info = @profile.software_info - @list_libraries = @software_info.libraries - @list_databases = @software_info.software_databases - @list_languages = @software_info.software_languages - @list_operating_systems = @software_info.operating_systems - @disabled_public_software_field = disabled_public_software_field - - @license_version = @software_info.license_info.version - @license_id = @software_info.license_info.id - @another_license_version = "" - @another_license_link = "" - - license_another = LicenseInfo.find_by_version("Another") - if license_another && @software_info.license_info_id == license_another.id - @license_version = "Another" - @another_license_version = @software_info.license_info.version - @another_license_link = @software_info.license_info.link - end - end - - def set_software_as_template - software_template = Community['software'] - software_valid = !software_template.blank? && software_template.is_template && !params['community'].blank? - if software_valid - params['community']['template_id'] = software_template.id if software_valid - end - end - - def add_admin_to_community - unless params[:q].nil? - admins = params[:q].split(/,/).map{ |n| environment.people.find n.to_i } - admins.each do |admin| - @community.add_member(admin) - @community.add_admin(admin) - end - end - end -end diff --git a/controllers/software_communities_plugin_controller.rb b/controllers/software_communities_plugin_controller.rb new file mode 100644 index 0000000..749dbb6 --- /dev/null +++ b/controllers/software_communities_plugin_controller.rb @@ -0,0 +1,257 @@ +require 'csv' +class SoftwareCommunitiesPluginController < ApplicationController + + def check_reactivate_account + if request.xhr? && params[:email] + result = "" + user = User.where(:email => params[:email]) + + if user.length == 1 && !user[0].person.visible + result = " Reactive account" + end + + render :json => result.to_json + end + end + + def hide_registration_incomplete_percentage + response = false + + if request.xhr? && params[:hide] + session[:hide_incomplete_percentage] = true + response = session[:hide_incomplete_percentage] + end + + render :json=>response.to_json + end + + def create_institution + @show_sisp_field = environment.admins.include?(current_user.person) + @state_list = get_state_list() + + if request.xhr? + render :layout=>false + else + redirect_to "/" + end + end + + def split_http_referer http_referer + split_list = [] + split_list = http_referer.split("/") + @url_token = split_list.last + return @url_token + end + + def create_institution_admin + @show_sisp_field = environment.admins.include?(current_user.person) + @state_list = get_state_list() + + @url_token = split_http_referer request.original_url() + end + + def new_institution + redirect_to "/" if params[:community].blank? || params[:institutions].blank? + + response_message = {} + + institution_template = Community["institution"] + add_template_in_params institution_template + + institution = private_create_institution + add_environment_admins_to_institution institution + + response_message = save_institution institution + + if request.xhr? #User create institution + render :json => response_message.to_json + else #Admin create institution + session[:notice] = response_message[:message] # consume the notice + + redirect_depending_on_institution_creation response_message + end + end + + def institution_already_exists + redirect_to "/" if !request.xhr? || params[:name].blank? + + already_exists = !Community.where(:name=>params[:name]).empty? + + render :json=>already_exists.to_json + end + + def get_institutions + redirect_to "/" if !request.xhr? || params[:query].blank? + + list = Institution.search_institution(params[:query]).map{ |institution| + {:value=>institution.name, :id=>institution.id} + } + + render :json => list.to_json + end + + def get_categories + redirect_to "/" if !request.xhr? || params[:query].blank? + + list = [] + + Category.where("name ILIKE ?", "%#{params[:query]}%").collect { |c| + list << {:label=>c.name, :id=>c.id} if c.name != "Software" + } + + render :json => list.to_json + end + + def get_brazil_states + redirect_to "/" unless request.xhr? + + state_list = get_state_list() + render :json=>state_list.collect {|state| state.name }.to_json + end + + def get_field_data + condition = !request.xhr? || params[:query].nil? || params[:field].nil? + return render :json=>{} if condition + + model = get_model_by_params_field + + data = model.where("name ILIKE ?", "%#{params[:query]}%").select("id, name") + .collect { |db| + {:id=>db.id, :label=>db.name} + } + + other = [model.select("id, name").last].collect { |db| + {:id=>db.id, :label=>db.name} + } + + # Always has other in the list + data |= other + + render :json=> data + end + + def get_license_data + return render :json=>{} if !request.xhr? || params[:query].nil? + + data = if params[:query].empty? + LicenseInfo.all + else + LicenseInfo.where("version ILIKE ?", "%#{params[:query]}%").select("id, version") + end + + render :json=> data.collect { |license| + {:id=>license.id, :label=>license.version} + } + end + + protected + + def get_state_list + NationalRegion.find( + :all, + :conditions=>["national_region_type_id = ?", 2], + :order=>"name" + ) + end + + def set_institution_type + institution_params = params[:institutions].except( + :governmental_power, + :governmental_sphere, + :juridical_nature + ) + if params[:institutions][:type] == "PublicInstitution" + PublicInstitution::new institution_params + else + PrivateInstitution::new institution_params + end + end + + def set_public_institution_fields institution + inst_fields = params[:institutions] + + begin + gov_power = GovernmentalPower.find inst_fields[:governmental_power] + gov_sphere = GovernmentalSphere.find inst_fields[:governmental_sphere] + jur_nature = JuridicalNature.find inst_fields[:juridical_nature] + + institution.juridical_nature = jur_nature + institution.governmental_power = gov_power + institution.governmental_sphere = gov_sphere + rescue + institution.errors.add( + :governmental_fields, + _("Could not find Governmental Power or Governmental Sphere") + ) + end + end + + def private_create_institution + community = Community.new(params[:community]) + community.environment = environment + institution = set_institution_type + + institution.name = community[:name] + institution.community = community + + if institution.type == "PublicInstitution" + set_public_institution_fields institution + end + + institution.date_modification = DateTime.now + institution.save + + institution + end + + def add_template_in_params institution_template + com_fields = params[:community] + if !institution_template.blank? && institution_template.is_template + com_fields[:template_id]= institution_template.id unless com_fields.blank? + end + end + + def add_environment_admins_to_institution institution + edit_page = params[:edit_institution_page] == false + if environment.admins.include?(current_user.person) && edit_page + environment.admins.each do |adm| + institution.community.add_admin(adm) + end + end + end + + def save_institution institution + inst_errors = institution.errors.full_messages + com_errors = institution.community.errors.full_messages + + if inst_errors.empty? && com_errors.empty? && institution.valid? && institution.save + { :success => true, + :message => _("Institution successful created!"), + :institution_data => {:name=>institution.name, :id=>institution.id} + } + else + { :success => false, + :message => _("Institution could not be created!"), + :errors => inst_errors << com_errors + } + end + end + + def redirect_depending_on_institution_creation response_message + if response_message[:success] + redirect_to :controller => "/admin_panel", :action => "index" + else + flash[:errors] = response_message[:errors] + redirect_to :controller => "software_communities_plugin", :action => "create_institution_admin" + end + end + + def get_model_by_params_field + case params[:field] + when "software_language" + return ProgrammingLanguage + else + return DatabaseDescription + end + end +end diff --git a/controllers/software_communities_plugin_myprofile_controller.rb b/controllers/software_communities_plugin_myprofile_controller.rb new file mode 100644 index 0000000..1e6a4c5 --- /dev/null +++ b/controllers/software_communities_plugin_myprofile_controller.rb @@ -0,0 +1,213 @@ +class SoftwareCommunitiesPluginMyprofileController < MyProfileController + append_view_path File.join(File.dirname(__FILE__) + '/../views') + + def index + end + + def edit_institution + @show_sisp_field = environment.admins.include?(current_user.person) + @state_list = NationalRegion.find(:all, :conditions => + { :national_region_type_id => 2 }, + :order => 'name') + @institution = @profile.institution + update_institution if request.post? + end + + def new_software + set_software_as_template + + @community = Community.new(params[:community]) + @community.environment = environment + @software_info = SoftwareInfo.new(params[:software_info]) + + @license_info = if params[:license].blank? or params[:license][:license_infos_id].blank? + LicenseInfo.new + else + LicenseInfo.find(params[:license][:license_infos_id]) + end + + control_software_creation + end + + def search_offerers + arg = params[:q].downcase + result = environment.people.find(:all, + :conditions => [ 'LOWER(name) LIKE ?', "%#{arg}%"]) + render :text => prepare_to_token_input(result).to_json + end + + def edit_software + update_software_atributes + + return unless request.post? + @software_info = constroy_software + software_info_insert_models.call(@list_libraries, 'libraries') + software_info_insert_models.call(@list_languages, 'software_languages') + software_info_insert_models.call(@list_databases, 'software_databases') + software_info_insert_models.call(@list_operating_systems, 'operating_systems') + + begin + @software_info.save! + if params[:commit] == _('Save and Configure Community') + redirect_to :controller => 'profile_editor', :action => 'edit' + else + redirect_to :controller => 'profile_editor', :action => 'index' + session[:notice] = _('Software updated sucessefuly') + end + rescue ActiveRecord::RecordInvalid => invalid + session[:notice] = _('Could not update software') + end + end + + def disabled_public_software_field + !environment.admins.include?(current_user.person) + end + + def community_must_be_approved + end + + private + + def add_software_erros + @errors = [] + @errors |= @community.errors.full_messages + @errors |= @software_info.errors.full_messages + @errors |= @license_info.errors.full_messages + end + + def control_software_creation + valid_models = request.post? && (@community.valid? && @software_info.valid? && @license_info.valid?) + if valid_models + send_software_to_moderation + else + add_software_erros + end + end + + def update_institution + @institution.community.update_attributes(params[:community]) + @institution.update_attributes(params[:institutions].except(:governmental_power, :governmental_sphere, :juridical_nature)) + if @institution.type == "PublicInstitution" + begin + governmental_updates + rescue + @institution.errors.add(:governmental_fields, + _("Could not find Governmental Power or Governmental Sphere")) + end + end + flash[:errors] = @institution.errors.full_messages unless @institution.valid? + end + + def governmental_updates + gov_power = GovernmentalPower.find params[:institutions][:governmental_power] + gov_sphere = GovernmentalSphere.find params[:institutions][:governmental_sphere] + jur_nature = JuridicalNature.find params[:institutions][:juridical_nature] + + @institution.juridical_nature = jur_nature + @institution.governmental_power = gov_power + @institution.governmental_sphere = gov_sphere + @institution.save + end + + def software_info_insert_models + proc { |list,model_attr| + @software_info.send(model_attr).destroy_all + list.collect!{|m| @software_info.send(model_attr) << m } unless list.nil? + } + end + + def constroy_software + params[:software][:public_software] ||= false + @software_info = @profile.software_info + @license = LicenseInfo.find(params[:license][:license_infos_id]) + @software_info.license_info = @license + @software_info.update_attributes(params[:software]) + + another_license_version = nil + another_license_link = nil + if params[:license] + another_license_version = params[:license][:version] + another_license_link = params[:license][:link] + end + + @software_info.verify_license_info(another_license_version, another_license_link) + + create_list_model_helpers + + @software_info + end + + def create_list_model_helpers + @list_libraries = LibraryHelper.list_library(params[:library]) + @list_languages = SoftwareLanguageHelper.list_language(params[:language]) + @list_databases = DatabaseHelper.list_database(params[:database]) + @list_operating_systems = OperatingSystemHelper.list_operating_system(params[:operating_system]) + end + + def send_software_to_moderation + another_license_version = "" + another_license_link = "" + if params[:license] + another_license_version = params[:license][:version] + another_license_link = params[:license][:link] + end + @software_info = SoftwareInfo.create_after_moderation(user, + params[:software_info].merge({ + :environment => environment, + :name => params[:community][:name], + :license_info => @license_info, + :another_license_version => another_license_version, + :another_license_link => another_license_link })) + + add_admin_to_community + + if !environment.admins.include?(current_user.person) + session[:notice] = _('Your new software request will be evaluated by an'\ + 'administrator. You will be notified.') + redirect_to user.admin_url + else + redirect_to :controller => 'profile_editor', + :action => 'edit', + :profile => @community.identifier + end + end + + def update_software_atributes + @software_info = @profile.software_info + @list_libraries = @software_info.libraries + @list_databases = @software_info.software_databases + @list_languages = @software_info.software_languages + @list_operating_systems = @software_info.operating_systems + @disabled_public_software_field = disabled_public_software_field + + @license_version = @software_info.license_info.version + @license_id = @software_info.license_info.id + @another_license_version = "" + @another_license_link = "" + + license_another = LicenseInfo.find_by_version("Another") + if license_another && @software_info.license_info_id == license_another.id + @license_version = "Another" + @another_license_version = @software_info.license_info.version + @another_license_link = @software_info.license_info.link + end + end + + def set_software_as_template + software_template = Community['software'] + software_valid = !software_template.blank? && software_template.is_template && !params['community'].blank? + if software_valid + params['community']['template_id'] = software_template.id if software_valid + end + end + + def add_admin_to_community + unless params[:q].nil? + admins = params[:q].split(/,/).map{ |n| environment.people.find n.to_i } + admins.each do |admin| + @community.add_member(admin) + @community.add_admin(admin) + end + end + end +end diff --git a/features/step_definitions/mpog_steps.rb b/features/step_definitions/mpog_steps.rb deleted file mode 100644 index cf1002c..0000000 --- a/features/step_definitions/mpog_steps.rb +++ /dev/null @@ -1,242 +0,0 @@ -Given /^SoftwareInfo has initial default values on database$/ do - LicenseInfo.create(:version=>"None", :link=>"") - LicenseInfo.create(:version=>"GPL-2", :link =>"www.gpl2.com") - LicenseInfo.create(:version=>"GPL-3", :link =>"www.gpl3.com") - - ProgrammingLanguage.create(:name=>"C") - ProgrammingLanguage.create(:name=>"C++") - ProgrammingLanguage.create(:name=>"Ruby") - ProgrammingLanguage.create(:name=>"Python") - - DatabaseDescription.create(:name => "Oracle") - DatabaseDescription.create(:name => "MySQL") - DatabaseDescription.create(:name => "Apache") - DatabaseDescription.create(:name => "PostgreSQL") - - OperatingSystemName.create(:name=>"Debian") - OperatingSystemName.create(:name=>"Fedora") - OperatingSystemName.create(:name=>"CentOS") -end - -Given /^Institutions has initial default values on database$/ do - GovernmentalPower.create(:name => "Executivo") - GovernmentalPower.create(:name => "Legislativo") - GovernmentalPower.create(:name => "Judiciario") - - GovernmentalSphere.create(:name => "Federal") - - JuridicalNature.create(:name => "Autarquia") - JuridicalNature.create(:name => "Administracao Direta") - JuridicalNature.create(:name => "Empresa Publica") - JuridicalNature.create(:name => "Fundacao") - JuridicalNature.create(:name => "Orgao Autonomo") - JuridicalNature.create(:name => "Sociedade") - JuridicalNature.create(:name => "Sociedade Civil") - JuridicalNature.create(:name => "Sociedade de Economia Mista") - - national_region = NationalRegion.new - national_region.name = "Distrito Federal" - national_region.national_region_code = '35' - national_region.national_region_type_id = NationalRegionType::STATE - national_region.save -end - -Given /^I type in "([^"]*)" in autocomplete list "([^"]*)" and I choose "([^"]*)"$/ do |typed, input_field_selector, should_select| - # Wait the page javascript load - sleep 1 - # Basicaly it, search for the input field, type something, wait for ajax end select an item - page.driver.browser.execute_script %Q{ - var search_query = "#{input_field_selector}.ui-autocomplete-input"; - var input = jQuery(search_query).first(); - - input.trigger('click'); - input.val('#{typed}'); - input.trigger('keydown'); - - window.setTimeout(function(){ - search_query = ".ui-menu-item a:contains('#{should_select}')"; - var typed = jQuery(search_query).first(); - - typed.trigger('mouseenter').trigger('click'); - console.log(jQuery('#license_info_id')); - }, 1000); - } - sleep 1 -end - -Given /^the following public institutions?$/ do |table| - # table is a Cucumber::Ast::Table - table.hashes.each do |item| - community = Community.new - community.name = item[:name] - community.country = item[:country] - community.state = item[:state] - community.city = item[:city] - community.save! - - governmental_power = GovernmentalPower.where(:name => item[:governmental_power]).first - governmental_sphere = GovernmentalSphere.where(:name => item[:governmental_sphere]).first - - juridical_nature = JuridicalNature.create(:name => item[:juridical_nature]) - - institution = PublicInstitution.new(:name => item[:name], :type => "PublicInstitution", :acronym => item[:acronym], :cnpj => item[:cnpj], :juridical_nature => juridical_nature, :governmental_power => governmental_power, :governmental_sphere => governmental_sphere) - institution.community = community - institution.corporate_name = item[:corporate_name] - institution.save! - end -end - -Given /^the following software language$/ do |table| - table.hashes.each do |item| - programming_language = ProgrammingLanguage.where(:name=>item[:programing_language]).first - software_language = SoftwareLanguage::new - - software_language.programming_language = programming_language - software_language.version = item[:version] - software_language.operating_system = item[:operating_system] - - software_language.save! - end -end - -Given /^the following software databases$/ do |table| - table.hashes.each do |item| - database_description = DatabaseDescription.where(:name=>item[:database_name]).first - software_database = SoftwareDatabase::new - - software_database.database_description = database_description - software_database.version = item[:version] - software_database.operating_system = item[:operating_system] - - software_database.save! - end -end - - -Given /^the following operating systems$/ do |table| - table.hashes.each do |item| - operating_system_name = OperatingSystemName.where(:name=>item[:operating_system_name]).first - operating_system = OperatingSystem::new - - operating_system.operating_system_name = operating_system_name - operating_system.version = item[:version] - - operating_system.save! - end -end - -Given /^the following softwares$/ do |table| - table.hashes.each do |item| - software_info = SoftwareInfo.new - software_info.community = Community.create(:name=>item[:name]) - - software_info.acronym = item[:acronym] if item[:acronym] - software_info.operating_platform = item[:operating_platform] if item[:operating_platform] - software_info.objectives = item[:objectives] if item[:objectives] - software_info.features = item[:features] if item[:features] - software_info.public_software = item[:public_software] == "true" if item[:public_software] - software_info.license_info = LicenseInfo.create :version=>"GPL - 1.0" - - if item[:software_language] - programming_language = ProgrammingLanguage.where(:name=>item[:software_language]).first - software_language = SoftwareLanguage.where(:programming_language_id=>programming_language).first - software_info.software_languages << software_language - end - - if item[:software_database] - database_description = DatabaseDescription.where(:name=>item[:software_database]).first - software_database = SoftwareDatabase.where(:database_description_id=>database_description).first - software_info.software_databases << software_database - end - - if item[:operating_system] - operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first - operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first - software_info.operating_systems << operating_system - end - - if item[:categories] - categories = item[:categories].split(",") - categories.map! {|category| category.strip} - - categories.each do |category_name| - category = Category.find_by_name category_name - software_info.community.categories << category - end - end - - software_info.save! - end -end - -# Dynamic table steps -Given /^I fill in first "([^"]*)" class with "([^"]*)"$/ do |selector, value| - evaluate_script "jQuery('#{selector}').first().attr('value', '#{value}') && true" -end - -Given /^I fill in last "([^"]*)" class with "([^"]*)"$/ do |selector, value| - evaluate_script "jQuery('#{selector}').last().attr('value', '#{value}') && true" -end - -Given /^I click on the first button with class "([^"]*)"$/ do |selector| - evaluate_script "jQuery('#{selector}').first().trigger('click') && true" -end - -Given /^I click on the last button with class "([^"]*)"$/ do |selector| - evaluate_script "jQuery('#{selector}').last().trigger('click') && true" -end - -Given /^the user "([^"]*)" has "([^"]*)" as secondary e\-mail$/ do |login, email| - User[login].update_attributes(:secondary_email => email) -end - -Given /^I click on anything with selector "([^"]*)"$/ do |selector| - evaluate_script "jQuery('#{selector}').trigger('click') && true" -end - -Given /^I should see "([^"]*)" of this selector "([^"]*)"$/ do |quantity, selector| - evaluate_script "jQuery('#{selector}').length == '#{quantity}'" -end - -Given /^selector "([^"]*)" should have any "([^"]*)"$/ do |selector, text| - evaluate_script "jQuery('#{selector}').html().indexOf('#{text}') != -1" -end - -Given /^I click on table number "([^"]*)" selector "([^"]*)" and select the value "([^"]*)"$/ do |number, selector, value| - evaluate_script "jQuery('#{selector}:nth-child(#{number}) select option:contains(\"#{value}\")').selected() && true" -end - -Given /^I fill with "([^"]*)" in field with name "([^"]*)" of table number "([^"]*)" with class "([^"]*)"$/ do |value, name, number, selector| - evaluate_script "jQuery('#{selector}:nth-child(#{number}) input[name=\"#{name}\"]').val('#{value}') && true" -end - -Given /^I sleep for (\d+) seconds$/ do |time| - sleep time.to_i -end - -Given /^I am logged in as mpog_admin$/ do - visit('/account/logout') - - user = User.new(:login => 'admin_user', :password => '123456', :password_confirmation => '123456', :email => 'admin_user@example.com') - person = Person.new :name=>"Mpog Admin", :identifier=>"mpog-admin" - user.person = person - user.save! - - user.activate - e = Environment.default - e.add_admin(user.person) - - visit('/account/login') - fill_in("Username", :with => user.login) - fill_in("Password", :with => '123456') - click_button("Log in") -end - -Given /^I should see "([^"]*)" before "([^"]*)"$/ do |before, after| - assert page.body.index("#{before}") < page.body.index("#{after}") -end - -Given /^I keyup on selector "([^"]*)"$/ do |selector| - selector_founded = evaluate_script("jQuery('#{selector}').trigger('keyup').length != 0") - selector_founded.should be_true -end diff --git a/features/step_definitions/software_communities_steps.rb b/features/step_definitions/software_communities_steps.rb new file mode 100644 index 0000000..cf1002c --- /dev/null +++ b/features/step_definitions/software_communities_steps.rb @@ -0,0 +1,242 @@ +Given /^SoftwareInfo has initial default values on database$/ do + LicenseInfo.create(:version=>"None", :link=>"") + LicenseInfo.create(:version=>"GPL-2", :link =>"www.gpl2.com") + LicenseInfo.create(:version=>"GPL-3", :link =>"www.gpl3.com") + + ProgrammingLanguage.create(:name=>"C") + ProgrammingLanguage.create(:name=>"C++") + ProgrammingLanguage.create(:name=>"Ruby") + ProgrammingLanguage.create(:name=>"Python") + + DatabaseDescription.create(:name => "Oracle") + DatabaseDescription.create(:name => "MySQL") + DatabaseDescription.create(:name => "Apache") + DatabaseDescription.create(:name => "PostgreSQL") + + OperatingSystemName.create(:name=>"Debian") + OperatingSystemName.create(:name=>"Fedora") + OperatingSystemName.create(:name=>"CentOS") +end + +Given /^Institutions has initial default values on database$/ do + GovernmentalPower.create(:name => "Executivo") + GovernmentalPower.create(:name => "Legislativo") + GovernmentalPower.create(:name => "Judiciario") + + GovernmentalSphere.create(:name => "Federal") + + JuridicalNature.create(:name => "Autarquia") + JuridicalNature.create(:name => "Administracao Direta") + JuridicalNature.create(:name => "Empresa Publica") + JuridicalNature.create(:name => "Fundacao") + JuridicalNature.create(:name => "Orgao Autonomo") + JuridicalNature.create(:name => "Sociedade") + JuridicalNature.create(:name => "Sociedade Civil") + JuridicalNature.create(:name => "Sociedade de Economia Mista") + + national_region = NationalRegion.new + national_region.name = "Distrito Federal" + national_region.national_region_code = '35' + national_region.national_region_type_id = NationalRegionType::STATE + national_region.save +end + +Given /^I type in "([^"]*)" in autocomplete list "([^"]*)" and I choose "([^"]*)"$/ do |typed, input_field_selector, should_select| + # Wait the page javascript load + sleep 1 + # Basicaly it, search for the input field, type something, wait for ajax end select an item + page.driver.browser.execute_script %Q{ + var search_query = "#{input_field_selector}.ui-autocomplete-input"; + var input = jQuery(search_query).first(); + + input.trigger('click'); + input.val('#{typed}'); + input.trigger('keydown'); + + window.setTimeout(function(){ + search_query = ".ui-menu-item a:contains('#{should_select}')"; + var typed = jQuery(search_query).first(); + + typed.trigger('mouseenter').trigger('click'); + console.log(jQuery('#license_info_id')); + }, 1000); + } + sleep 1 +end + +Given /^the following public institutions?$/ do |table| + # table is a Cucumber::Ast::Table + table.hashes.each do |item| + community = Community.new + community.name = item[:name] + community.country = item[:country] + community.state = item[:state] + community.city = item[:city] + community.save! + + governmental_power = GovernmentalPower.where(:name => item[:governmental_power]).first + governmental_sphere = GovernmentalSphere.where(:name => item[:governmental_sphere]).first + + juridical_nature = JuridicalNature.create(:name => item[:juridical_nature]) + + institution = PublicInstitution.new(:name => item[:name], :type => "PublicInstitution", :acronym => item[:acronym], :cnpj => item[:cnpj], :juridical_nature => juridical_nature, :governmental_power => governmental_power, :governmental_sphere => governmental_sphere) + institution.community = community + institution.corporate_name = item[:corporate_name] + institution.save! + end +end + +Given /^the following software language$/ do |table| + table.hashes.each do |item| + programming_language = ProgrammingLanguage.where(:name=>item[:programing_language]).first + software_language = SoftwareLanguage::new + + software_language.programming_language = programming_language + software_language.version = item[:version] + software_language.operating_system = item[:operating_system] + + software_language.save! + end +end + +Given /^the following software databases$/ do |table| + table.hashes.each do |item| + database_description = DatabaseDescription.where(:name=>item[:database_name]).first + software_database = SoftwareDatabase::new + + software_database.database_description = database_description + software_database.version = item[:version] + software_database.operating_system = item[:operating_system] + + software_database.save! + end +end + + +Given /^the following operating systems$/ do |table| + table.hashes.each do |item| + operating_system_name = OperatingSystemName.where(:name=>item[:operating_system_name]).first + operating_system = OperatingSystem::new + + operating_system.operating_system_name = operating_system_name + operating_system.version = item[:version] + + operating_system.save! + end +end + +Given /^the following softwares$/ do |table| + table.hashes.each do |item| + software_info = SoftwareInfo.new + software_info.community = Community.create(:name=>item[:name]) + + software_info.acronym = item[:acronym] if item[:acronym] + software_info.operating_platform = item[:operating_platform] if item[:operating_platform] + software_info.objectives = item[:objectives] if item[:objectives] + software_info.features = item[:features] if item[:features] + software_info.public_software = item[:public_software] == "true" if item[:public_software] + software_info.license_info = LicenseInfo.create :version=>"GPL - 1.0" + + if item[:software_language] + programming_language = ProgrammingLanguage.where(:name=>item[:software_language]).first + software_language = SoftwareLanguage.where(:programming_language_id=>programming_language).first + software_info.software_languages << software_language + end + + if item[:software_database] + database_description = DatabaseDescription.where(:name=>item[:software_database]).first + software_database = SoftwareDatabase.where(:database_description_id=>database_description).first + software_info.software_databases << software_database + end + + if item[:operating_system] + operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first + operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first + software_info.operating_systems << operating_system + end + + if item[:categories] + categories = item[:categories].split(",") + categories.map! {|category| category.strip} + + categories.each do |category_name| + category = Category.find_by_name category_name + software_info.community.categories << category + end + end + + software_info.save! + end +end + +# Dynamic table steps +Given /^I fill in first "([^"]*)" class with "([^"]*)"$/ do |selector, value| + evaluate_script "jQuery('#{selector}').first().attr('value', '#{value}') && true" +end + +Given /^I fill in last "([^"]*)" class with "([^"]*)"$/ do |selector, value| + evaluate_script "jQuery('#{selector}').last().attr('value', '#{value}') && true" +end + +Given /^I click on the first button with class "([^"]*)"$/ do |selector| + evaluate_script "jQuery('#{selector}').first().trigger('click') && true" +end + +Given /^I click on the last button with class "([^"]*)"$/ do |selector| + evaluate_script "jQuery('#{selector}').last().trigger('click') && true" +end + +Given /^the user "([^"]*)" has "([^"]*)" as secondary e\-mail$/ do |login, email| + User[login].update_attributes(:secondary_email => email) +end + +Given /^I click on anything with selector "([^"]*)"$/ do |selector| + evaluate_script "jQuery('#{selector}').trigger('click') && true" +end + +Given /^I should see "([^"]*)" of this selector "([^"]*)"$/ do |quantity, selector| + evaluate_script "jQuery('#{selector}').length == '#{quantity}'" +end + +Given /^selector "([^"]*)" should have any "([^"]*)"$/ do |selector, text| + evaluate_script "jQuery('#{selector}').html().indexOf('#{text}') != -1" +end + +Given /^I click on table number "([^"]*)" selector "([^"]*)" and select the value "([^"]*)"$/ do |number, selector, value| + evaluate_script "jQuery('#{selector}:nth-child(#{number}) select option:contains(\"#{value}\")').selected() && true" +end + +Given /^I fill with "([^"]*)" in field with name "([^"]*)" of table number "([^"]*)" with class "([^"]*)"$/ do |value, name, number, selector| + evaluate_script "jQuery('#{selector}:nth-child(#{number}) input[name=\"#{name}\"]').val('#{value}') && true" +end + +Given /^I sleep for (\d+) seconds$/ do |time| + sleep time.to_i +end + +Given /^I am logged in as mpog_admin$/ do + visit('/account/logout') + + user = User.new(:login => 'admin_user', :password => '123456', :password_confirmation => '123456', :email => 'admin_user@example.com') + person = Person.new :name=>"Mpog Admin", :identifier=>"mpog-admin" + user.person = person + user.save! + + user.activate + e = Environment.default + e.add_admin(user.person) + + visit('/account/login') + fill_in("Username", :with => user.login) + fill_in("Password", :with => '123456') + click_button("Log in") +end + +Given /^I should see "([^"]*)" before "([^"]*)"$/ do |before, after| + assert page.body.index("#{before}") < page.body.index("#{after}") +end + +Given /^I keyup on selector "([^"]*)"$/ do |selector| + selector_founded = evaluate_script("jQuery('#{selector}').trigger('keyup').length != 0") + selector_founded.should be_true +end diff --git a/lib/mpog_software_plugin.rb b/lib/mpog_software_plugin.rb deleted file mode 100644 index 4534b17..0000000 --- a/lib/mpog_software_plugin.rb +++ /dev/null @@ -1,380 +0,0 @@ -class SoftwareCommunitiesPlugin < Noosfero::Plugin - include ActionView::Helpers::TagHelper - include ActionView::Helpers::FormTagHelper - include ActionView::Helpers::FormOptionsHelper - include ActionView::Helpers::JavaScriptHelper - include ActionView::Helpers::AssetTagHelper - include FormsHelper - include ActionView::Helpers - include ActionDispatch::Routing - include Rails.application.routes.url_helpers - - def self.plugin_name - 'SoftwareCommunitiesPlugin' - end - - def self.plugin_description - _('Add Public Software and MPOG features.') - end - - # Hotspot to insert html without an especific hotspot on view. - def body_beginning - return if context.session[:user].nil? or context.session[:hide_incomplete_percentage] == true - - person = context.environment.people.where(:user_id=>context.session[:user]).first - - if context.profile && context.profile.person? and !person.nil? - @person = person - @percentege = calc_percentage_registration(person) - - if @percentege >= 0 and @percentege < 100 - expanded_template('incomplete_registration.html.erb') - end - end - end - - def profile_editor_extras - profile = context.profile - - if profile.person? - expanded_template('person_editor_extras.html.erb') - elsif profile.respond_to?(:software_info) && - !profile.software_info.nil? - - if profile.software_info.first_edit? - profile.software_info.first_edit = false - profile.software_info.save! - expanded_template('first_edit_software_community_extras.html.erb') - end - end - end - - def profile_editor_transaction_extras - single_hash_transactions = { :user => 'user', - :instituton => 'instituton' - } - - single_hash_transactions.each do |model, transaction| - call_model_transaction(model, transaction) - end - end - - def profile_editor_controller_filters - block = proc do - if request.post? && params[:institution] - is_admin = environment.admins.include?(current_user.person) - - unless is_admin - institution = profile.user.institutions - - if !params[:institution].blank? && !params[:institution][:sisp].nil? - if params[:institution][:sisp] != institution.sisp - params[:institution][:sisp] = institution.sisp - end - end - end - end - end - - [{ - :type => 'before_filter', - :method_name => 'validate_institution_sisp_field_access', - :options => { :only => :edit }, - :block => block - }] - end - - def profile_tabs - if context.profile.community? - profile_tabs_software if context.profile.software? - profile_tabs_institution if context.profile.institution? - end - end - - def control_panel_buttons - if context.profile.software? - return software_info_button - elsif context.profile.person? - return create_new_software_button - elsif context.profile.institution? - return institution_info_button - end - end - - def self.extra_blocks - { - SoftwaresBlock => { :type => [Environment, Person] }, - SoftwareInformationBlock => { :type => [Community] }, - InstitutionsBlock => { :type => [Environment, Person] }, - DownloadBlock => { :type => [Community] }, - RepositoryBlock => { :type => [Community] }, - CategoriesAndTagsBlock => { :type => [Community] }, - CategoriesSoftwareBlock => { :type => [Environment] }, - SearchCatalogBlock => { :type => [Environment] } - } - end - - def stylesheet? - true - end - - def js_files - %w( - jquery.maskedinput.min.js - spb-utils.js - mpog-software.js - mpog-software-validations.js - mpog-user-validations.js - mpog-institution-validations.js - mpog-incomplete-registration.js - mpog-search.js - software-catalog.js - mpog-software-block.js - ) - end - - # FIXME - if in error log apears has_permission?, try to use this method - def has_permission?(person, permission, target) - person.has_permission_without_plugins?(permission, target) - end - - def custom_user_registration_attributes(user) - return if context.params[:user][:institution_ids].nil? - context.params[:user][:institution_ids].delete('') - - update_user_institutions(user) - - user.institutions.each do |institution| - community = institution.community - community.add_member user.person - end - end - - def calc_percentage_registration(person) - required_list = profile_required_list - empty_fields = profile_required_empty_list person - count = required_list[:person_fields].count + - required_list[:user_fields].count - percentege = 100 - ((empty_fields.count * 100) / count) - person.percentage_incomplete = percentege - person.save(validate: false) - percentege - end - - def admin_panel_links - [ - { - :title => _('Create Institution'), - :url => { - :controller => 'software_communities_plugin', - :action => 'create_institution_admin' - } - } - ] - end - - protected - - def create_url_to_edit_profile person - new_url = person.public_profile_url - new_url[:controller] = 'profile_editor' - new_url[:action] = 'edit' - new_url - end - - def profile_required_list - fields = {} - fields[:person_fields] = %w(cell_phone - contact_phone - comercial_phone - country - city - state - organization_website - image - identifier - name) - - fields[:user_fields] = %w(secondary_email email) - fields - end - - - def profile_required_empty_list(person) - empty_fields = [] - required_list = profile_required_list - - required_list[:person_fields].each do |field| - empty_fields << field.sub('_',' ') if person.send(field).blank? - end - required_list[:user_fields].each do |field| - empty_fields << field.sub('_',' ') if person.user.send(field).blank? - end - empty_fields - end - - def user_transaction - user_editor_institution_actions - - User.transaction do - context.profile.user.update_attributes!(context.params[:user]) - end - end - - def institution_transaction - institution.date_modification = DateTime.now - institution.save - institution_models = %w(governmental_power governmental_sphere - juridical_nature) - - institution_models.each do |model| - call_institution_transaction(model) - end - - if context.params.has_key?(:institution) - Institution.transaction do - context.profile. - institution. - update_attributes!(context.params[:institution]) - end - end - end - - def software_info_transaction - SoftwareInfo.transaction do - context.profile. - software_info. - update_attributes!(context.params[:software_info]) - end - end - - def license_transaction - license = LicenseInfo.find(context.params[:version]) - context.profile.software_info.license_info = license - context.profile.software_info.save! - end - - private - - # Add and remove the user from it's institutions communities - def user_editor_institution_actions - user = context.profile.user - - old_communities = [] - context.profile.user.institutions.each do |institution| - old_communities << institution.community - end - - new_communities = [] - unless context.params[:user][:institution_ids].nil? - context.params[:user][:institution_ids].delete('') - - context.params[:user][:institution_ids].each do |id| - new_communities << Institution.find(id).community - end - end - - manage_user_institutions(user, old_communities, new_communities) - end - - def show_sisp_field - current_person = User.find(context.session[:user]).person - context.environment.admins.include?(current_person) - end - - def call_model_transaction(model,name) - send(name + '_transaction') if context.params.key?(model.to_sym) - end - - def call_institution_transaction(model) - context.profile.institution.send(model + '_id = ', - context.params[model.to_sym]) - context.profile.institution.save! - end - - def software_info_button - { - :title => _('Software Info'), - :icon => 'edit-profile-group control-panel-software-link', - :url => { - :controller => 'software_communities_plugin_myprofile', - :action => 'edit_software' - } - } - end - - def create_new_software_button - { - :title => _('Create a new software'), - :icon => 'design-editor', - :url => { - :controller => 'software_communities_plugin_myprofile', - :action => 'new_software' - } - } - end - - def institution_info_button - { - :title => _('Institution Info'), - :icon => 'edit-profile-group control-panel-instituton-link', - :url => { - :controller => 'software_communities_plugin_myprofile', - :action => 'edit_institution' - } - } - end - - def manage_user_institutions(user, old_communities, new_communities) - leave_communities = (old_communities - new_communities) - enter_communities = (new_communities - old_communities) - - leave_communities.each do |community| - community.remove_member(user.person) - user.institutions.delete(community.institution) - end - - enter_communities.each do |community| - community.add_member(user.person) - user.institutions << community.institution - end - end - - def profile_tabs_software - { :title => _('Software'), - :id => 'mpog-fields', - :content => proc do render :partial => 'software_tab' end, - :start => true } - end - - def profile_tabs_institution - { :title => _('Institution'), - :id => 'mpog-fields', - :content => Proc::new do render :partial => 'institution_tab' end, - :start => true - } - end - - def call_percentage_profile_template(person) - if context.profile && context.profile.person? && !person.nil? - @person = person - @percentege = calc_percentage_registration(person) - - if @percentege >= 0 && @percentege <= 100 - expanded_template('incomplete_registration.html.erb') - end - end - end - - def update_user_institutions(user) - context.params[:user][:institution_ids].each do |institution_id| - institution = Institution.find institution_id - user.institutions << institution - - if institution.community.admins.blank? - institution.community.add_admin(user.person) - end - end - user.save unless user.institution_ids.empty? - end -end diff --git a/lib/software_communities_plugin.rb b/lib/software_communities_plugin.rb new file mode 100644 index 0000000..4534b17 --- /dev/null +++ b/lib/software_communities_plugin.rb @@ -0,0 +1,380 @@ +class SoftwareCommunitiesPlugin < Noosfero::Plugin + include ActionView::Helpers::TagHelper + include ActionView::Helpers::FormTagHelper + include ActionView::Helpers::FormOptionsHelper + include ActionView::Helpers::JavaScriptHelper + include ActionView::Helpers::AssetTagHelper + include FormsHelper + include ActionView::Helpers + include ActionDispatch::Routing + include Rails.application.routes.url_helpers + + def self.plugin_name + 'SoftwareCommunitiesPlugin' + end + + def self.plugin_description + _('Add Public Software and MPOG features.') + end + + # Hotspot to insert html without an especific hotspot on view. + def body_beginning + return if context.session[:user].nil? or context.session[:hide_incomplete_percentage] == true + + person = context.environment.people.where(:user_id=>context.session[:user]).first + + if context.profile && context.profile.person? and !person.nil? + @person = person + @percentege = calc_percentage_registration(person) + + if @percentege >= 0 and @percentege < 100 + expanded_template('incomplete_registration.html.erb') + end + end + end + + def profile_editor_extras + profile = context.profile + + if profile.person? + expanded_template('person_editor_extras.html.erb') + elsif profile.respond_to?(:software_info) && + !profile.software_info.nil? + + if profile.software_info.first_edit? + profile.software_info.first_edit = false + profile.software_info.save! + expanded_template('first_edit_software_community_extras.html.erb') + end + end + end + + def profile_editor_transaction_extras + single_hash_transactions = { :user => 'user', + :instituton => 'instituton' + } + + single_hash_transactions.each do |model, transaction| + call_model_transaction(model, transaction) + end + end + + def profile_editor_controller_filters + block = proc do + if request.post? && params[:institution] + is_admin = environment.admins.include?(current_user.person) + + unless is_admin + institution = profile.user.institutions + + if !params[:institution].blank? && !params[:institution][:sisp].nil? + if params[:institution][:sisp] != institution.sisp + params[:institution][:sisp] = institution.sisp + end + end + end + end + end + + [{ + :type => 'before_filter', + :method_name => 'validate_institution_sisp_field_access', + :options => { :only => :edit }, + :block => block + }] + end + + def profile_tabs + if context.profile.community? + profile_tabs_software if context.profile.software? + profile_tabs_institution if context.profile.institution? + end + end + + def control_panel_buttons + if context.profile.software? + return software_info_button + elsif context.profile.person? + return create_new_software_button + elsif context.profile.institution? + return institution_info_button + end + end + + def self.extra_blocks + { + SoftwaresBlock => { :type => [Environment, Person] }, + SoftwareInformationBlock => { :type => [Community] }, + InstitutionsBlock => { :type => [Environment, Person] }, + DownloadBlock => { :type => [Community] }, + RepositoryBlock => { :type => [Community] }, + CategoriesAndTagsBlock => { :type => [Community] }, + CategoriesSoftwareBlock => { :type => [Environment] }, + SearchCatalogBlock => { :type => [Environment] } + } + end + + def stylesheet? + true + end + + def js_files + %w( + jquery.maskedinput.min.js + spb-utils.js + mpog-software.js + mpog-software-validations.js + mpog-user-validations.js + mpog-institution-validations.js + mpog-incomplete-registration.js + mpog-search.js + software-catalog.js + mpog-software-block.js + ) + end + + # FIXME - if in error log apears has_permission?, try to use this method + def has_permission?(person, permission, target) + person.has_permission_without_plugins?(permission, target) + end + + def custom_user_registration_attributes(user) + return if context.params[:user][:institution_ids].nil? + context.params[:user][:institution_ids].delete('') + + update_user_institutions(user) + + user.institutions.each do |institution| + community = institution.community + community.add_member user.person + end + end + + def calc_percentage_registration(person) + required_list = profile_required_list + empty_fields = profile_required_empty_list person + count = required_list[:person_fields].count + + required_list[:user_fields].count + percentege = 100 - ((empty_fields.count * 100) / count) + person.percentage_incomplete = percentege + person.save(validate: false) + percentege + end + + def admin_panel_links + [ + { + :title => _('Create Institution'), + :url => { + :controller => 'software_communities_plugin', + :action => 'create_institution_admin' + } + } + ] + end + + protected + + def create_url_to_edit_profile person + new_url = person.public_profile_url + new_url[:controller] = 'profile_editor' + new_url[:action] = 'edit' + new_url + end + + def profile_required_list + fields = {} + fields[:person_fields] = %w(cell_phone + contact_phone + comercial_phone + country + city + state + organization_website + image + identifier + name) + + fields[:user_fields] = %w(secondary_email email) + fields + end + + + def profile_required_empty_list(person) + empty_fields = [] + required_list = profile_required_list + + required_list[:person_fields].each do |field| + empty_fields << field.sub('_',' ') if person.send(field).blank? + end + required_list[:user_fields].each do |field| + empty_fields << field.sub('_',' ') if person.user.send(field).blank? + end + empty_fields + end + + def user_transaction + user_editor_institution_actions + + User.transaction do + context.profile.user.update_attributes!(context.params[:user]) + end + end + + def institution_transaction + institution.date_modification = DateTime.now + institution.save + institution_models = %w(governmental_power governmental_sphere + juridical_nature) + + institution_models.each do |model| + call_institution_transaction(model) + end + + if context.params.has_key?(:institution) + Institution.transaction do + context.profile. + institution. + update_attributes!(context.params[:institution]) + end + end + end + + def software_info_transaction + SoftwareInfo.transaction do + context.profile. + software_info. + update_attributes!(context.params[:software_info]) + end + end + + def license_transaction + license = LicenseInfo.find(context.params[:version]) + context.profile.software_info.license_info = license + context.profile.software_info.save! + end + + private + + # Add and remove the user from it's institutions communities + def user_editor_institution_actions + user = context.profile.user + + old_communities = [] + context.profile.user.institutions.each do |institution| + old_communities << institution.community + end + + new_communities = [] + unless context.params[:user][:institution_ids].nil? + context.params[:user][:institution_ids].delete('') + + context.params[:user][:institution_ids].each do |id| + new_communities << Institution.find(id).community + end + end + + manage_user_institutions(user, old_communities, new_communities) + end + + def show_sisp_field + current_person = User.find(context.session[:user]).person + context.environment.admins.include?(current_person) + end + + def call_model_transaction(model,name) + send(name + '_transaction') if context.params.key?(model.to_sym) + end + + def call_institution_transaction(model) + context.profile.institution.send(model + '_id = ', + context.params[model.to_sym]) + context.profile.institution.save! + end + + def software_info_button + { + :title => _('Software Info'), + :icon => 'edit-profile-group control-panel-software-link', + :url => { + :controller => 'software_communities_plugin_myprofile', + :action => 'edit_software' + } + } + end + + def create_new_software_button + { + :title => _('Create a new software'), + :icon => 'design-editor', + :url => { + :controller => 'software_communities_plugin_myprofile', + :action => 'new_software' + } + } + end + + def institution_info_button + { + :title => _('Institution Info'), + :icon => 'edit-profile-group control-panel-instituton-link', + :url => { + :controller => 'software_communities_plugin_myprofile', + :action => 'edit_institution' + } + } + end + + def manage_user_institutions(user, old_communities, new_communities) + leave_communities = (old_communities - new_communities) + enter_communities = (new_communities - old_communities) + + leave_communities.each do |community| + community.remove_member(user.person) + user.institutions.delete(community.institution) + end + + enter_communities.each do |community| + community.add_member(user.person) + user.institutions << community.institution + end + end + + def profile_tabs_software + { :title => _('Software'), + :id => 'mpog-fields', + :content => proc do render :partial => 'software_tab' end, + :start => true } + end + + def profile_tabs_institution + { :title => _('Institution'), + :id => 'mpog-fields', + :content => Proc::new do render :partial => 'institution_tab' end, + :start => true + } + end + + def call_percentage_profile_template(person) + if context.profile && context.profile.person? && !person.nil? + @person = person + @percentege = calc_percentage_registration(person) + + if @percentege >= 0 && @percentege <= 100 + expanded_template('incomplete_registration.html.erb') + end + end + end + + def update_user_institutions(user) + context.params[:user][:institution_ids].each do |institution_id| + institution = Institution.find institution_id + user.institutions << institution + + if institution.community.admins.blank? + institution.community.add_admin(user.person) + end + end + user.save unless user.institution_ids.empty? + end +end diff --git a/po/mpog_software.pot b/po/mpog_software.pot deleted file mode 100644 index 25e627d..0000000 --- a/po/mpog_software.pot +++ /dev/null @@ -1,1130 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: 1.0\n" -"POT-Creation-Date: 2015-01-23 16:54-0000\n" -"PO-Revision-Date: 2014-11-12 13:05-0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - -#: plugins/software_communities/test/unit/mpog_person_test.rb:57 -#: plugins/software_communities/test/unit/mpog_person_test.rb:63 -msgid "Name Should begin with a capital letter and no special characters" -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" - -#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 -msgid "Features is too long (maximum is 4000 characters)" -msgstr "" -"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " -"caracteres)" - -#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 -msgid "Objectives is too long (maximum is 4000 characters)" -msgstr "" -"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " -"caracteres)" - -#: plugins/software_communities/test/functional/search_controller_test.rb:24 -#: plugins/software_communities/lib/software_communities_plugin.rb:344 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 -msgid "Software" -msgstr "Software" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 -msgid "Save and Configure Community" -msgstr "Salvar e Configurar Comunidade" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 -msgid "Software updated sucessefuly" -msgstr "Software atualizado com sucesso" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 -msgid "Could not update software" -msgstr "Não foi possível atualizar o software" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 -msgid "Could not find Governmental Power or Governmental Sphere" -msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 -msgid "" -"Your new software request will be evaluated by anadministrator. You will be " -"notified." -msgstr "" -"Sua requisição para criação de um novo software será avaliada por um " -"administrador. Você será noficado." - -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 -msgid "Institution successful created!" -msgstr "Instituição criada com sucesso!" - -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 -msgid "Institution could not be created!" -msgstr "Instituição não pode ser criada!" - -#: plugins/software_communities/lib/software_info.rb:69 -msgid "Name is too long (maximum is %{count} characters)" -msgstr "" -"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" - -#: plugins/software_communities/lib/software_info.rb:113 -msgid "can't have more than 10 characteres" -msgstr "não pode ter mais de 10 caracteres" - -#: plugins/software_communities/lib/software_info.rb:116 -msgid "can't have whitespaces" -msgstr "não pode ter espaços" - -#: plugins/software_communities/lib/software_info.rb:124 -#: plugins/software_communities/lib/software_info.rb:130 -#: plugins/software_communities/lib/software_info.rb:136 -msgid ": at least one must be filled" -msgstr ": pelo menos um deve ser preenchido" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:17 -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 -msgid "Name" -msgstr "Nome" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:18 -msgid "Version" -msgstr "Versão" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:19 -#: plugins/software_communities/views/profile/_software_tab.html.erb:19 -msgid "License" -msgstr "Licença" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:91 -msgid "Autocomplete field, type something" -msgstr "Campo automático, digite algo" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:116 -msgid "Delete" -msgstr "Excluir" - -#: plugins/software_communities/lib/categories_and_tags_block.rb:8 -msgid "Categories and Tags" -msgstr "Categorias e Tags" - -#: plugins/software_communities/lib/categories_and_tags_block.rb:12 -msgid "This block displays the categories and tags of a software." -msgstr "" -"Este bloco exibe as informações de categorias e tags de um perfil de " -"software." - -#: plugins/software_communities/lib/software_information_block.rb:8 -msgid "Basic Software Information" -msgstr "Informações Básicas Software" - -#: plugins/software_communities/lib/software_information_block.rb:12 -msgid "This block displays the basic information of a software profile." -msgstr "Este bloco exibe as informações básicas de um perfil de software." - -#: plugins/software_communities/lib/softwares_block.rb:8 -msgid "Softwares" -msgstr "Softwares" - -#: plugins/software_communities/lib/softwares_block.rb:13 -msgid "{#} generic software" -msgid_plural "{#} generic softwares" -msgstr[0] "{#} software genérico" -msgstr[1] "{#} softwares genéricos" - -#: plugins/software_communities/lib/softwares_block.rb:15 -msgid "{#} public software" -msgid_plural "{#} public softwares" -msgstr[0] "{#} software público" -msgstr[1] "{#} software públicos" - -#: plugins/software_communities/lib/softwares_block.rb:17 -msgid "{#} software" -msgid_plural "{#} softwares" -msgstr[0] "{#} software" -msgstr[1] "{#} softwares" - -#: plugins/software_communities/lib/softwares_block.rb:22 -msgid "This block displays the softwares in which the user is a member." -msgstr "Este bloco apresenta os softwares no qual o usuário é membro." - -#: plugins/software_communities/lib/softwares_block.rb:31 -#: plugins/software_communities/lib/softwares_block.rb:37 -msgid "softwares|View all" -msgstr "Ver todos" - -#: plugins/software_communities/lib/create_software.rb:36 -msgid "New software" -msgstr "Novo software" - -#: plugins/software_communities/lib/create_software.rb:44 -msgid "%{requestor} wants to create software %{subject} with" -msgstr "%{requestor} deseja criar o software %{subject}" - -#: plugins/software_communities/lib/create_software.rb:46 -msgid " no finality." -msgstr " sem finalidade" - -#: plugins/software_communities/lib/create_software.rb:48 -msgid " this finality:

%{finality}

" -msgstr "" -" com esta finalidade:

" -"%{finality}

" - -#: plugins/software_communities/lib/create_software.rb:68 -msgid "%{requestor} wants to create software %{subject}" -msgstr "%{requestor} deseja criar o software %{subject}" - -#: plugins/software_communities/lib/create_software.rb:73 -msgid "" -"User \"%{user}\" just requested to create software %{software}.\n" -" You have to approve or reject it through the \"Pending Validations\"\n" -" section in your control panel.\n" -msgstr "" -"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " -"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " -"de controle.\n" - -#: plugins/software_communities/lib/create_software.rb:80 -msgid "" -"Your request for registering software %{software} at %{environment} was\n" -" just sent. Environment administrator will receive it and will approve " -"or\n" -" reject your request according to his methods and criteria.\n" -"\n" -" You will be notified as soon as environment administrator has a " -"position\n" -" about your request." -msgstr "" -"Sua requisição para registro do software %{software} no %{environment} acaba \n" -"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " -"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " -"notificado assim que o administrador tenha uma posição sobre sua requisição." - -#: plugins/software_communities/lib/create_software.rb:90 -msgid "" -"Your request for registering software %{software} at %{environment} was\n" -" not approved by the environment administrator. The following " -"explanation\n" -" was given: \n" -"\n" -"%{explanation}" -msgstr "" -"Sua requisição para o registro do software %{software} no %{environment} não \n" -"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " -"fornecida: \n" -"\n" -"%{explanation}" - -#: plugins/software_communities/lib/create_software.rb:99 -msgid "" -"Your request for registering the software \"%{software}\" was approved.\n" -" You can access %{url} and finish the registration of your software." -msgstr "" -"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " -"pode acessá-la %{url} e finalizar o registro do seu software." - -#: plugins/software_communities/lib/repository_block.rb:8 -msgid "Repository Link" -msgstr "Link para o Repositório:" - -#: plugins/software_communities/lib/repository_block.rb:12 -msgid "This block displays the repository link of a software." -msgstr "Este bloco exibe o link para o repositório de um perfil de software." - -#: plugins/software_communities/lib/software_language.rb:10 -msgid "Software language is too long (maximum is 20 characters)" -msgstr "" -"Linguagem de programação do software contém mais caracteres do que o " -"permitido (máximo é 20 caracteres)" - -#: plugins/software_communities/lib/download_block.rb:14 -msgid "Download Stable Version" -msgstr "Baixar Versão Estável" - -#: plugins/software_communities/lib/download_block.rb:18 -msgid "This block displays the stable version of a software." -msgstr "Este bloco exibe as informações básicas de um perfil de software." - -#: plugins/software_communities/lib/software_communities_plugin.rb:17 -msgid "Add Public Software and MPOG features." -msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" - -#: plugins/software_communities/lib/software_communities_plugin.rb:167 -msgid "Create Institution" -msgstr "Criar Instituição" - -#: plugins/software_communities/lib/software_communities_plugin.rb:297 -msgid "Software Info" -msgstr "Informação de Software" - -#: plugins/software_communities/lib/software_communities_plugin.rb:308 -msgid "Create a new software" -msgstr "Criar um novo software" - -#: plugins/software_communities/lib/software_communities_plugin.rb:319 -msgid "Institution Info" -msgstr "Informação da Instituição" - -#: plugins/software_communities/lib/software_communities_plugin.rb:351 -msgid "Institution" -msgstr "Instituição" - -#: plugins/software_communities/lib/institution.rb:46 -msgid "invalid, only public and private institutions are allowed." -msgstr "inválido, somente instituição públicas ou privadas são permitidas." - -#: plugins/software_communities/lib/institution.rb:59 -#: plugins/software_communities/lib/institution.rb:71 -#: plugins/software_communities/lib/institution.rb:86 -#: plugins/software_communities/lib/institution.rb:111 -#: plugins/software_communities/lib/library.rb:5 -msgid "can't be blank" -msgstr "não pode ser em branco" - -#: plugins/software_communities/lib/institution.rb:103 -msgid "invalid format" -msgstr "formato inválido" - -#: plugins/software_communities/lib/operating_system.rb:12 -msgid "too long (maximum is 20 characters)" -msgstr "" -"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" - -#: plugins/software_communities/lib/search_catalog_block.rb:8 -msgid "Search Softwares catalog" -msgstr "Informações Básicas Software" - -#: plugins/software_communities/lib/search_catalog_block.rb:12 -msgid "This block displays the search categories field " -msgstr "Este bloco apresenta a busca por categorias" - -#: plugins/software_communities/lib/library.rb:8 -msgid "Too long (maximum is 20 characters)" -msgstr "" -"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" - -#: plugins/software_communities/lib/categories_software_block.rb:8 -msgid "Categories Softwares" -msgstr "Ativar Software" - -#: plugins/software_communities/lib/categories_software_block.rb:12 -msgid "" -"This block displays the categories and the amount of softwares for\n" -" each category." -msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." - -#: plugins/software_communities/lib/ext/user.rb:19 -msgid "Email must be different from secondary email." -msgstr "E-mail deve ser diferente do e-mail secundário." - -#: plugins/software_communities/lib/ext/user.rb:40 -msgid "E-mail or secondary e-mail already taken." -msgstr "E-mail ou e-mail secundário já está sendo utilizado" - -#: plugins/software_communities/lib/ext/user.rb:50 -msgid "Invalid secondary email format." -msgstr "Formato do e-mail secundário inválido." - -#: plugins/software_communities/lib/ext/user.rb:70 -msgid "The governamental email must be the primary one." -msgstr "O e-mail governamental deve ser o e-mail primário." - -#: plugins/software_communities/lib/ext/user.rb:78 -msgid "Institution is obligatory if user has a government email." -msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." - -#: plugins/software_communities/lib/ext/category.rb:5 -msgid "Agriculture, Fisheries and Extraction" -msgstr "Agricultura, Extrativismo e Pesca " - -#: plugins/software_communities/lib/ext/category.rb:6 -msgid "Science, Information and Communication" -msgstr "Ciência, Informação e Comunicação " - -#: plugins/software_communities/lib/ext/category.rb:7 -msgid "Economy and Finances" -msgstr "Economia e Finanças " - -#: plugins/software_communities/lib/ext/category.rb:8 -msgid "Public Administration" -msgstr "Administração Pública" - -#: plugins/software_communities/lib/ext/category.rb:9 -msgid "Habitation, Sanitation and Urbanism" -msgstr "Habitação, Saneamento e Urbanismo" - -#: plugins/software_communities/lib/ext/category.rb:10 -msgid "Individual, Family and Society" -msgstr "Pessoa, Família e Sociedade" - -#: plugins/software_communities/lib/ext/category.rb:11 -msgid "Health" -msgstr "Saúde" - -#: plugins/software_communities/lib/ext/category.rb:12 -msgid "Social Welfare and Development" -msgstr "Bem-estar Social e Desenvolvimento" - -#: plugins/software_communities/lib/ext/category.rb:13 -msgid "Defense and Security" -msgstr "Defesa e Segurança" - -#: plugins/software_communities/lib/ext/category.rb:14 -msgid "Education" -msgstr "Educação" - -#: plugins/software_communities/lib/ext/category.rb:15 -msgid "Government and Politics" -msgstr "Governo e Política" - -#: plugins/software_communities/lib/ext/category.rb:16 -msgid "Justice and Legislation" -msgstr "Justiça e Legislação" - -#: plugins/software_communities/lib/ext/category.rb:17 -msgid "International Relationships" -msgstr "Relações Internacionais" - -#: plugins/software_communities/lib/ext/search_controller.rb:15 -msgid "Institution Catalog" -msgstr "Catálogo de Instituição" - -#: plugins/software_communities/lib/ext/search_controller.rb:25 -msgid "Software Catalog" -msgstr "Catálogo de Software" - -#: plugins/software_communities/lib/institutions_block.rb:4 -#: plugins/software_communities/views/person_editor_extras.html.erb:10 -msgid "Institutions" -msgstr "Instituições" - -#: plugins/software_communities/lib/institutions_block.rb:12 -msgid "{#} institution" -msgid_plural "{#} institutions" -msgstr[0] "{#} intituição" -msgstr[1] "{#} instituições" - -#: plugins/software_communities/lib/institutions_block.rb:16 -msgid "This block displays the institutions in which the user is a member." -msgstr "Este bloco mostra as instituições a que o usuário pertence" - -#: plugins/software_communities/lib/institutions_block.rb:24 -#: plugins/software_communities/lib/institutions_block.rb:30 -msgid "institutions|View all" -msgstr "instituições|Ver todas" - -#: plugins/software_communities/lib/software_database.rb:12 -msgid "Software database is too long (maximum is 20 characters)" -msgstr "" -"Banco de dados do software contém mais caracteres do que o permitido (máximo " -"é 20 caracteres)" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 -#: plugins/software_communities/views/profile/_software_tab.html.erb:7 -msgid "Name:" -msgstr "Nome:" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 -#: plugins/software_communities/views/profile/_software_tab.html.erb:21 -msgid "Link:" -msgstr "Endereço:" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 -msgid "Software Description:" -msgstr "Descrição do Software" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 -msgid "Link to Version News:" -msgstr "Link para as Novidades da Versão:" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 -msgid "Link to Minimum Requirements:" -msgstr "Link para Requisitos Mínimos:" - -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 -msgid "Limit of items" -msgstr "Limite de itens" - -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 -msgid "Software Type:" -msgstr "Tipo do Software:" - -#: plugins/software_communities/views/person_editor_extras.html.erb:2 -msgid "Secondary e-mail" -msgstr "E-mail secundário" - -#: plugins/software_communities/views/person_editor_extras.html.erb:20 -msgid "No institution found" -msgstr "Nenhuma instituição encontrada" - -#: plugins/software_communities/views/person_editor_extras.html.erb:21 -msgid "Add new institution" -msgstr "Adicionar nova instituição" - -#: plugins/software_communities/views/person_editor_extras.html.erb:22 -msgid "Create new institution" -msgstr "Criar nova instituição" - -#: plugins/software_communities/views/person_editor_extras.html.erb:38 -msgid "Should begin with a capital letter and no special characters" -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" - -#: plugins/software_communities/views/person_editor_extras.html.erb:39 -msgid "Email should have the following format: name@host.br" -msgstr "Email deve ter o seguinte formato: nome@host.br" - -#: plugins/software_communities/views/person_editor_extras.html.erb:40 -msgid "Site should have a valid format: http://name.hosts" -msgstr "Site deve ter um formato válido: http: //name.hosts" - -#: plugins/software_communities/views/person_editor_extras.html.erb:41 -msgid "If you work in a public agency use your government e-Mail" -msgstr "" -"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 -msgid "Institution Information" -msgstr "Informação da Instituição" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 -msgid "Type:" -msgstr "Tipo:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 -msgid "CNPJ:" -msgstr "CNPJ:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 -msgid "Last modification:" -msgstr "Última Modificação" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 -msgid "Country:" -msgstr "País:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 -msgid "State:" -msgstr "Estado:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 -msgid "City:" -msgstr "Cidade:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 -msgid "Fantasy Name:" -msgstr "Nome Fantasia:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 -#: plugins/software_communities/views/profile/_software_tab.html.erb:15 -msgid "Acronym:" -msgstr "Sigla:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 -msgid "Governmental Power:" -msgstr "Poder Governamental" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 -msgid "Governmental Sphere:" -msgstr "Esfera Governamental:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 -msgid "Juridical Nature:" -msgstr "Natureza Jurídica:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 -msgid "SISP:" -msgstr "SISP:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 -msgid "Yes" -msgstr "Sim" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 -msgid "No" -msgstr "Não" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:4 -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 -msgid "Software Information" -msgstr "Informação do Software" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 -msgid "Adherent to e_mag:" -msgstr "Aderente ao e-Mag:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 -msgid "Adherent to icp_brasil:" -msgstr "Adherent ao ICP-Brasil:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 -msgid "Adherent to e_ping:" -msgstr "Aderente ao e-Ping:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 -msgid "Adherent to e_arq:" -msgstr "Aderente ao e-Arq:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 -msgid "Internacionalizable:" -msgstr "Internacionalizável:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:13 -msgid "Operating Platform:" -msgstr "Plataforma Operacional:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:14 -msgid "Demonstration URL:" -msgstr "URL de demonstração:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:16 -msgid "Objectives:" -msgstr "Objetivos:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:17 -msgid "Features:" -msgstr "Características:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:20 -msgid "Version:" -msgstr "Versão:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:26 -msgid "Show Libraries" -msgstr "Mostrar Bibliotecas" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:27 -msgid "Hide Libraries" -msgstr "Esconder Bibliotecas" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:36 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 -msgid "Libraries" -msgstr "Bibliotecas" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:54 -msgid "Show Database" -msgstr "Mostrar Banco de Dados" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:55 -msgid "Hide Database" -msgstr "Esconder Banco de Dados" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:64 -msgid "Software Databases" -msgstr "Banco de Dados" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:82 -msgid "Show Languages" -msgstr "Mostrar Linguagens" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:83 -msgid "Hide Languages" -msgstr "Esconder Linguagens" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:92 -msgid "Software Languages" -msgstr "Linguagens de Software" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:110 -msgid "Show Operating Systems" -msgstr "Mostrar Sistemas Operacionais" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:111 -msgid "Hide Operating Systems" -msgstr "Esconder Sistemas Operacionais" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:121 -msgid "Operating System" -msgstr "Sistema Operacional" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 -#: plugins/software_communities/views/search/_full_community.html.erb:21 -msgid "Finality" -msgstr "Finalidade" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 -msgid "Licenses" -msgstr "Licenças" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 -msgid "License link" -msgstr "Endereço da licença" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 -msgid "Link to Repository: " -msgstr "Link pro Repositório: " - -#: plugins/software_communities/views/incomplete_registration.html.erb:3 -msgid "Complete Profile" -msgstr "Complete o Perfil" - -#: plugins/software_communities/views/incomplete_registration.html.erb:6 -msgid "Complete your profile" -msgstr "Complete o seu perfil" - -#: plugins/software_communities/views/incomplete_registration.html.erb:7 -msgid "Hide" -msgstr "Esconder" - -#: plugins/software_communities/views/blocks/repository.html.erb:2 -#: plugins/software_communities/views/blocks/download.html.erb:2 -#: plugins/software_communities/views/blocks/software_information.html.erb:4 -msgid "This community needs a software to use this block" -msgstr "Esta comunidade precisa de um software para utilizar este bloco" - -#: plugins/software_communities/views/blocks/repository.html.erb:4 -msgid "Repository" -msgstr "Repositório" - -#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 -msgid "Catalog of Public Software" -msgstr "Software Público" - -#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 -msgid "Search" -msgstr "Pesquisar" - -#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 -#: plugins/software_communities/views/blocks/categories_software.html.erb:24 -msgid "Access the complete catalog" -msgstr "Acesse o catálogo completo" - -#: plugins/software_communities/views/blocks/download.html.erb:6 -msgid "Download" -msgstr "Baixar" - -#: plugins/software_communities/views/blocks/download.html.erb:19 -msgid "Minimal Requirements" -msgstr "Requisitos Mínimos" - -#: plugins/software_communities/views/blocks/download.html.erb:23 -msgid "Version News" -msgstr "Novidades da Versão" - -#: plugins/software_communities/views/blocks/download.html.erb:27 -msgid "Licensed by" -msgstr "Licenciado por " - -#: plugins/software_communities/views/blocks/categories_software.html.erb:14 -msgid "Categories:" -msgstr "Categorias:" - -#: plugins/software_communities/views/blocks/categories_software.html.erb:18 -msgid "\"#{category.name}\"" -msgstr "\"#{category.name}\"" - -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 -msgid "Categories" -msgstr "Categorias" - -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 -msgid "Tags" -msgstr "Tags" - -#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 -msgid "See More" -msgstr "Veja Mais" - -#: plugins/software_communities/views/blocks/software_information.html.erb:16 -msgid "Control panel" -msgstr "Painel de controle" - -#: plugins/software_communities/views/blocks/software_information.html.erb:24 -msgid "\"#{block.owner.software_info.acronym} - \"" -msgstr "\"#{block.owner.software_info.acronym} - \"" - -#: plugins/software_communities/views/blocks/software_information.html.erb:25 -msgid "\"#{block.owner.name}\"" -msgstr "\"#{block.owner.name}\"" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 -msgid "Edit software" -msgstr "Editar software" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 -msgid "Operating Platform" -msgstr "Plataforma Operacional" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 -msgid "Features" -msgstr "Características" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 -msgid "Operating Systems" -msgstr "Sistemas Operacionais" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 -msgid "Programming languages" -msgstr "Linguagens de Programação" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 -msgid "Databases" -msgstr "Bancos de Dados" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 -msgid "Demonstration url" -msgstr "Url de demonstração" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 -msgid "Public Software" -msgstr "Software Público" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 -msgid "Public software" -msgstr "Software público" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 -msgid "Adherent to e-PING ?" -msgstr "Aderente ao e-PING ?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 -msgid "Adherent to e-MAG ?" -msgstr "Aderente ao e-MAG ?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 -msgid "Adherent to ICP-Brasil ?" -msgstr "Aderente ao ICP-Brasil?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 -msgid "Adherent to e-ARQ ?" -msgstr "Aderente ao e-ARQ?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 -msgid "Internacionalizable ?" -msgstr "Internacionalizável?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 -msgid " Information" -msgstr " Informação" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 -msgid "Acronym" -msgstr "Sigla" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 -msgid "It is a software of..." -msgstr "É um software de ..." - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 -msgid "Link to Repository" -msgstr "Link pro Repositório" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 -msgid "New Operating System" -msgstr "Novo Sistema Operacional" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 -msgid "Specifications" -msgstr "Especificações" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 -msgid "Save" -msgstr "Salvar" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 -msgid "Back to control panel" -msgstr "Voltar para o painel de controle" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 -msgid "New Library" -msgstr "Nova Biblioteca" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 -msgid "New Database" -msgstr "Novo Banco de Dados" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 -msgid "New language" -msgstr "Nova linguagem" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 -msgid "Step 1/2 - Software Creation" -msgstr "Passo 1/2 - Criação de Software" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 -msgid "Creating new software" -msgstr "Criando novo software" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 -msgid "" -"Note that the creation of communities in this environment is restricted. " -"Your request to create this new community will be sent to %{environment} " -"administrators and will be approved or rejected according to their methods " -"and criteria." -msgstr "" -"Note que a criação de comunidades neste ambiente é restrita. A sua " -"requisição para criar esta nova comunidade será enviada para os " -"administradores do %{environment} e será aprovada ou rejeitada de acordo com " -"seus métodos e critérios. " - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 -msgid "\"Can`t create new software: #{@errors.length} errors\"" -msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 -msgid "License Version: " -msgstr "Versão da Licença: " - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 -msgid "Create" -msgstr "Criar" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 -msgid "Cancel" -msgstr "Cancelar" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 -msgid "Edit Institution" -msgstr "Editar Instituição" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 -msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" -msgstr "" -"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 -msgid "All fields with (*) are mandatory" -msgstr "Todos os campos com (*) são obrigatórios" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 -msgid "Public Institution" -msgstr "Instituição Pública" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 -msgid "Private Institution" -msgstr "Instituição Privada" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 -msgid "Institution name already exists" -msgstr "Nome da instituição já existe" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 -msgid "Corporate Name" -msgstr "Razão Social" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 -msgid "Country" -msgstr "País" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 -msgid "State" -msgstr "Estado" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 -msgid "CNPJ" -msgstr "CNPJ" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 -msgid "Fantasy name" -msgstr "Nome Fantasia" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 -msgid "Select a Governmental Sphere" -msgstr "Selecione uma Esfera Governamental" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 -msgid "Select a Governmental Power" -msgstr "Selecione um Poder Governamental" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 -msgid "Select a Juridical Nature" -msgstr "Selecione uma Natureza Jurídica" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 -msgid "SISP?" -msgstr "SISP?" - -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 -msgid "New Institution" -msgstr "Nova Instituição" - -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 -msgid "Could not send the form data to the server" -msgstr "Não foi possível enviar os dados do formulário para o servidor" - -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 -msgid "Creating institution" -msgstr "Criando Instituição" - -#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 -msgid "Categories filter" -msgstr "Filtro de Categorias" - -#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 -msgid "Type a category name here" -msgstr "Escreva uma categoria aqui" - -#: plugins/software_communities/views/search/_full_community.html.erb:30 -msgid "Software licence" -msgstr "Licença do Software" - -#: plugins/software_communities/views/search/_full_community.html.erb:39 -msgid "Link software repository" -msgstr "Link pro Repositório" - -#: plugins/software_communities/views/search/_full_community.html.erb:48 -msgid "Software Categories" -msgstr "Categorias de Software" - -#: plugins/software_communities/views/search/_full_community.html.erb:62 -msgid "This software doesn't have categories" -msgstr "Este software não tem categorias" - -#: plugins/software_communities/views/search/software_infos.html.erb:3 -#: plugins/software_communities/views/search/institutions.html.erb:3 -msgid "Type words about the %s you're looking for" -msgstr "Escreva palavras sobre o software que você está procurando" - -#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 -msgid "Step 2/2 - Software Community Configuration" -msgstr "Passo 2/2 - Configuração da Comunidade do Software" - -#~ msgid "database Name: " -#~ msgstr "Nome do banco de dados:" - -#~ msgid "Pick an item on the list" -#~ msgstr "Escolha um item da lista" - -#~ msgid "At last one category must be checked" -#~ msgstr "Pelo menos uma categoria deve ser selecionada" - -#~ msgid "%{requestor} wants to create software %{subject} with no finality." -#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." - -#~ msgid "Operating system is too long (maximum is 20 characters)" -#~ msgstr "" -#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " -#~ "20 caracteres)" - -#~ msgid "Language Name: " -#~ msgstr "Nome da Linguagem: " - -#~ msgid "License:" -#~ msgstr "Licença:" - -#~ msgid "Program Database" -#~ msgstr "Programa de Banco de Dados" - -#~ msgid "Operating System:" -#~ msgstr "Sistema Operacional" - -#~ msgid "Programming Language" -#~ msgstr "Linguagem de Programação" - -#~ msgid "Activate Software" -#~ msgstr "Ativar Software" - -#~ msgid "Do you want to activate this software?" -#~ msgstr "Você quer ativar este software?" - -#~ msgid "Deactivate software" -#~ msgstr "Desativar software" - -#~ msgid "Do you want to deactivate this software?" -#~ msgstr "Você quer desativar este software?" - -#~ msgid "Remove" -#~ msgstr "Remover" - -#~ msgid "Do you want to remove this software?" -#~ msgstr "Você deseja remover este software?" - -#~ msgid "Find software" -#~ msgstr "Buscar software" - -#~ msgid "Software list as [CSV]" -#~ msgstr "Lista de Software como [CSV]" - -#~ msgid "Software list as [XML]" -#~ msgstr "Lista de Software como [XML]" - -#~ msgid "Back" -#~ msgstr "Voltar" - -#~ msgid "Community" -#~ msgstr "Comunidade" - -#~ msgid "Secundary Information" -#~ msgstr "Informação Secundária" - -#~ msgid "For more detailed information see " -#~ msgstr "Para informações mais detalhadas, ver " - -#~ msgid "\"#{block.owner.name} profile\"" -#~ msgstr "\"Perfil de #{block.owner.name}\"" - -#~ msgid "Main repository: " -#~ msgstr "Repositório principal: " - -#~ msgid "Editar Instituição" -#~ msgstr "Editar Instituição" - -#~ msgid "Generic" -#~ msgstr "Genérico" diff --git a/po/pt/mpog_software.po b/po/pt/mpog_software.po deleted file mode 100644 index 25e627d..0000000 --- a/po/pt/mpog_software.po +++ /dev/null @@ -1,1130 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: 1.0\n" -"POT-Creation-Date: 2015-01-23 16:54-0000\n" -"PO-Revision-Date: 2014-11-12 13:05-0000\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - -#: plugins/software_communities/test/unit/mpog_person_test.rb:57 -#: plugins/software_communities/test/unit/mpog_person_test.rb:63 -msgid "Name Should begin with a capital letter and no special characters" -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" - -#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 -msgid "Features is too long (maximum is 4000 characters)" -msgstr "" -"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " -"caracteres)" - -#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 -msgid "Objectives is too long (maximum is 4000 characters)" -msgstr "" -"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " -"caracteres)" - -#: plugins/software_communities/test/functional/search_controller_test.rb:24 -#: plugins/software_communities/lib/software_communities_plugin.rb:344 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 -msgid "Software" -msgstr "Software" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 -msgid "Save and Configure Community" -msgstr "Salvar e Configurar Comunidade" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 -msgid "Software updated sucessefuly" -msgstr "Software atualizado com sucesso" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 -msgid "Could not update software" -msgstr "Não foi possível atualizar o software" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 -msgid "Could not find Governmental Power or Governmental Sphere" -msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" - -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 -msgid "" -"Your new software request will be evaluated by anadministrator. You will be " -"notified." -msgstr "" -"Sua requisição para criação de um novo software será avaliada por um " -"administrador. Você será noficado." - -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 -msgid "Institution successful created!" -msgstr "Instituição criada com sucesso!" - -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 -msgid "Institution could not be created!" -msgstr "Instituição não pode ser criada!" - -#: plugins/software_communities/lib/software_info.rb:69 -msgid "Name is too long (maximum is %{count} characters)" -msgstr "" -"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" - -#: plugins/software_communities/lib/software_info.rb:113 -msgid "can't have more than 10 characteres" -msgstr "não pode ter mais de 10 caracteres" - -#: plugins/software_communities/lib/software_info.rb:116 -msgid "can't have whitespaces" -msgstr "não pode ter espaços" - -#: plugins/software_communities/lib/software_info.rb:124 -#: plugins/software_communities/lib/software_info.rb:130 -#: plugins/software_communities/lib/software_info.rb:136 -msgid ": at least one must be filled" -msgstr ": pelo menos um deve ser preenchido" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:17 -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 -msgid "Name" -msgstr "Nome" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:18 -msgid "Version" -msgstr "Versão" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:19 -#: plugins/software_communities/views/profile/_software_tab.html.erb:19 -msgid "License" -msgstr "Licença" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:91 -msgid "Autocomplete field, type something" -msgstr "Campo automático, digite algo" - -#: plugins/software_communities/lib/dynamic_table_helper.rb:116 -msgid "Delete" -msgstr "Excluir" - -#: plugins/software_communities/lib/categories_and_tags_block.rb:8 -msgid "Categories and Tags" -msgstr "Categorias e Tags" - -#: plugins/software_communities/lib/categories_and_tags_block.rb:12 -msgid "This block displays the categories and tags of a software." -msgstr "" -"Este bloco exibe as informações de categorias e tags de um perfil de " -"software." - -#: plugins/software_communities/lib/software_information_block.rb:8 -msgid "Basic Software Information" -msgstr "Informações Básicas Software" - -#: plugins/software_communities/lib/software_information_block.rb:12 -msgid "This block displays the basic information of a software profile." -msgstr "Este bloco exibe as informações básicas de um perfil de software." - -#: plugins/software_communities/lib/softwares_block.rb:8 -msgid "Softwares" -msgstr "Softwares" - -#: plugins/software_communities/lib/softwares_block.rb:13 -msgid "{#} generic software" -msgid_plural "{#} generic softwares" -msgstr[0] "{#} software genérico" -msgstr[1] "{#} softwares genéricos" - -#: plugins/software_communities/lib/softwares_block.rb:15 -msgid "{#} public software" -msgid_plural "{#} public softwares" -msgstr[0] "{#} software público" -msgstr[1] "{#} software públicos" - -#: plugins/software_communities/lib/softwares_block.rb:17 -msgid "{#} software" -msgid_plural "{#} softwares" -msgstr[0] "{#} software" -msgstr[1] "{#} softwares" - -#: plugins/software_communities/lib/softwares_block.rb:22 -msgid "This block displays the softwares in which the user is a member." -msgstr "Este bloco apresenta os softwares no qual o usuário é membro." - -#: plugins/software_communities/lib/softwares_block.rb:31 -#: plugins/software_communities/lib/softwares_block.rb:37 -msgid "softwares|View all" -msgstr "Ver todos" - -#: plugins/software_communities/lib/create_software.rb:36 -msgid "New software" -msgstr "Novo software" - -#: plugins/software_communities/lib/create_software.rb:44 -msgid "%{requestor} wants to create software %{subject} with" -msgstr "%{requestor} deseja criar o software %{subject}" - -#: plugins/software_communities/lib/create_software.rb:46 -msgid " no finality." -msgstr " sem finalidade" - -#: plugins/software_communities/lib/create_software.rb:48 -msgid " this finality:

%{finality}

" -msgstr "" -" com esta finalidade:

" -"%{finality}

" - -#: plugins/software_communities/lib/create_software.rb:68 -msgid "%{requestor} wants to create software %{subject}" -msgstr "%{requestor} deseja criar o software %{subject}" - -#: plugins/software_communities/lib/create_software.rb:73 -msgid "" -"User \"%{user}\" just requested to create software %{software}.\n" -" You have to approve or reject it through the \"Pending Validations\"\n" -" section in your control panel.\n" -msgstr "" -"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " -"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " -"de controle.\n" - -#: plugins/software_communities/lib/create_software.rb:80 -msgid "" -"Your request for registering software %{software} at %{environment} was\n" -" just sent. Environment administrator will receive it and will approve " -"or\n" -" reject your request according to his methods and criteria.\n" -"\n" -" You will be notified as soon as environment administrator has a " -"position\n" -" about your request." -msgstr "" -"Sua requisição para registro do software %{software} no %{environment} acaba \n" -"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " -"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " -"notificado assim que o administrador tenha uma posição sobre sua requisição." - -#: plugins/software_communities/lib/create_software.rb:90 -msgid "" -"Your request for registering software %{software} at %{environment} was\n" -" not approved by the environment administrator. The following " -"explanation\n" -" was given: \n" -"\n" -"%{explanation}" -msgstr "" -"Sua requisição para o registro do software %{software} no %{environment} não \n" -"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " -"fornecida: \n" -"\n" -"%{explanation}" - -#: plugins/software_communities/lib/create_software.rb:99 -msgid "" -"Your request for registering the software \"%{software}\" was approved.\n" -" You can access %{url} and finish the registration of your software." -msgstr "" -"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " -"pode acessá-la %{url} e finalizar o registro do seu software." - -#: plugins/software_communities/lib/repository_block.rb:8 -msgid "Repository Link" -msgstr "Link para o Repositório:" - -#: plugins/software_communities/lib/repository_block.rb:12 -msgid "This block displays the repository link of a software." -msgstr "Este bloco exibe o link para o repositório de um perfil de software." - -#: plugins/software_communities/lib/software_language.rb:10 -msgid "Software language is too long (maximum is 20 characters)" -msgstr "" -"Linguagem de programação do software contém mais caracteres do que o " -"permitido (máximo é 20 caracteres)" - -#: plugins/software_communities/lib/download_block.rb:14 -msgid "Download Stable Version" -msgstr "Baixar Versão Estável" - -#: plugins/software_communities/lib/download_block.rb:18 -msgid "This block displays the stable version of a software." -msgstr "Este bloco exibe as informações básicas de um perfil de software." - -#: plugins/software_communities/lib/software_communities_plugin.rb:17 -msgid "Add Public Software and MPOG features." -msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" - -#: plugins/software_communities/lib/software_communities_plugin.rb:167 -msgid "Create Institution" -msgstr "Criar Instituição" - -#: plugins/software_communities/lib/software_communities_plugin.rb:297 -msgid "Software Info" -msgstr "Informação de Software" - -#: plugins/software_communities/lib/software_communities_plugin.rb:308 -msgid "Create a new software" -msgstr "Criar um novo software" - -#: plugins/software_communities/lib/software_communities_plugin.rb:319 -msgid "Institution Info" -msgstr "Informação da Instituição" - -#: plugins/software_communities/lib/software_communities_plugin.rb:351 -msgid "Institution" -msgstr "Instituição" - -#: plugins/software_communities/lib/institution.rb:46 -msgid "invalid, only public and private institutions are allowed." -msgstr "inválido, somente instituição públicas ou privadas são permitidas." - -#: plugins/software_communities/lib/institution.rb:59 -#: plugins/software_communities/lib/institution.rb:71 -#: plugins/software_communities/lib/institution.rb:86 -#: plugins/software_communities/lib/institution.rb:111 -#: plugins/software_communities/lib/library.rb:5 -msgid "can't be blank" -msgstr "não pode ser em branco" - -#: plugins/software_communities/lib/institution.rb:103 -msgid "invalid format" -msgstr "formato inválido" - -#: plugins/software_communities/lib/operating_system.rb:12 -msgid "too long (maximum is 20 characters)" -msgstr "" -"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" - -#: plugins/software_communities/lib/search_catalog_block.rb:8 -msgid "Search Softwares catalog" -msgstr "Informações Básicas Software" - -#: plugins/software_communities/lib/search_catalog_block.rb:12 -msgid "This block displays the search categories field " -msgstr "Este bloco apresenta a busca por categorias" - -#: plugins/software_communities/lib/library.rb:8 -msgid "Too long (maximum is 20 characters)" -msgstr "" -"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" - -#: plugins/software_communities/lib/categories_software_block.rb:8 -msgid "Categories Softwares" -msgstr "Ativar Software" - -#: plugins/software_communities/lib/categories_software_block.rb:12 -msgid "" -"This block displays the categories and the amount of softwares for\n" -" each category." -msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." - -#: plugins/software_communities/lib/ext/user.rb:19 -msgid "Email must be different from secondary email." -msgstr "E-mail deve ser diferente do e-mail secundário." - -#: plugins/software_communities/lib/ext/user.rb:40 -msgid "E-mail or secondary e-mail already taken." -msgstr "E-mail ou e-mail secundário já está sendo utilizado" - -#: plugins/software_communities/lib/ext/user.rb:50 -msgid "Invalid secondary email format." -msgstr "Formato do e-mail secundário inválido." - -#: plugins/software_communities/lib/ext/user.rb:70 -msgid "The governamental email must be the primary one." -msgstr "O e-mail governamental deve ser o e-mail primário." - -#: plugins/software_communities/lib/ext/user.rb:78 -msgid "Institution is obligatory if user has a government email." -msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." - -#: plugins/software_communities/lib/ext/category.rb:5 -msgid "Agriculture, Fisheries and Extraction" -msgstr "Agricultura, Extrativismo e Pesca " - -#: plugins/software_communities/lib/ext/category.rb:6 -msgid "Science, Information and Communication" -msgstr "Ciência, Informação e Comunicação " - -#: plugins/software_communities/lib/ext/category.rb:7 -msgid "Economy and Finances" -msgstr "Economia e Finanças " - -#: plugins/software_communities/lib/ext/category.rb:8 -msgid "Public Administration" -msgstr "Administração Pública" - -#: plugins/software_communities/lib/ext/category.rb:9 -msgid "Habitation, Sanitation and Urbanism" -msgstr "Habitação, Saneamento e Urbanismo" - -#: plugins/software_communities/lib/ext/category.rb:10 -msgid "Individual, Family and Society" -msgstr "Pessoa, Família e Sociedade" - -#: plugins/software_communities/lib/ext/category.rb:11 -msgid "Health" -msgstr "Saúde" - -#: plugins/software_communities/lib/ext/category.rb:12 -msgid "Social Welfare and Development" -msgstr "Bem-estar Social e Desenvolvimento" - -#: plugins/software_communities/lib/ext/category.rb:13 -msgid "Defense and Security" -msgstr "Defesa e Segurança" - -#: plugins/software_communities/lib/ext/category.rb:14 -msgid "Education" -msgstr "Educação" - -#: plugins/software_communities/lib/ext/category.rb:15 -msgid "Government and Politics" -msgstr "Governo e Política" - -#: plugins/software_communities/lib/ext/category.rb:16 -msgid "Justice and Legislation" -msgstr "Justiça e Legislação" - -#: plugins/software_communities/lib/ext/category.rb:17 -msgid "International Relationships" -msgstr "Relações Internacionais" - -#: plugins/software_communities/lib/ext/search_controller.rb:15 -msgid "Institution Catalog" -msgstr "Catálogo de Instituição" - -#: plugins/software_communities/lib/ext/search_controller.rb:25 -msgid "Software Catalog" -msgstr "Catálogo de Software" - -#: plugins/software_communities/lib/institutions_block.rb:4 -#: plugins/software_communities/views/person_editor_extras.html.erb:10 -msgid "Institutions" -msgstr "Instituições" - -#: plugins/software_communities/lib/institutions_block.rb:12 -msgid "{#} institution" -msgid_plural "{#} institutions" -msgstr[0] "{#} intituição" -msgstr[1] "{#} instituições" - -#: plugins/software_communities/lib/institutions_block.rb:16 -msgid "This block displays the institutions in which the user is a member." -msgstr "Este bloco mostra as instituições a que o usuário pertence" - -#: plugins/software_communities/lib/institutions_block.rb:24 -#: plugins/software_communities/lib/institutions_block.rb:30 -msgid "institutions|View all" -msgstr "instituições|Ver todas" - -#: plugins/software_communities/lib/software_database.rb:12 -msgid "Software database is too long (maximum is 20 characters)" -msgstr "" -"Banco de dados do software contém mais caracteres do que o permitido (máximo " -"é 20 caracteres)" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 -#: plugins/software_communities/views/profile/_software_tab.html.erb:7 -msgid "Name:" -msgstr "Nome:" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 -#: plugins/software_communities/views/profile/_software_tab.html.erb:21 -msgid "Link:" -msgstr "Endereço:" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 -msgid "Software Description:" -msgstr "Descrição do Software" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 -msgid "Link to Version News:" -msgstr "Link para as Novidades da Versão:" - -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 -msgid "Link to Minimum Requirements:" -msgstr "Link para Requisitos Mínimos:" - -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 -msgid "Limit of items" -msgstr "Limite de itens" - -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 -msgid "Software Type:" -msgstr "Tipo do Software:" - -#: plugins/software_communities/views/person_editor_extras.html.erb:2 -msgid "Secondary e-mail" -msgstr "E-mail secundário" - -#: plugins/software_communities/views/person_editor_extras.html.erb:20 -msgid "No institution found" -msgstr "Nenhuma instituição encontrada" - -#: plugins/software_communities/views/person_editor_extras.html.erb:21 -msgid "Add new institution" -msgstr "Adicionar nova instituição" - -#: plugins/software_communities/views/person_editor_extras.html.erb:22 -msgid "Create new institution" -msgstr "Criar nova instituição" - -#: plugins/software_communities/views/person_editor_extras.html.erb:38 -msgid "Should begin with a capital letter and no special characters" -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" - -#: plugins/software_communities/views/person_editor_extras.html.erb:39 -msgid "Email should have the following format: name@host.br" -msgstr "Email deve ter o seguinte formato: nome@host.br" - -#: plugins/software_communities/views/person_editor_extras.html.erb:40 -msgid "Site should have a valid format: http://name.hosts" -msgstr "Site deve ter um formato válido: http: //name.hosts" - -#: plugins/software_communities/views/person_editor_extras.html.erb:41 -msgid "If you work in a public agency use your government e-Mail" -msgstr "" -"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 -msgid "Institution Information" -msgstr "Informação da Instituição" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 -msgid "Type:" -msgstr "Tipo:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 -msgid "CNPJ:" -msgstr "CNPJ:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 -msgid "Last modification:" -msgstr "Última Modificação" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 -msgid "Country:" -msgstr "País:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 -msgid "State:" -msgstr "Estado:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 -msgid "City:" -msgstr "Cidade:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 -msgid "Fantasy Name:" -msgstr "Nome Fantasia:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 -#: plugins/software_communities/views/profile/_software_tab.html.erb:15 -msgid "Acronym:" -msgstr "Sigla:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 -msgid "Governmental Power:" -msgstr "Poder Governamental" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 -msgid "Governmental Sphere:" -msgstr "Esfera Governamental:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 -msgid "Juridical Nature:" -msgstr "Natureza Jurídica:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 -msgid "SISP:" -msgstr "SISP:" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 -msgid "Yes" -msgstr "Sim" - -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 -msgid "No" -msgstr "Não" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:4 -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 -msgid "Software Information" -msgstr "Informação do Software" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 -msgid "Adherent to e_mag:" -msgstr "Aderente ao e-Mag:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 -msgid "Adherent to icp_brasil:" -msgstr "Adherent ao ICP-Brasil:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 -msgid "Adherent to e_ping:" -msgstr "Aderente ao e-Ping:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 -msgid "Adherent to e_arq:" -msgstr "Aderente ao e-Arq:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 -msgid "Internacionalizable:" -msgstr "Internacionalizável:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:13 -msgid "Operating Platform:" -msgstr "Plataforma Operacional:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:14 -msgid "Demonstration URL:" -msgstr "URL de demonstração:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:16 -msgid "Objectives:" -msgstr "Objetivos:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:17 -msgid "Features:" -msgstr "Características:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:20 -msgid "Version:" -msgstr "Versão:" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:26 -msgid "Show Libraries" -msgstr "Mostrar Bibliotecas" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:27 -msgid "Hide Libraries" -msgstr "Esconder Bibliotecas" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:36 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 -msgid "Libraries" -msgstr "Bibliotecas" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:54 -msgid "Show Database" -msgstr "Mostrar Banco de Dados" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:55 -msgid "Hide Database" -msgstr "Esconder Banco de Dados" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:64 -msgid "Software Databases" -msgstr "Banco de Dados" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:82 -msgid "Show Languages" -msgstr "Mostrar Linguagens" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:83 -msgid "Hide Languages" -msgstr "Esconder Linguagens" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:92 -msgid "Software Languages" -msgstr "Linguagens de Software" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:110 -msgid "Show Operating Systems" -msgstr "Mostrar Sistemas Operacionais" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:111 -msgid "Hide Operating Systems" -msgstr "Esconder Sistemas Operacionais" - -#: plugins/software_communities/views/profile/_software_tab.html.erb:121 -msgid "Operating System" -msgstr "Sistema Operacional" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 -#: plugins/software_communities/views/search/_full_community.html.erb:21 -msgid "Finality" -msgstr "Finalidade" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 -msgid "Licenses" -msgstr "Licenças" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 -msgid "License link" -msgstr "Endereço da licença" - -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 -msgid "Link to Repository: " -msgstr "Link pro Repositório: " - -#: plugins/software_communities/views/incomplete_registration.html.erb:3 -msgid "Complete Profile" -msgstr "Complete o Perfil" - -#: plugins/software_communities/views/incomplete_registration.html.erb:6 -msgid "Complete your profile" -msgstr "Complete o seu perfil" - -#: plugins/software_communities/views/incomplete_registration.html.erb:7 -msgid "Hide" -msgstr "Esconder" - -#: plugins/software_communities/views/blocks/repository.html.erb:2 -#: plugins/software_communities/views/blocks/download.html.erb:2 -#: plugins/software_communities/views/blocks/software_information.html.erb:4 -msgid "This community needs a software to use this block" -msgstr "Esta comunidade precisa de um software para utilizar este bloco" - -#: plugins/software_communities/views/blocks/repository.html.erb:4 -msgid "Repository" -msgstr "Repositório" - -#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 -msgid "Catalog of Public Software" -msgstr "Software Público" - -#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 -msgid "Search" -msgstr "Pesquisar" - -#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 -#: plugins/software_communities/views/blocks/categories_software.html.erb:24 -msgid "Access the complete catalog" -msgstr "Acesse o catálogo completo" - -#: plugins/software_communities/views/blocks/download.html.erb:6 -msgid "Download" -msgstr "Baixar" - -#: plugins/software_communities/views/blocks/download.html.erb:19 -msgid "Minimal Requirements" -msgstr "Requisitos Mínimos" - -#: plugins/software_communities/views/blocks/download.html.erb:23 -msgid "Version News" -msgstr "Novidades da Versão" - -#: plugins/software_communities/views/blocks/download.html.erb:27 -msgid "Licensed by" -msgstr "Licenciado por " - -#: plugins/software_communities/views/blocks/categories_software.html.erb:14 -msgid "Categories:" -msgstr "Categorias:" - -#: plugins/software_communities/views/blocks/categories_software.html.erb:18 -msgid "\"#{category.name}\"" -msgstr "\"#{category.name}\"" - -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 -msgid "Categories" -msgstr "Categorias" - -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 -msgid "Tags" -msgstr "Tags" - -#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 -msgid "See More" -msgstr "Veja Mais" - -#: plugins/software_communities/views/blocks/software_information.html.erb:16 -msgid "Control panel" -msgstr "Painel de controle" - -#: plugins/software_communities/views/blocks/software_information.html.erb:24 -msgid "\"#{block.owner.software_info.acronym} - \"" -msgstr "\"#{block.owner.software_info.acronym} - \"" - -#: plugins/software_communities/views/blocks/software_information.html.erb:25 -msgid "\"#{block.owner.name}\"" -msgstr "\"#{block.owner.name}\"" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 -msgid "Edit software" -msgstr "Editar software" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 -msgid "Operating Platform" -msgstr "Plataforma Operacional" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 -msgid "Features" -msgstr "Características" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 -msgid "Operating Systems" -msgstr "Sistemas Operacionais" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 -msgid "Programming languages" -msgstr "Linguagens de Programação" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 -msgid "Databases" -msgstr "Bancos de Dados" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 -msgid "Demonstration url" -msgstr "Url de demonstração" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 -msgid "Public Software" -msgstr "Software Público" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 -msgid "Public software" -msgstr "Software público" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 -msgid "Adherent to e-PING ?" -msgstr "Aderente ao e-PING ?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 -msgid "Adherent to e-MAG ?" -msgstr "Aderente ao e-MAG ?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 -msgid "Adherent to ICP-Brasil ?" -msgstr "Aderente ao ICP-Brasil?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 -msgid "Adherent to e-ARQ ?" -msgstr "Aderente ao e-ARQ?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 -msgid "Internacionalizable ?" -msgstr "Internacionalizável?" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 -msgid " Information" -msgstr " Informação" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 -msgid "Acronym" -msgstr "Sigla" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 -msgid "It is a software of..." -msgstr "É um software de ..." - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 -msgid "Link to Repository" -msgstr "Link pro Repositório" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 -msgid "New Operating System" -msgstr "Novo Sistema Operacional" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 -msgid "Specifications" -msgstr "Especificações" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 -msgid "Save" -msgstr "Salvar" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 -msgid "Back to control panel" -msgstr "Voltar para o painel de controle" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 -msgid "New Library" -msgstr "Nova Biblioteca" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 -msgid "New Database" -msgstr "Novo Banco de Dados" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 -msgid "New language" -msgstr "Nova linguagem" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 -msgid "Step 1/2 - Software Creation" -msgstr "Passo 1/2 - Criação de Software" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 -msgid "Creating new software" -msgstr "Criando novo software" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 -msgid "" -"Note that the creation of communities in this environment is restricted. " -"Your request to create this new community will be sent to %{environment} " -"administrators and will be approved or rejected according to their methods " -"and criteria." -msgstr "" -"Note que a criação de comunidades neste ambiente é restrita. A sua " -"requisição para criar esta nova comunidade será enviada para os " -"administradores do %{environment} e será aprovada ou rejeitada de acordo com " -"seus métodos e critérios. " - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 -msgid "\"Can`t create new software: #{@errors.length} errors\"" -msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 -msgid "License Version: " -msgstr "Versão da Licença: " - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 -msgid "Create" -msgstr "Criar" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 -msgid "Cancel" -msgstr "Cancelar" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 -msgid "Edit Institution" -msgstr "Editar Instituição" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 -msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" -msgstr "" -"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 -msgid "All fields with (*) are mandatory" -msgstr "Todos os campos com (*) são obrigatórios" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 -msgid "Public Institution" -msgstr "Instituição Pública" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 -msgid "Private Institution" -msgstr "Instituição Privada" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 -msgid "Institution name already exists" -msgstr "Nome da instituição já existe" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 -msgid "Corporate Name" -msgstr "Razão Social" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 -msgid "Country" -msgstr "País" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 -msgid "State" -msgstr "Estado" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 -msgid "CNPJ" -msgstr "CNPJ" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 -msgid "Fantasy name" -msgstr "Nome Fantasia" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 -msgid "Select a Governmental Sphere" -msgstr "Selecione uma Esfera Governamental" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 -msgid "Select a Governmental Power" -msgstr "Selecione um Poder Governamental" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 -msgid "Select a Juridical Nature" -msgstr "Selecione uma Natureza Jurídica" - -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 -msgid "SISP?" -msgstr "SISP?" - -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 -msgid "New Institution" -msgstr "Nova Instituição" - -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 -msgid "Could not send the form data to the server" -msgstr "Não foi possível enviar os dados do formulário para o servidor" - -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 -msgid "Creating institution" -msgstr "Criando Instituição" - -#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 -msgid "Categories filter" -msgstr "Filtro de Categorias" - -#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 -msgid "Type a category name here" -msgstr "Escreva uma categoria aqui" - -#: plugins/software_communities/views/search/_full_community.html.erb:30 -msgid "Software licence" -msgstr "Licença do Software" - -#: plugins/software_communities/views/search/_full_community.html.erb:39 -msgid "Link software repository" -msgstr "Link pro Repositório" - -#: plugins/software_communities/views/search/_full_community.html.erb:48 -msgid "Software Categories" -msgstr "Categorias de Software" - -#: plugins/software_communities/views/search/_full_community.html.erb:62 -msgid "This software doesn't have categories" -msgstr "Este software não tem categorias" - -#: plugins/software_communities/views/search/software_infos.html.erb:3 -#: plugins/software_communities/views/search/institutions.html.erb:3 -msgid "Type words about the %s you're looking for" -msgstr "Escreva palavras sobre o software que você está procurando" - -#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 -msgid "Step 2/2 - Software Community Configuration" -msgstr "Passo 2/2 - Configuração da Comunidade do Software" - -#~ msgid "database Name: " -#~ msgstr "Nome do banco de dados:" - -#~ msgid "Pick an item on the list" -#~ msgstr "Escolha um item da lista" - -#~ msgid "At last one category must be checked" -#~ msgstr "Pelo menos uma categoria deve ser selecionada" - -#~ msgid "%{requestor} wants to create software %{subject} with no finality." -#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." - -#~ msgid "Operating system is too long (maximum is 20 characters)" -#~ msgstr "" -#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " -#~ "20 caracteres)" - -#~ msgid "Language Name: " -#~ msgstr "Nome da Linguagem: " - -#~ msgid "License:" -#~ msgstr "Licença:" - -#~ msgid "Program Database" -#~ msgstr "Programa de Banco de Dados" - -#~ msgid "Operating System:" -#~ msgstr "Sistema Operacional" - -#~ msgid "Programming Language" -#~ msgstr "Linguagem de Programação" - -#~ msgid "Activate Software" -#~ msgstr "Ativar Software" - -#~ msgid "Do you want to activate this software?" -#~ msgstr "Você quer ativar este software?" - -#~ msgid "Deactivate software" -#~ msgstr "Desativar software" - -#~ msgid "Do you want to deactivate this software?" -#~ msgstr "Você quer desativar este software?" - -#~ msgid "Remove" -#~ msgstr "Remover" - -#~ msgid "Do you want to remove this software?" -#~ msgstr "Você deseja remover este software?" - -#~ msgid "Find software" -#~ msgstr "Buscar software" - -#~ msgid "Software list as [CSV]" -#~ msgstr "Lista de Software como [CSV]" - -#~ msgid "Software list as [XML]" -#~ msgstr "Lista de Software como [XML]" - -#~ msgid "Back" -#~ msgstr "Voltar" - -#~ msgid "Community" -#~ msgstr "Comunidade" - -#~ msgid "Secundary Information" -#~ msgstr "Informação Secundária" - -#~ msgid "For more detailed information see " -#~ msgstr "Para informações mais detalhadas, ver " - -#~ msgid "\"#{block.owner.name} profile\"" -#~ msgstr "\"Perfil de #{block.owner.name}\"" - -#~ msgid "Main repository: " -#~ msgstr "Repositório principal: " - -#~ msgid "Editar Instituição" -#~ msgstr "Editar Instituição" - -#~ msgid "Generic" -#~ msgstr "Genérico" diff --git a/po/pt/software_communities_software.po b/po/pt/software_communities_software.po new file mode 100644 index 0000000..25e627d --- /dev/null +++ b/po/pt/software_communities_software.po @@ -0,0 +1,1130 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"POT-Creation-Date: 2015-01-23 16:54-0000\n" +"PO-Revision-Date: 2014-11-12 13:05-0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: plugins/software_communities/test/unit/mpog_person_test.rb:57 +#: plugins/software_communities/test/unit/mpog_person_test.rb:63 +msgid "Name Should begin with a capital letter and no special characters" +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" + +#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 +msgid "Features is too long (maximum is 4000 characters)" +msgstr "" +"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " +"caracteres)" + +#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 +msgid "Objectives is too long (maximum is 4000 characters)" +msgstr "" +"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " +"caracteres)" + +#: plugins/software_communities/test/functional/search_controller_test.rb:24 +#: plugins/software_communities/lib/software_communities_plugin.rb:344 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 +msgid "Software" +msgstr "Software" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 +msgid "Save and Configure Community" +msgstr "Salvar e Configurar Comunidade" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 +msgid "Software updated sucessefuly" +msgstr "Software atualizado com sucesso" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 +msgid "Could not update software" +msgstr "Não foi possível atualizar o software" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 +msgid "Could not find Governmental Power or Governmental Sphere" +msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 +msgid "" +"Your new software request will be evaluated by anadministrator. You will be " +"notified." +msgstr "" +"Sua requisição para criação de um novo software será avaliada por um " +"administrador. Você será noficado." + +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 +msgid "Institution successful created!" +msgstr "Instituição criada com sucesso!" + +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 +msgid "Institution could not be created!" +msgstr "Instituição não pode ser criada!" + +#: plugins/software_communities/lib/software_info.rb:69 +msgid "Name is too long (maximum is %{count} characters)" +msgstr "" +"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" + +#: plugins/software_communities/lib/software_info.rb:113 +msgid "can't have more than 10 characteres" +msgstr "não pode ter mais de 10 caracteres" + +#: plugins/software_communities/lib/software_info.rb:116 +msgid "can't have whitespaces" +msgstr "não pode ter espaços" + +#: plugins/software_communities/lib/software_info.rb:124 +#: plugins/software_communities/lib/software_info.rb:130 +#: plugins/software_communities/lib/software_info.rb:136 +msgid ": at least one must be filled" +msgstr ": pelo menos um deve ser preenchido" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:17 +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 +msgid "Name" +msgstr "Nome" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:18 +msgid "Version" +msgstr "Versão" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:19 +#: plugins/software_communities/views/profile/_software_tab.html.erb:19 +msgid "License" +msgstr "Licença" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:91 +msgid "Autocomplete field, type something" +msgstr "Campo automático, digite algo" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:116 +msgid "Delete" +msgstr "Excluir" + +#: plugins/software_communities/lib/categories_and_tags_block.rb:8 +msgid "Categories and Tags" +msgstr "Categorias e Tags" + +#: plugins/software_communities/lib/categories_and_tags_block.rb:12 +msgid "This block displays the categories and tags of a software." +msgstr "" +"Este bloco exibe as informações de categorias e tags de um perfil de " +"software." + +#: plugins/software_communities/lib/software_information_block.rb:8 +msgid "Basic Software Information" +msgstr "Informações Básicas Software" + +#: plugins/software_communities/lib/software_information_block.rb:12 +msgid "This block displays the basic information of a software profile." +msgstr "Este bloco exibe as informações básicas de um perfil de software." + +#: plugins/software_communities/lib/softwares_block.rb:8 +msgid "Softwares" +msgstr "Softwares" + +#: plugins/software_communities/lib/softwares_block.rb:13 +msgid "{#} generic software" +msgid_plural "{#} generic softwares" +msgstr[0] "{#} software genérico" +msgstr[1] "{#} softwares genéricos" + +#: plugins/software_communities/lib/softwares_block.rb:15 +msgid "{#} public software" +msgid_plural "{#} public softwares" +msgstr[0] "{#} software público" +msgstr[1] "{#} software públicos" + +#: plugins/software_communities/lib/softwares_block.rb:17 +msgid "{#} software" +msgid_plural "{#} softwares" +msgstr[0] "{#} software" +msgstr[1] "{#} softwares" + +#: plugins/software_communities/lib/softwares_block.rb:22 +msgid "This block displays the softwares in which the user is a member." +msgstr "Este bloco apresenta os softwares no qual o usuário é membro." + +#: plugins/software_communities/lib/softwares_block.rb:31 +#: plugins/software_communities/lib/softwares_block.rb:37 +msgid "softwares|View all" +msgstr "Ver todos" + +#: plugins/software_communities/lib/create_software.rb:36 +msgid "New software" +msgstr "Novo software" + +#: plugins/software_communities/lib/create_software.rb:44 +msgid "%{requestor} wants to create software %{subject} with" +msgstr "%{requestor} deseja criar o software %{subject}" + +#: plugins/software_communities/lib/create_software.rb:46 +msgid " no finality." +msgstr " sem finalidade" + +#: plugins/software_communities/lib/create_software.rb:48 +msgid " this finality:

%{finality}

" +msgstr "" +" com esta finalidade:

" +"%{finality}

" + +#: plugins/software_communities/lib/create_software.rb:68 +msgid "%{requestor} wants to create software %{subject}" +msgstr "%{requestor} deseja criar o software %{subject}" + +#: plugins/software_communities/lib/create_software.rb:73 +msgid "" +"User \"%{user}\" just requested to create software %{software}.\n" +" You have to approve or reject it through the \"Pending Validations\"\n" +" section in your control panel.\n" +msgstr "" +"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " +"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " +"de controle.\n" + +#: plugins/software_communities/lib/create_software.rb:80 +msgid "" +"Your request for registering software %{software} at %{environment} was\n" +" just sent. Environment administrator will receive it and will approve " +"or\n" +" reject your request according to his methods and criteria.\n" +"\n" +" You will be notified as soon as environment administrator has a " +"position\n" +" about your request." +msgstr "" +"Sua requisição para registro do software %{software} no %{environment} acaba \n" +"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " +"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " +"notificado assim que o administrador tenha uma posição sobre sua requisição." + +#: plugins/software_communities/lib/create_software.rb:90 +msgid "" +"Your request for registering software %{software} at %{environment} was\n" +" not approved by the environment administrator. The following " +"explanation\n" +" was given: \n" +"\n" +"%{explanation}" +msgstr "" +"Sua requisição para o registro do software %{software} no %{environment} não \n" +"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " +"fornecida: \n" +"\n" +"%{explanation}" + +#: plugins/software_communities/lib/create_software.rb:99 +msgid "" +"Your request for registering the software \"%{software}\" was approved.\n" +" You can access %{url} and finish the registration of your software." +msgstr "" +"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " +"pode acessá-la %{url} e finalizar o registro do seu software." + +#: plugins/software_communities/lib/repository_block.rb:8 +msgid "Repository Link" +msgstr "Link para o Repositório:" + +#: plugins/software_communities/lib/repository_block.rb:12 +msgid "This block displays the repository link of a software." +msgstr "Este bloco exibe o link para o repositório de um perfil de software." + +#: plugins/software_communities/lib/software_language.rb:10 +msgid "Software language is too long (maximum is 20 characters)" +msgstr "" +"Linguagem de programação do software contém mais caracteres do que o " +"permitido (máximo é 20 caracteres)" + +#: plugins/software_communities/lib/download_block.rb:14 +msgid "Download Stable Version" +msgstr "Baixar Versão Estável" + +#: plugins/software_communities/lib/download_block.rb:18 +msgid "This block displays the stable version of a software." +msgstr "Este bloco exibe as informações básicas de um perfil de software." + +#: plugins/software_communities/lib/software_communities_plugin.rb:17 +msgid "Add Public Software and MPOG features." +msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" + +#: plugins/software_communities/lib/software_communities_plugin.rb:167 +msgid "Create Institution" +msgstr "Criar Instituição" + +#: plugins/software_communities/lib/software_communities_plugin.rb:297 +msgid "Software Info" +msgstr "Informação de Software" + +#: plugins/software_communities/lib/software_communities_plugin.rb:308 +msgid "Create a new software" +msgstr "Criar um novo software" + +#: plugins/software_communities/lib/software_communities_plugin.rb:319 +msgid "Institution Info" +msgstr "Informação da Instituição" + +#: plugins/software_communities/lib/software_communities_plugin.rb:351 +msgid "Institution" +msgstr "Instituição" + +#: plugins/software_communities/lib/institution.rb:46 +msgid "invalid, only public and private institutions are allowed." +msgstr "inválido, somente instituição públicas ou privadas são permitidas." + +#: plugins/software_communities/lib/institution.rb:59 +#: plugins/software_communities/lib/institution.rb:71 +#: plugins/software_communities/lib/institution.rb:86 +#: plugins/software_communities/lib/institution.rb:111 +#: plugins/software_communities/lib/library.rb:5 +msgid "can't be blank" +msgstr "não pode ser em branco" + +#: plugins/software_communities/lib/institution.rb:103 +msgid "invalid format" +msgstr "formato inválido" + +#: plugins/software_communities/lib/operating_system.rb:12 +msgid "too long (maximum is 20 characters)" +msgstr "" +"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" + +#: plugins/software_communities/lib/search_catalog_block.rb:8 +msgid "Search Softwares catalog" +msgstr "Informações Básicas Software" + +#: plugins/software_communities/lib/search_catalog_block.rb:12 +msgid "This block displays the search categories field " +msgstr "Este bloco apresenta a busca por categorias" + +#: plugins/software_communities/lib/library.rb:8 +msgid "Too long (maximum is 20 characters)" +msgstr "" +"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" + +#: plugins/software_communities/lib/categories_software_block.rb:8 +msgid "Categories Softwares" +msgstr "Ativar Software" + +#: plugins/software_communities/lib/categories_software_block.rb:12 +msgid "" +"This block displays the categories and the amount of softwares for\n" +" each category." +msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." + +#: plugins/software_communities/lib/ext/user.rb:19 +msgid "Email must be different from secondary email." +msgstr "E-mail deve ser diferente do e-mail secundário." + +#: plugins/software_communities/lib/ext/user.rb:40 +msgid "E-mail or secondary e-mail already taken." +msgstr "E-mail ou e-mail secundário já está sendo utilizado" + +#: plugins/software_communities/lib/ext/user.rb:50 +msgid "Invalid secondary email format." +msgstr "Formato do e-mail secundário inválido." + +#: plugins/software_communities/lib/ext/user.rb:70 +msgid "The governamental email must be the primary one." +msgstr "O e-mail governamental deve ser o e-mail primário." + +#: plugins/software_communities/lib/ext/user.rb:78 +msgid "Institution is obligatory if user has a government email." +msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." + +#: plugins/software_communities/lib/ext/category.rb:5 +msgid "Agriculture, Fisheries and Extraction" +msgstr "Agricultura, Extrativismo e Pesca " + +#: plugins/software_communities/lib/ext/category.rb:6 +msgid "Science, Information and Communication" +msgstr "Ciência, Informação e Comunicação " + +#: plugins/software_communities/lib/ext/category.rb:7 +msgid "Economy and Finances" +msgstr "Economia e Finanças " + +#: plugins/software_communities/lib/ext/category.rb:8 +msgid "Public Administration" +msgstr "Administração Pública" + +#: plugins/software_communities/lib/ext/category.rb:9 +msgid "Habitation, Sanitation and Urbanism" +msgstr "Habitação, Saneamento e Urbanismo" + +#: plugins/software_communities/lib/ext/category.rb:10 +msgid "Individual, Family and Society" +msgstr "Pessoa, Família e Sociedade" + +#: plugins/software_communities/lib/ext/category.rb:11 +msgid "Health" +msgstr "Saúde" + +#: plugins/software_communities/lib/ext/category.rb:12 +msgid "Social Welfare and Development" +msgstr "Bem-estar Social e Desenvolvimento" + +#: plugins/software_communities/lib/ext/category.rb:13 +msgid "Defense and Security" +msgstr "Defesa e Segurança" + +#: plugins/software_communities/lib/ext/category.rb:14 +msgid "Education" +msgstr "Educação" + +#: plugins/software_communities/lib/ext/category.rb:15 +msgid "Government and Politics" +msgstr "Governo e Política" + +#: plugins/software_communities/lib/ext/category.rb:16 +msgid "Justice and Legislation" +msgstr "Justiça e Legislação" + +#: plugins/software_communities/lib/ext/category.rb:17 +msgid "International Relationships" +msgstr "Relações Internacionais" + +#: plugins/software_communities/lib/ext/search_controller.rb:15 +msgid "Institution Catalog" +msgstr "Catálogo de Instituição" + +#: plugins/software_communities/lib/ext/search_controller.rb:25 +msgid "Software Catalog" +msgstr "Catálogo de Software" + +#: plugins/software_communities/lib/institutions_block.rb:4 +#: plugins/software_communities/views/person_editor_extras.html.erb:10 +msgid "Institutions" +msgstr "Instituições" + +#: plugins/software_communities/lib/institutions_block.rb:12 +msgid "{#} institution" +msgid_plural "{#} institutions" +msgstr[0] "{#} intituição" +msgstr[1] "{#} instituições" + +#: plugins/software_communities/lib/institutions_block.rb:16 +msgid "This block displays the institutions in which the user is a member." +msgstr "Este bloco mostra as instituições a que o usuário pertence" + +#: plugins/software_communities/lib/institutions_block.rb:24 +#: plugins/software_communities/lib/institutions_block.rb:30 +msgid "institutions|View all" +msgstr "instituições|Ver todas" + +#: plugins/software_communities/lib/software_database.rb:12 +msgid "Software database is too long (maximum is 20 characters)" +msgstr "" +"Banco de dados do software contém mais caracteres do que o permitido (máximo " +"é 20 caracteres)" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 +#: plugins/software_communities/views/profile/_software_tab.html.erb:7 +msgid "Name:" +msgstr "Nome:" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 +#: plugins/software_communities/views/profile/_software_tab.html.erb:21 +msgid "Link:" +msgstr "Endereço:" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 +msgid "Software Description:" +msgstr "Descrição do Software" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 +msgid "Link to Version News:" +msgstr "Link para as Novidades da Versão:" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 +msgid "Link to Minimum Requirements:" +msgstr "Link para Requisitos Mínimos:" + +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 +msgid "Limit of items" +msgstr "Limite de itens" + +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 +msgid "Software Type:" +msgstr "Tipo do Software:" + +#: plugins/software_communities/views/person_editor_extras.html.erb:2 +msgid "Secondary e-mail" +msgstr "E-mail secundário" + +#: plugins/software_communities/views/person_editor_extras.html.erb:20 +msgid "No institution found" +msgstr "Nenhuma instituição encontrada" + +#: plugins/software_communities/views/person_editor_extras.html.erb:21 +msgid "Add new institution" +msgstr "Adicionar nova instituição" + +#: plugins/software_communities/views/person_editor_extras.html.erb:22 +msgid "Create new institution" +msgstr "Criar nova instituição" + +#: plugins/software_communities/views/person_editor_extras.html.erb:38 +msgid "Should begin with a capital letter and no special characters" +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" + +#: plugins/software_communities/views/person_editor_extras.html.erb:39 +msgid "Email should have the following format: name@host.br" +msgstr "Email deve ter o seguinte formato: nome@host.br" + +#: plugins/software_communities/views/person_editor_extras.html.erb:40 +msgid "Site should have a valid format: http://name.hosts" +msgstr "Site deve ter um formato válido: http: //name.hosts" + +#: plugins/software_communities/views/person_editor_extras.html.erb:41 +msgid "If you work in a public agency use your government e-Mail" +msgstr "" +"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 +msgid "Institution Information" +msgstr "Informação da Instituição" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 +msgid "Type:" +msgstr "Tipo:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 +msgid "CNPJ:" +msgstr "CNPJ:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 +msgid "Last modification:" +msgstr "Última Modificação" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 +msgid "Country:" +msgstr "País:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 +msgid "State:" +msgstr "Estado:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 +msgid "City:" +msgstr "Cidade:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 +msgid "Fantasy Name:" +msgstr "Nome Fantasia:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 +#: plugins/software_communities/views/profile/_software_tab.html.erb:15 +msgid "Acronym:" +msgstr "Sigla:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 +msgid "Governmental Power:" +msgstr "Poder Governamental" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 +msgid "Governmental Sphere:" +msgstr "Esfera Governamental:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 +msgid "Juridical Nature:" +msgstr "Natureza Jurídica:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 +msgid "SISP:" +msgstr "SISP:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 +msgid "Yes" +msgstr "Sim" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 +msgid "No" +msgstr "Não" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:4 +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 +msgid "Software Information" +msgstr "Informação do Software" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 +msgid "Adherent to e_mag:" +msgstr "Aderente ao e-Mag:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 +msgid "Adherent to icp_brasil:" +msgstr "Adherent ao ICP-Brasil:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 +msgid "Adherent to e_ping:" +msgstr "Aderente ao e-Ping:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 +msgid "Adherent to e_arq:" +msgstr "Aderente ao e-Arq:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 +msgid "Internacionalizable:" +msgstr "Internacionalizável:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:13 +msgid "Operating Platform:" +msgstr "Plataforma Operacional:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:14 +msgid "Demonstration URL:" +msgstr "URL de demonstração:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:16 +msgid "Objectives:" +msgstr "Objetivos:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:17 +msgid "Features:" +msgstr "Características:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:20 +msgid "Version:" +msgstr "Versão:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:26 +msgid "Show Libraries" +msgstr "Mostrar Bibliotecas" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:27 +msgid "Hide Libraries" +msgstr "Esconder Bibliotecas" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:36 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 +msgid "Libraries" +msgstr "Bibliotecas" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:54 +msgid "Show Database" +msgstr "Mostrar Banco de Dados" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:55 +msgid "Hide Database" +msgstr "Esconder Banco de Dados" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:64 +msgid "Software Databases" +msgstr "Banco de Dados" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:82 +msgid "Show Languages" +msgstr "Mostrar Linguagens" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:83 +msgid "Hide Languages" +msgstr "Esconder Linguagens" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:92 +msgid "Software Languages" +msgstr "Linguagens de Software" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:110 +msgid "Show Operating Systems" +msgstr "Mostrar Sistemas Operacionais" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:111 +msgid "Hide Operating Systems" +msgstr "Esconder Sistemas Operacionais" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:121 +msgid "Operating System" +msgstr "Sistema Operacional" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 +#: plugins/software_communities/views/search/_full_community.html.erb:21 +msgid "Finality" +msgstr "Finalidade" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 +msgid "Licenses" +msgstr "Licenças" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 +msgid "License link" +msgstr "Endereço da licença" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 +msgid "Link to Repository: " +msgstr "Link pro Repositório: " + +#: plugins/software_communities/views/incomplete_registration.html.erb:3 +msgid "Complete Profile" +msgstr "Complete o Perfil" + +#: plugins/software_communities/views/incomplete_registration.html.erb:6 +msgid "Complete your profile" +msgstr "Complete o seu perfil" + +#: plugins/software_communities/views/incomplete_registration.html.erb:7 +msgid "Hide" +msgstr "Esconder" + +#: plugins/software_communities/views/blocks/repository.html.erb:2 +#: plugins/software_communities/views/blocks/download.html.erb:2 +#: plugins/software_communities/views/blocks/software_information.html.erb:4 +msgid "This community needs a software to use this block" +msgstr "Esta comunidade precisa de um software para utilizar este bloco" + +#: plugins/software_communities/views/blocks/repository.html.erb:4 +msgid "Repository" +msgstr "Repositório" + +#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 +msgid "Catalog of Public Software" +msgstr "Software Público" + +#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 +msgid "Search" +msgstr "Pesquisar" + +#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 +#: plugins/software_communities/views/blocks/categories_software.html.erb:24 +msgid "Access the complete catalog" +msgstr "Acesse o catálogo completo" + +#: plugins/software_communities/views/blocks/download.html.erb:6 +msgid "Download" +msgstr "Baixar" + +#: plugins/software_communities/views/blocks/download.html.erb:19 +msgid "Minimal Requirements" +msgstr "Requisitos Mínimos" + +#: plugins/software_communities/views/blocks/download.html.erb:23 +msgid "Version News" +msgstr "Novidades da Versão" + +#: plugins/software_communities/views/blocks/download.html.erb:27 +msgid "Licensed by" +msgstr "Licenciado por " + +#: plugins/software_communities/views/blocks/categories_software.html.erb:14 +msgid "Categories:" +msgstr "Categorias:" + +#: plugins/software_communities/views/blocks/categories_software.html.erb:18 +msgid "\"#{category.name}\"" +msgstr "\"#{category.name}\"" + +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 +msgid "Categories" +msgstr "Categorias" + +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 +msgid "Tags" +msgstr "Tags" + +#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 +msgid "See More" +msgstr "Veja Mais" + +#: plugins/software_communities/views/blocks/software_information.html.erb:16 +msgid "Control panel" +msgstr "Painel de controle" + +#: plugins/software_communities/views/blocks/software_information.html.erb:24 +msgid "\"#{block.owner.software_info.acronym} - \"" +msgstr "\"#{block.owner.software_info.acronym} - \"" + +#: plugins/software_communities/views/blocks/software_information.html.erb:25 +msgid "\"#{block.owner.name}\"" +msgstr "\"#{block.owner.name}\"" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 +msgid "Edit software" +msgstr "Editar software" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 +msgid "Operating Platform" +msgstr "Plataforma Operacional" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 +msgid "Features" +msgstr "Características" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 +msgid "Operating Systems" +msgstr "Sistemas Operacionais" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 +msgid "Programming languages" +msgstr "Linguagens de Programação" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 +msgid "Databases" +msgstr "Bancos de Dados" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 +msgid "Demonstration url" +msgstr "Url de demonstração" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 +msgid "Public Software" +msgstr "Software Público" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 +msgid "Public software" +msgstr "Software público" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 +msgid "Adherent to e-PING ?" +msgstr "Aderente ao e-PING ?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 +msgid "Adherent to e-MAG ?" +msgstr "Aderente ao e-MAG ?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 +msgid "Adherent to ICP-Brasil ?" +msgstr "Aderente ao ICP-Brasil?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 +msgid "Adherent to e-ARQ ?" +msgstr "Aderente ao e-ARQ?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 +msgid "Internacionalizable ?" +msgstr "Internacionalizável?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 +msgid " Information" +msgstr " Informação" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 +msgid "Acronym" +msgstr "Sigla" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 +msgid "It is a software of..." +msgstr "É um software de ..." + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 +msgid "Link to Repository" +msgstr "Link pro Repositório" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 +msgid "New Operating System" +msgstr "Novo Sistema Operacional" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 +msgid "Specifications" +msgstr "Especificações" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 +msgid "Save" +msgstr "Salvar" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 +msgid "Back to control panel" +msgstr "Voltar para o painel de controle" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 +msgid "New Library" +msgstr "Nova Biblioteca" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 +msgid "New Database" +msgstr "Novo Banco de Dados" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 +msgid "New language" +msgstr "Nova linguagem" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 +msgid "Step 1/2 - Software Creation" +msgstr "Passo 1/2 - Criação de Software" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 +msgid "Creating new software" +msgstr "Criando novo software" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 +msgid "" +"Note that the creation of communities in this environment is restricted. " +"Your request to create this new community will be sent to %{environment} " +"administrators and will be approved or rejected according to their methods " +"and criteria." +msgstr "" +"Note que a criação de comunidades neste ambiente é restrita. A sua " +"requisição para criar esta nova comunidade será enviada para os " +"administradores do %{environment} e será aprovada ou rejeitada de acordo com " +"seus métodos e critérios. " + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 +msgid "\"Can`t create new software: #{@errors.length} errors\"" +msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 +msgid "License Version: " +msgstr "Versão da Licença: " + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 +msgid "Create" +msgstr "Criar" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 +msgid "Cancel" +msgstr "Cancelar" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 +msgid "Edit Institution" +msgstr "Editar Instituição" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 +msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" +msgstr "" +"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 +msgid "All fields with (*) are mandatory" +msgstr "Todos os campos com (*) são obrigatórios" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 +msgid "Public Institution" +msgstr "Instituição Pública" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 +msgid "Private Institution" +msgstr "Instituição Privada" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 +msgid "Institution name already exists" +msgstr "Nome da instituição já existe" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 +msgid "Corporate Name" +msgstr "Razão Social" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 +msgid "Country" +msgstr "País" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 +msgid "State" +msgstr "Estado" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 +msgid "CNPJ" +msgstr "CNPJ" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 +msgid "Fantasy name" +msgstr "Nome Fantasia" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 +msgid "Select a Governmental Sphere" +msgstr "Selecione uma Esfera Governamental" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 +msgid "Select a Governmental Power" +msgstr "Selecione um Poder Governamental" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 +msgid "Select a Juridical Nature" +msgstr "Selecione uma Natureza Jurídica" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 +msgid "SISP?" +msgstr "SISP?" + +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 +msgid "New Institution" +msgstr "Nova Instituição" + +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 +msgid "Could not send the form data to the server" +msgstr "Não foi possível enviar os dados do formulário para o servidor" + +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 +msgid "Creating institution" +msgstr "Criando Instituição" + +#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 +msgid "Categories filter" +msgstr "Filtro de Categorias" + +#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 +msgid "Type a category name here" +msgstr "Escreva uma categoria aqui" + +#: plugins/software_communities/views/search/_full_community.html.erb:30 +msgid "Software licence" +msgstr "Licença do Software" + +#: plugins/software_communities/views/search/_full_community.html.erb:39 +msgid "Link software repository" +msgstr "Link pro Repositório" + +#: plugins/software_communities/views/search/_full_community.html.erb:48 +msgid "Software Categories" +msgstr "Categorias de Software" + +#: plugins/software_communities/views/search/_full_community.html.erb:62 +msgid "This software doesn't have categories" +msgstr "Este software não tem categorias" + +#: plugins/software_communities/views/search/software_infos.html.erb:3 +#: plugins/software_communities/views/search/institutions.html.erb:3 +msgid "Type words about the %s you're looking for" +msgstr "Escreva palavras sobre o software que você está procurando" + +#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 +msgid "Step 2/2 - Software Community Configuration" +msgstr "Passo 2/2 - Configuração da Comunidade do Software" + +#~ msgid "database Name: " +#~ msgstr "Nome do banco de dados:" + +#~ msgid "Pick an item on the list" +#~ msgstr "Escolha um item da lista" + +#~ msgid "At last one category must be checked" +#~ msgstr "Pelo menos uma categoria deve ser selecionada" + +#~ msgid "%{requestor} wants to create software %{subject} with no finality." +#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." + +#~ msgid "Operating system is too long (maximum is 20 characters)" +#~ msgstr "" +#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " +#~ "20 caracteres)" + +#~ msgid "Language Name: " +#~ msgstr "Nome da Linguagem: " + +#~ msgid "License:" +#~ msgstr "Licença:" + +#~ msgid "Program Database" +#~ msgstr "Programa de Banco de Dados" + +#~ msgid "Operating System:" +#~ msgstr "Sistema Operacional" + +#~ msgid "Programming Language" +#~ msgstr "Linguagem de Programação" + +#~ msgid "Activate Software" +#~ msgstr "Ativar Software" + +#~ msgid "Do you want to activate this software?" +#~ msgstr "Você quer ativar este software?" + +#~ msgid "Deactivate software" +#~ msgstr "Desativar software" + +#~ msgid "Do you want to deactivate this software?" +#~ msgstr "Você quer desativar este software?" + +#~ msgid "Remove" +#~ msgstr "Remover" + +#~ msgid "Do you want to remove this software?" +#~ msgstr "Você deseja remover este software?" + +#~ msgid "Find software" +#~ msgstr "Buscar software" + +#~ msgid "Software list as [CSV]" +#~ msgstr "Lista de Software como [CSV]" + +#~ msgid "Software list as [XML]" +#~ msgstr "Lista de Software como [XML]" + +#~ msgid "Back" +#~ msgstr "Voltar" + +#~ msgid "Community" +#~ msgstr "Comunidade" + +#~ msgid "Secundary Information" +#~ msgstr "Informação Secundária" + +#~ msgid "For more detailed information see " +#~ msgstr "Para informações mais detalhadas, ver " + +#~ msgid "\"#{block.owner.name} profile\"" +#~ msgstr "\"Perfil de #{block.owner.name}\"" + +#~ msgid "Main repository: " +#~ msgstr "Repositório principal: " + +#~ msgid "Editar Instituição" +#~ msgstr "Editar Instituição" + +#~ msgid "Generic" +#~ msgstr "Genérico" diff --git a/po/software_communities_software.pot b/po/software_communities_software.pot new file mode 100644 index 0000000..25e627d --- /dev/null +++ b/po/software_communities_software.pot @@ -0,0 +1,1130 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"POT-Creation-Date: 2015-01-23 16:54-0000\n" +"PO-Revision-Date: 2014-11-12 13:05-0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: plugins/software_communities/test/unit/mpog_person_test.rb:57 +#: plugins/software_communities/test/unit/mpog_person_test.rb:63 +msgid "Name Should begin with a capital letter and no special characters" +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" + +#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 +msgid "Features is too long (maximum is 4000 characters)" +msgstr "" +"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " +"caracteres)" + +#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 +msgid "Objectives is too long (maximum is 4000 characters)" +msgstr "" +"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " +"caracteres)" + +#: plugins/software_communities/test/functional/search_controller_test.rb:24 +#: plugins/software_communities/lib/software_communities_plugin.rb:344 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 +msgid "Software" +msgstr "Software" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 +msgid "Save and Configure Community" +msgstr "Salvar e Configurar Comunidade" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 +msgid "Software updated sucessefuly" +msgstr "Software atualizado com sucesso" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 +msgid "Could not update software" +msgstr "Não foi possível atualizar o software" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 +msgid "Could not find Governmental Power or Governmental Sphere" +msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" + +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 +msgid "" +"Your new software request will be evaluated by anadministrator. You will be " +"notified." +msgstr "" +"Sua requisição para criação de um novo software será avaliada por um " +"administrador. Você será noficado." + +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 +msgid "Institution successful created!" +msgstr "Instituição criada com sucesso!" + +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 +msgid "Institution could not be created!" +msgstr "Instituição não pode ser criada!" + +#: plugins/software_communities/lib/software_info.rb:69 +msgid "Name is too long (maximum is %{count} characters)" +msgstr "" +"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" + +#: plugins/software_communities/lib/software_info.rb:113 +msgid "can't have more than 10 characteres" +msgstr "não pode ter mais de 10 caracteres" + +#: plugins/software_communities/lib/software_info.rb:116 +msgid "can't have whitespaces" +msgstr "não pode ter espaços" + +#: plugins/software_communities/lib/software_info.rb:124 +#: plugins/software_communities/lib/software_info.rb:130 +#: plugins/software_communities/lib/software_info.rb:136 +msgid ": at least one must be filled" +msgstr ": pelo menos um deve ser preenchido" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:17 +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 +msgid "Name" +msgstr "Nome" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:18 +msgid "Version" +msgstr "Versão" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:19 +#: plugins/software_communities/views/profile/_software_tab.html.erb:19 +msgid "License" +msgstr "Licença" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:91 +msgid "Autocomplete field, type something" +msgstr "Campo automático, digite algo" + +#: plugins/software_communities/lib/dynamic_table_helper.rb:116 +msgid "Delete" +msgstr "Excluir" + +#: plugins/software_communities/lib/categories_and_tags_block.rb:8 +msgid "Categories and Tags" +msgstr "Categorias e Tags" + +#: plugins/software_communities/lib/categories_and_tags_block.rb:12 +msgid "This block displays the categories and tags of a software." +msgstr "" +"Este bloco exibe as informações de categorias e tags de um perfil de " +"software." + +#: plugins/software_communities/lib/software_information_block.rb:8 +msgid "Basic Software Information" +msgstr "Informações Básicas Software" + +#: plugins/software_communities/lib/software_information_block.rb:12 +msgid "This block displays the basic information of a software profile." +msgstr "Este bloco exibe as informações básicas de um perfil de software." + +#: plugins/software_communities/lib/softwares_block.rb:8 +msgid "Softwares" +msgstr "Softwares" + +#: plugins/software_communities/lib/softwares_block.rb:13 +msgid "{#} generic software" +msgid_plural "{#} generic softwares" +msgstr[0] "{#} software genérico" +msgstr[1] "{#} softwares genéricos" + +#: plugins/software_communities/lib/softwares_block.rb:15 +msgid "{#} public software" +msgid_plural "{#} public softwares" +msgstr[0] "{#} software público" +msgstr[1] "{#} software públicos" + +#: plugins/software_communities/lib/softwares_block.rb:17 +msgid "{#} software" +msgid_plural "{#} softwares" +msgstr[0] "{#} software" +msgstr[1] "{#} softwares" + +#: plugins/software_communities/lib/softwares_block.rb:22 +msgid "This block displays the softwares in which the user is a member." +msgstr "Este bloco apresenta os softwares no qual o usuário é membro." + +#: plugins/software_communities/lib/softwares_block.rb:31 +#: plugins/software_communities/lib/softwares_block.rb:37 +msgid "softwares|View all" +msgstr "Ver todos" + +#: plugins/software_communities/lib/create_software.rb:36 +msgid "New software" +msgstr "Novo software" + +#: plugins/software_communities/lib/create_software.rb:44 +msgid "%{requestor} wants to create software %{subject} with" +msgstr "%{requestor} deseja criar o software %{subject}" + +#: plugins/software_communities/lib/create_software.rb:46 +msgid " no finality." +msgstr " sem finalidade" + +#: plugins/software_communities/lib/create_software.rb:48 +msgid " this finality:

%{finality}

" +msgstr "" +" com esta finalidade:

" +"%{finality}

" + +#: plugins/software_communities/lib/create_software.rb:68 +msgid "%{requestor} wants to create software %{subject}" +msgstr "%{requestor} deseja criar o software %{subject}" + +#: plugins/software_communities/lib/create_software.rb:73 +msgid "" +"User \"%{user}\" just requested to create software %{software}.\n" +" You have to approve or reject it through the \"Pending Validations\"\n" +" section in your control panel.\n" +msgstr "" +"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " +"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " +"de controle.\n" + +#: plugins/software_communities/lib/create_software.rb:80 +msgid "" +"Your request for registering software %{software} at %{environment} was\n" +" just sent. Environment administrator will receive it and will approve " +"or\n" +" reject your request according to his methods and criteria.\n" +"\n" +" You will be notified as soon as environment administrator has a " +"position\n" +" about your request." +msgstr "" +"Sua requisição para registro do software %{software} no %{environment} acaba \n" +"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " +"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " +"notificado assim que o administrador tenha uma posição sobre sua requisição." + +#: plugins/software_communities/lib/create_software.rb:90 +msgid "" +"Your request for registering software %{software} at %{environment} was\n" +" not approved by the environment administrator. The following " +"explanation\n" +" was given: \n" +"\n" +"%{explanation}" +msgstr "" +"Sua requisição para o registro do software %{software} no %{environment} não \n" +"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " +"fornecida: \n" +"\n" +"%{explanation}" + +#: plugins/software_communities/lib/create_software.rb:99 +msgid "" +"Your request for registering the software \"%{software}\" was approved.\n" +" You can access %{url} and finish the registration of your software." +msgstr "" +"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " +"pode acessá-la %{url} e finalizar o registro do seu software." + +#: plugins/software_communities/lib/repository_block.rb:8 +msgid "Repository Link" +msgstr "Link para o Repositório:" + +#: plugins/software_communities/lib/repository_block.rb:12 +msgid "This block displays the repository link of a software." +msgstr "Este bloco exibe o link para o repositório de um perfil de software." + +#: plugins/software_communities/lib/software_language.rb:10 +msgid "Software language is too long (maximum is 20 characters)" +msgstr "" +"Linguagem de programação do software contém mais caracteres do que o " +"permitido (máximo é 20 caracteres)" + +#: plugins/software_communities/lib/download_block.rb:14 +msgid "Download Stable Version" +msgstr "Baixar Versão Estável" + +#: plugins/software_communities/lib/download_block.rb:18 +msgid "This block displays the stable version of a software." +msgstr "Este bloco exibe as informações básicas de um perfil de software." + +#: plugins/software_communities/lib/software_communities_plugin.rb:17 +msgid "Add Public Software and MPOG features." +msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" + +#: plugins/software_communities/lib/software_communities_plugin.rb:167 +msgid "Create Institution" +msgstr "Criar Instituição" + +#: plugins/software_communities/lib/software_communities_plugin.rb:297 +msgid "Software Info" +msgstr "Informação de Software" + +#: plugins/software_communities/lib/software_communities_plugin.rb:308 +msgid "Create a new software" +msgstr "Criar um novo software" + +#: plugins/software_communities/lib/software_communities_plugin.rb:319 +msgid "Institution Info" +msgstr "Informação da Instituição" + +#: plugins/software_communities/lib/software_communities_plugin.rb:351 +msgid "Institution" +msgstr "Instituição" + +#: plugins/software_communities/lib/institution.rb:46 +msgid "invalid, only public and private institutions are allowed." +msgstr "inválido, somente instituição públicas ou privadas são permitidas." + +#: plugins/software_communities/lib/institution.rb:59 +#: plugins/software_communities/lib/institution.rb:71 +#: plugins/software_communities/lib/institution.rb:86 +#: plugins/software_communities/lib/institution.rb:111 +#: plugins/software_communities/lib/library.rb:5 +msgid "can't be blank" +msgstr "não pode ser em branco" + +#: plugins/software_communities/lib/institution.rb:103 +msgid "invalid format" +msgstr "formato inválido" + +#: plugins/software_communities/lib/operating_system.rb:12 +msgid "too long (maximum is 20 characters)" +msgstr "" +"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" + +#: plugins/software_communities/lib/search_catalog_block.rb:8 +msgid "Search Softwares catalog" +msgstr "Informações Básicas Software" + +#: plugins/software_communities/lib/search_catalog_block.rb:12 +msgid "This block displays the search categories field " +msgstr "Este bloco apresenta a busca por categorias" + +#: plugins/software_communities/lib/library.rb:8 +msgid "Too long (maximum is 20 characters)" +msgstr "" +"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" + +#: plugins/software_communities/lib/categories_software_block.rb:8 +msgid "Categories Softwares" +msgstr "Ativar Software" + +#: plugins/software_communities/lib/categories_software_block.rb:12 +msgid "" +"This block displays the categories and the amount of softwares for\n" +" each category." +msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." + +#: plugins/software_communities/lib/ext/user.rb:19 +msgid "Email must be different from secondary email." +msgstr "E-mail deve ser diferente do e-mail secundário." + +#: plugins/software_communities/lib/ext/user.rb:40 +msgid "E-mail or secondary e-mail already taken." +msgstr "E-mail ou e-mail secundário já está sendo utilizado" + +#: plugins/software_communities/lib/ext/user.rb:50 +msgid "Invalid secondary email format." +msgstr "Formato do e-mail secundário inválido." + +#: plugins/software_communities/lib/ext/user.rb:70 +msgid "The governamental email must be the primary one." +msgstr "O e-mail governamental deve ser o e-mail primário." + +#: plugins/software_communities/lib/ext/user.rb:78 +msgid "Institution is obligatory if user has a government email." +msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." + +#: plugins/software_communities/lib/ext/category.rb:5 +msgid "Agriculture, Fisheries and Extraction" +msgstr "Agricultura, Extrativismo e Pesca " + +#: plugins/software_communities/lib/ext/category.rb:6 +msgid "Science, Information and Communication" +msgstr "Ciência, Informação e Comunicação " + +#: plugins/software_communities/lib/ext/category.rb:7 +msgid "Economy and Finances" +msgstr "Economia e Finanças " + +#: plugins/software_communities/lib/ext/category.rb:8 +msgid "Public Administration" +msgstr "Administração Pública" + +#: plugins/software_communities/lib/ext/category.rb:9 +msgid "Habitation, Sanitation and Urbanism" +msgstr "Habitação, Saneamento e Urbanismo" + +#: plugins/software_communities/lib/ext/category.rb:10 +msgid "Individual, Family and Society" +msgstr "Pessoa, Família e Sociedade" + +#: plugins/software_communities/lib/ext/category.rb:11 +msgid "Health" +msgstr "Saúde" + +#: plugins/software_communities/lib/ext/category.rb:12 +msgid "Social Welfare and Development" +msgstr "Bem-estar Social e Desenvolvimento" + +#: plugins/software_communities/lib/ext/category.rb:13 +msgid "Defense and Security" +msgstr "Defesa e Segurança" + +#: plugins/software_communities/lib/ext/category.rb:14 +msgid "Education" +msgstr "Educação" + +#: plugins/software_communities/lib/ext/category.rb:15 +msgid "Government and Politics" +msgstr "Governo e Política" + +#: plugins/software_communities/lib/ext/category.rb:16 +msgid "Justice and Legislation" +msgstr "Justiça e Legislação" + +#: plugins/software_communities/lib/ext/category.rb:17 +msgid "International Relationships" +msgstr "Relações Internacionais" + +#: plugins/software_communities/lib/ext/search_controller.rb:15 +msgid "Institution Catalog" +msgstr "Catálogo de Instituição" + +#: plugins/software_communities/lib/ext/search_controller.rb:25 +msgid "Software Catalog" +msgstr "Catálogo de Software" + +#: plugins/software_communities/lib/institutions_block.rb:4 +#: plugins/software_communities/views/person_editor_extras.html.erb:10 +msgid "Institutions" +msgstr "Instituições" + +#: plugins/software_communities/lib/institutions_block.rb:12 +msgid "{#} institution" +msgid_plural "{#} institutions" +msgstr[0] "{#} intituição" +msgstr[1] "{#} instituições" + +#: plugins/software_communities/lib/institutions_block.rb:16 +msgid "This block displays the institutions in which the user is a member." +msgstr "Este bloco mostra as instituições a que o usuário pertence" + +#: plugins/software_communities/lib/institutions_block.rb:24 +#: plugins/software_communities/lib/institutions_block.rb:30 +msgid "institutions|View all" +msgstr "instituições|Ver todas" + +#: plugins/software_communities/lib/software_database.rb:12 +msgid "Software database is too long (maximum is 20 characters)" +msgstr "" +"Banco de dados do software contém mais caracteres do que o permitido (máximo " +"é 20 caracteres)" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 +#: plugins/software_communities/views/profile/_software_tab.html.erb:7 +msgid "Name:" +msgstr "Nome:" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 +#: plugins/software_communities/views/profile/_software_tab.html.erb:21 +msgid "Link:" +msgstr "Endereço:" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 +msgid "Software Description:" +msgstr "Descrição do Software" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 +msgid "Link to Version News:" +msgstr "Link para as Novidades da Versão:" + +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 +msgid "Link to Minimum Requirements:" +msgstr "Link para Requisitos Mínimos:" + +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 +msgid "Limit of items" +msgstr "Limite de itens" + +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 +msgid "Software Type:" +msgstr "Tipo do Software:" + +#: plugins/software_communities/views/person_editor_extras.html.erb:2 +msgid "Secondary e-mail" +msgstr "E-mail secundário" + +#: plugins/software_communities/views/person_editor_extras.html.erb:20 +msgid "No institution found" +msgstr "Nenhuma instituição encontrada" + +#: plugins/software_communities/views/person_editor_extras.html.erb:21 +msgid "Add new institution" +msgstr "Adicionar nova instituição" + +#: plugins/software_communities/views/person_editor_extras.html.erb:22 +msgid "Create new institution" +msgstr "Criar nova instituição" + +#: plugins/software_communities/views/person_editor_extras.html.erb:38 +msgid "Should begin with a capital letter and no special characters" +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" + +#: plugins/software_communities/views/person_editor_extras.html.erb:39 +msgid "Email should have the following format: name@host.br" +msgstr "Email deve ter o seguinte formato: nome@host.br" + +#: plugins/software_communities/views/person_editor_extras.html.erb:40 +msgid "Site should have a valid format: http://name.hosts" +msgstr "Site deve ter um formato válido: http: //name.hosts" + +#: plugins/software_communities/views/person_editor_extras.html.erb:41 +msgid "If you work in a public agency use your government e-Mail" +msgstr "" +"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 +msgid "Institution Information" +msgstr "Informação da Instituição" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 +msgid "Type:" +msgstr "Tipo:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 +msgid "CNPJ:" +msgstr "CNPJ:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 +msgid "Last modification:" +msgstr "Última Modificação" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 +msgid "Country:" +msgstr "País:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 +msgid "State:" +msgstr "Estado:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 +msgid "City:" +msgstr "Cidade:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 +msgid "Fantasy Name:" +msgstr "Nome Fantasia:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 +#: plugins/software_communities/views/profile/_software_tab.html.erb:15 +msgid "Acronym:" +msgstr "Sigla:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 +msgid "Governmental Power:" +msgstr "Poder Governamental" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 +msgid "Governmental Sphere:" +msgstr "Esfera Governamental:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 +msgid "Juridical Nature:" +msgstr "Natureza Jurídica:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 +msgid "SISP:" +msgstr "SISP:" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 +msgid "Yes" +msgstr "Sim" + +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 +msgid "No" +msgstr "Não" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:4 +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 +msgid "Software Information" +msgstr "Informação do Software" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 +msgid "Adherent to e_mag:" +msgstr "Aderente ao e-Mag:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 +msgid "Adherent to icp_brasil:" +msgstr "Adherent ao ICP-Brasil:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 +msgid "Adherent to e_ping:" +msgstr "Aderente ao e-Ping:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 +msgid "Adherent to e_arq:" +msgstr "Aderente ao e-Arq:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 +msgid "Internacionalizable:" +msgstr "Internacionalizável:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:13 +msgid "Operating Platform:" +msgstr "Plataforma Operacional:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:14 +msgid "Demonstration URL:" +msgstr "URL de demonstração:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:16 +msgid "Objectives:" +msgstr "Objetivos:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:17 +msgid "Features:" +msgstr "Características:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:20 +msgid "Version:" +msgstr "Versão:" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:26 +msgid "Show Libraries" +msgstr "Mostrar Bibliotecas" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:27 +msgid "Hide Libraries" +msgstr "Esconder Bibliotecas" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:36 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 +msgid "Libraries" +msgstr "Bibliotecas" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:54 +msgid "Show Database" +msgstr "Mostrar Banco de Dados" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:55 +msgid "Hide Database" +msgstr "Esconder Banco de Dados" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:64 +msgid "Software Databases" +msgstr "Banco de Dados" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:82 +msgid "Show Languages" +msgstr "Mostrar Linguagens" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:83 +msgid "Hide Languages" +msgstr "Esconder Linguagens" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:92 +msgid "Software Languages" +msgstr "Linguagens de Software" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:110 +msgid "Show Operating Systems" +msgstr "Mostrar Sistemas Operacionais" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:111 +msgid "Hide Operating Systems" +msgstr "Esconder Sistemas Operacionais" + +#: plugins/software_communities/views/profile/_software_tab.html.erb:121 +msgid "Operating System" +msgstr "Sistema Operacional" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 +#: plugins/software_communities/views/search/_full_community.html.erb:21 +msgid "Finality" +msgstr "Finalidade" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 +msgid "Licenses" +msgstr "Licenças" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 +msgid "License link" +msgstr "Endereço da licença" + +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 +msgid "Link to Repository: " +msgstr "Link pro Repositório: " + +#: plugins/software_communities/views/incomplete_registration.html.erb:3 +msgid "Complete Profile" +msgstr "Complete o Perfil" + +#: plugins/software_communities/views/incomplete_registration.html.erb:6 +msgid "Complete your profile" +msgstr "Complete o seu perfil" + +#: plugins/software_communities/views/incomplete_registration.html.erb:7 +msgid "Hide" +msgstr "Esconder" + +#: plugins/software_communities/views/blocks/repository.html.erb:2 +#: plugins/software_communities/views/blocks/download.html.erb:2 +#: plugins/software_communities/views/blocks/software_information.html.erb:4 +msgid "This community needs a software to use this block" +msgstr "Esta comunidade precisa de um software para utilizar este bloco" + +#: plugins/software_communities/views/blocks/repository.html.erb:4 +msgid "Repository" +msgstr "Repositório" + +#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 +msgid "Catalog of Public Software" +msgstr "Software Público" + +#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 +msgid "Search" +msgstr "Pesquisar" + +#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 +#: plugins/software_communities/views/blocks/categories_software.html.erb:24 +msgid "Access the complete catalog" +msgstr "Acesse o catálogo completo" + +#: plugins/software_communities/views/blocks/download.html.erb:6 +msgid "Download" +msgstr "Baixar" + +#: plugins/software_communities/views/blocks/download.html.erb:19 +msgid "Minimal Requirements" +msgstr "Requisitos Mínimos" + +#: plugins/software_communities/views/blocks/download.html.erb:23 +msgid "Version News" +msgstr "Novidades da Versão" + +#: plugins/software_communities/views/blocks/download.html.erb:27 +msgid "Licensed by" +msgstr "Licenciado por " + +#: plugins/software_communities/views/blocks/categories_software.html.erb:14 +msgid "Categories:" +msgstr "Categorias:" + +#: plugins/software_communities/views/blocks/categories_software.html.erb:18 +msgid "\"#{category.name}\"" +msgstr "\"#{category.name}\"" + +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 +msgid "Categories" +msgstr "Categorias" + +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 +msgid "Tags" +msgstr "Tags" + +#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 +msgid "See More" +msgstr "Veja Mais" + +#: plugins/software_communities/views/blocks/software_information.html.erb:16 +msgid "Control panel" +msgstr "Painel de controle" + +#: plugins/software_communities/views/blocks/software_information.html.erb:24 +msgid "\"#{block.owner.software_info.acronym} - \"" +msgstr "\"#{block.owner.software_info.acronym} - \"" + +#: plugins/software_communities/views/blocks/software_information.html.erb:25 +msgid "\"#{block.owner.name}\"" +msgstr "\"#{block.owner.name}\"" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 +msgid "Edit software" +msgstr "Editar software" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 +msgid "Operating Platform" +msgstr "Plataforma Operacional" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 +msgid "Features" +msgstr "Características" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 +msgid "Operating Systems" +msgstr "Sistemas Operacionais" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 +msgid "Programming languages" +msgstr "Linguagens de Programação" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 +msgid "Databases" +msgstr "Bancos de Dados" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 +msgid "Demonstration url" +msgstr "Url de demonstração" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 +msgid "Public Software" +msgstr "Software Público" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 +msgid "Public software" +msgstr "Software público" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 +msgid "Adherent to e-PING ?" +msgstr "Aderente ao e-PING ?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 +msgid "Adherent to e-MAG ?" +msgstr "Aderente ao e-MAG ?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 +msgid "Adherent to ICP-Brasil ?" +msgstr "Aderente ao ICP-Brasil?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 +msgid "Adherent to e-ARQ ?" +msgstr "Aderente ao e-ARQ?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 +msgid "Internacionalizable ?" +msgstr "Internacionalizável?" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 +msgid " Information" +msgstr " Informação" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 +msgid "Acronym" +msgstr "Sigla" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 +msgid "It is a software of..." +msgstr "É um software de ..." + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 +msgid "Link to Repository" +msgstr "Link pro Repositório" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 +msgid "New Operating System" +msgstr "Novo Sistema Operacional" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 +msgid "Specifications" +msgstr "Especificações" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 +msgid "Save" +msgstr "Salvar" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 +msgid "Back to control panel" +msgstr "Voltar para o painel de controle" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 +msgid "New Library" +msgstr "Nova Biblioteca" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 +msgid "New Database" +msgstr "Novo Banco de Dados" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 +msgid "New language" +msgstr "Nova linguagem" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 +msgid "Step 1/2 - Software Creation" +msgstr "Passo 1/2 - Criação de Software" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 +msgid "Creating new software" +msgstr "Criando novo software" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 +msgid "" +"Note that the creation of communities in this environment is restricted. " +"Your request to create this new community will be sent to %{environment} " +"administrators and will be approved or rejected according to their methods " +"and criteria." +msgstr "" +"Note que a criação de comunidades neste ambiente é restrita. A sua " +"requisição para criar esta nova comunidade será enviada para os " +"administradores do %{environment} e será aprovada ou rejeitada de acordo com " +"seus métodos e critérios. " + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 +msgid "\"Can`t create new software: #{@errors.length} errors\"" +msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 +msgid "License Version: " +msgstr "Versão da Licença: " + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 +msgid "Create" +msgstr "Criar" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 +msgid "Cancel" +msgstr "Cancelar" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 +msgid "Edit Institution" +msgstr "Editar Instituição" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 +msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" +msgstr "" +"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 +msgid "All fields with (*) are mandatory" +msgstr "Todos os campos com (*) são obrigatórios" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 +msgid "Public Institution" +msgstr "Instituição Pública" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 +msgid "Private Institution" +msgstr "Instituição Privada" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 +msgid "Institution name already exists" +msgstr "Nome da instituição já existe" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 +msgid "Corporate Name" +msgstr "Razão Social" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 +msgid "Country" +msgstr "País" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 +msgid "State" +msgstr "Estado" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 +msgid "CNPJ" +msgstr "CNPJ" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 +msgid "Fantasy name" +msgstr "Nome Fantasia" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 +msgid "Select a Governmental Sphere" +msgstr "Selecione uma Esfera Governamental" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 +msgid "Select a Governmental Power" +msgstr "Selecione um Poder Governamental" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 +msgid "Select a Juridical Nature" +msgstr "Selecione uma Natureza Jurídica" + +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 +msgid "SISP?" +msgstr "SISP?" + +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 +msgid "New Institution" +msgstr "Nova Instituição" + +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 +msgid "Could not send the form data to the server" +msgstr "Não foi possível enviar os dados do formulário para o servidor" + +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 +msgid "Creating institution" +msgstr "Criando Instituição" + +#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 +msgid "Categories filter" +msgstr "Filtro de Categorias" + +#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 +msgid "Type a category name here" +msgstr "Escreva uma categoria aqui" + +#: plugins/software_communities/views/search/_full_community.html.erb:30 +msgid "Software licence" +msgstr "Licença do Software" + +#: plugins/software_communities/views/search/_full_community.html.erb:39 +msgid "Link software repository" +msgstr "Link pro Repositório" + +#: plugins/software_communities/views/search/_full_community.html.erb:48 +msgid "Software Categories" +msgstr "Categorias de Software" + +#: plugins/software_communities/views/search/_full_community.html.erb:62 +msgid "This software doesn't have categories" +msgstr "Este software não tem categorias" + +#: plugins/software_communities/views/search/software_infos.html.erb:3 +#: plugins/software_communities/views/search/institutions.html.erb:3 +msgid "Type words about the %s you're looking for" +msgstr "Escreva palavras sobre o software que você está procurando" + +#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 +msgid "Step 2/2 - Software Community Configuration" +msgstr "Passo 2/2 - Configuração da Comunidade do Software" + +#~ msgid "database Name: " +#~ msgstr "Nome do banco de dados:" + +#~ msgid "Pick an item on the list" +#~ msgstr "Escolha um item da lista" + +#~ msgid "At last one category must be checked" +#~ msgstr "Pelo menos uma categoria deve ser selecionada" + +#~ msgid "%{requestor} wants to create software %{subject} with no finality." +#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." + +#~ msgid "Operating system is too long (maximum is 20 characters)" +#~ msgstr "" +#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " +#~ "20 caracteres)" + +#~ msgid "Language Name: " +#~ msgstr "Nome da Linguagem: " + +#~ msgid "License:" +#~ msgstr "Licença:" + +#~ msgid "Program Database" +#~ msgstr "Programa de Banco de Dados" + +#~ msgid "Operating System:" +#~ msgstr "Sistema Operacional" + +#~ msgid "Programming Language" +#~ msgstr "Linguagem de Programação" + +#~ msgid "Activate Software" +#~ msgstr "Ativar Software" + +#~ msgid "Do you want to activate this software?" +#~ msgstr "Você quer ativar este software?" + +#~ msgid "Deactivate software" +#~ msgstr "Desativar software" + +#~ msgid "Do you want to deactivate this software?" +#~ msgstr "Você quer desativar este software?" + +#~ msgid "Remove" +#~ msgstr "Remover" + +#~ msgid "Do you want to remove this software?" +#~ msgstr "Você deseja remover este software?" + +#~ msgid "Find software" +#~ msgstr "Buscar software" + +#~ msgid "Software list as [CSV]" +#~ msgstr "Lista de Software como [CSV]" + +#~ msgid "Software list as [XML]" +#~ msgstr "Lista de Software como [XML]" + +#~ msgid "Back" +#~ msgstr "Voltar" + +#~ msgid "Community" +#~ msgstr "Comunidade" + +#~ msgid "Secundary Information" +#~ msgstr "Informação Secundária" + +#~ msgid "For more detailed information see " +#~ msgstr "Para informações mais detalhadas, ver " + +#~ msgid "\"#{block.owner.name} profile\"" +#~ msgstr "\"Perfil de #{block.owner.name}\"" + +#~ msgid "Main repository: " +#~ msgstr "Repositório principal: " + +#~ msgid "Editar Instituição" +#~ msgstr "Editar Instituição" + +#~ msgid "Generic" +#~ msgstr "Genérico" diff --git a/test/functional/mpog_software_plugin_controller_test.rb b/test/functional/mpog_software_plugin_controller_test.rb deleted file mode 100644 index 6cf871d..0000000 --- a/test/functional/mpog_software_plugin_controller_test.rb +++ /dev/null @@ -1,257 +0,0 @@ -require File.dirname(__FILE__) + '/../../../../test/test_helper' -require File.dirname(__FILE__) + '/../helpers/institution_test_helper' -require File.dirname(__FILE__) + '/../../controllers/software_communities_plugin_controller' - -class SoftwareCommunitiesPluginController; def rescue_action(e) raise e end; end - -class SoftwareCommunitiesPluginControllerTest < ActionController::TestCase - - def setup - @admin = create_user("adminuser").person - @admin.stubs(:has_permission?).returns("true") - @controller.stubs(:current_user).returns(@admin.user) - - @environment = Environment.default - @environment.enabled_plugins = ['SoftwareCommunitiesPlugin'] - @environment.add_admin(@admin) - @environment.save - - @gov_power = GovernmentalPower.create(:name=>"Some Gov Power") - @gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") - @juridical_nature = JuridicalNature.create(:name => "Autarquia") - @response = ActionController::TestResponse.new - - @institution_list = [] - @institution_list << InstitutionTestHelper.create_public_institution( - "Ministerio Publico da Uniao", - "MPU", - "BR", - "DF", - "Gama", - @juridical_nature, - @gov_power, - @gov_sphere, - "12.345.678/9012-45" - ) - @institution_list << InstitutionTestHelper.create_public_institution( - "Tribunal Regional da Uniao", - "TRU", - "BR", - "DF", - "Brasilia", - @juridical_nature, - @gov_power, - @gov_sphere, - "12.345.678/9012-90" - ) - end - - should "Search for institution with acronym" do - xhr :get, :get_institutions, :query=>"TRU" - - json_response = ActiveSupport::JSON.decode(@response.body) - - assert_equal "Tribunal Regional da Uniao", json_response[0]["value"] - end - - should "Search for institution with name" do - xhr :get, :get_institutions, :query=>"Minis" - - json_response = ActiveSupport::JSON.decode(@response.body) - - assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] - end - - should "search with name or acronym and return a list with institutions" do - xhr :get, :get_institutions, :query=>"uni" - - json_response = ActiveSupport::JSON.decode(@response.body) - - assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] - assert_equal "Tribunal Regional da Uniao", json_response[1]["value"] - end - - should "method create_institution return the html for modal" do - @controller.stubs(:current_user).returns(@admin.user) - xhr :get, :create_institution - assert_template 'create_institution' - end - - should "create new institution with ajax without acronym" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "foo bar", - "BR", - "DF", - "Brasilia", - "12.234.567/8900-10", - "PublicInstitution" - ) - fields[:institutions][:governmental_power] = @gov_power.id - fields[:institutions][:governmental_sphere] = @gov_sphere.id - fields[:institutions][:juridical_nature] = @juridical_nature.id - - xhr :get, :new_institution, fields - - json_response = ActiveSupport::JSON.decode(@response.body) - - assert json_response["success"] - end - - should "not create a institution that already exists" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "Ministerio Publico da Uniao", - "BR", - "DF", - "Brasilia", - "12.234.567/8900-10", - "PublicInstitution" - ) - fields[:institutions][:governmental_power] = @gov_power.id - fields[:institutions][:governmental_sphere] = @gov_sphere.id - fields[:institutions][:juridical_nature] = @juridical_nature.id - - xhr :get, :new_institution, fields - - json_response = ActiveSupport::JSON.decode(@response.body) - - assert !json_response["success"] - end - - should "not create a institution without cnpj" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "Some Private Institution", - "BR", - "DF", - "Brasilia", - "", - "PrivateInstitution" - ) - fields[:institutions][:acronym] = "SPI" - - xhr :get, :new_institution, fields - - json_response = ActiveSupport::JSON.decode(@response.body) - - assert !json_response["success"] - end - - should "verify if institution name already exists" do - xhr :get, :institution_already_exists, :name=>"Ministerio Publico da Uniao" - assert_equal "true", @response.body - - xhr :get, :institution_already_exists, :name=>"Another name here" - assert_equal "false", @response.body - end - - should "hide registration incomplete message" do - xhr :get, :hide_registration_incomplete_percentage, :hide=>true - assert_equal "true", @response.body - end - - should "not hide registration incomplete message" do - xhr :get, :hide_registration_incomplete_percentage, :hide=>false - assert_equal "false", @response.body - end - - should "Create new institution with method post" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "Some Private Institution", - "BR", - "DF", - "Brasilia", - "12.345.567/8900-10", - "PrivateInstitution" - ) - fields[:institutions][:acronym] = "SPI" - - post :new_institution, fields - - assert_redirected_to(controller: "admin_panel", action: "index") - end - - should "not create new institution with method post without cnpj" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "Some Private Institution", - "BR", - "DF", - "Brasilia", - "", - "PrivateInstitution" - ) - fields[:institutions][:acronym] = "SPI" - - post :new_institution, fields - - assert_redirected_to(controller: "software_communities_plugin", action: "create_institution_admin") - end - - should "Create foreign institution without city, state and cnpj by post" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "Foreign institution", - "AZ", - "", - "", - "", - "PrivateInstitution" - ) - fields[:institutions][:acronym] = "FI" - - post :new_institution, fields - - assert_redirected_to(controller: "admin_panel", action: "index") - end - - should "Create foreign institution without city, state and cnpj by ajax" do - @controller.stubs(:verify_recaptcha).returns(true) - - fields = InstitutionTestHelper.generate_form_fields( - "Foreign institution", - "AZ", - "", - "", - "", - "PrivateInstitution" - ) - fields[:institutions][:acronym] = "FI" - - xhr :post, :new_institution, fields - - json_response = ActiveSupport::JSON.decode(@response.body) - assert json_response["success"] - end - - should "add environment admins to institution when created via admin panel" do - @controller.stubs(:verify_recaptcha).returns(true) - admin2 = create_user("another_admin").person - admin2.stubs(:has_permission?).returns("true") - @environment.add_admin(admin2) - @environment.save - - fields = InstitutionTestHelper.generate_form_fields( - "Private Institution", - "BR", - "DF", - "Brasilia", - "12.323.557/8900-10", - "PrivateInstitution" - ) - fields[:institutions][:acronym] = "PI" - fields[:edit_institution_page] = false - post :new_institution, fields - - assert(Institution.last.community.admins.include?(admin2) ) - end - -end \ No newline at end of file diff --git a/test/functional/mpog_software_plugin_myprofile_controller_test.rb b/test/functional/mpog_software_plugin_myprofile_controller_test.rb deleted file mode 100644 index 155997e..0000000 --- a/test/functional/mpog_software_plugin_myprofile_controller_test.rb +++ /dev/null @@ -1,260 +0,0 @@ -require File.dirname(__FILE__) + '/../../../../test/test_helper' -require File.dirname(__FILE__) + '/../helpers/software_test_helper' -require File.dirname(__FILE__) + '/../helpers/institution_test_helper' -require( - File.dirname(__FILE__) + - '/../../controllers/software_communities_plugin_myprofile_controller' -) - -class SoftwareCommunitiesPluginMyprofileController; def rescue_action(e) raise e end; -end - -class SoftwareCommunitiesPluginMyprofileControllerTest < ActionController::TestCase - include SoftwareTestHelper - def setup - @controller = SoftwareCommunitiesPluginMyprofileController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - @person = create_user('person').person - @offer = create_user('Angela Silva') - @offer_1 = create_user('Ana de Souza') - @offer_2 = create_user('Angelo Roberto') - - LicenseInfo.create( - :version=>"CC-GPL-V2", - :link=>"http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" - ) - - ProgrammingLanguage.create(:name =>"language") - DatabaseDescription.create(:name => "database") - OperatingSystemName.create(:name=>"Debian") - - login_as(@person.user_login) - @environment = Environment.default - @environment.enable_plugin('SoftwareCommunitiesPlugin') - @environment.save! - end - - attr_accessor :person, :offer - - should 'Add offer to admin in new software' do - @hash_list = software_fields - @software = create_software @hash_list - @software.community.add_admin(@offer.person) - @software.save - assert_equal @offer.person.id, @software.community.admins.last.id - end - - should 'search new offers while creating a new software' do - offer_token = "An" - post :search_offerers, :profile => person.identifier,:q => offer_token - response = JSON.parse(@response.body) - response.sort!{|a, b| a["name"] <=> b["name"]} - assert_equal "Ana de Souza",response[0]["name"] - assert_equal "Angela Silva",response[1]["name"] - assert_equal "Angelo Roberto",response[2]["name"] - end - - should 'make search for Ang for offerer in software creation' do - offer_token = "Ang" - post :search_offerers, :profile => person.identifier,:q => offer_token - response = JSON.parse(@response.body) - response.sort!{|a, b| a["name"] <=> b["name"]} - assert_equal "Angela Silva",response[0]["name"] - assert_equal "Angelo Roberto",response[1]["name"] - end - - should 'not find any offerer for software creation' do - offer_token = "Jos" - post :search_offerers, :profile => person.identifier,:q => offer_token - response = JSON.parse(@response.body) - assert response.count == 0 - end - - should 'create a new software with all fields filled in' do - fields = software_fields - @environment.add_admin(@person) - post( - :new_software, - :profile => @person.identifier, - :community => fields[1], - :license_info => fields[0], - :software_info => fields[2] - ) - assert_equal SoftwareInfo.last.community.name, "Debian" - end - - should 'edit a new software adding basic information' do - fields_software = software_fields - fields = software_edit_basic_fields - - software = create_software fields_software - post( - :edit_software, - :profile => software.community.identifier, - :license => fields[1], - :software => fields[0], - :library => {}, - :operating_system => {}, - :language => {}, - :database => {} - ) - assert_equal SoftwareInfo.last.repository_link, "www.github.com/test" - end - - should 'edit a new software adding specific information' do - fields_software = software_fields - fields = software_edit_specific_fields - - software = create_software fields_software - post( - :edit_software, - :profile => software.community.identifier, - :library => fields[0], - :language => fields[1], - :database => fields[2], - :operating_system => fields[3], - :software => fields[4], - :license => fields[5] - ) - assert_equal SoftwareInfo.last.acronym, "test" - end - - should 'upgrade a generic software to a public software' do - fields_software = software_fields - fields = software_edit_specific_fields - - fields[4]['public_software'] = true - software = create_software fields_software - - post( - :edit_software, - :profile => software.community.identifier, - :library => fields[0], - :language => fields[1], - :database => fields[2], - :operating_system => fields[3], - :software => fields[4], - :license => fields[5] - ) - - assert_equal true, SoftwareInfo.last.public_software? - end - - should "user edit its community institution" do - govPower = GovernmentalPower.create(:name=>"Some Gov Power") - govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") - juridical_nature = JuridicalNature.create(:name => "Autarquia") - - institution = InstitutionTestHelper.create_public_institution( - "Ministerio Publico da Uniao", - "MPU", - "BR", - "DF", - "Gama", - juridical_nature, - govPower, - govSphere, - "12.345.678/9012-45" - ) - - identifier = institution.community.identifier - - fields = InstitutionTestHelper.generate_form_fields( - "institution new name", - "BR", - "DF", - "Gama", - "12.345.678/9012-45", - "PrivateInstitution" - ) - - post( - :edit_institution, - :profile=>institution.community.identifier, - :community=>fields[:community], - :institutions=>fields[:institutions] - ) - - institution = Community[identifier].institution - assert_not_equal "Ministerio Publico da Uniao", institution.community.name - end - - should "not user edit its community institution with wrong values" do - govPower = GovernmentalPower.create(:name=>"Some Gov Power") - govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") - juridical_nature = JuridicalNature.create(:name => "Autarquia") - - institution = InstitutionTestHelper.create_public_institution( - "Ministerio Publico da Uniao", - "MPU", - "BR", - "DF", - "Gama", - juridical_nature, - govPower, - govSphere, - "12.345.678/9012-45" - ) - - identifier = institution.community.identifier - - fields = InstitutionTestHelper.generate_form_fields( - "", - "BR", - "DF", - "Gama", - "6465465465", - "PrivateInstitution" - ) - - post( - :edit_institution, - :profile=>institution.community.identifier, - :community=>fields[:community], - :institutions=>fields[:institutions] - ) - - institution = Community[identifier].institution - assert_equal "Ministerio Publico da Uniao", institution.community.name - assert_equal "12.345.678/9012-45", institution.cnpj - end - - should "create software_info with existing license_info" do - @environment.add_admin(@person) - - post( - :new_software, - :community => {:name =>"New Software"}, - :software_info => {:finality => "", :repository_link => ""}, - :license_info =>{:id => LicenseInfo.last.id}, - :profile => @person.identifier - ) - - assert_equal SoftwareInfo.last.license_info, LicenseInfo.last - end - - should "create software_info with 'Another' license_info" do - license_another = LicenseInfo.create(:version => "Another", :link => "#") - @environment.add_admin(@person) - - another_license_version = "Different License" - another_license_link = "http://diferent.link" - - post( - :new_software, - :community => { :name =>"New Software" }, - :software_info => { :finality => "", :repository_link => "" }, - :license_info =>{ :id => license_another.id }, - :license => { :version => another_license_version, - :link => another_license_link }, - :profile => @person.identifier - ) - - assert_equal SoftwareInfo.last.license_info_id, license_another.id - assert_equal SoftwareInfo.last.license_info.id, nil - assert_equal SoftwareInfo.last.license_info.version, another_license_version - assert_equal SoftwareInfo.last.license_info.link, another_license_link - end - -end diff --git a/test/functional/software_communities_plugin_controller_test.rb b/test/functional/software_communities_plugin_controller_test.rb new file mode 100644 index 0000000..6cf871d --- /dev/null +++ b/test/functional/software_communities_plugin_controller_test.rb @@ -0,0 +1,257 @@ +require File.dirname(__FILE__) + '/../../../../test/test_helper' +require File.dirname(__FILE__) + '/../helpers/institution_test_helper' +require File.dirname(__FILE__) + '/../../controllers/software_communities_plugin_controller' + +class SoftwareCommunitiesPluginController; def rescue_action(e) raise e end; end + +class SoftwareCommunitiesPluginControllerTest < ActionController::TestCase + + def setup + @admin = create_user("adminuser").person + @admin.stubs(:has_permission?).returns("true") + @controller.stubs(:current_user).returns(@admin.user) + + @environment = Environment.default + @environment.enabled_plugins = ['SoftwareCommunitiesPlugin'] + @environment.add_admin(@admin) + @environment.save + + @gov_power = GovernmentalPower.create(:name=>"Some Gov Power") + @gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") + @juridical_nature = JuridicalNature.create(:name => "Autarquia") + @response = ActionController::TestResponse.new + + @institution_list = [] + @institution_list << InstitutionTestHelper.create_public_institution( + "Ministerio Publico da Uniao", + "MPU", + "BR", + "DF", + "Gama", + @juridical_nature, + @gov_power, + @gov_sphere, + "12.345.678/9012-45" + ) + @institution_list << InstitutionTestHelper.create_public_institution( + "Tribunal Regional da Uniao", + "TRU", + "BR", + "DF", + "Brasilia", + @juridical_nature, + @gov_power, + @gov_sphere, + "12.345.678/9012-90" + ) + end + + should "Search for institution with acronym" do + xhr :get, :get_institutions, :query=>"TRU" + + json_response = ActiveSupport::JSON.decode(@response.body) + + assert_equal "Tribunal Regional da Uniao", json_response[0]["value"] + end + + should "Search for institution with name" do + xhr :get, :get_institutions, :query=>"Minis" + + json_response = ActiveSupport::JSON.decode(@response.body) + + assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] + end + + should "search with name or acronym and return a list with institutions" do + xhr :get, :get_institutions, :query=>"uni" + + json_response = ActiveSupport::JSON.decode(@response.body) + + assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] + assert_equal "Tribunal Regional da Uniao", json_response[1]["value"] + end + + should "method create_institution return the html for modal" do + @controller.stubs(:current_user).returns(@admin.user) + xhr :get, :create_institution + assert_template 'create_institution' + end + + should "create new institution with ajax without acronym" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "foo bar", + "BR", + "DF", + "Brasilia", + "12.234.567/8900-10", + "PublicInstitution" + ) + fields[:institutions][:governmental_power] = @gov_power.id + fields[:institutions][:governmental_sphere] = @gov_sphere.id + fields[:institutions][:juridical_nature] = @juridical_nature.id + + xhr :get, :new_institution, fields + + json_response = ActiveSupport::JSON.decode(@response.body) + + assert json_response["success"] + end + + should "not create a institution that already exists" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "Ministerio Publico da Uniao", + "BR", + "DF", + "Brasilia", + "12.234.567/8900-10", + "PublicInstitution" + ) + fields[:institutions][:governmental_power] = @gov_power.id + fields[:institutions][:governmental_sphere] = @gov_sphere.id + fields[:institutions][:juridical_nature] = @juridical_nature.id + + xhr :get, :new_institution, fields + + json_response = ActiveSupport::JSON.decode(@response.body) + + assert !json_response["success"] + end + + should "not create a institution without cnpj" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "Some Private Institution", + "BR", + "DF", + "Brasilia", + "", + "PrivateInstitution" + ) + fields[:institutions][:acronym] = "SPI" + + xhr :get, :new_institution, fields + + json_response = ActiveSupport::JSON.decode(@response.body) + + assert !json_response["success"] + end + + should "verify if institution name already exists" do + xhr :get, :institution_already_exists, :name=>"Ministerio Publico da Uniao" + assert_equal "true", @response.body + + xhr :get, :institution_already_exists, :name=>"Another name here" + assert_equal "false", @response.body + end + + should "hide registration incomplete message" do + xhr :get, :hide_registration_incomplete_percentage, :hide=>true + assert_equal "true", @response.body + end + + should "not hide registration incomplete message" do + xhr :get, :hide_registration_incomplete_percentage, :hide=>false + assert_equal "false", @response.body + end + + should "Create new institution with method post" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "Some Private Institution", + "BR", + "DF", + "Brasilia", + "12.345.567/8900-10", + "PrivateInstitution" + ) + fields[:institutions][:acronym] = "SPI" + + post :new_institution, fields + + assert_redirected_to(controller: "admin_panel", action: "index") + end + + should "not create new institution with method post without cnpj" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "Some Private Institution", + "BR", + "DF", + "Brasilia", + "", + "PrivateInstitution" + ) + fields[:institutions][:acronym] = "SPI" + + post :new_institution, fields + + assert_redirected_to(controller: "software_communities_plugin", action: "create_institution_admin") + end + + should "Create foreign institution without city, state and cnpj by post" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "Foreign institution", + "AZ", + "", + "", + "", + "PrivateInstitution" + ) + fields[:institutions][:acronym] = "FI" + + post :new_institution, fields + + assert_redirected_to(controller: "admin_panel", action: "index") + end + + should "Create foreign institution without city, state and cnpj by ajax" do + @controller.stubs(:verify_recaptcha).returns(true) + + fields = InstitutionTestHelper.generate_form_fields( + "Foreign institution", + "AZ", + "", + "", + "", + "PrivateInstitution" + ) + fields[:institutions][:acronym] = "FI" + + xhr :post, :new_institution, fields + + json_response = ActiveSupport::JSON.decode(@response.body) + assert json_response["success"] + end + + should "add environment admins to institution when created via admin panel" do + @controller.stubs(:verify_recaptcha).returns(true) + admin2 = create_user("another_admin").person + admin2.stubs(:has_permission?).returns("true") + @environment.add_admin(admin2) + @environment.save + + fields = InstitutionTestHelper.generate_form_fields( + "Private Institution", + "BR", + "DF", + "Brasilia", + "12.323.557/8900-10", + "PrivateInstitution" + ) + fields[:institutions][:acronym] = "PI" + fields[:edit_institution_page] = false + post :new_institution, fields + + assert(Institution.last.community.admins.include?(admin2) ) + end + +end \ No newline at end of file diff --git a/test/functional/software_communities_plugin_myprofile_controller_test.rb b/test/functional/software_communities_plugin_myprofile_controller_test.rb new file mode 100644 index 0000000..155997e --- /dev/null +++ b/test/functional/software_communities_plugin_myprofile_controller_test.rb @@ -0,0 +1,260 @@ +require File.dirname(__FILE__) + '/../../../../test/test_helper' +require File.dirname(__FILE__) + '/../helpers/software_test_helper' +require File.dirname(__FILE__) + '/../helpers/institution_test_helper' +require( + File.dirname(__FILE__) + + '/../../controllers/software_communities_plugin_myprofile_controller' +) + +class SoftwareCommunitiesPluginMyprofileController; def rescue_action(e) raise e end; +end + +class SoftwareCommunitiesPluginMyprofileControllerTest < ActionController::TestCase + include SoftwareTestHelper + def setup + @controller = SoftwareCommunitiesPluginMyprofileController.new + @request = ActionController::TestRequest.new + @response = ActionController::TestResponse.new + @person = create_user('person').person + @offer = create_user('Angela Silva') + @offer_1 = create_user('Ana de Souza') + @offer_2 = create_user('Angelo Roberto') + + LicenseInfo.create( + :version=>"CC-GPL-V2", + :link=>"http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" + ) + + ProgrammingLanguage.create(:name =>"language") + DatabaseDescription.create(:name => "database") + OperatingSystemName.create(:name=>"Debian") + + login_as(@person.user_login) + @environment = Environment.default + @environment.enable_plugin('SoftwareCommunitiesPlugin') + @environment.save! + end + + attr_accessor :person, :offer + + should 'Add offer to admin in new software' do + @hash_list = software_fields + @software = create_software @hash_list + @software.community.add_admin(@offer.person) + @software.save + assert_equal @offer.person.id, @software.community.admins.last.id + end + + should 'search new offers while creating a new software' do + offer_token = "An" + post :search_offerers, :profile => person.identifier,:q => offer_token + response = JSON.parse(@response.body) + response.sort!{|a, b| a["name"] <=> b["name"]} + assert_equal "Ana de Souza",response[0]["name"] + assert_equal "Angela Silva",response[1]["name"] + assert_equal "Angelo Roberto",response[2]["name"] + end + + should 'make search for Ang for offerer in software creation' do + offer_token = "Ang" + post :search_offerers, :profile => person.identifier,:q => offer_token + response = JSON.parse(@response.body) + response.sort!{|a, b| a["name"] <=> b["name"]} + assert_equal "Angela Silva",response[0]["name"] + assert_equal "Angelo Roberto",response[1]["name"] + end + + should 'not find any offerer for software creation' do + offer_token = "Jos" + post :search_offerers, :profile => person.identifier,:q => offer_token + response = JSON.parse(@response.body) + assert response.count == 0 + end + + should 'create a new software with all fields filled in' do + fields = software_fields + @environment.add_admin(@person) + post( + :new_software, + :profile => @person.identifier, + :community => fields[1], + :license_info => fields[0], + :software_info => fields[2] + ) + assert_equal SoftwareInfo.last.community.name, "Debian" + end + + should 'edit a new software adding basic information' do + fields_software = software_fields + fields = software_edit_basic_fields + + software = create_software fields_software + post( + :edit_software, + :profile => software.community.identifier, + :license => fields[1], + :software => fields[0], + :library => {}, + :operating_system => {}, + :language => {}, + :database => {} + ) + assert_equal SoftwareInfo.last.repository_link, "www.github.com/test" + end + + should 'edit a new software adding specific information' do + fields_software = software_fields + fields = software_edit_specific_fields + + software = create_software fields_software + post( + :edit_software, + :profile => software.community.identifier, + :library => fields[0], + :language => fields[1], + :database => fields[2], + :operating_system => fields[3], + :software => fields[4], + :license => fields[5] + ) + assert_equal SoftwareInfo.last.acronym, "test" + end + + should 'upgrade a generic software to a public software' do + fields_software = software_fields + fields = software_edit_specific_fields + + fields[4]['public_software'] = true + software = create_software fields_software + + post( + :edit_software, + :profile => software.community.identifier, + :library => fields[0], + :language => fields[1], + :database => fields[2], + :operating_system => fields[3], + :software => fields[4], + :license => fields[5] + ) + + assert_equal true, SoftwareInfo.last.public_software? + end + + should "user edit its community institution" do + govPower = GovernmentalPower.create(:name=>"Some Gov Power") + govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") + juridical_nature = JuridicalNature.create(:name => "Autarquia") + + institution = InstitutionTestHelper.create_public_institution( + "Ministerio Publico da Uniao", + "MPU", + "BR", + "DF", + "Gama", + juridical_nature, + govPower, + govSphere, + "12.345.678/9012-45" + ) + + identifier = institution.community.identifier + + fields = InstitutionTestHelper.generate_form_fields( + "institution new name", + "BR", + "DF", + "Gama", + "12.345.678/9012-45", + "PrivateInstitution" + ) + + post( + :edit_institution, + :profile=>institution.community.identifier, + :community=>fields[:community], + :institutions=>fields[:institutions] + ) + + institution = Community[identifier].institution + assert_not_equal "Ministerio Publico da Uniao", institution.community.name + end + + should "not user edit its community institution with wrong values" do + govPower = GovernmentalPower.create(:name=>"Some Gov Power") + govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") + juridical_nature = JuridicalNature.create(:name => "Autarquia") + + institution = InstitutionTestHelper.create_public_institution( + "Ministerio Publico da Uniao", + "MPU", + "BR", + "DF", + "Gama", + juridical_nature, + govPower, + govSphere, + "12.345.678/9012-45" + ) + + identifier = institution.community.identifier + + fields = InstitutionTestHelper.generate_form_fields( + "", + "BR", + "DF", + "Gama", + "6465465465", + "PrivateInstitution" + ) + + post( + :edit_institution, + :profile=>institution.community.identifier, + :community=>fields[:community], + :institutions=>fields[:institutions] + ) + + institution = Community[identifier].institution + assert_equal "Ministerio Publico da Uniao", institution.community.name + assert_equal "12.345.678/9012-45", institution.cnpj + end + + should "create software_info with existing license_info" do + @environment.add_admin(@person) + + post( + :new_software, + :community => {:name =>"New Software"}, + :software_info => {:finality => "", :repository_link => ""}, + :license_info =>{:id => LicenseInfo.last.id}, + :profile => @person.identifier + ) + + assert_equal SoftwareInfo.last.license_info, LicenseInfo.last + end + + should "create software_info with 'Another' license_info" do + license_another = LicenseInfo.create(:version => "Another", :link => "#") + @environment.add_admin(@person) + + another_license_version = "Different License" + another_license_link = "http://diferent.link" + + post( + :new_software, + :community => { :name =>"New Software" }, + :software_info => { :finality => "", :repository_link => "" }, + :license_info =>{ :id => license_another.id }, + :license => { :version => another_license_version, + :link => another_license_link }, + :profile => @person.identifier + ) + + assert_equal SoftwareInfo.last.license_info_id, license_another.id + assert_equal SoftwareInfo.last.license_info.id, nil + assert_equal SoftwareInfo.last.license_info.version, another_license_version + assert_equal SoftwareInfo.last.license_info.link, another_license_link + end + +end diff --git a/test/unit/mpog_person_test.rb b/test/unit/mpog_person_test.rb deleted file mode 100644 index b29b189..0000000 --- a/test/unit/mpog_person_test.rb +++ /dev/null @@ -1,95 +0,0 @@ -# encoding: utf-8 - -require File.dirname(__FILE__) + '/../../../../test/test_helper' -require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' - -class SoftwareCommunitiesPluginPersonTest < ActiveSupport::TestCase - include PluginTestHelper - - def setup - @plugin = SoftwareCommunitiesPlugin.new - - @user = fast_create(User) - @person = create_person( - "My Name", - "user@email.com", - "123456", - "123456", - "user@secondary_email.com", - "Any State", - "Some City" - ) - end - - def teardown - @plugin = nil - end - - should 'be a noosfero plugin' do - assert_kind_of Noosfero::Plugin, @plugin - end - - - should 'return true when the email has not gov.br,jus.br,leg.br or mp.br' do - @user.secondary_email = "test_email@com.br" - @user.email = "test_email@net.br" - assert @user.save - end - - should 'save person with a valid full name' do - p = Person::new :name=>"S1mpl3 0f N4m3", :identifier=>"simple-name" - p.user = fast_create(:user) - - assert_equal true, p.save - end - - should 'save person with a valid full name with accents' do - name = 'Jônatàs dâ Sîlvã Jösé' - identifier = "jonatas-jose-da-silva" - p = Person::new :name=>name, :identifier=>identifier - p.user = fast_create(:user) - - assert_equal true, p.save - end - - should 'not save person whose name has not capital letter' do - p = Person::new :name=>"simple name" - assert !p.save, _("Name Should begin with a capital letter and no special characters") - end - - should 'not save person whose name has special characters' do - p = Person::new :name=>"Simple N@me" - - assert !p.save , _("Name Should begin with a capital letter and no special characters") - end - - should 'calculate the percentege of person incomplete fields' do - @person.cell_phone = "76888919" - @person.contact_phone = "987654321" - - assert_equal(67, @plugin.calc_percentage_registration(@person)) - - @person.comercial_phone = "11223344" - @person.country = "I dont know" - @person.state = "I dont know" - @person.city = "I dont know" - @person.organization_website = "www.whatever.com" - @person.image = Image::new :uploaded_data=>fixture_file_upload('/files/rails.png', 'image/png') - @person.save - - assert_equal(100, @plugin.calc_percentage_registration(@person)) - end - - should 'get a list of softwares of a person' do - software1 = create_software_info "noosfero" - software2 = create_software_info "colab" - community = create_community "simple_community" - - software1.community.add_member @person - software1.save! - community.add_member @person - community.save! - - assert_equal 1, @person.softwares.count - end -end diff --git a/test/unit/mpog_software_plugin_user_test.rb b/test/unit/mpog_software_plugin_user_test.rb deleted file mode 100644 index 7f9655a..0000000 --- a/test/unit/mpog_software_plugin_user_test.rb +++ /dev/null @@ -1,138 +0,0 @@ -require File.dirname(__FILE__) + '/../../../../test/test_helper' -require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' - -class SoftwareCommunitiesPluginUserTest < ActiveSupport::TestCase - include PluginTestHelper - - should 'not save user whose both email and secondary email are the same' do - - user = fast_create(User) - user.email = "test@email.com" - user.secondary_email = "test@email.com" - - assert !user.save - end - - should 'not save user whose email and secondary email have been taken' do - user1 = create_default_user - user2 = fast_create(User) - - user2.email = "primary@email.com" - user2.secondary_email = "secondary@email.com" - assert !user2.save - end - - should 'not save user whose email has already been used' do - user1 = create_default_user - user2 = fast_create(User) - - user2.email = "primary@email.com" - user2.secondary_email = "noosfero@email.com" - assert !user2.save - end - - should 'not save user whose email has been taken another in users secondary email' do - user1 = create_default_user - user2 = fast_create(User) - - user2.login = "another-login" - user2.email = "secondary@email.com" - user2.secondary_email = "noosfero@email.com" - assert !user2.save - end - - should 'not save user whose secondary email has been taken used in another users email' do - user1 = create_default_user - user2 = fast_create(User) - - user2.login = "another-login" - user2.email = "noosfero@email.com" - user2.secondary_email = "primary@email.com" - assert !user2.save - end - - should 'not save user whose secondary email has already been used in another users secondary email' do - user1 = create_default_user - user2 = fast_create(User) - - user2.login = "another-login" - user2.email = "noosfero@email.com" - user2.secondary_email = "secondary@email.com" - assert !user2.save - end - - should 'not save user whose secondary email is in the wrong format' do - user = fast_create(User) - user.email = "test@email.com" - user.secondary_email = "notarightformat.com" - - assert !user.save - - user.secondary_email = "not@arightformatcom" - - assert !user.save - end - - should 'save more than one user without secondary email' do - user = fast_create(User) - user.email = "test@email.com" - user.secondary_email = "" - user.save - - user2 = fast_create(User) - user2.email = "test2@email.com" - user2.secondary_email = "" - assert user2.save - end - should 'return an error if secondary email is governmental and primary is not' do - invalid_msg = "The governamental email must be the primary one." - user = fast_create(User) - - user.email = "test@email.com" - user.secondary_email = "test@gov.br" - - assert !user.save - assert user.errors.full_messages.include?(invalid_msg) - end - - should 'have institution if email is governmental' do - user = fast_create(User) - - user.email = "testtest@gov.br" - - user.institutions = [] - assert !user.save, "this should not save" - - gov_power = GovernmentalPower.create(:name=>"Some Gov Power") - gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") - juridical_nature = JuridicalNature.create(:name => "Autarquia") - institution = create_public_institution( - "Ministerio Publico da Uniao", - "MPU", - "BR", - "DF", - "Gama", - juridical_nature, - gov_power, - gov_sphere, - "44.555.666/7777-88" - ) - institution.save! - - user.institutions << institution - assert user.save, "this should save" - end - - private - - def create_default_user - user = fast_create(User) - user.login = "a-login" - user.email = "primary@email.com" - user.secondary_email = "secondary@email.com" - user.save - - return user - end - -end diff --git a/test/unit/software_communities_person_test.rb b/test/unit/software_communities_person_test.rb new file mode 100644 index 0000000..b29b189 --- /dev/null +++ b/test/unit/software_communities_person_test.rb @@ -0,0 +1,95 @@ +# encoding: utf-8 + +require File.dirname(__FILE__) + '/../../../../test/test_helper' +require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' + +class SoftwareCommunitiesPluginPersonTest < ActiveSupport::TestCase + include PluginTestHelper + + def setup + @plugin = SoftwareCommunitiesPlugin.new + + @user = fast_create(User) + @person = create_person( + "My Name", + "user@email.com", + "123456", + "123456", + "user@secondary_email.com", + "Any State", + "Some City" + ) + end + + def teardown + @plugin = nil + end + + should 'be a noosfero plugin' do + assert_kind_of Noosfero::Plugin, @plugin + end + + + should 'return true when the email has not gov.br,jus.br,leg.br or mp.br' do + @user.secondary_email = "test_email@com.br" + @user.email = "test_email@net.br" + assert @user.save + end + + should 'save person with a valid full name' do + p = Person::new :name=>"S1mpl3 0f N4m3", :identifier=>"simple-name" + p.user = fast_create(:user) + + assert_equal true, p.save + end + + should 'save person with a valid full name with accents' do + name = 'Jônatàs dâ Sîlvã Jösé' + identifier = "jonatas-jose-da-silva" + p = Person::new :name=>name, :identifier=>identifier + p.user = fast_create(:user) + + assert_equal true, p.save + end + + should 'not save person whose name has not capital letter' do + p = Person::new :name=>"simple name" + assert !p.save, _("Name Should begin with a capital letter and no special characters") + end + + should 'not save person whose name has special characters' do + p = Person::new :name=>"Simple N@me" + + assert !p.save , _("Name Should begin with a capital letter and no special characters") + end + + should 'calculate the percentege of person incomplete fields' do + @person.cell_phone = "76888919" + @person.contact_phone = "987654321" + + assert_equal(67, @plugin.calc_percentage_registration(@person)) + + @person.comercial_phone = "11223344" + @person.country = "I dont know" + @person.state = "I dont know" + @person.city = "I dont know" + @person.organization_website = "www.whatever.com" + @person.image = Image::new :uploaded_data=>fixture_file_upload('/files/rails.png', 'image/png') + @person.save + + assert_equal(100, @plugin.calc_percentage_registration(@person)) + end + + should 'get a list of softwares of a person' do + software1 = create_software_info "noosfero" + software2 = create_software_info "colab" + community = create_community "simple_community" + + software1.community.add_member @person + software1.save! + community.add_member @person + community.save! + + assert_equal 1, @person.softwares.count + end +end diff --git a/test/unit/software_communities_plugin_user_test.rb b/test/unit/software_communities_plugin_user_test.rb new file mode 100644 index 0000000..7f9655a --- /dev/null +++ b/test/unit/software_communities_plugin_user_test.rb @@ -0,0 +1,138 @@ +require File.dirname(__FILE__) + '/../../../../test/test_helper' +require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' + +class SoftwareCommunitiesPluginUserTest < ActiveSupport::TestCase + include PluginTestHelper + + should 'not save user whose both email and secondary email are the same' do + + user = fast_create(User) + user.email = "test@email.com" + user.secondary_email = "test@email.com" + + assert !user.save + end + + should 'not save user whose email and secondary email have been taken' do + user1 = create_default_user + user2 = fast_create(User) + + user2.email = "primary@email.com" + user2.secondary_email = "secondary@email.com" + assert !user2.save + end + + should 'not save user whose email has already been used' do + user1 = create_default_user + user2 = fast_create(User) + + user2.email = "primary@email.com" + user2.secondary_email = "noosfero@email.com" + assert !user2.save + end + + should 'not save user whose email has been taken another in users secondary email' do + user1 = create_default_user + user2 = fast_create(User) + + user2.login = "another-login" + user2.email = "secondary@email.com" + user2.secondary_email = "noosfero@email.com" + assert !user2.save + end + + should 'not save user whose secondary email has been taken used in another users email' do + user1 = create_default_user + user2 = fast_create(User) + + user2.login = "another-login" + user2.email = "noosfero@email.com" + user2.secondary_email = "primary@email.com" + assert !user2.save + end + + should 'not save user whose secondary email has already been used in another users secondary email' do + user1 = create_default_user + user2 = fast_create(User) + + user2.login = "another-login" + user2.email = "noosfero@email.com" + user2.secondary_email = "secondary@email.com" + assert !user2.save + end + + should 'not save user whose secondary email is in the wrong format' do + user = fast_create(User) + user.email = "test@email.com" + user.secondary_email = "notarightformat.com" + + assert !user.save + + user.secondary_email = "not@arightformatcom" + + assert !user.save + end + + should 'save more than one user without secondary email' do + user = fast_create(User) + user.email = "test@email.com" + user.secondary_email = "" + user.save + + user2 = fast_create(User) + user2.email = "test2@email.com" + user2.secondary_email = "" + assert user2.save + end + should 'return an error if secondary email is governmental and primary is not' do + invalid_msg = "The governamental email must be the primary one." + user = fast_create(User) + + user.email = "test@email.com" + user.secondary_email = "test@gov.br" + + assert !user.save + assert user.errors.full_messages.include?(invalid_msg) + end + + should 'have institution if email is governmental' do + user = fast_create(User) + + user.email = "testtest@gov.br" + + user.institutions = [] + assert !user.save, "this should not save" + + gov_power = GovernmentalPower.create(:name=>"Some Gov Power") + gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") + juridical_nature = JuridicalNature.create(:name => "Autarquia") + institution = create_public_institution( + "Ministerio Publico da Uniao", + "MPU", + "BR", + "DF", + "Gama", + juridical_nature, + gov_power, + gov_sphere, + "44.555.666/7777-88" + ) + institution.save! + + user.institutions << institution + assert user.save, "this should save" + end + + private + + def create_default_user + user = fast_create(User) + user.login = "a-login" + user.email = "primary@email.com" + user.secondary_email = "secondary@email.com" + user.save + + return user + end + +end diff --git a/views/mpog_software_plugin/_institution.html.erb b/views/mpog_software_plugin/_institution.html.erb deleted file mode 100644 index 7b59d89..0000000 --- a/views/mpog_software_plugin/_institution.html.erb +++ /dev/null @@ -1,129 +0,0 @@ -

<%= _('New Institution') %>

- -<% if environment.enabled?('admin_must_approve_new_communities') %> -
- <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> -
-<%end %> - -<% unless flash[:errors].nil? %> -
-

<%= _("Can`t create new Institution: #{flash[:errors].length} errors") %>

-
    - <% flash[:errors].each do |error| %> -
  • <%= error %>
  • - <% end %> -
-
-<% end %> - -
- -
-
- <%= _("All fields with (*) are mandatory") %> -
-
- <%= labelled_form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> - <%= hidden_field_tag "edit_institution_page", false %> - <%= fields_for :institutions do |inst| %> - -
- - - -
-
- - <%= required f.text_field(:name) %> - <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> - - -
- <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> - <%= required inst.text_field(:corporate_name) %> -
-
- - <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}) %> - - -
- - <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}) %> -
-
- - <%= required f.text_field(:city) %> - - - -
- <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> - <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field") %> -
-
- - -
- <%= hidden_field_tag "acronym_translate", _("Acronym") %> - <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> - <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> - <%= inst.text_field(:acronym) %> -
-
- - -
- <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> - <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>0})%> -
-
- - -
- <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> - <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=>0})%> -
-
- -
- <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> - <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=>0})%> -
-
- - -
- <%= _("SISP?") %> - <% if @show_sisp_field %> - <%= inst.label("sisp" ,_("Yes")) %> - <%= inst.radio_button(:sisp, true) %> - <%= inst.label("sisp" ,_("No")) %> - <%= inst.radio_button(:sisp, false, :checked=>"checked") %> - <% else %> - <%= inst.label("sisp", _("No")) %> - <% end %> -
-
-
- - <% if @url_token == "create_institution_admin" %> - <%= submit_button :save, _('Save') %> - <%else%> -
- <%= link_to(_('Save'), '#', :id=>'save_institution_button', :class=>'button with-text icon-add') %> -
- <%= hidden_field_tag :institution_error_message, _("Could not send the form data to the server") %> - <%end%> - - <% end %> - - <% end %> -
-<%= hidden_field_tag :loading_message, _("Creating institution") %> diff --git a/views/mpog_software_plugin/create_institution.html.erb b/views/mpog_software_plugin/create_institution.html.erb deleted file mode 100644 index 037140f..0000000 --- a/views/mpog_software_plugin/create_institution.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render :partial => "institution" %> diff --git a/views/mpog_software_plugin/create_institution_admin.html.erb b/views/mpog_software_plugin/create_institution_admin.html.erb deleted file mode 100644 index 037140f..0000000 --- a/views/mpog_software_plugin/create_institution_admin.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render :partial => "institution" %> diff --git a/views/mpog_software_plugin_myprofile/_database_fields.html.erb b/views/mpog_software_plugin_myprofile/_database_fields.html.erb deleted file mode 100644 index e0b994e..0000000 --- a/views/mpog_software_plugin_myprofile/_database_fields.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<%= fields_for :database_description, @database_description do |db| %> - -
- <% database = [] if database.blank? %> - <% DatabaseHelper.database_as_tables(database).each do |tab| %> - <%= tab.call %> - <%end%> -
- - -<%= link_to _('New Database'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-databases"%> -<% end %> diff --git a/views/mpog_software_plugin_myprofile/_language_fields.html.erb b/views/mpog_software_plugin_myprofile/_language_fields.html.erb deleted file mode 100644 index a7d31a1..0000000 --- a/views/mpog_software_plugin_myprofile/_language_fields.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<%= fields_for :software_language, @software_language do |lng| %> - -
- <% languages = [] if languages.blank? %> - <% SoftwareLanguageHelper.language_as_tables(languages).each do |tab| %> - <%= tab.call %> - <%end%> -
- - -<%= link_to _('New language'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-languages"%> -<% end %> \ No newline at end of file diff --git a/views/mpog_software_plugin_myprofile/_library_fields.html.erb b/views/mpog_software_plugin_myprofile/_library_fields.html.erb deleted file mode 100644 index 332654b..0000000 --- a/views/mpog_software_plugin_myprofile/_library_fields.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<%= fields_for :library ,@library do |lib| %> - -
- <% libraries = [] if libraries.blank? %> - <% LibraryHelper.libraries_as_tables(libraries).each do |tab| %> - <%= tab.call %> - <% end %> -
- - -<%= link_to _('New Library'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-libraries"%> -<% end %> diff --git a/views/mpog_software_plugin_myprofile/_license_info_fields.html.erb b/views/mpog_software_plugin_myprofile/_license_info_fields.html.erb deleted file mode 100644 index 84b71e7..0000000 --- a/views/mpog_software_plugin_myprofile/_license_info_fields.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -<% LicenseHelper.getListLicenses.each do | license | %> - -<% end %> - -

<%= _("License Version: ") %>

-<%= text_field_tag "license_info[version]", license_version, :id=>"license_info_version", :class=>"license_info_version", :placeholder=>_('Autocomplete field, type some license') %> -<%= hidden_field_tag "license[license_infos_id]", license_id, :id=>"license_info_id", :class=>"license_info_id", :data => {:label=>license_version} %> - -<%= _("Read license") %> - -
- <%= labelled_text_field "Licence version", "license[version]", another_version, :id=>"licence_version" %> -
- <%= labelled_text_field "Licence link", "license[link]", another_link, :id=>"licence_link" %> -
diff --git a/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb b/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb deleted file mode 100644 index 3f0c2bf..0000000 --- a/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -

<%= @profile.software_info.name + _(' Information') %>

- -

<%= _("Acronym") %>

-
- <%= text_field_tag("software[acronym]", @profile.software_info.acronym, :maxlength=>"10") %> -
- -

<%= _("Finality") %>

-
- <%= text_area_tag "software[finality]", @profile.software_info.finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140%> -
- -
- <%= render :partial => "license_info_fields", :locals => { - :license_version => @license_version, - :license_id => @license_id, - :another_version => @another_license_version, - :another_link => @another_license_link - } - %> -
- -

<%= _("Link to Repository") %>

- - diff --git a/views/mpog_software_plugin_myprofile/_operating_system_fields.html.erb b/views/mpog_software_plugin_myprofile/_operating_system_fields.html.erb deleted file mode 100644 index 7585db5..0000000 --- a/views/mpog_software_plugin_myprofile/_operating_system_fields.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<%= fields_for :operating_systems ,@operating_systems do |lib| %> - -
- <% operating_systems_fields = [] if operating_systems_fields.nil? %> - <% OperatingSystemHelper.operating_system_as_tables(operating_systems_fields).each do |tab| %> - <%= tab.call %> - <% end %> -
- - -<%= link_to _('New Operating System'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-operating_systems"%> -<% end %> diff --git a/views/mpog_software_plugin_myprofile/_public_software_info.html.erb b/views/mpog_software_plugin_myprofile/_public_software_info.html.erb deleted file mode 100644 index c382a5e..0000000 --- a/views/mpog_software_plugin_myprofile/_public_software_info.html.erb +++ /dev/null @@ -1,103 +0,0 @@ -

<%= _('Edit software') %>

- -
-

<%= _("Operating Platform") %>

- <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%> -
- -
-

<%= _("Features") %>

- <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%> -
- -
-

<%= _("Libraries") %>

- - <%= render :partial => 'library_fields', :locals => {:object_name => 'community', :profile => @community, :libraries => @list_libraries } %> -
-
- -
-

<%= _("Operating Systems") %>

- - <%= render :partial => 'operating_system_fields', :locals => {:object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %> -
-
- -
-
-

<%= _("Programming languages") %>

- - <%= render :partial => 'language_fields', :locals => { :object_name => 'community', :profile => @community, :languages => @list_languages } %> -
- -
-
-

<%= _("Databases") %>

- - <%= render :partial => 'database_fields', :locals => {:object_name => 'community', :profile => @community, :database => @list_databases } %> -
- -
-

<%= _("Demonstration url") %>

- <%= text_field_tag("software[demonstration_url]", @software_info.demonstration_url) %> -
- -
- -
- <% if @disabled_public_software_field == true %> - <%= check_box_tag("software[public_software]", "true", @software_info.public_software?, :disabled => "disabled") %> - <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_disabled" %> - <% else %> - <%= check_box_tag("software[public_software]", "true", @software_info.public_software?) %> - <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_enabled" %> - <% end %> -
-

<%= _("Public Software") %>

-
- <%= label_tag _("Adherent to e-PING ?") %> - - <%= label_tag "e_ping_true", "Yes" %> - <%= radio_button_tag("software[e_ping]", true, @software_info.e_ping)%> - <%= label_tag "e_ping_false", "No"%> - <%= radio_button_tag("software[e_ping]", false, !@software_info.e_ping)%> -
- -
- <%= label_tag _("Adherent to e-MAG ?") %> - - <%= label_tag "e_mag_true", "Yes"%> - <%= radio_button_tag("software[e_mag]", true, @software_info.e_mag)%> - <%= label_tag "e_mag_false", "No"%> - <%= radio_button_tag("software[e_mag]", false, !@software_info.e_mag)%> -
- -
- <%= label_tag _("Adherent to ICP-Brasil ?") %> - - <%= label_tag "icp_brasil_true", "Yes"%> - <%= radio_button_tag("software[icp_brasil]", true, @software_info.icp_brasil)%> - <%= label_tag "icp_brasil_false", "No"%> - <%= radio_button_tag("software[icp_brasil]", false, !@software_info.icp_brasil)%> -
- -
- <%= label_tag _("Adherent to e-ARQ ?") %> - - <%= label_tag "e_arq_true", "Yes"%> - <%= radio_button_tag("software[e_arq]", true, @software_info.e_arq)%> - <%= label_tag "e_arq_false", "No"%> - <%= radio_button_tag("software[e_arq]", false, !@software_info.e_arq)%> -
- -
- <%= label_tag _("Internacionalizable ?") %> - - <%= label_tag "intern_true", "Yes" %> - <%= radio_button_tag("software[intern]", true, @software_info.intern)%> - <%= label_tag "intern_false", "No"%> - <%= radio_button_tag("software[intern]", false, !@software_info.intern)%> -
-
-
diff --git a/views/mpog_software_plugin_myprofile/edit_institution.html.erb b/views/mpog_software_plugin_myprofile/edit_institution.html.erb deleted file mode 100644 index db95e3a..0000000 --- a/views/mpog_software_plugin_myprofile/edit_institution.html.erb +++ /dev/null @@ -1,119 +0,0 @@ -

<%= _('Edit Institution') %>

- -<% if environment.enabled?('admin_must_approve_new_communities') %> -
- <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> -
-<%end %> - -<% unless flash[:errors].nil? %> -
-

<%= _("Can`t create new Institution: #{flash[:errors].length} errors") %>

-
    - <% flash[:errors].each do |error| %> -
  • <%= error %>
  • - <% end %> -
-
-<% end %> - -
- -
-
- <%= _("All fields with (*) are mandatory") %> -
-
- <%= labelled_form_for :community,:html => { :multipart => true, :id=>"institution_form" } do |f| %> - <%= hidden_field_tag "edit_institution_page", true %> - <%= fields_for :institutions do |inst| %> - -
- - - -
-
- - <%= required f.text_field(:name, :value => @institution.community.name) %> - <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> - - -
- <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> - <%= required inst.text_field(:corporate_name, :value => @institution.corporate_name) %> -
-
- - <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}, :selected => @institution.community.country) %> - - -
- - <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}, :selected => @institution.community.state) %> -
-
- - <%= required f.text_field(:city, :value => @institution.community.city) %> - - - -
- <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> - <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field", :value => @institution.cnpj) %> -
-
- - -
- <%= hidden_field_tag "acronym_translate", _("Acronym") %> - <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> - <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> - <%= inst.text_field(:acronym, :value => @institution.acronym) %> -
-
- - -
- <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> - <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>@institution.governmental_power_id})%> -
-
- - -
- <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> - <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=> @institution.governmental_sphere_id})%> -
-
- -
- <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> - <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=> @institution.juridical_nature_id})%> -
-
- - -
- <%= _("SISP?") %> - <% if @show_sisp_field %> - <%= inst.label("sisp" ,_("Yes")) %> - <%= inst.radio_button(:sisp, true, :checked=>(@institution.sisp ? true : false)) %> - <%= inst.label("sisp" ,_("No")) %> - <%= inst.radio_button(:sisp, false, :checked=>(@institution.sisp ? false : true)) %> - <% else %> - <%= inst.label("sisp", _("No")) %> - <% end %> -
-
-
- - <%= submit_button :save, _('Save') %> - <% end %> -<% end %> - diff --git a/views/mpog_software_plugin_myprofile/edit_software.html.erb b/views/mpog_software_plugin_myprofile/edit_software.html.erb deleted file mode 100644 index 581f2bc..0000000 --- a/views/mpog_software_plugin_myprofile/edit_software.html.erb +++ /dev/null @@ -1,20 +0,0 @@ -<% tabs = [] %> - -<%= error_messages_for :software_info %> - -<%= labelled_form_for :software_communities_plugin_myprofile, :html => { :multipart => true, :id => 'edit-form' } do |f| %> - -<% tabs << {:title => _("Software"), :id => 'basic-info', - :content => (render :partial => 'main_software_editor_extras')} %> - -<% tabs << {:title => _("Specifications"), :id => 'especific-info', - :content => (render :partial => 'public_software_info')} %> - -<%= render_tabs(tabs) %> - -<% button_bar do %> - <%= submit_button(:save, _('Save')) %> - <%= submit_button(:save, _('Save and Configure Community')) %> - <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> -<% end %> -<% end %> diff --git a/views/mpog_software_plugin_myprofile/new_software.html.erb b/views/mpog_software_plugin_myprofile/new_software.html.erb deleted file mode 100644 index 3d56b9b..0000000 --- a/views/mpog_software_plugin_myprofile/new_software.html.erb +++ /dev/null @@ -1,70 +0,0 @@ -<%= stylesheet_link_tag('plugins/software_communities/mpog-software') %> - -
-

<%= _("Step 1/2 - Software Creation")%>

-
- -

<%= _('Creating new software') %>

- -<% if environment.enabled?('admin_must_approve_new_communities') %> -
- <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> -
-<%end %> - -<% unless @errors.blank? %> -
-

<%= _("Can`t create new software: #{@errors.length} errors") %>

-
    - <% @errors.each do |error| %> -
  • <%= error %>
  • - <% end %> -
-
-<% end %> - -
- <%= labelled_form_for :community, :html => { :multipart => true } do |f| %> - - <%= required_fields_message %> - - <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %> - -
- <%= environment.default_hostname %>/ - <%= required text_field(:community, :name, :size => 30, :maxlength => 100) %> -
- - <%= fields_for @software_info do |swf| %> -
- <%= swf.label("finality" ,_("Finality"), :class=>"formlabel") %> - <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140) %> -
- <% end %> - -
- <%= render :partial => "license_info_fields", :locals => { - :license_version => "", - :license_id => "", - :another_version=>"", - :another_link=>"" - } %> -
- - <%= fields_for @software_info do |swf| %> -
- <%= swf.label "repository_url", _("Link to Repository: "), :class => "formlabel"%> - <%= swf.text_field :repository_link, :class => "improve_input_size" %> -
- <% end %> - - <%= hidden_field_tag('back_to', @back_to) %> - - <% button_bar do %> - <%= submit_button(:save, _('Create')) %> - <%= button(:cancel, _('Cancel'), @back_to ) %> - <% end %> - - <% end %> - -
diff --git a/views/search/_mpog_search_form.html.erb b/views/search/_mpog_search_form.html.erb deleted file mode 100644 index 405ceaa..0000000 --- a/views/search/_mpog_search_form.html.erb +++ /dev/null @@ -1,57 +0,0 @@ -
- <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, - :method => 'get', :class => 'search_form' ) do %> - -
-
- <%= hidden_field_tag :display, params[:display] %> - <%= hidden_field_tag :filter, params[:filter] %> - -
- - <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50, :placeholder=>_("Type words about the software_info you're looking for") %> - - - <%= submit_button(:search, _('Filter')) %> -
- <%= render :partial => 'search_form_extra_fields' %> - <%= render :partial => 'catalog_filter' %> - - -
-
- <%= "#{@software_count} Software(s)" %> -
- -
-
- Show: - <%= select_tag("software_display", - options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) - ) %> -
- -
- Sort by: - <%= select_tag("sort", - options_for_select( - [ - [_("Name A-Z"), 'asc'], - [_("Name Z-A"), 'desc'], - [_("Relevance"), 'relevance'] - ], :selected=>params[:sort]) - ) %> -
-
-
- <% end %> - - <% if @empty_query %> - <% hint = environment.search_hints[@asset] %> - <% if hint and !hint.blank? %> -
<%= hint %>
- <% end %> - <% end %> - -
-
diff --git a/views/search/_software_search_form.html.erb b/views/search/_software_search_form.html.erb new file mode 100644 index 0000000..405ceaa --- /dev/null +++ b/views/search/_software_search_form.html.erb @@ -0,0 +1,57 @@ +
+ <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, + :method => 'get', :class => 'search_form' ) do %> + +
+
+ <%= hidden_field_tag :display, params[:display] %> + <%= hidden_field_tag :filter, params[:filter] %> + +
+ + <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50, :placeholder=>_("Type words about the software_info you're looking for") %> + + + <%= submit_button(:search, _('Filter')) %> +
+ <%= render :partial => 'search_form_extra_fields' %> + <%= render :partial => 'catalog_filter' %> + + +
+
+ <%= "#{@software_count} Software(s)" %> +
+ +
+
+ Show: + <%= select_tag("software_display", + options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) + ) %> +
+ +
+ Sort by: + <%= select_tag("sort", + options_for_select( + [ + [_("Name A-Z"), 'asc'], + [_("Name Z-A"), 'desc'], + [_("Relevance"), 'relevance'] + ], :selected=>params[:sort]) + ) %> +
+
+
+ <% end %> + + <% if @empty_query %> + <% hint = environment.search_hints[@asset] %> + <% if hint and !hint.blank? %> +
<%= hint %>
+ <% end %> + <% end %> + +
+
diff --git a/views/software_communities_plugin/_institution.html.erb b/views/software_communities_plugin/_institution.html.erb new file mode 100644 index 0000000..7b59d89 --- /dev/null +++ b/views/software_communities_plugin/_institution.html.erb @@ -0,0 +1,129 @@ +

<%= _('New Institution') %>

+ +<% if environment.enabled?('admin_must_approve_new_communities') %> +
+ <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> +
+<%end %> + +<% unless flash[:errors].nil? %> +
+

<%= _("Can`t create new Institution: #{flash[:errors].length} errors") %>

+
    + <% flash[:errors].each do |error| %> +
  • <%= error %>
  • + <% end %> +
+
+<% end %> + +
+ +
+
+ <%= _("All fields with (*) are mandatory") %> +
+
+ <%= labelled_form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> + <%= hidden_field_tag "edit_institution_page", false %> + <%= fields_for :institutions do |inst| %> + +
+ + + +
+
+ + <%= required f.text_field(:name) %> + <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> + + +
+ <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> + <%= required inst.text_field(:corporate_name) %> +
+
+ + <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}) %> + + +
+ + <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}) %> +
+
+ + <%= required f.text_field(:city) %> + + + +
+ <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> + <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field") %> +
+
+ + +
+ <%= hidden_field_tag "acronym_translate", _("Acronym") %> + <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> + <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> + <%= inst.text_field(:acronym) %> +
+
+ + +
+ <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> + <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>0})%> +
+
+ + +
+ <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> + <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=>0})%> +
+
+ +
+ <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> + <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=>0})%> +
+
+ + +
+ <%= _("SISP?") %> + <% if @show_sisp_field %> + <%= inst.label("sisp" ,_("Yes")) %> + <%= inst.radio_button(:sisp, true) %> + <%= inst.label("sisp" ,_("No")) %> + <%= inst.radio_button(:sisp, false, :checked=>"checked") %> + <% else %> + <%= inst.label("sisp", _("No")) %> + <% end %> +
+
+
+ + <% if @url_token == "create_institution_admin" %> + <%= submit_button :save, _('Save') %> + <%else%> +
+ <%= link_to(_('Save'), '#', :id=>'save_institution_button', :class=>'button with-text icon-add') %> +
+ <%= hidden_field_tag :institution_error_message, _("Could not send the form data to the server") %> + <%end%> + + <% end %> + + <% end %> +
+<%= hidden_field_tag :loading_message, _("Creating institution") %> diff --git a/views/software_communities_plugin/create_institution.html.erb b/views/software_communities_plugin/create_institution.html.erb new file mode 100644 index 0000000..037140f --- /dev/null +++ b/views/software_communities_plugin/create_institution.html.erb @@ -0,0 +1 @@ +<%= render :partial => "institution" %> diff --git a/views/software_communities_plugin/create_institution_admin.html.erb b/views/software_communities_plugin/create_institution_admin.html.erb new file mode 100644 index 0000000..037140f --- /dev/null +++ b/views/software_communities_plugin/create_institution_admin.html.erb @@ -0,0 +1 @@ +<%= render :partial => "institution" %> diff --git a/views/software_communities_plugin_myprofile/_database_fields.html.erb b/views/software_communities_plugin_myprofile/_database_fields.html.erb new file mode 100644 index 0000000..e0b994e --- /dev/null +++ b/views/software_communities_plugin_myprofile/_database_fields.html.erb @@ -0,0 +1,12 @@ +<%= fields_for :database_description, @database_description do |db| %> + +
+ <% database = [] if database.blank? %> + <% DatabaseHelper.database_as_tables(database).each do |tab| %> + <%= tab.call %> + <%end%> +
+ + +<%= link_to _('New Database'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-databases"%> +<% end %> diff --git a/views/software_communities_plugin_myprofile/_language_fields.html.erb b/views/software_communities_plugin_myprofile/_language_fields.html.erb new file mode 100644 index 0000000..a7d31a1 --- /dev/null +++ b/views/software_communities_plugin_myprofile/_language_fields.html.erb @@ -0,0 +1,12 @@ +<%= fields_for :software_language, @software_language do |lng| %> + +
+ <% languages = [] if languages.blank? %> + <% SoftwareLanguageHelper.language_as_tables(languages).each do |tab| %> + <%= tab.call %> + <%end%> +
+ + +<%= link_to _('New language'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-languages"%> +<% end %> \ No newline at end of file diff --git a/views/software_communities_plugin_myprofile/_library_fields.html.erb b/views/software_communities_plugin_myprofile/_library_fields.html.erb new file mode 100644 index 0000000..332654b --- /dev/null +++ b/views/software_communities_plugin_myprofile/_library_fields.html.erb @@ -0,0 +1,12 @@ +<%= fields_for :library ,@library do |lib| %> + +
+ <% libraries = [] if libraries.blank? %> + <% LibraryHelper.libraries_as_tables(libraries).each do |tab| %> + <%= tab.call %> + <% end %> +
+ + +<%= link_to _('New Library'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-libraries"%> +<% end %> diff --git a/views/software_communities_plugin_myprofile/_license_info_fields.html.erb b/views/software_communities_plugin_myprofile/_license_info_fields.html.erb new file mode 100644 index 0000000..84b71e7 --- /dev/null +++ b/views/software_communities_plugin_myprofile/_license_info_fields.html.erb @@ -0,0 +1,15 @@ +<% LicenseHelper.getListLicenses.each do | license | %> + +<% end %> + +

<%= _("License Version: ") %>

+<%= text_field_tag "license_info[version]", license_version, :id=>"license_info_version", :class=>"license_info_version", :placeholder=>_('Autocomplete field, type some license') %> +<%= hidden_field_tag "license[license_infos_id]", license_id, :id=>"license_info_id", :class=>"license_info_id", :data => {:label=>license_version} %> + +<%= _("Read license") %> + +
+ <%= labelled_text_field "Licence version", "license[version]", another_version, :id=>"licence_version" %> +
+ <%= labelled_text_field "Licence link", "license[link]", another_link, :id=>"licence_link" %> +
diff --git a/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb b/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb new file mode 100644 index 0000000..3f0c2bf --- /dev/null +++ b/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb @@ -0,0 +1,27 @@ +

<%= @profile.software_info.name + _(' Information') %>

+ +

<%= _("Acronym") %>

+
+ <%= text_field_tag("software[acronym]", @profile.software_info.acronym, :maxlength=>"10") %> +
+ +

<%= _("Finality") %>

+
+ <%= text_area_tag "software[finality]", @profile.software_info.finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140%> +
+ +
+ <%= render :partial => "license_info_fields", :locals => { + :license_version => @license_version, + :license_id => @license_id, + :another_version => @another_license_version, + :another_link => @another_license_link + } + %> +
+ +

<%= _("Link to Repository") %>

+ + diff --git a/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb b/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb new file mode 100644 index 0000000..7585db5 --- /dev/null +++ b/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb @@ -0,0 +1,12 @@ +<%= fields_for :operating_systems ,@operating_systems do |lib| %> + +
+ <% operating_systems_fields = [] if operating_systems_fields.nil? %> + <% OperatingSystemHelper.operating_system_as_tables(operating_systems_fields).each do |tab| %> + <%= tab.call %> + <% end %> +
+ + +<%= link_to _('New Operating System'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-operating_systems"%> +<% end %> diff --git a/views/software_communities_plugin_myprofile/_public_software_info.html.erb b/views/software_communities_plugin_myprofile/_public_software_info.html.erb new file mode 100644 index 0000000..c382a5e --- /dev/null +++ b/views/software_communities_plugin_myprofile/_public_software_info.html.erb @@ -0,0 +1,103 @@ +

<%= _('Edit software') %>

+ +
+

<%= _("Operating Platform") %>

+ <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%> +
+ +
+

<%= _("Features") %>

+ <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%> +
+ +
+

<%= _("Libraries") %>

+ + <%= render :partial => 'library_fields', :locals => {:object_name => 'community', :profile => @community, :libraries => @list_libraries } %> +
+
+ +
+

<%= _("Operating Systems") %>

+ + <%= render :partial => 'operating_system_fields', :locals => {:object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %> +
+
+ +
+
+

<%= _("Programming languages") %>

+ + <%= render :partial => 'language_fields', :locals => { :object_name => 'community', :profile => @community, :languages => @list_languages } %> +
+ +
+
+

<%= _("Databases") %>

+ + <%= render :partial => 'database_fields', :locals => {:object_name => 'community', :profile => @community, :database => @list_databases } %> +
+ +
+

<%= _("Demonstration url") %>

+ <%= text_field_tag("software[demonstration_url]", @software_info.demonstration_url) %> +
+ +
+ +
+ <% if @disabled_public_software_field == true %> + <%= check_box_tag("software[public_software]", "true", @software_info.public_software?, :disabled => "disabled") %> + <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_disabled" %> + <% else %> + <%= check_box_tag("software[public_software]", "true", @software_info.public_software?) %> + <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_enabled" %> + <% end %> +
+

<%= _("Public Software") %>

+
+ <%= label_tag _("Adherent to e-PING ?") %> + + <%= label_tag "e_ping_true", "Yes" %> + <%= radio_button_tag("software[e_ping]", true, @software_info.e_ping)%> + <%= label_tag "e_ping_false", "No"%> + <%= radio_button_tag("software[e_ping]", false, !@software_info.e_ping)%> +
+ +
+ <%= label_tag _("Adherent to e-MAG ?") %> + + <%= label_tag "e_mag_true", "Yes"%> + <%= radio_button_tag("software[e_mag]", true, @software_info.e_mag)%> + <%= label_tag "e_mag_false", "No"%> + <%= radio_button_tag("software[e_mag]", false, !@software_info.e_mag)%> +
+ +
+ <%= label_tag _("Adherent to ICP-Brasil ?") %> + + <%= label_tag "icp_brasil_true", "Yes"%> + <%= radio_button_tag("software[icp_brasil]", true, @software_info.icp_brasil)%> + <%= label_tag "icp_brasil_false", "No"%> + <%= radio_button_tag("software[icp_brasil]", false, !@software_info.icp_brasil)%> +
+ +
+ <%= label_tag _("Adherent to e-ARQ ?") %> + + <%= label_tag "e_arq_true", "Yes"%> + <%= radio_button_tag("software[e_arq]", true, @software_info.e_arq)%> + <%= label_tag "e_arq_false", "No"%> + <%= radio_button_tag("software[e_arq]", false, !@software_info.e_arq)%> +
+ +
+ <%= label_tag _("Internacionalizable ?") %> + + <%= label_tag "intern_true", "Yes" %> + <%= radio_button_tag("software[intern]", true, @software_info.intern)%> + <%= label_tag "intern_false", "No"%> + <%= radio_button_tag("software[intern]", false, !@software_info.intern)%> +
+
+
diff --git a/views/software_communities_plugin_myprofile/edit_institution.html.erb b/views/software_communities_plugin_myprofile/edit_institution.html.erb new file mode 100644 index 0000000..db95e3a --- /dev/null +++ b/views/software_communities_plugin_myprofile/edit_institution.html.erb @@ -0,0 +1,119 @@ +

<%= _('Edit Institution') %>

+ +<% if environment.enabled?('admin_must_approve_new_communities') %> +
+ <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> +
+<%end %> + +<% unless flash[:errors].nil? %> +
+

<%= _("Can`t create new Institution: #{flash[:errors].length} errors") %>

+
    + <% flash[:errors].each do |error| %> +
  • <%= error %>
  • + <% end %> +
+
+<% end %> + +
+ +
+
+ <%= _("All fields with (*) are mandatory") %> +
+
+ <%= labelled_form_for :community,:html => { :multipart => true, :id=>"institution_form" } do |f| %> + <%= hidden_field_tag "edit_institution_page", true %> + <%= fields_for :institutions do |inst| %> + +
+ + + +
+
+ + <%= required f.text_field(:name, :value => @institution.community.name) %> + <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> + + +
+ <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> + <%= required inst.text_field(:corporate_name, :value => @institution.corporate_name) %> +
+
+ + <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}, :selected => @institution.community.country) %> + + +
+ + <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}, :selected => @institution.community.state) %> +
+
+ + <%= required f.text_field(:city, :value => @institution.community.city) %> + + + +
+ <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> + <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field", :value => @institution.cnpj) %> +
+
+ + +
+ <%= hidden_field_tag "acronym_translate", _("Acronym") %> + <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> + <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> + <%= inst.text_field(:acronym, :value => @institution.acronym) %> +
+
+ + +
+ <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> + <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>@institution.governmental_power_id})%> +
+
+ + +
+ <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> + <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=> @institution.governmental_sphere_id})%> +
+
+ +
+ <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> + <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=> @institution.juridical_nature_id})%> +
+
+ + +
+ <%= _("SISP?") %> + <% if @show_sisp_field %> + <%= inst.label("sisp" ,_("Yes")) %> + <%= inst.radio_button(:sisp, true, :checked=>(@institution.sisp ? true : false)) %> + <%= inst.label("sisp" ,_("No")) %> + <%= inst.radio_button(:sisp, false, :checked=>(@institution.sisp ? false : true)) %> + <% else %> + <%= inst.label("sisp", _("No")) %> + <% end %> +
+
+
+ + <%= submit_button :save, _('Save') %> + <% end %> +<% end %> + diff --git a/views/software_communities_plugin_myprofile/edit_software.html.erb b/views/software_communities_plugin_myprofile/edit_software.html.erb new file mode 100644 index 0000000..581f2bc --- /dev/null +++ b/views/software_communities_plugin_myprofile/edit_software.html.erb @@ -0,0 +1,20 @@ +<% tabs = [] %> + +<%= error_messages_for :software_info %> + +<%= labelled_form_for :software_communities_plugin_myprofile, :html => { :multipart => true, :id => 'edit-form' } do |f| %> + +<% tabs << {:title => _("Software"), :id => 'basic-info', + :content => (render :partial => 'main_software_editor_extras')} %> + +<% tabs << {:title => _("Specifications"), :id => 'especific-info', + :content => (render :partial => 'public_software_info')} %> + +<%= render_tabs(tabs) %> + +<% button_bar do %> + <%= submit_button(:save, _('Save')) %> + <%= submit_button(:save, _('Save and Configure Community')) %> + <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> +<% end %> +<% end %> diff --git a/views/software_communities_plugin_myprofile/new_software.html.erb b/views/software_communities_plugin_myprofile/new_software.html.erb new file mode 100644 index 0000000..3d56b9b --- /dev/null +++ b/views/software_communities_plugin_myprofile/new_software.html.erb @@ -0,0 +1,70 @@ +<%= stylesheet_link_tag('plugins/software_communities/mpog-software') %> + +
+

<%= _("Step 1/2 - Software Creation")%>

+
+ +

<%= _('Creating new software') %>

+ +<% if environment.enabled?('admin_must_approve_new_communities') %> +
+ <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> +
+<%end %> + +<% unless @errors.blank? %> +
+

<%= _("Can`t create new software: #{@errors.length} errors") %>

+
    + <% @errors.each do |error| %> +
  • <%= error %>
  • + <% end %> +
+
+<% end %> + +
+ <%= labelled_form_for :community, :html => { :multipart => true } do |f| %> + + <%= required_fields_message %> + + <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %> + +
+ <%= environment.default_hostname %>/ + <%= required text_field(:community, :name, :size => 30, :maxlength => 100) %> +
+ + <%= fields_for @software_info do |swf| %> +
+ <%= swf.label("finality" ,_("Finality"), :class=>"formlabel") %> + <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140) %> +
+ <% end %> + +
+ <%= render :partial => "license_info_fields", :locals => { + :license_version => "", + :license_id => "", + :another_version=>"", + :another_link=>"" + } %> +
+ + <%= fields_for @software_info do |swf| %> +
+ <%= swf.label "repository_url", _("Link to Repository: "), :class => "formlabel"%> + <%= swf.text_field :repository_link, :class => "improve_input_size" %> +
+ <% end %> + + <%= hidden_field_tag('back_to', @back_to) %> + + <% button_bar do %> + <%= submit_button(:save, _('Create')) %> + <%= button(:cancel, _('Cancel'), @back_to ) %> + <% end %> + + <% end %> + +
-- libgit2 0.21.2