Commit 52fbca4c1e18e49c0624bad8859c400f7bdc7452
1 parent
700b7cf7
Exists in
master
and in
5 other branches
Changing filenames
Showing
48 changed files
with
4692 additions
and
4692 deletions
Show diff stats
controllers/mpog_software_plugin_controller.rb
| ... | ... | @@ -1,257 +0,0 @@ |
| 1 | -require 'csv' | |
| 2 | -class SoftwareCommunitiesPluginController < ApplicationController | |
| 3 | - | |
| 4 | - def check_reactivate_account | |
| 5 | - if request.xhr? && params[:email] | |
| 6 | - result = "" | |
| 7 | - user = User.where(:email => params[:email]) | |
| 8 | - | |
| 9 | - if user.length == 1 && !user[0].person.visible | |
| 10 | - result = "<span id='forgot_link'><a href='/account/forgot_password'> Reactive account</a></span>" | |
| 11 | - end | |
| 12 | - | |
| 13 | - render :json => result.to_json | |
| 14 | - end | |
| 15 | - end | |
| 16 | - | |
| 17 | - def hide_registration_incomplete_percentage | |
| 18 | - response = false | |
| 19 | - | |
| 20 | - if request.xhr? && params[:hide] | |
| 21 | - session[:hide_incomplete_percentage] = true | |
| 22 | - response = session[:hide_incomplete_percentage] | |
| 23 | - end | |
| 24 | - | |
| 25 | - render :json=>response.to_json | |
| 26 | - end | |
| 27 | - | |
| 28 | - def create_institution | |
| 29 | - @show_sisp_field = environment.admins.include?(current_user.person) | |
| 30 | - @state_list = get_state_list() | |
| 31 | - | |
| 32 | - if request.xhr? | |
| 33 | - render :layout=>false | |
| 34 | - else | |
| 35 | - redirect_to "/" | |
| 36 | - end | |
| 37 | - end | |
| 38 | - | |
| 39 | - def split_http_referer http_referer | |
| 40 | - split_list = [] | |
| 41 | - split_list = http_referer.split("/") | |
| 42 | - @url_token = split_list.last | |
| 43 | - return @url_token | |
| 44 | - end | |
| 45 | - | |
| 46 | - def create_institution_admin | |
| 47 | - @show_sisp_field = environment.admins.include?(current_user.person) | |
| 48 | - @state_list = get_state_list() | |
| 49 | - | |
| 50 | - @url_token = split_http_referer request.original_url() | |
| 51 | - end | |
| 52 | - | |
| 53 | - def new_institution | |
| 54 | - redirect_to "/" if params[:community].blank? || params[:institutions].blank? | |
| 55 | - | |
| 56 | - response_message = {} | |
| 57 | - | |
| 58 | - institution_template = Community["institution"] | |
| 59 | - add_template_in_params institution_template | |
| 60 | - | |
| 61 | - institution = private_create_institution | |
| 62 | - add_environment_admins_to_institution institution | |
| 63 | - | |
| 64 | - response_message = save_institution institution | |
| 65 | - | |
| 66 | - if request.xhr? #User create institution | |
| 67 | - render :json => response_message.to_json | |
| 68 | - else #Admin create institution | |
| 69 | - session[:notice] = response_message[:message] # consume the notice | |
| 70 | - | |
| 71 | - redirect_depending_on_institution_creation response_message | |
| 72 | - end | |
| 73 | - end | |
| 74 | - | |
| 75 | - def institution_already_exists | |
| 76 | - redirect_to "/" if !request.xhr? || params[:name].blank? | |
| 77 | - | |
| 78 | - already_exists = !Community.where(:name=>params[:name]).empty? | |
| 79 | - | |
| 80 | - render :json=>already_exists.to_json | |
| 81 | - end | |
| 82 | - | |
| 83 | - def get_institutions | |
| 84 | - redirect_to "/" if !request.xhr? || params[:query].blank? | |
| 85 | - | |
| 86 | - list = Institution.search_institution(params[:query]).map{ |institution| | |
| 87 | - {:value=>institution.name, :id=>institution.id} | |
| 88 | - } | |
| 89 | - | |
| 90 | - render :json => list.to_json | |
| 91 | - end | |
| 92 | - | |
| 93 | - def get_categories | |
| 94 | - redirect_to "/" if !request.xhr? || params[:query].blank? | |
| 95 | - | |
| 96 | - list = [] | |
| 97 | - | |
| 98 | - Category.where("name ILIKE ?", "%#{params[:query]}%").collect { |c| | |
| 99 | - list << {:label=>c.name, :id=>c.id} if c.name != "Software" | |
| 100 | - } | |
| 101 | - | |
| 102 | - render :json => list.to_json | |
| 103 | - end | |
| 104 | - | |
| 105 | - def get_brazil_states | |
| 106 | - redirect_to "/" unless request.xhr? | |
| 107 | - | |
| 108 | - state_list = get_state_list() | |
| 109 | - render :json=>state_list.collect {|state| state.name }.to_json | |
| 110 | - end | |
| 111 | - | |
| 112 | - def get_field_data | |
| 113 | - condition = !request.xhr? || params[:query].nil? || params[:field].nil? | |
| 114 | - return render :json=>{} if condition | |
| 115 | - | |
| 116 | - model = get_model_by_params_field | |
| 117 | - | |
| 118 | - data = model.where("name ILIKE ?", "%#{params[:query]}%").select("id, name") | |
| 119 | - .collect { |db| | |
| 120 | - {:id=>db.id, :label=>db.name} | |
| 121 | - } | |
| 122 | - | |
| 123 | - other = [model.select("id, name").last].collect { |db| | |
| 124 | - {:id=>db.id, :label=>db.name} | |
| 125 | - } | |
| 126 | - | |
| 127 | - # Always has other in the list | |
| 128 | - data |= other | |
| 129 | - | |
| 130 | - render :json=> data | |
| 131 | - end | |
| 132 | - | |
| 133 | - def get_license_data | |
| 134 | - return render :json=>{} if !request.xhr? || params[:query].nil? | |
| 135 | - | |
| 136 | - data = if params[:query].empty? | |
| 137 | - LicenseInfo.all | |
| 138 | - else | |
| 139 | - LicenseInfo.where("version ILIKE ?", "%#{params[:query]}%").select("id, version") | |
| 140 | - end | |
| 141 | - | |
| 142 | - render :json=> data.collect { |license| | |
| 143 | - {:id=>license.id, :label=>license.version} | |
| 144 | - } | |
| 145 | - end | |
| 146 | - | |
| 147 | - protected | |
| 148 | - | |
| 149 | - def get_state_list | |
| 150 | - NationalRegion.find( | |
| 151 | - :all, | |
| 152 | - :conditions=>["national_region_type_id = ?", 2], | |
| 153 | - :order=>"name" | |
| 154 | - ) | |
| 155 | - end | |
| 156 | - | |
| 157 | - def set_institution_type | |
| 158 | - institution_params = params[:institutions].except( | |
| 159 | - :governmental_power, | |
| 160 | - :governmental_sphere, | |
| 161 | - :juridical_nature | |
| 162 | - ) | |
| 163 | - if params[:institutions][:type] == "PublicInstitution" | |
| 164 | - PublicInstitution::new institution_params | |
| 165 | - else | |
| 166 | - PrivateInstitution::new institution_params | |
| 167 | - end | |
| 168 | - end | |
| 169 | - | |
| 170 | - def set_public_institution_fields institution | |
| 171 | - inst_fields = params[:institutions] | |
| 172 | - | |
| 173 | - begin | |
| 174 | - gov_power = GovernmentalPower.find inst_fields[:governmental_power] | |
| 175 | - gov_sphere = GovernmentalSphere.find inst_fields[:governmental_sphere] | |
| 176 | - jur_nature = JuridicalNature.find inst_fields[:juridical_nature] | |
| 177 | - | |
| 178 | - institution.juridical_nature = jur_nature | |
| 179 | - institution.governmental_power = gov_power | |
| 180 | - institution.governmental_sphere = gov_sphere | |
| 181 | - rescue | |
| 182 | - institution.errors.add( | |
| 183 | - :governmental_fields, | |
| 184 | - _("Could not find Governmental Power or Governmental Sphere") | |
| 185 | - ) | |
| 186 | - end | |
| 187 | - end | |
| 188 | - | |
| 189 | - def private_create_institution | |
| 190 | - community = Community.new(params[:community]) | |
| 191 | - community.environment = environment | |
| 192 | - institution = set_institution_type | |
| 193 | - | |
| 194 | - institution.name = community[:name] | |
| 195 | - institution.community = community | |
| 196 | - | |
| 197 | - if institution.type == "PublicInstitution" | |
| 198 | - set_public_institution_fields institution | |
| 199 | - end | |
| 200 | - | |
| 201 | - institution.date_modification = DateTime.now | |
| 202 | - institution.save | |
| 203 | - | |
| 204 | - institution | |
| 205 | - end | |
| 206 | - | |
| 207 | - def add_template_in_params institution_template | |
| 208 | - com_fields = params[:community] | |
| 209 | - if !institution_template.blank? && institution_template.is_template | |
| 210 | - com_fields[:template_id]= institution_template.id unless com_fields.blank? | |
| 211 | - end | |
| 212 | - end | |
| 213 | - | |
| 214 | - def add_environment_admins_to_institution institution | |
| 215 | - edit_page = params[:edit_institution_page] == false | |
| 216 | - if environment.admins.include?(current_user.person) && edit_page | |
| 217 | - environment.admins.each do |adm| | |
| 218 | - institution.community.add_admin(adm) | |
| 219 | - end | |
| 220 | - end | |
| 221 | - end | |
| 222 | - | |
| 223 | - def save_institution institution | |
| 224 | - inst_errors = institution.errors.full_messages | |
| 225 | - com_errors = institution.community.errors.full_messages | |
| 226 | - | |
| 227 | - if inst_errors.empty? && com_errors.empty? && institution.valid? && institution.save | |
| 228 | - { :success => true, | |
| 229 | - :message => _("Institution successful created!"), | |
| 230 | - :institution_data => {:name=>institution.name, :id=>institution.id} | |
| 231 | - } | |
| 232 | - else | |
| 233 | - { :success => false, | |
| 234 | - :message => _("Institution could not be created!"), | |
| 235 | - :errors => inst_errors << com_errors | |
| 236 | - } | |
| 237 | - end | |
| 238 | - end | |
| 239 | - | |
| 240 | - def redirect_depending_on_institution_creation response_message | |
| 241 | - if response_message[:success] | |
| 242 | - redirect_to :controller => "/admin_panel", :action => "index" | |
| 243 | - else | |
| 244 | - flash[:errors] = response_message[:errors] | |
| 245 | - redirect_to :controller => "software_communities_plugin", :action => "create_institution_admin" | |
| 246 | - end | |
| 247 | - end | |
| 248 | - | |
| 249 | - def get_model_by_params_field | |
| 250 | - case params[:field] | |
| 251 | - when "software_language" | |
| 252 | - return ProgrammingLanguage | |
| 253 | - else | |
| 254 | - return DatabaseDescription | |
| 255 | - end | |
| 256 | - end | |
| 257 | -end |
controllers/mpog_software_plugin_myprofile_controller.rb
| ... | ... | @@ -1,213 +0,0 @@ |
| 1 | -class SoftwareCommunitiesPluginMyprofileController < MyProfileController | |
| 2 | - append_view_path File.join(File.dirname(__FILE__) + '/../views') | |
| 3 | - | |
| 4 | - def index | |
| 5 | - end | |
| 6 | - | |
| 7 | - def edit_institution | |
| 8 | - @show_sisp_field = environment.admins.include?(current_user.person) | |
| 9 | - @state_list = NationalRegion.find(:all, :conditions => | |
| 10 | - { :national_region_type_id => 2 }, | |
| 11 | - :order => 'name') | |
| 12 | - @institution = @profile.institution | |
| 13 | - update_institution if request.post? | |
| 14 | - end | |
| 15 | - | |
| 16 | - def new_software | |
| 17 | - set_software_as_template | |
| 18 | - | |
| 19 | - @community = Community.new(params[:community]) | |
| 20 | - @community.environment = environment | |
| 21 | - @software_info = SoftwareInfo.new(params[:software_info]) | |
| 22 | - | |
| 23 | - @license_info = if params[:license].blank? or params[:license][:license_infos_id].blank? | |
| 24 | - LicenseInfo.new | |
| 25 | - else | |
| 26 | - LicenseInfo.find(params[:license][:license_infos_id]) | |
| 27 | - end | |
| 28 | - | |
| 29 | - control_software_creation | |
| 30 | - end | |
| 31 | - | |
| 32 | - def search_offerers | |
| 33 | - arg = params[:q].downcase | |
| 34 | - result = environment.people.find(:all, | |
| 35 | - :conditions => [ 'LOWER(name) LIKE ?', "%#{arg}%"]) | |
| 36 | - render :text => prepare_to_token_input(result).to_json | |
| 37 | - end | |
| 38 | - | |
| 39 | - def edit_software | |
| 40 | - update_software_atributes | |
| 41 | - | |
| 42 | - return unless request.post? | |
| 43 | - @software_info = constroy_software | |
| 44 | - software_info_insert_models.call(@list_libraries, 'libraries') | |
| 45 | - software_info_insert_models.call(@list_languages, 'software_languages') | |
| 46 | - software_info_insert_models.call(@list_databases, 'software_databases') | |
| 47 | - software_info_insert_models.call(@list_operating_systems, 'operating_systems') | |
| 48 | - | |
| 49 | - begin | |
| 50 | - @software_info.save! | |
| 51 | - if params[:commit] == _('Save and Configure Community') | |
| 52 | - redirect_to :controller => 'profile_editor', :action => 'edit' | |
| 53 | - else | |
| 54 | - redirect_to :controller => 'profile_editor', :action => 'index' | |
| 55 | - session[:notice] = _('Software updated sucessefuly') | |
| 56 | - end | |
| 57 | - rescue ActiveRecord::RecordInvalid => invalid | |
| 58 | - session[:notice] = _('Could not update software') | |
| 59 | - end | |
| 60 | - end | |
| 61 | - | |
| 62 | - def disabled_public_software_field | |
| 63 | - !environment.admins.include?(current_user.person) | |
| 64 | - end | |
| 65 | - | |
| 66 | - def community_must_be_approved | |
| 67 | - end | |
| 68 | - | |
| 69 | - private | |
| 70 | - | |
| 71 | - def add_software_erros | |
| 72 | - @errors = [] | |
| 73 | - @errors |= @community.errors.full_messages | |
| 74 | - @errors |= @software_info.errors.full_messages | |
| 75 | - @errors |= @license_info.errors.full_messages | |
| 76 | - end | |
| 77 | - | |
| 78 | - def control_software_creation | |
| 79 | - valid_models = request.post? && (@community.valid? && @software_info.valid? && @license_info.valid?) | |
| 80 | - if valid_models | |
| 81 | - send_software_to_moderation | |
| 82 | - else | |
| 83 | - add_software_erros | |
| 84 | - end | |
| 85 | - end | |
| 86 | - | |
| 87 | - def update_institution | |
| 88 | - @institution.community.update_attributes(params[:community]) | |
| 89 | - @institution.update_attributes(params[:institutions].except(:governmental_power, :governmental_sphere, :juridical_nature)) | |
| 90 | - if @institution.type == "PublicInstitution" | |
| 91 | - begin | |
| 92 | - governmental_updates | |
| 93 | - rescue | |
| 94 | - @institution.errors.add(:governmental_fields, | |
| 95 | - _("Could not find Governmental Power or Governmental Sphere")) | |
| 96 | - end | |
| 97 | - end | |
| 98 | - flash[:errors] = @institution.errors.full_messages unless @institution.valid? | |
| 99 | - end | |
| 100 | - | |
| 101 | - def governmental_updates | |
| 102 | - gov_power = GovernmentalPower.find params[:institutions][:governmental_power] | |
| 103 | - gov_sphere = GovernmentalSphere.find params[:institutions][:governmental_sphere] | |
| 104 | - jur_nature = JuridicalNature.find params[:institutions][:juridical_nature] | |
| 105 | - | |
| 106 | - @institution.juridical_nature = jur_nature | |
| 107 | - @institution.governmental_power = gov_power | |
| 108 | - @institution.governmental_sphere = gov_sphere | |
| 109 | - @institution.save | |
| 110 | - end | |
| 111 | - | |
| 112 | - def software_info_insert_models | |
| 113 | - proc { |list,model_attr| | |
| 114 | - @software_info.send(model_attr).destroy_all | |
| 115 | - list.collect!{|m| @software_info.send(model_attr) << m } unless list.nil? | |
| 116 | - } | |
| 117 | - end | |
| 118 | - | |
| 119 | - def constroy_software | |
| 120 | - params[:software][:public_software] ||= false | |
| 121 | - @software_info = @profile.software_info | |
| 122 | - @license = LicenseInfo.find(params[:license][:license_infos_id]) | |
| 123 | - @software_info.license_info = @license | |
| 124 | - @software_info.update_attributes(params[:software]) | |
| 125 | - | |
| 126 | - another_license_version = nil | |
| 127 | - another_license_link = nil | |
| 128 | - if params[:license] | |
| 129 | - another_license_version = params[:license][:version] | |
| 130 | - another_license_link = params[:license][:link] | |
| 131 | - end | |
| 132 | - | |
| 133 | - @software_info.verify_license_info(another_license_version, another_license_link) | |
| 134 | - | |
| 135 | - create_list_model_helpers | |
| 136 | - | |
| 137 | - @software_info | |
| 138 | - end | |
| 139 | - | |
| 140 | - def create_list_model_helpers | |
| 141 | - @list_libraries = LibraryHelper.list_library(params[:library]) | |
| 142 | - @list_languages = SoftwareLanguageHelper.list_language(params[:language]) | |
| 143 | - @list_databases = DatabaseHelper.list_database(params[:database]) | |
| 144 | - @list_operating_systems = OperatingSystemHelper.list_operating_system(params[:operating_system]) | |
| 145 | - end | |
| 146 | - | |
| 147 | - def send_software_to_moderation | |
| 148 | - another_license_version = "" | |
| 149 | - another_license_link = "" | |
| 150 | - if params[:license] | |
| 151 | - another_license_version = params[:license][:version] | |
| 152 | - another_license_link = params[:license][:link] | |
| 153 | - end | |
| 154 | - @software_info = SoftwareInfo.create_after_moderation(user, | |
| 155 | - params[:software_info].merge({ | |
| 156 | - :environment => environment, | |
| 157 | - :name => params[:community][:name], | |
| 158 | - :license_info => @license_info, | |
| 159 | - :another_license_version => another_license_version, | |
| 160 | - :another_license_link => another_license_link })) | |
| 161 | - | |
| 162 | - add_admin_to_community | |
| 163 | - | |
| 164 | - if !environment.admins.include?(current_user.person) | |
| 165 | - session[:notice] = _('Your new software request will be evaluated by an'\ | |
| 166 | - 'administrator. You will be notified.') | |
| 167 | - redirect_to user.admin_url | |
| 168 | - else | |
| 169 | - redirect_to :controller => 'profile_editor', | |
| 170 | - :action => 'edit', | |
| 171 | - :profile => @community.identifier | |
| 172 | - end | |
| 173 | - end | |
| 174 | - | |
| 175 | - def update_software_atributes | |
| 176 | - @software_info = @profile.software_info | |
| 177 | - @list_libraries = @software_info.libraries | |
| 178 | - @list_databases = @software_info.software_databases | |
| 179 | - @list_languages = @software_info.software_languages | |
| 180 | - @list_operating_systems = @software_info.operating_systems | |
| 181 | - @disabled_public_software_field = disabled_public_software_field | |
| 182 | - | |
| 183 | - @license_version = @software_info.license_info.version | |
| 184 | - @license_id = @software_info.license_info.id | |
| 185 | - @another_license_version = "" | |
| 186 | - @another_license_link = "" | |
| 187 | - | |
| 188 | - license_another = LicenseInfo.find_by_version("Another") | |
| 189 | - if license_another && @software_info.license_info_id == license_another.id | |
| 190 | - @license_version = "Another" | |
| 191 | - @another_license_version = @software_info.license_info.version | |
| 192 | - @another_license_link = @software_info.license_info.link | |
| 193 | - end | |
| 194 | - end | |
| 195 | - | |
| 196 | - def set_software_as_template | |
| 197 | - software_template = Community['software'] | |
| 198 | - software_valid = !software_template.blank? && software_template.is_template && !params['community'].blank? | |
| 199 | - if software_valid | |
| 200 | - params['community']['template_id'] = software_template.id if software_valid | |
| 201 | - end | |
| 202 | - end | |
| 203 | - | |
| 204 | - def add_admin_to_community | |
| 205 | - unless params[:q].nil? | |
| 206 | - admins = params[:q].split(/,/).map{ |n| environment.people.find n.to_i } | |
| 207 | - admins.each do |admin| | |
| 208 | - @community.add_member(admin) | |
| 209 | - @community.add_admin(admin) | |
| 210 | - end | |
| 211 | - end | |
| 212 | - end | |
| 213 | -end |
| ... | ... | @@ -0,0 +1,257 @@ |
| 1 | +require 'csv' | |
| 2 | +class SoftwareCommunitiesPluginController < ApplicationController | |
| 3 | + | |
| 4 | + def check_reactivate_account | |
| 5 | + if request.xhr? && params[:email] | |
| 6 | + result = "" | |
| 7 | + user = User.where(:email => params[:email]) | |
| 8 | + | |
| 9 | + if user.length == 1 && !user[0].person.visible | |
| 10 | + result = "<span id='forgot_link'><a href='/account/forgot_password'> Reactive account</a></span>" | |
| 11 | + end | |
| 12 | + | |
| 13 | + render :json => result.to_json | |
| 14 | + end | |
| 15 | + end | |
| 16 | + | |
| 17 | + def hide_registration_incomplete_percentage | |
| 18 | + response = false | |
| 19 | + | |
| 20 | + if request.xhr? && params[:hide] | |
| 21 | + session[:hide_incomplete_percentage] = true | |
| 22 | + response = session[:hide_incomplete_percentage] | |
| 23 | + end | |
| 24 | + | |
| 25 | + render :json=>response.to_json | |
| 26 | + end | |
| 27 | + | |
| 28 | + def create_institution | |
| 29 | + @show_sisp_field = environment.admins.include?(current_user.person) | |
| 30 | + @state_list = get_state_list() | |
| 31 | + | |
| 32 | + if request.xhr? | |
| 33 | + render :layout=>false | |
| 34 | + else | |
| 35 | + redirect_to "/" | |
| 36 | + end | |
| 37 | + end | |
| 38 | + | |
| 39 | + def split_http_referer http_referer | |
| 40 | + split_list = [] | |
| 41 | + split_list = http_referer.split("/") | |
| 42 | + @url_token = split_list.last | |
| 43 | + return @url_token | |
| 44 | + end | |
| 45 | + | |
| 46 | + def create_institution_admin | |
| 47 | + @show_sisp_field = environment.admins.include?(current_user.person) | |
| 48 | + @state_list = get_state_list() | |
| 49 | + | |
| 50 | + @url_token = split_http_referer request.original_url() | |
| 51 | + end | |
| 52 | + | |
| 53 | + def new_institution | |
| 54 | + redirect_to "/" if params[:community].blank? || params[:institutions].blank? | |
| 55 | + | |
| 56 | + response_message = {} | |
| 57 | + | |
| 58 | + institution_template = Community["institution"] | |
| 59 | + add_template_in_params institution_template | |
| 60 | + | |
| 61 | + institution = private_create_institution | |
| 62 | + add_environment_admins_to_institution institution | |
| 63 | + | |
| 64 | + response_message = save_institution institution | |
| 65 | + | |
| 66 | + if request.xhr? #User create institution | |
| 67 | + render :json => response_message.to_json | |
| 68 | + else #Admin create institution | |
| 69 | + session[:notice] = response_message[:message] # consume the notice | |
| 70 | + | |
| 71 | + redirect_depending_on_institution_creation response_message | |
| 72 | + end | |
| 73 | + end | |
| 74 | + | |
| 75 | + def institution_already_exists | |
| 76 | + redirect_to "/" if !request.xhr? || params[:name].blank? | |
| 77 | + | |
| 78 | + already_exists = !Community.where(:name=>params[:name]).empty? | |
| 79 | + | |
| 80 | + render :json=>already_exists.to_json | |
| 81 | + end | |
| 82 | + | |
| 83 | + def get_institutions | |
| 84 | + redirect_to "/" if !request.xhr? || params[:query].blank? | |
| 85 | + | |
| 86 | + list = Institution.search_institution(params[:query]).map{ |institution| | |
| 87 | + {:value=>institution.name, :id=>institution.id} | |
| 88 | + } | |
| 89 | + | |
| 90 | + render :json => list.to_json | |
| 91 | + end | |
| 92 | + | |
| 93 | + def get_categories | |
| 94 | + redirect_to "/" if !request.xhr? || params[:query].blank? | |
| 95 | + | |
| 96 | + list = [] | |
| 97 | + | |
| 98 | + Category.where("name ILIKE ?", "%#{params[:query]}%").collect { |c| | |
| 99 | + list << {:label=>c.name, :id=>c.id} if c.name != "Software" | |
| 100 | + } | |
| 101 | + | |
| 102 | + render :json => list.to_json | |
| 103 | + end | |
| 104 | + | |
| 105 | + def get_brazil_states | |
| 106 | + redirect_to "/" unless request.xhr? | |
| 107 | + | |
| 108 | + state_list = get_state_list() | |
| 109 | + render :json=>state_list.collect {|state| state.name }.to_json | |
| 110 | + end | |
| 111 | + | |
| 112 | + def get_field_data | |
| 113 | + condition = !request.xhr? || params[:query].nil? || params[:field].nil? | |
| 114 | + return render :json=>{} if condition | |
| 115 | + | |
| 116 | + model = get_model_by_params_field | |
| 117 | + | |
| 118 | + data = model.where("name ILIKE ?", "%#{params[:query]}%").select("id, name") | |
| 119 | + .collect { |db| | |
| 120 | + {:id=>db.id, :label=>db.name} | |
| 121 | + } | |
| 122 | + | |
| 123 | + other = [model.select("id, name").last].collect { |db| | |
| 124 | + {:id=>db.id, :label=>db.name} | |
| 125 | + } | |
| 126 | + | |
| 127 | + # Always has other in the list | |
| 128 | + data |= other | |
| 129 | + | |
| 130 | + render :json=> data | |
| 131 | + end | |
| 132 | + | |
| 133 | + def get_license_data | |
| 134 | + return render :json=>{} if !request.xhr? || params[:query].nil? | |
| 135 | + | |
| 136 | + data = if params[:query].empty? | |
| 137 | + LicenseInfo.all | |
| 138 | + else | |
| 139 | + LicenseInfo.where("version ILIKE ?", "%#{params[:query]}%").select("id, version") | |
| 140 | + end | |
| 141 | + | |
| 142 | + render :json=> data.collect { |license| | |
| 143 | + {:id=>license.id, :label=>license.version} | |
| 144 | + } | |
| 145 | + end | |
| 146 | + | |
| 147 | + protected | |
| 148 | + | |
| 149 | + def get_state_list | |
| 150 | + NationalRegion.find( | |
| 151 | + :all, | |
| 152 | + :conditions=>["national_region_type_id = ?", 2], | |
| 153 | + :order=>"name" | |
| 154 | + ) | |
| 155 | + end | |
| 156 | + | |
| 157 | + def set_institution_type | |
| 158 | + institution_params = params[:institutions].except( | |
| 159 | + :governmental_power, | |
| 160 | + :governmental_sphere, | |
| 161 | + :juridical_nature | |
| 162 | + ) | |
| 163 | + if params[:institutions][:type] == "PublicInstitution" | |
| 164 | + PublicInstitution::new institution_params | |
| 165 | + else | |
| 166 | + PrivateInstitution::new institution_params | |
| 167 | + end | |
| 168 | + end | |
| 169 | + | |
| 170 | + def set_public_institution_fields institution | |
| 171 | + inst_fields = params[:institutions] | |
| 172 | + | |
| 173 | + begin | |
| 174 | + gov_power = GovernmentalPower.find inst_fields[:governmental_power] | |
| 175 | + gov_sphere = GovernmentalSphere.find inst_fields[:governmental_sphere] | |
| 176 | + jur_nature = JuridicalNature.find inst_fields[:juridical_nature] | |
| 177 | + | |
| 178 | + institution.juridical_nature = jur_nature | |
| 179 | + institution.governmental_power = gov_power | |
| 180 | + institution.governmental_sphere = gov_sphere | |
| 181 | + rescue | |
| 182 | + institution.errors.add( | |
| 183 | + :governmental_fields, | |
| 184 | + _("Could not find Governmental Power or Governmental Sphere") | |
| 185 | + ) | |
| 186 | + end | |
| 187 | + end | |
| 188 | + | |
| 189 | + def private_create_institution | |
| 190 | + community = Community.new(params[:community]) | |
| 191 | + community.environment = environment | |
| 192 | + institution = set_institution_type | |
| 193 | + | |
| 194 | + institution.name = community[:name] | |
| 195 | + institution.community = community | |
| 196 | + | |
| 197 | + if institution.type == "PublicInstitution" | |
| 198 | + set_public_institution_fields institution | |
| 199 | + end | |
| 200 | + | |
| 201 | + institution.date_modification = DateTime.now | |
| 202 | + institution.save | |
| 203 | + | |
| 204 | + institution | |
| 205 | + end | |
| 206 | + | |
| 207 | + def add_template_in_params institution_template | |
| 208 | + com_fields = params[:community] | |
| 209 | + if !institution_template.blank? && institution_template.is_template | |
| 210 | + com_fields[:template_id]= institution_template.id unless com_fields.blank? | |
| 211 | + end | |
| 212 | + end | |
| 213 | + | |
| 214 | + def add_environment_admins_to_institution institution | |
| 215 | + edit_page = params[:edit_institution_page] == false | |
| 216 | + if environment.admins.include?(current_user.person) && edit_page | |
| 217 | + environment.admins.each do |adm| | |
| 218 | + institution.community.add_admin(adm) | |
| 219 | + end | |
| 220 | + end | |
| 221 | + end | |
| 222 | + | |
| 223 | + def save_institution institution | |
| 224 | + inst_errors = institution.errors.full_messages | |
| 225 | + com_errors = institution.community.errors.full_messages | |
| 226 | + | |
| 227 | + if inst_errors.empty? && com_errors.empty? && institution.valid? && institution.save | |
| 228 | + { :success => true, | |
| 229 | + :message => _("Institution successful created!"), | |
| 230 | + :institution_data => {:name=>institution.name, :id=>institution.id} | |
| 231 | + } | |
| 232 | + else | |
| 233 | + { :success => false, | |
| 234 | + :message => _("Institution could not be created!"), | |
| 235 | + :errors => inst_errors << com_errors | |
| 236 | + } | |
| 237 | + end | |
| 238 | + end | |
| 239 | + | |
| 240 | + def redirect_depending_on_institution_creation response_message | |
| 241 | + if response_message[:success] | |
| 242 | + redirect_to :controller => "/admin_panel", :action => "index" | |
| 243 | + else | |
| 244 | + flash[:errors] = response_message[:errors] | |
| 245 | + redirect_to :controller => "software_communities_plugin", :action => "create_institution_admin" | |
| 246 | + end | |
| 247 | + end | |
| 248 | + | |
| 249 | + def get_model_by_params_field | |
| 250 | + case params[:field] | |
| 251 | + when "software_language" | |
| 252 | + return ProgrammingLanguage | |
| 253 | + else | |
| 254 | + return DatabaseDescription | |
| 255 | + end | |
| 256 | + end | |
| 257 | +end | ... | ... |
controllers/software_communities_plugin_myprofile_controller.rb
0 → 100644
| ... | ... | @@ -0,0 +1,213 @@ |
| 1 | +class SoftwareCommunitiesPluginMyprofileController < MyProfileController | |
| 2 | + append_view_path File.join(File.dirname(__FILE__) + '/../views') | |
| 3 | + | |
| 4 | + def index | |
| 5 | + end | |
| 6 | + | |
| 7 | + def edit_institution | |
| 8 | + @show_sisp_field = environment.admins.include?(current_user.person) | |
| 9 | + @state_list = NationalRegion.find(:all, :conditions => | |
| 10 | + { :national_region_type_id => 2 }, | |
| 11 | + :order => 'name') | |
| 12 | + @institution = @profile.institution | |
| 13 | + update_institution if request.post? | |
| 14 | + end | |
| 15 | + | |
| 16 | + def new_software | |
| 17 | + set_software_as_template | |
| 18 | + | |
| 19 | + @community = Community.new(params[:community]) | |
| 20 | + @community.environment = environment | |
| 21 | + @software_info = SoftwareInfo.new(params[:software_info]) | |
| 22 | + | |
| 23 | + @license_info = if params[:license].blank? or params[:license][:license_infos_id].blank? | |
| 24 | + LicenseInfo.new | |
| 25 | + else | |
| 26 | + LicenseInfo.find(params[:license][:license_infos_id]) | |
| 27 | + end | |
| 28 | + | |
| 29 | + control_software_creation | |
| 30 | + end | |
| 31 | + | |
| 32 | + def search_offerers | |
| 33 | + arg = params[:q].downcase | |
| 34 | + result = environment.people.find(:all, | |
| 35 | + :conditions => [ 'LOWER(name) LIKE ?', "%#{arg}%"]) | |
| 36 | + render :text => prepare_to_token_input(result).to_json | |
| 37 | + end | |
| 38 | + | |
| 39 | + def edit_software | |
| 40 | + update_software_atributes | |
| 41 | + | |
| 42 | + return unless request.post? | |
| 43 | + @software_info = constroy_software | |
| 44 | + software_info_insert_models.call(@list_libraries, 'libraries') | |
| 45 | + software_info_insert_models.call(@list_languages, 'software_languages') | |
| 46 | + software_info_insert_models.call(@list_databases, 'software_databases') | |
| 47 | + software_info_insert_models.call(@list_operating_systems, 'operating_systems') | |
| 48 | + | |
| 49 | + begin | |
| 50 | + @software_info.save! | |
| 51 | + if params[:commit] == _('Save and Configure Community') | |
| 52 | + redirect_to :controller => 'profile_editor', :action => 'edit' | |
| 53 | + else | |
| 54 | + redirect_to :controller => 'profile_editor', :action => 'index' | |
| 55 | + session[:notice] = _('Software updated sucessefuly') | |
| 56 | + end | |
| 57 | + rescue ActiveRecord::RecordInvalid => invalid | |
| 58 | + session[:notice] = _('Could not update software') | |
| 59 | + end | |
| 60 | + end | |
| 61 | + | |
| 62 | + def disabled_public_software_field | |
| 63 | + !environment.admins.include?(current_user.person) | |
| 64 | + end | |
| 65 | + | |
| 66 | + def community_must_be_approved | |
| 67 | + end | |
| 68 | + | |
| 69 | + private | |
| 70 | + | |
| 71 | + def add_software_erros | |
| 72 | + @errors = [] | |
| 73 | + @errors |= @community.errors.full_messages | |
| 74 | + @errors |= @software_info.errors.full_messages | |
| 75 | + @errors |= @license_info.errors.full_messages | |
| 76 | + end | |
| 77 | + | |
| 78 | + def control_software_creation | |
| 79 | + valid_models = request.post? && (@community.valid? && @software_info.valid? && @license_info.valid?) | |
| 80 | + if valid_models | |
| 81 | + send_software_to_moderation | |
| 82 | + else | |
| 83 | + add_software_erros | |
| 84 | + end | |
| 85 | + end | |
| 86 | + | |
| 87 | + def update_institution | |
| 88 | + @institution.community.update_attributes(params[:community]) | |
| 89 | + @institution.update_attributes(params[:institutions].except(:governmental_power, :governmental_sphere, :juridical_nature)) | |
| 90 | + if @institution.type == "PublicInstitution" | |
| 91 | + begin | |
| 92 | + governmental_updates | |
| 93 | + rescue | |
| 94 | + @institution.errors.add(:governmental_fields, | |
| 95 | + _("Could not find Governmental Power or Governmental Sphere")) | |
| 96 | + end | |
| 97 | + end | |
| 98 | + flash[:errors] = @institution.errors.full_messages unless @institution.valid? | |
| 99 | + end | |
| 100 | + | |
| 101 | + def governmental_updates | |
| 102 | + gov_power = GovernmentalPower.find params[:institutions][:governmental_power] | |
| 103 | + gov_sphere = GovernmentalSphere.find params[:institutions][:governmental_sphere] | |
| 104 | + jur_nature = JuridicalNature.find params[:institutions][:juridical_nature] | |
| 105 | + | |
| 106 | + @institution.juridical_nature = jur_nature | |
| 107 | + @institution.governmental_power = gov_power | |
| 108 | + @institution.governmental_sphere = gov_sphere | |
| 109 | + @institution.save | |
| 110 | + end | |
| 111 | + | |
| 112 | + def software_info_insert_models | |
| 113 | + proc { |list,model_attr| | |
| 114 | + @software_info.send(model_attr).destroy_all | |
| 115 | + list.collect!{|m| @software_info.send(model_attr) << m } unless list.nil? | |
| 116 | + } | |
| 117 | + end | |
| 118 | + | |
| 119 | + def constroy_software | |
| 120 | + params[:software][:public_software] ||= false | |
| 121 | + @software_info = @profile.software_info | |
| 122 | + @license = LicenseInfo.find(params[:license][:license_infos_id]) | |
| 123 | + @software_info.license_info = @license | |
| 124 | + @software_info.update_attributes(params[:software]) | |
| 125 | + | |
| 126 | + another_license_version = nil | |
| 127 | + another_license_link = nil | |
| 128 | + if params[:license] | |
| 129 | + another_license_version = params[:license][:version] | |
| 130 | + another_license_link = params[:license][:link] | |
| 131 | + end | |
| 132 | + | |
| 133 | + @software_info.verify_license_info(another_license_version, another_license_link) | |
| 134 | + | |
| 135 | + create_list_model_helpers | |
| 136 | + | |
| 137 | + @software_info | |
| 138 | + end | |
| 139 | + | |
| 140 | + def create_list_model_helpers | |
| 141 | + @list_libraries = LibraryHelper.list_library(params[:library]) | |
| 142 | + @list_languages = SoftwareLanguageHelper.list_language(params[:language]) | |
| 143 | + @list_databases = DatabaseHelper.list_database(params[:database]) | |
| 144 | + @list_operating_systems = OperatingSystemHelper.list_operating_system(params[:operating_system]) | |
| 145 | + end | |
| 146 | + | |
| 147 | + def send_software_to_moderation | |
| 148 | + another_license_version = "" | |
| 149 | + another_license_link = "" | |
| 150 | + if params[:license] | |
| 151 | + another_license_version = params[:license][:version] | |
| 152 | + another_license_link = params[:license][:link] | |
| 153 | + end | |
| 154 | + @software_info = SoftwareInfo.create_after_moderation(user, | |
| 155 | + params[:software_info].merge({ | |
| 156 | + :environment => environment, | |
| 157 | + :name => params[:community][:name], | |
| 158 | + :license_info => @license_info, | |
| 159 | + :another_license_version => another_license_version, | |
| 160 | + :another_license_link => another_license_link })) | |
| 161 | + | |
| 162 | + add_admin_to_community | |
| 163 | + | |
| 164 | + if !environment.admins.include?(current_user.person) | |
| 165 | + session[:notice] = _('Your new software request will be evaluated by an'\ | |
| 166 | + 'administrator. You will be notified.') | |
| 167 | + redirect_to user.admin_url | |
| 168 | + else | |
| 169 | + redirect_to :controller => 'profile_editor', | |
| 170 | + :action => 'edit', | |
| 171 | + :profile => @community.identifier | |
| 172 | + end | |
| 173 | + end | |
| 174 | + | |
| 175 | + def update_software_atributes | |
| 176 | + @software_info = @profile.software_info | |
| 177 | + @list_libraries = @software_info.libraries | |
| 178 | + @list_databases = @software_info.software_databases | |
| 179 | + @list_languages = @software_info.software_languages | |
| 180 | + @list_operating_systems = @software_info.operating_systems | |
| 181 | + @disabled_public_software_field = disabled_public_software_field | |
| 182 | + | |
| 183 | + @license_version = @software_info.license_info.version | |
| 184 | + @license_id = @software_info.license_info.id | |
| 185 | + @another_license_version = "" | |
| 186 | + @another_license_link = "" | |
| 187 | + | |
| 188 | + license_another = LicenseInfo.find_by_version("Another") | |
| 189 | + if license_another && @software_info.license_info_id == license_another.id | |
| 190 | + @license_version = "Another" | |
| 191 | + @another_license_version = @software_info.license_info.version | |
| 192 | + @another_license_link = @software_info.license_info.link | |
| 193 | + end | |
| 194 | + end | |
| 195 | + | |
| 196 | + def set_software_as_template | |
| 197 | + software_template = Community['software'] | |
| 198 | + software_valid = !software_template.blank? && software_template.is_template && !params['community'].blank? | |
| 199 | + if software_valid | |
| 200 | + params['community']['template_id'] = software_template.id if software_valid | |
| 201 | + end | |
| 202 | + end | |
| 203 | + | |
| 204 | + def add_admin_to_community | |
| 205 | + unless params[:q].nil? | |
| 206 | + admins = params[:q].split(/,/).map{ |n| environment.people.find n.to_i } | |
| 207 | + admins.each do |admin| | |
| 208 | + @community.add_member(admin) | |
| 209 | + @community.add_admin(admin) | |
| 210 | + end | |
| 211 | + end | |
| 212 | + end | |
| 213 | +end | ... | ... |
features/step_definitions/mpog_steps.rb
| ... | ... | @@ -1,242 +0,0 @@ |
| 1 | -Given /^SoftwareInfo has initial default values on database$/ do | |
| 2 | - LicenseInfo.create(:version=>"None", :link=>"") | |
| 3 | - LicenseInfo.create(:version=>"GPL-2", :link =>"www.gpl2.com") | |
| 4 | - LicenseInfo.create(:version=>"GPL-3", :link =>"www.gpl3.com") | |
| 5 | - | |
| 6 | - ProgrammingLanguage.create(:name=>"C") | |
| 7 | - ProgrammingLanguage.create(:name=>"C++") | |
| 8 | - ProgrammingLanguage.create(:name=>"Ruby") | |
| 9 | - ProgrammingLanguage.create(:name=>"Python") | |
| 10 | - | |
| 11 | - DatabaseDescription.create(:name => "Oracle") | |
| 12 | - DatabaseDescription.create(:name => "MySQL") | |
| 13 | - DatabaseDescription.create(:name => "Apache") | |
| 14 | - DatabaseDescription.create(:name => "PostgreSQL") | |
| 15 | - | |
| 16 | - OperatingSystemName.create(:name=>"Debian") | |
| 17 | - OperatingSystemName.create(:name=>"Fedora") | |
| 18 | - OperatingSystemName.create(:name=>"CentOS") | |
| 19 | -end | |
| 20 | - | |
| 21 | -Given /^Institutions has initial default values on database$/ do | |
| 22 | - GovernmentalPower.create(:name => "Executivo") | |
| 23 | - GovernmentalPower.create(:name => "Legislativo") | |
| 24 | - GovernmentalPower.create(:name => "Judiciario") | |
| 25 | - | |
| 26 | - GovernmentalSphere.create(:name => "Federal") | |
| 27 | - | |
| 28 | - JuridicalNature.create(:name => "Autarquia") | |
| 29 | - JuridicalNature.create(:name => "Administracao Direta") | |
| 30 | - JuridicalNature.create(:name => "Empresa Publica") | |
| 31 | - JuridicalNature.create(:name => "Fundacao") | |
| 32 | - JuridicalNature.create(:name => "Orgao Autonomo") | |
| 33 | - JuridicalNature.create(:name => "Sociedade") | |
| 34 | - JuridicalNature.create(:name => "Sociedade Civil") | |
| 35 | - JuridicalNature.create(:name => "Sociedade de Economia Mista") | |
| 36 | - | |
| 37 | - national_region = NationalRegion.new | |
| 38 | - national_region.name = "Distrito Federal" | |
| 39 | - national_region.national_region_code = '35' | |
| 40 | - national_region.national_region_type_id = NationalRegionType::STATE | |
| 41 | - national_region.save | |
| 42 | -end | |
| 43 | - | |
| 44 | -Given /^I type in "([^"]*)" in autocomplete list "([^"]*)" and I choose "([^"]*)"$/ do |typed, input_field_selector, should_select| | |
| 45 | - # Wait the page javascript load | |
| 46 | - sleep 1 | |
| 47 | - # Basicaly it, search for the input field, type something, wait for ajax end select an item | |
| 48 | - page.driver.browser.execute_script %Q{ | |
| 49 | - var search_query = "#{input_field_selector}.ui-autocomplete-input"; | |
| 50 | - var input = jQuery(search_query).first(); | |
| 51 | - | |
| 52 | - input.trigger('click'); | |
| 53 | - input.val('#{typed}'); | |
| 54 | - input.trigger('keydown'); | |
| 55 | - | |
| 56 | - window.setTimeout(function(){ | |
| 57 | - search_query = ".ui-menu-item a:contains('#{should_select}')"; | |
| 58 | - var typed = jQuery(search_query).first(); | |
| 59 | - | |
| 60 | - typed.trigger('mouseenter').trigger('click'); | |
| 61 | - console.log(jQuery('#license_info_id')); | |
| 62 | - }, 1000); | |
| 63 | - } | |
| 64 | - sleep 1 | |
| 65 | -end | |
| 66 | - | |
| 67 | -Given /^the following public institutions?$/ do |table| | |
| 68 | - # table is a Cucumber::Ast::Table | |
| 69 | - table.hashes.each do |item| | |
| 70 | - community = Community.new | |
| 71 | - community.name = item[:name] | |
| 72 | - community.country = item[:country] | |
| 73 | - community.state = item[:state] | |
| 74 | - community.city = item[:city] | |
| 75 | - community.save! | |
| 76 | - | |
| 77 | - governmental_power = GovernmentalPower.where(:name => item[:governmental_power]).first | |
| 78 | - governmental_sphere = GovernmentalSphere.where(:name => item[:governmental_sphere]).first | |
| 79 | - | |
| 80 | - juridical_nature = JuridicalNature.create(:name => item[:juridical_nature]) | |
| 81 | - | |
| 82 | - 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) | |
| 83 | - institution.community = community | |
| 84 | - institution.corporate_name = item[:corporate_name] | |
| 85 | - institution.save! | |
| 86 | - end | |
| 87 | -end | |
| 88 | - | |
| 89 | -Given /^the following software language$/ do |table| | |
| 90 | - table.hashes.each do |item| | |
| 91 | - programming_language = ProgrammingLanguage.where(:name=>item[:programing_language]).first | |
| 92 | - software_language = SoftwareLanguage::new | |
| 93 | - | |
| 94 | - software_language.programming_language = programming_language | |
| 95 | - software_language.version = item[:version] | |
| 96 | - software_language.operating_system = item[:operating_system] | |
| 97 | - | |
| 98 | - software_language.save! | |
| 99 | - end | |
| 100 | -end | |
| 101 | - | |
| 102 | -Given /^the following software databases$/ do |table| | |
| 103 | - table.hashes.each do |item| | |
| 104 | - database_description = DatabaseDescription.where(:name=>item[:database_name]).first | |
| 105 | - software_database = SoftwareDatabase::new | |
| 106 | - | |
| 107 | - software_database.database_description = database_description | |
| 108 | - software_database.version = item[:version] | |
| 109 | - software_database.operating_system = item[:operating_system] | |
| 110 | - | |
| 111 | - software_database.save! | |
| 112 | - end | |
| 113 | -end | |
| 114 | - | |
| 115 | - | |
| 116 | -Given /^the following operating systems$/ do |table| | |
| 117 | - table.hashes.each do |item| | |
| 118 | - operating_system_name = OperatingSystemName.where(:name=>item[:operating_system_name]).first | |
| 119 | - operating_system = OperatingSystem::new | |
| 120 | - | |
| 121 | - operating_system.operating_system_name = operating_system_name | |
| 122 | - operating_system.version = item[:version] | |
| 123 | - | |
| 124 | - operating_system.save! | |
| 125 | - end | |
| 126 | -end | |
| 127 | - | |
| 128 | -Given /^the following softwares$/ do |table| | |
| 129 | - table.hashes.each do |item| | |
| 130 | - software_info = SoftwareInfo.new | |
| 131 | - software_info.community = Community.create(:name=>item[:name]) | |
| 132 | - | |
| 133 | - software_info.acronym = item[:acronym] if item[:acronym] | |
| 134 | - software_info.operating_platform = item[:operating_platform] if item[:operating_platform] | |
| 135 | - software_info.objectives = item[:objectives] if item[:objectives] | |
| 136 | - software_info.features = item[:features] if item[:features] | |
| 137 | - software_info.public_software = item[:public_software] == "true" if item[:public_software] | |
| 138 | - software_info.license_info = LicenseInfo.create :version=>"GPL - 1.0" | |
| 139 | - | |
| 140 | - if item[:software_language] | |
| 141 | - programming_language = ProgrammingLanguage.where(:name=>item[:software_language]).first | |
| 142 | - software_language = SoftwareLanguage.where(:programming_language_id=>programming_language).first | |
| 143 | - software_info.software_languages << software_language | |
| 144 | - end | |
| 145 | - | |
| 146 | - if item[:software_database] | |
| 147 | - database_description = DatabaseDescription.where(:name=>item[:software_database]).first | |
| 148 | - software_database = SoftwareDatabase.where(:database_description_id=>database_description).first | |
| 149 | - software_info.software_databases << software_database | |
| 150 | - end | |
| 151 | - | |
| 152 | - if item[:operating_system] | |
| 153 | - operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first | |
| 154 | - operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first | |
| 155 | - software_info.operating_systems << operating_system | |
| 156 | - end | |
| 157 | - | |
| 158 | - if item[:categories] | |
| 159 | - categories = item[:categories].split(",") | |
| 160 | - categories.map! {|category| category.strip} | |
| 161 | - | |
| 162 | - categories.each do |category_name| | |
| 163 | - category = Category.find_by_name category_name | |
| 164 | - software_info.community.categories << category | |
| 165 | - end | |
| 166 | - end | |
| 167 | - | |
| 168 | - software_info.save! | |
| 169 | - end | |
| 170 | -end | |
| 171 | - | |
| 172 | -# Dynamic table steps | |
| 173 | -Given /^I fill in first "([^"]*)" class with "([^"]*)"$/ do |selector, value| | |
| 174 | - evaluate_script "jQuery('#{selector}').first().attr('value', '#{value}') && true" | |
| 175 | -end | |
| 176 | - | |
| 177 | -Given /^I fill in last "([^"]*)" class with "([^"]*)"$/ do |selector, value| | |
| 178 | - evaluate_script "jQuery('#{selector}').last().attr('value', '#{value}') && true" | |
| 179 | -end | |
| 180 | - | |
| 181 | -Given /^I click on the first button with class "([^"]*)"$/ do |selector| | |
| 182 | - evaluate_script "jQuery('#{selector}').first().trigger('click') && true" | |
| 183 | -end | |
| 184 | - | |
| 185 | -Given /^I click on the last button with class "([^"]*)"$/ do |selector| | |
| 186 | - evaluate_script "jQuery('#{selector}').last().trigger('click') && true" | |
| 187 | -end | |
| 188 | - | |
| 189 | -Given /^the user "([^"]*)" has "([^"]*)" as secondary e\-mail$/ do |login, email| | |
| 190 | - User[login].update_attributes(:secondary_email => email) | |
| 191 | -end | |
| 192 | - | |
| 193 | -Given /^I click on anything with selector "([^"]*)"$/ do |selector| | |
| 194 | - evaluate_script "jQuery('#{selector}').trigger('click') && true" | |
| 195 | -end | |
| 196 | - | |
| 197 | -Given /^I should see "([^"]*)" of this selector "([^"]*)"$/ do |quantity, selector| | |
| 198 | - evaluate_script "jQuery('#{selector}').length == '#{quantity}'" | |
| 199 | -end | |
| 200 | - | |
| 201 | -Given /^selector "([^"]*)" should have any "([^"]*)"$/ do |selector, text| | |
| 202 | - evaluate_script "jQuery('#{selector}').html().indexOf('#{text}') != -1" | |
| 203 | -end | |
| 204 | - | |
| 205 | -Given /^I click on table number "([^"]*)" selector "([^"]*)" and select the value "([^"]*)"$/ do |number, selector, value| | |
| 206 | - evaluate_script "jQuery('#{selector}:nth-child(#{number}) select option:contains(\"#{value}\")').selected() && true" | |
| 207 | -end | |
| 208 | - | |
| 209 | -Given /^I fill with "([^"]*)" in field with name "([^"]*)" of table number "([^"]*)" with class "([^"]*)"$/ do |value, name, number, selector| | |
| 210 | - evaluate_script "jQuery('#{selector}:nth-child(#{number}) input[name=\"#{name}\"]').val('#{value}') && true" | |
| 211 | -end | |
| 212 | - | |
| 213 | -Given /^I sleep for (\d+) seconds$/ do |time| | |
| 214 | - sleep time.to_i | |
| 215 | -end | |
| 216 | - | |
| 217 | -Given /^I am logged in as mpog_admin$/ do | |
| 218 | - visit('/account/logout') | |
| 219 | - | |
| 220 | - user = User.new(:login => 'admin_user', :password => '123456', :password_confirmation => '123456', :email => 'admin_user@example.com') | |
| 221 | - person = Person.new :name=>"Mpog Admin", :identifier=>"mpog-admin" | |
| 222 | - user.person = person | |
| 223 | - user.save! | |
| 224 | - | |
| 225 | - user.activate | |
| 226 | - e = Environment.default | |
| 227 | - e.add_admin(user.person) | |
| 228 | - | |
| 229 | - visit('/account/login') | |
| 230 | - fill_in("Username", :with => user.login) | |
| 231 | - fill_in("Password", :with => '123456') | |
| 232 | - click_button("Log in") | |
| 233 | -end | |
| 234 | - | |
| 235 | -Given /^I should see "([^"]*)" before "([^"]*)"$/ do |before, after| | |
| 236 | - assert page.body.index("#{before}") < page.body.index("#{after}") | |
| 237 | -end | |
| 238 | - | |
| 239 | -Given /^I keyup on selector "([^"]*)"$/ do |selector| | |
| 240 | - selector_founded = evaluate_script("jQuery('#{selector}').trigger('keyup').length != 0") | |
| 241 | - selector_founded.should be_true | |
| 242 | -end |
| ... | ... | @@ -0,0 +1,242 @@ |
| 1 | +Given /^SoftwareInfo has initial default values on database$/ do | |
| 2 | + LicenseInfo.create(:version=>"None", :link=>"") | |
| 3 | + LicenseInfo.create(:version=>"GPL-2", :link =>"www.gpl2.com") | |
| 4 | + LicenseInfo.create(:version=>"GPL-3", :link =>"www.gpl3.com") | |
| 5 | + | |
| 6 | + ProgrammingLanguage.create(:name=>"C") | |
| 7 | + ProgrammingLanguage.create(:name=>"C++") | |
| 8 | + ProgrammingLanguage.create(:name=>"Ruby") | |
| 9 | + ProgrammingLanguage.create(:name=>"Python") | |
| 10 | + | |
| 11 | + DatabaseDescription.create(:name => "Oracle") | |
| 12 | + DatabaseDescription.create(:name => "MySQL") | |
| 13 | + DatabaseDescription.create(:name => "Apache") | |
| 14 | + DatabaseDescription.create(:name => "PostgreSQL") | |
| 15 | + | |
| 16 | + OperatingSystemName.create(:name=>"Debian") | |
| 17 | + OperatingSystemName.create(:name=>"Fedora") | |
| 18 | + OperatingSystemName.create(:name=>"CentOS") | |
| 19 | +end | |
| 20 | + | |
| 21 | +Given /^Institutions has initial default values on database$/ do | |
| 22 | + GovernmentalPower.create(:name => "Executivo") | |
| 23 | + GovernmentalPower.create(:name => "Legislativo") | |
| 24 | + GovernmentalPower.create(:name => "Judiciario") | |
| 25 | + | |
| 26 | + GovernmentalSphere.create(:name => "Federal") | |
| 27 | + | |
| 28 | + JuridicalNature.create(:name => "Autarquia") | |
| 29 | + JuridicalNature.create(:name => "Administracao Direta") | |
| 30 | + JuridicalNature.create(:name => "Empresa Publica") | |
| 31 | + JuridicalNature.create(:name => "Fundacao") | |
| 32 | + JuridicalNature.create(:name => "Orgao Autonomo") | |
| 33 | + JuridicalNature.create(:name => "Sociedade") | |
| 34 | + JuridicalNature.create(:name => "Sociedade Civil") | |
| 35 | + JuridicalNature.create(:name => "Sociedade de Economia Mista") | |
| 36 | + | |
| 37 | + national_region = NationalRegion.new | |
| 38 | + national_region.name = "Distrito Federal" | |
| 39 | + national_region.national_region_code = '35' | |
| 40 | + national_region.national_region_type_id = NationalRegionType::STATE | |
| 41 | + national_region.save | |
| 42 | +end | |
| 43 | + | |
| 44 | +Given /^I type in "([^"]*)" in autocomplete list "([^"]*)" and I choose "([^"]*)"$/ do |typed, input_field_selector, should_select| | |
| 45 | + # Wait the page javascript load | |
| 46 | + sleep 1 | |
| 47 | + # Basicaly it, search for the input field, type something, wait for ajax end select an item | |
| 48 | + page.driver.browser.execute_script %Q{ | |
| 49 | + var search_query = "#{input_field_selector}.ui-autocomplete-input"; | |
| 50 | + var input = jQuery(search_query).first(); | |
| 51 | + | |
| 52 | + input.trigger('click'); | |
| 53 | + input.val('#{typed}'); | |
| 54 | + input.trigger('keydown'); | |
| 55 | + | |
| 56 | + window.setTimeout(function(){ | |
| 57 | + search_query = ".ui-menu-item a:contains('#{should_select}')"; | |
| 58 | + var typed = jQuery(search_query).first(); | |
| 59 | + | |
| 60 | + typed.trigger('mouseenter').trigger('click'); | |
| 61 | + console.log(jQuery('#license_info_id')); | |
| 62 | + }, 1000); | |
| 63 | + } | |
| 64 | + sleep 1 | |
| 65 | +end | |
| 66 | + | |
| 67 | +Given /^the following public institutions?$/ do |table| | |
| 68 | + # table is a Cucumber::Ast::Table | |
| 69 | + table.hashes.each do |item| | |
| 70 | + community = Community.new | |
| 71 | + community.name = item[:name] | |
| 72 | + community.country = item[:country] | |
| 73 | + community.state = item[:state] | |
| 74 | + community.city = item[:city] | |
| 75 | + community.save! | |
| 76 | + | |
| 77 | + governmental_power = GovernmentalPower.where(:name => item[:governmental_power]).first | |
| 78 | + governmental_sphere = GovernmentalSphere.where(:name => item[:governmental_sphere]).first | |
| 79 | + | |
| 80 | + juridical_nature = JuridicalNature.create(:name => item[:juridical_nature]) | |
| 81 | + | |
| 82 | + 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) | |
| 83 | + institution.community = community | |
| 84 | + institution.corporate_name = item[:corporate_name] | |
| 85 | + institution.save! | |
| 86 | + end | |
| 87 | +end | |
| 88 | + | |
| 89 | +Given /^the following software language$/ do |table| | |
| 90 | + table.hashes.each do |item| | |
| 91 | + programming_language = ProgrammingLanguage.where(:name=>item[:programing_language]).first | |
| 92 | + software_language = SoftwareLanguage::new | |
| 93 | + | |
| 94 | + software_language.programming_language = programming_language | |
| 95 | + software_language.version = item[:version] | |
| 96 | + software_language.operating_system = item[:operating_system] | |
| 97 | + | |
| 98 | + software_language.save! | |
| 99 | + end | |
| 100 | +end | |
| 101 | + | |
| 102 | +Given /^the following software databases$/ do |table| | |
| 103 | + table.hashes.each do |item| | |
| 104 | + database_description = DatabaseDescription.where(:name=>item[:database_name]).first | |
| 105 | + software_database = SoftwareDatabase::new | |
| 106 | + | |
| 107 | + software_database.database_description = database_description | |
| 108 | + software_database.version = item[:version] | |
| 109 | + software_database.operating_system = item[:operating_system] | |
| 110 | + | |
| 111 | + software_database.save! | |
| 112 | + end | |
| 113 | +end | |
| 114 | + | |
| 115 | + | |
| 116 | +Given /^the following operating systems$/ do |table| | |
| 117 | + table.hashes.each do |item| | |
| 118 | + operating_system_name = OperatingSystemName.where(:name=>item[:operating_system_name]).first | |
| 119 | + operating_system = OperatingSystem::new | |
| 120 | + | |
| 121 | + operating_system.operating_system_name = operating_system_name | |
| 122 | + operating_system.version = item[:version] | |
| 123 | + | |
| 124 | + operating_system.save! | |
| 125 | + end | |
| 126 | +end | |
| 127 | + | |
| 128 | +Given /^the following softwares$/ do |table| | |
| 129 | + table.hashes.each do |item| | |
| 130 | + software_info = SoftwareInfo.new | |
| 131 | + software_info.community = Community.create(:name=>item[:name]) | |
| 132 | + | |
| 133 | + software_info.acronym = item[:acronym] if item[:acronym] | |
| 134 | + software_info.operating_platform = item[:operating_platform] if item[:operating_platform] | |
| 135 | + software_info.objectives = item[:objectives] if item[:objectives] | |
| 136 | + software_info.features = item[:features] if item[:features] | |
| 137 | + software_info.public_software = item[:public_software] == "true" if item[:public_software] | |
| 138 | + software_info.license_info = LicenseInfo.create :version=>"GPL - 1.0" | |
| 139 | + | |
| 140 | + if item[:software_language] | |
| 141 | + programming_language = ProgrammingLanguage.where(:name=>item[:software_language]).first | |
| 142 | + software_language = SoftwareLanguage.where(:programming_language_id=>programming_language).first | |
| 143 | + software_info.software_languages << software_language | |
| 144 | + end | |
| 145 | + | |
| 146 | + if item[:software_database] | |
| 147 | + database_description = DatabaseDescription.where(:name=>item[:software_database]).first | |
| 148 | + software_database = SoftwareDatabase.where(:database_description_id=>database_description).first | |
| 149 | + software_info.software_databases << software_database | |
| 150 | + end | |
| 151 | + | |
| 152 | + if item[:operating_system] | |
| 153 | + operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first | |
| 154 | + operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first | |
| 155 | + software_info.operating_systems << operating_system | |
| 156 | + end | |
| 157 | + | |
| 158 | + if item[:categories] | |
| 159 | + categories = item[:categories].split(",") | |
| 160 | + categories.map! {|category| category.strip} | |
| 161 | + | |
| 162 | + categories.each do |category_name| | |
| 163 | + category = Category.find_by_name category_name | |
| 164 | + software_info.community.categories << category | |
| 165 | + end | |
| 166 | + end | |
| 167 | + | |
| 168 | + software_info.save! | |
| 169 | + end | |
| 170 | +end | |
| 171 | + | |
| 172 | +# Dynamic table steps | |
| 173 | +Given /^I fill in first "([^"]*)" class with "([^"]*)"$/ do |selector, value| | |
| 174 | + evaluate_script "jQuery('#{selector}').first().attr('value', '#{value}') && true" | |
| 175 | +end | |
| 176 | + | |
| 177 | +Given /^I fill in last "([^"]*)" class with "([^"]*)"$/ do |selector, value| | |
| 178 | + evaluate_script "jQuery('#{selector}').last().attr('value', '#{value}') && true" | |
| 179 | +end | |
| 180 | + | |
| 181 | +Given /^I click on the first button with class "([^"]*)"$/ do |selector| | |
| 182 | + evaluate_script "jQuery('#{selector}').first().trigger('click') && true" | |
| 183 | +end | |
| 184 | + | |
| 185 | +Given /^I click on the last button with class "([^"]*)"$/ do |selector| | |
| 186 | + evaluate_script "jQuery('#{selector}').last().trigger('click') && true" | |
| 187 | +end | |
| 188 | + | |
| 189 | +Given /^the user "([^"]*)" has "([^"]*)" as secondary e\-mail$/ do |login, email| | |
| 190 | + User[login].update_attributes(:secondary_email => email) | |
| 191 | +end | |
| 192 | + | |
| 193 | +Given /^I click on anything with selector "([^"]*)"$/ do |selector| | |
| 194 | + evaluate_script "jQuery('#{selector}').trigger('click') && true" | |
| 195 | +end | |
| 196 | + | |
| 197 | +Given /^I should see "([^"]*)" of this selector "([^"]*)"$/ do |quantity, selector| | |
| 198 | + evaluate_script "jQuery('#{selector}').length == '#{quantity}'" | |
| 199 | +end | |
| 200 | + | |
| 201 | +Given /^selector "([^"]*)" should have any "([^"]*)"$/ do |selector, text| | |
| 202 | + evaluate_script "jQuery('#{selector}').html().indexOf('#{text}') != -1" | |
| 203 | +end | |
| 204 | + | |
| 205 | +Given /^I click on table number "([^"]*)" selector "([^"]*)" and select the value "([^"]*)"$/ do |number, selector, value| | |
| 206 | + evaluate_script "jQuery('#{selector}:nth-child(#{number}) select option:contains(\"#{value}\")').selected() && true" | |
| 207 | +end | |
| 208 | + | |
| 209 | +Given /^I fill with "([^"]*)" in field with name "([^"]*)" of table number "([^"]*)" with class "([^"]*)"$/ do |value, name, number, selector| | |
| 210 | + evaluate_script "jQuery('#{selector}:nth-child(#{number}) input[name=\"#{name}\"]').val('#{value}') && true" | |
| 211 | +end | |
| 212 | + | |
| 213 | +Given /^I sleep for (\d+) seconds$/ do |time| | |
| 214 | + sleep time.to_i | |
| 215 | +end | |
| 216 | + | |
| 217 | +Given /^I am logged in as mpog_admin$/ do | |
| 218 | + visit('/account/logout') | |
| 219 | + | |
| 220 | + user = User.new(:login => 'admin_user', :password => '123456', :password_confirmation => '123456', :email => 'admin_user@example.com') | |
| 221 | + person = Person.new :name=>"Mpog Admin", :identifier=>"mpog-admin" | |
| 222 | + user.person = person | |
| 223 | + user.save! | |
| 224 | + | |
| 225 | + user.activate | |
| 226 | + e = Environment.default | |
| 227 | + e.add_admin(user.person) | |
| 228 | + | |
| 229 | + visit('/account/login') | |
| 230 | + fill_in("Username", :with => user.login) | |
| 231 | + fill_in("Password", :with => '123456') | |
| 232 | + click_button("Log in") | |
| 233 | +end | |
| 234 | + | |
| 235 | +Given /^I should see "([^"]*)" before "([^"]*)"$/ do |before, after| | |
| 236 | + assert page.body.index("#{before}") < page.body.index("#{after}") | |
| 237 | +end | |
| 238 | + | |
| 239 | +Given /^I keyup on selector "([^"]*)"$/ do |selector| | |
| 240 | + selector_founded = evaluate_script("jQuery('#{selector}').trigger('keyup').length != 0") | |
| 241 | + selector_founded.should be_true | |
| 242 | +end | ... | ... |
lib/mpog_software_plugin.rb
| ... | ... | @@ -1,380 +0,0 @@ |
| 1 | -class SoftwareCommunitiesPlugin < Noosfero::Plugin | |
| 2 | - include ActionView::Helpers::TagHelper | |
| 3 | - include ActionView::Helpers::FormTagHelper | |
| 4 | - include ActionView::Helpers::FormOptionsHelper | |
| 5 | - include ActionView::Helpers::JavaScriptHelper | |
| 6 | - include ActionView::Helpers::AssetTagHelper | |
| 7 | - include FormsHelper | |
| 8 | - include ActionView::Helpers | |
| 9 | - include ActionDispatch::Routing | |
| 10 | - include Rails.application.routes.url_helpers | |
| 11 | - | |
| 12 | - def self.plugin_name | |
| 13 | - 'SoftwareCommunitiesPlugin' | |
| 14 | - end | |
| 15 | - | |
| 16 | - def self.plugin_description | |
| 17 | - _('Add Public Software and MPOG features.') | |
| 18 | - end | |
| 19 | - | |
| 20 | - # Hotspot to insert html without an especific hotspot on view. | |
| 21 | - def body_beginning | |
| 22 | - return if context.session[:user].nil? or context.session[:hide_incomplete_percentage] == true | |
| 23 | - | |
| 24 | - person = context.environment.people.where(:user_id=>context.session[:user]).first | |
| 25 | - | |
| 26 | - if context.profile && context.profile.person? and !person.nil? | |
| 27 | - @person = person | |
| 28 | - @percentege = calc_percentage_registration(person) | |
| 29 | - | |
| 30 | - if @percentege >= 0 and @percentege < 100 | |
| 31 | - expanded_template('incomplete_registration.html.erb') | |
| 32 | - end | |
| 33 | - end | |
| 34 | - end | |
| 35 | - | |
| 36 | - def profile_editor_extras | |
| 37 | - profile = context.profile | |
| 38 | - | |
| 39 | - if profile.person? | |
| 40 | - expanded_template('person_editor_extras.html.erb') | |
| 41 | - elsif profile.respond_to?(:software_info) && | |
| 42 | - !profile.software_info.nil? | |
| 43 | - | |
| 44 | - if profile.software_info.first_edit? | |
| 45 | - profile.software_info.first_edit = false | |
| 46 | - profile.software_info.save! | |
| 47 | - expanded_template('first_edit_software_community_extras.html.erb') | |
| 48 | - end | |
| 49 | - end | |
| 50 | - end | |
| 51 | - | |
| 52 | - def profile_editor_transaction_extras | |
| 53 | - single_hash_transactions = { :user => 'user', | |
| 54 | - :instituton => 'instituton' | |
| 55 | - } | |
| 56 | - | |
| 57 | - single_hash_transactions.each do |model, transaction| | |
| 58 | - call_model_transaction(model, transaction) | |
| 59 | - end | |
| 60 | - end | |
| 61 | - | |
| 62 | - def profile_editor_controller_filters | |
| 63 | - block = proc do | |
| 64 | - if request.post? && params[:institution] | |
| 65 | - is_admin = environment.admins.include?(current_user.person) | |
| 66 | - | |
| 67 | - unless is_admin | |
| 68 | - institution = profile.user.institutions | |
| 69 | - | |
| 70 | - if !params[:institution].blank? && !params[:institution][:sisp].nil? | |
| 71 | - if params[:institution][:sisp] != institution.sisp | |
| 72 | - params[:institution][:sisp] = institution.sisp | |
| 73 | - end | |
| 74 | - end | |
| 75 | - end | |
| 76 | - end | |
| 77 | - end | |
| 78 | - | |
| 79 | - [{ | |
| 80 | - :type => 'before_filter', | |
| 81 | - :method_name => 'validate_institution_sisp_field_access', | |
| 82 | - :options => { :only => :edit }, | |
| 83 | - :block => block | |
| 84 | - }] | |
| 85 | - end | |
| 86 | - | |
| 87 | - def profile_tabs | |
| 88 | - if context.profile.community? | |
| 89 | - profile_tabs_software if context.profile.software? | |
| 90 | - profile_tabs_institution if context.profile.institution? | |
| 91 | - end | |
| 92 | - end | |
| 93 | - | |
| 94 | - def control_panel_buttons | |
| 95 | - if context.profile.software? | |
| 96 | - return software_info_button | |
| 97 | - elsif context.profile.person? | |
| 98 | - return create_new_software_button | |
| 99 | - elsif context.profile.institution? | |
| 100 | - return institution_info_button | |
| 101 | - end | |
| 102 | - end | |
| 103 | - | |
| 104 | - def self.extra_blocks | |
| 105 | - { | |
| 106 | - SoftwaresBlock => { :type => [Environment, Person] }, | |
| 107 | - SoftwareInformationBlock => { :type => [Community] }, | |
| 108 | - InstitutionsBlock => { :type => [Environment, Person] }, | |
| 109 | - DownloadBlock => { :type => [Community] }, | |
| 110 | - RepositoryBlock => { :type => [Community] }, | |
| 111 | - CategoriesAndTagsBlock => { :type => [Community] }, | |
| 112 | - CategoriesSoftwareBlock => { :type => [Environment] }, | |
| 113 | - SearchCatalogBlock => { :type => [Environment] } | |
| 114 | - } | |
| 115 | - end | |
| 116 | - | |
| 117 | - def stylesheet? | |
| 118 | - true | |
| 119 | - end | |
| 120 | - | |
| 121 | - def js_files | |
| 122 | - %w( | |
| 123 | - jquery.maskedinput.min.js | |
| 124 | - spb-utils.js | |
| 125 | - mpog-software.js | |
| 126 | - mpog-software-validations.js | |
| 127 | - mpog-user-validations.js | |
| 128 | - mpog-institution-validations.js | |
| 129 | - mpog-incomplete-registration.js | |
| 130 | - mpog-search.js | |
| 131 | - software-catalog.js | |
| 132 | - mpog-software-block.js | |
| 133 | - ) | |
| 134 | - end | |
| 135 | - | |
| 136 | - # FIXME - if in error log apears has_permission?, try to use this method | |
| 137 | - def has_permission?(person, permission, target) | |
| 138 | - person.has_permission_without_plugins?(permission, target) | |
| 139 | - end | |
| 140 | - | |
| 141 | - def custom_user_registration_attributes(user) | |
| 142 | - return if context.params[:user][:institution_ids].nil? | |
| 143 | - context.params[:user][:institution_ids].delete('') | |
| 144 | - | |
| 145 | - update_user_institutions(user) | |
| 146 | - | |
| 147 | - user.institutions.each do |institution| | |
| 148 | - community = institution.community | |
| 149 | - community.add_member user.person | |
| 150 | - end | |
| 151 | - end | |
| 152 | - | |
| 153 | - def calc_percentage_registration(person) | |
| 154 | - required_list = profile_required_list | |
| 155 | - empty_fields = profile_required_empty_list person | |
| 156 | - count = required_list[:person_fields].count + | |
| 157 | - required_list[:user_fields].count | |
| 158 | - percentege = 100 - ((empty_fields.count * 100) / count) | |
| 159 | - person.percentage_incomplete = percentege | |
| 160 | - person.save(validate: false) | |
| 161 | - percentege | |
| 162 | - end | |
| 163 | - | |
| 164 | - def admin_panel_links | |
| 165 | - [ | |
| 166 | - { | |
| 167 | - :title => _('Create Institution'), | |
| 168 | - :url => { | |
| 169 | - :controller => 'software_communities_plugin', | |
| 170 | - :action => 'create_institution_admin' | |
| 171 | - } | |
| 172 | - } | |
| 173 | - ] | |
| 174 | - end | |
| 175 | - | |
| 176 | - protected | |
| 177 | - | |
| 178 | - def create_url_to_edit_profile person | |
| 179 | - new_url = person.public_profile_url | |
| 180 | - new_url[:controller] = 'profile_editor' | |
| 181 | - new_url[:action] = 'edit' | |
| 182 | - new_url | |
| 183 | - end | |
| 184 | - | |
| 185 | - def profile_required_list | |
| 186 | - fields = {} | |
| 187 | - fields[:person_fields] = %w(cell_phone | |
| 188 | - contact_phone | |
| 189 | - comercial_phone | |
| 190 | - country | |
| 191 | - city | |
| 192 | - state | |
| 193 | - organization_website | |
| 194 | - image | |
| 195 | - identifier | |
| 196 | - name) | |
| 197 | - | |
| 198 | - fields[:user_fields] = %w(secondary_email email) | |
| 199 | - fields | |
| 200 | - end | |
| 201 | - | |
| 202 | - | |
| 203 | - def profile_required_empty_list(person) | |
| 204 | - empty_fields = [] | |
| 205 | - required_list = profile_required_list | |
| 206 | - | |
| 207 | - required_list[:person_fields].each do |field| | |
| 208 | - empty_fields << field.sub('_',' ') if person.send(field).blank? | |
| 209 | - end | |
| 210 | - required_list[:user_fields].each do |field| | |
| 211 | - empty_fields << field.sub('_',' ') if person.user.send(field).blank? | |
| 212 | - end | |
| 213 | - empty_fields | |
| 214 | - end | |
| 215 | - | |
| 216 | - def user_transaction | |
| 217 | - user_editor_institution_actions | |
| 218 | - | |
| 219 | - User.transaction do | |
| 220 | - context.profile.user.update_attributes!(context.params[:user]) | |
| 221 | - end | |
| 222 | - end | |
| 223 | - | |
| 224 | - def institution_transaction | |
| 225 | - institution.date_modification = DateTime.now | |
| 226 | - institution.save | |
| 227 | - institution_models = %w(governmental_power governmental_sphere | |
| 228 | - juridical_nature) | |
| 229 | - | |
| 230 | - institution_models.each do |model| | |
| 231 | - call_institution_transaction(model) | |
| 232 | - end | |
| 233 | - | |
| 234 | - if context.params.has_key?(:institution) | |
| 235 | - Institution.transaction do | |
| 236 | - context.profile. | |
| 237 | - institution. | |
| 238 | - update_attributes!(context.params[:institution]) | |
| 239 | - end | |
| 240 | - end | |
| 241 | - end | |
| 242 | - | |
| 243 | - def software_info_transaction | |
| 244 | - SoftwareInfo.transaction do | |
| 245 | - context.profile. | |
| 246 | - software_info. | |
| 247 | - update_attributes!(context.params[:software_info]) | |
| 248 | - end | |
| 249 | - end | |
| 250 | - | |
| 251 | - def license_transaction | |
| 252 | - license = LicenseInfo.find(context.params[:version]) | |
| 253 | - context.profile.software_info.license_info = license | |
| 254 | - context.profile.software_info.save! | |
| 255 | - end | |
| 256 | - | |
| 257 | - private | |
| 258 | - | |
| 259 | - # Add and remove the user from it's institutions communities | |
| 260 | - def user_editor_institution_actions | |
| 261 | - user = context.profile.user | |
| 262 | - | |
| 263 | - old_communities = [] | |
| 264 | - context.profile.user.institutions.each do |institution| | |
| 265 | - old_communities << institution.community | |
| 266 | - end | |
| 267 | - | |
| 268 | - new_communities = [] | |
| 269 | - unless context.params[:user][:institution_ids].nil? | |
| 270 | - context.params[:user][:institution_ids].delete('') | |
| 271 | - | |
| 272 | - context.params[:user][:institution_ids].each do |id| | |
| 273 | - new_communities << Institution.find(id).community | |
| 274 | - end | |
| 275 | - end | |
| 276 | - | |
| 277 | - manage_user_institutions(user, old_communities, new_communities) | |
| 278 | - end | |
| 279 | - | |
| 280 | - def show_sisp_field | |
| 281 | - current_person = User.find(context.session[:user]).person | |
| 282 | - context.environment.admins.include?(current_person) | |
| 283 | - end | |
| 284 | - | |
| 285 | - def call_model_transaction(model,name) | |
| 286 | - send(name + '_transaction') if context.params.key?(model.to_sym) | |
| 287 | - end | |
| 288 | - | |
| 289 | - def call_institution_transaction(model) | |
| 290 | - context.profile.institution.send(model + '_id = ', | |
| 291 | - context.params[model.to_sym]) | |
| 292 | - context.profile.institution.save! | |
| 293 | - end | |
| 294 | - | |
| 295 | - def software_info_button | |
| 296 | - { | |
| 297 | - :title => _('Software Info'), | |
| 298 | - :icon => 'edit-profile-group control-panel-software-link', | |
| 299 | - :url => { | |
| 300 | - :controller => 'software_communities_plugin_myprofile', | |
| 301 | - :action => 'edit_software' | |
| 302 | - } | |
| 303 | - } | |
| 304 | - end | |
| 305 | - | |
| 306 | - def create_new_software_button | |
| 307 | - { | |
| 308 | - :title => _('Create a new software'), | |
| 309 | - :icon => 'design-editor', | |
| 310 | - :url => { | |
| 311 | - :controller => 'software_communities_plugin_myprofile', | |
| 312 | - :action => 'new_software' | |
| 313 | - } | |
| 314 | - } | |
| 315 | - end | |
| 316 | - | |
| 317 | - def institution_info_button | |
| 318 | - { | |
| 319 | - :title => _('Institution Info'), | |
| 320 | - :icon => 'edit-profile-group control-panel-instituton-link', | |
| 321 | - :url => { | |
| 322 | - :controller => 'software_communities_plugin_myprofile', | |
| 323 | - :action => 'edit_institution' | |
| 324 | - } | |
| 325 | - } | |
| 326 | - end | |
| 327 | - | |
| 328 | - def manage_user_institutions(user, old_communities, new_communities) | |
| 329 | - leave_communities = (old_communities - new_communities) | |
| 330 | - enter_communities = (new_communities - old_communities) | |
| 331 | - | |
| 332 | - leave_communities.each do |community| | |
| 333 | - community.remove_member(user.person) | |
| 334 | - user.institutions.delete(community.institution) | |
| 335 | - end | |
| 336 | - | |
| 337 | - enter_communities.each do |community| | |
| 338 | - community.add_member(user.person) | |
| 339 | - user.institutions << community.institution | |
| 340 | - end | |
| 341 | - end | |
| 342 | - | |
| 343 | - def profile_tabs_software | |
| 344 | - { :title => _('Software'), | |
| 345 | - :id => 'mpog-fields', | |
| 346 | - :content => proc do render :partial => 'software_tab' end, | |
| 347 | - :start => true } | |
| 348 | - end | |
| 349 | - | |
| 350 | - def profile_tabs_institution | |
| 351 | - { :title => _('Institution'), | |
| 352 | - :id => 'mpog-fields', | |
| 353 | - :content => Proc::new do render :partial => 'institution_tab' end, | |
| 354 | - :start => true | |
| 355 | - } | |
| 356 | - end | |
| 357 | - | |
| 358 | - def call_percentage_profile_template(person) | |
| 359 | - if context.profile && context.profile.person? && !person.nil? | |
| 360 | - @person = person | |
| 361 | - @percentege = calc_percentage_registration(person) | |
| 362 | - | |
| 363 | - if @percentege >= 0 && @percentege <= 100 | |
| 364 | - expanded_template('incomplete_registration.html.erb') | |
| 365 | - end | |
| 366 | - end | |
| 367 | - end | |
| 368 | - | |
| 369 | - def update_user_institutions(user) | |
| 370 | - context.params[:user][:institution_ids].each do |institution_id| | |
| 371 | - institution = Institution.find institution_id | |
| 372 | - user.institutions << institution | |
| 373 | - | |
| 374 | - if institution.community.admins.blank? | |
| 375 | - institution.community.add_admin(user.person) | |
| 376 | - end | |
| 377 | - end | |
| 378 | - user.save unless user.institution_ids.empty? | |
| 379 | - end | |
| 380 | -end |
| ... | ... | @@ -0,0 +1,380 @@ |
| 1 | +class SoftwareCommunitiesPlugin < Noosfero::Plugin | |
| 2 | + include ActionView::Helpers::TagHelper | |
| 3 | + include ActionView::Helpers::FormTagHelper | |
| 4 | + include ActionView::Helpers::FormOptionsHelper | |
| 5 | + include ActionView::Helpers::JavaScriptHelper | |
| 6 | + include ActionView::Helpers::AssetTagHelper | |
| 7 | + include FormsHelper | |
| 8 | + include ActionView::Helpers | |
| 9 | + include ActionDispatch::Routing | |
| 10 | + include Rails.application.routes.url_helpers | |
| 11 | + | |
| 12 | + def self.plugin_name | |
| 13 | + 'SoftwareCommunitiesPlugin' | |
| 14 | + end | |
| 15 | + | |
| 16 | + def self.plugin_description | |
| 17 | + _('Add Public Software and MPOG features.') | |
| 18 | + end | |
| 19 | + | |
| 20 | + # Hotspot to insert html without an especific hotspot on view. | |
| 21 | + def body_beginning | |
| 22 | + return if context.session[:user].nil? or context.session[:hide_incomplete_percentage] == true | |
| 23 | + | |
| 24 | + person = context.environment.people.where(:user_id=>context.session[:user]).first | |
| 25 | + | |
| 26 | + if context.profile && context.profile.person? and !person.nil? | |
| 27 | + @person = person | |
| 28 | + @percentege = calc_percentage_registration(person) | |
| 29 | + | |
| 30 | + if @percentege >= 0 and @percentege < 100 | |
| 31 | + expanded_template('incomplete_registration.html.erb') | |
| 32 | + end | |
| 33 | + end | |
| 34 | + end | |
| 35 | + | |
| 36 | + def profile_editor_extras | |
| 37 | + profile = context.profile | |
| 38 | + | |
| 39 | + if profile.person? | |
| 40 | + expanded_template('person_editor_extras.html.erb') | |
| 41 | + elsif profile.respond_to?(:software_info) && | |
| 42 | + !profile.software_info.nil? | |
| 43 | + | |
| 44 | + if profile.software_info.first_edit? | |
| 45 | + profile.software_info.first_edit = false | |
| 46 | + profile.software_info.save! | |
| 47 | + expanded_template('first_edit_software_community_extras.html.erb') | |
| 48 | + end | |
| 49 | + end | |
| 50 | + end | |
| 51 | + | |
| 52 | + def profile_editor_transaction_extras | |
| 53 | + single_hash_transactions = { :user => 'user', | |
| 54 | + :instituton => 'instituton' | |
| 55 | + } | |
| 56 | + | |
| 57 | + single_hash_transactions.each do |model, transaction| | |
| 58 | + call_model_transaction(model, transaction) | |
| 59 | + end | |
| 60 | + end | |
| 61 | + | |
| 62 | + def profile_editor_controller_filters | |
| 63 | + block = proc do | |
| 64 | + if request.post? && params[:institution] | |
| 65 | + is_admin = environment.admins.include?(current_user.person) | |
| 66 | + | |
| 67 | + unless is_admin | |
| 68 | + institution = profile.user.institutions | |
| 69 | + | |
| 70 | + if !params[:institution].blank? && !params[:institution][:sisp].nil? | |
| 71 | + if params[:institution][:sisp] != institution.sisp | |
| 72 | + params[:institution][:sisp] = institution.sisp | |
| 73 | + end | |
| 74 | + end | |
| 75 | + end | |
| 76 | + end | |
| 77 | + end | |
| 78 | + | |
| 79 | + [{ | |
| 80 | + :type => 'before_filter', | |
| 81 | + :method_name => 'validate_institution_sisp_field_access', | |
| 82 | + :options => { :only => :edit }, | |
| 83 | + :block => block | |
| 84 | + }] | |
| 85 | + end | |
| 86 | + | |
| 87 | + def profile_tabs | |
| 88 | + if context.profile.community? | |
| 89 | + profile_tabs_software if context.profile.software? | |
| 90 | + profile_tabs_institution if context.profile.institution? | |
| 91 | + end | |
| 92 | + end | |
| 93 | + | |
| 94 | + def control_panel_buttons | |
| 95 | + if context.profile.software? | |
| 96 | + return software_info_button | |
| 97 | + elsif context.profile.person? | |
| 98 | + return create_new_software_button | |
| 99 | + elsif context.profile.institution? | |
| 100 | + return institution_info_button | |
| 101 | + end | |
| 102 | + end | |
| 103 | + | |
| 104 | + def self.extra_blocks | |
| 105 | + { | |
| 106 | + SoftwaresBlock => { :type => [Environment, Person] }, | |
| 107 | + SoftwareInformationBlock => { :type => [Community] }, | |
| 108 | + InstitutionsBlock => { :type => [Environment, Person] }, | |
| 109 | + DownloadBlock => { :type => [Community] }, | |
| 110 | + RepositoryBlock => { :type => [Community] }, | |
| 111 | + CategoriesAndTagsBlock => { :type => [Community] }, | |
| 112 | + CategoriesSoftwareBlock => { :type => [Environment] }, | |
| 113 | + SearchCatalogBlock => { :type => [Environment] } | |
| 114 | + } | |
| 115 | + end | |
| 116 | + | |
| 117 | + def stylesheet? | |
| 118 | + true | |
| 119 | + end | |
| 120 | + | |
| 121 | + def js_files | |
| 122 | + %w( | |
| 123 | + jquery.maskedinput.min.js | |
| 124 | + spb-utils.js | |
| 125 | + mpog-software.js | |
| 126 | + mpog-software-validations.js | |
| 127 | + mpog-user-validations.js | |
| 128 | + mpog-institution-validations.js | |
| 129 | + mpog-incomplete-registration.js | |
| 130 | + mpog-search.js | |
| 131 | + software-catalog.js | |
| 132 | + mpog-software-block.js | |
| 133 | + ) | |
| 134 | + end | |
| 135 | + | |
| 136 | + # FIXME - if in error log apears has_permission?, try to use this method | |
| 137 | + def has_permission?(person, permission, target) | |
| 138 | + person.has_permission_without_plugins?(permission, target) | |
| 139 | + end | |
| 140 | + | |
| 141 | + def custom_user_registration_attributes(user) | |
| 142 | + return if context.params[:user][:institution_ids].nil? | |
| 143 | + context.params[:user][:institution_ids].delete('') | |
| 144 | + | |
| 145 | + update_user_institutions(user) | |
| 146 | + | |
| 147 | + user.institutions.each do |institution| | |
| 148 | + community = institution.community | |
| 149 | + community.add_member user.person | |
| 150 | + end | |
| 151 | + end | |
| 152 | + | |
| 153 | + def calc_percentage_registration(person) | |
| 154 | + required_list = profile_required_list | |
| 155 | + empty_fields = profile_required_empty_list person | |
| 156 | + count = required_list[:person_fields].count + | |
| 157 | + required_list[:user_fields].count | |
| 158 | + percentege = 100 - ((empty_fields.count * 100) / count) | |
| 159 | + person.percentage_incomplete = percentege | |
| 160 | + person.save(validate: false) | |
| 161 | + percentege | |
| 162 | + end | |
| 163 | + | |
| 164 | + def admin_panel_links | |
| 165 | + [ | |
| 166 | + { | |
| 167 | + :title => _('Create Institution'), | |
| 168 | + :url => { | |
| 169 | + :controller => 'software_communities_plugin', | |
| 170 | + :action => 'create_institution_admin' | |
| 171 | + } | |
| 172 | + } | |
| 173 | + ] | |
| 174 | + end | |
| 175 | + | |
| 176 | + protected | |
| 177 | + | |
| 178 | + def create_url_to_edit_profile person | |
| 179 | + new_url = person.public_profile_url | |
| 180 | + new_url[:controller] = 'profile_editor' | |
| 181 | + new_url[:action] = 'edit' | |
| 182 | + new_url | |
| 183 | + end | |
| 184 | + | |
| 185 | + def profile_required_list | |
| 186 | + fields = {} | |
| 187 | + fields[:person_fields] = %w(cell_phone | |
| 188 | + contact_phone | |
| 189 | + comercial_phone | |
| 190 | + country | |
| 191 | + city | |
| 192 | + state | |
| 193 | + organization_website | |
| 194 | + image | |
| 195 | + identifier | |
| 196 | + name) | |
| 197 | + | |
| 198 | + fields[:user_fields] = %w(secondary_email email) | |
| 199 | + fields | |
| 200 | + end | |
| 201 | + | |
| 202 | + | |
| 203 | + def profile_required_empty_list(person) | |
| 204 | + empty_fields = [] | |
| 205 | + required_list = profile_required_list | |
| 206 | + | |
| 207 | + required_list[:person_fields].each do |field| | |
| 208 | + empty_fields << field.sub('_',' ') if person.send(field).blank? | |
| 209 | + end | |
| 210 | + required_list[:user_fields].each do |field| | |
| 211 | + empty_fields << field.sub('_',' ') if person.user.send(field).blank? | |
| 212 | + end | |
| 213 | + empty_fields | |
| 214 | + end | |
| 215 | + | |
| 216 | + def user_transaction | |
| 217 | + user_editor_institution_actions | |
| 218 | + | |
| 219 | + User.transaction do | |
| 220 | + context.profile.user.update_attributes!(context.params[:user]) | |
| 221 | + end | |
| 222 | + end | |
| 223 | + | |
| 224 | + def institution_transaction | |
| 225 | + institution.date_modification = DateTime.now | |
| 226 | + institution.save | |
| 227 | + institution_models = %w(governmental_power governmental_sphere | |
| 228 | + juridical_nature) | |
| 229 | + | |
| 230 | + institution_models.each do |model| | |
| 231 | + call_institution_transaction(model) | |
| 232 | + end | |
| 233 | + | |
| 234 | + if context.params.has_key?(:institution) | |
| 235 | + Institution.transaction do | |
| 236 | + context.profile. | |
| 237 | + institution. | |
| 238 | + update_attributes!(context.params[:institution]) | |
| 239 | + end | |
| 240 | + end | |
| 241 | + end | |
| 242 | + | |
| 243 | + def software_info_transaction | |
| 244 | + SoftwareInfo.transaction do | |
| 245 | + context.profile. | |
| 246 | + software_info. | |
| 247 | + update_attributes!(context.params[:software_info]) | |
| 248 | + end | |
| 249 | + end | |
| 250 | + | |
| 251 | + def license_transaction | |
| 252 | + license = LicenseInfo.find(context.params[:version]) | |
| 253 | + context.profile.software_info.license_info = license | |
| 254 | + context.profile.software_info.save! | |
| 255 | + end | |
| 256 | + | |
| 257 | + private | |
| 258 | + | |
| 259 | + # Add and remove the user from it's institutions communities | |
| 260 | + def user_editor_institution_actions | |
| 261 | + user = context.profile.user | |
| 262 | + | |
| 263 | + old_communities = [] | |
| 264 | + context.profile.user.institutions.each do |institution| | |
| 265 | + old_communities << institution.community | |
| 266 | + end | |
| 267 | + | |
| 268 | + new_communities = [] | |
| 269 | + unless context.params[:user][:institution_ids].nil? | |
| 270 | + context.params[:user][:institution_ids].delete('') | |
| 271 | + | |
| 272 | + context.params[:user][:institution_ids].each do |id| | |
| 273 | + new_communities << Institution.find(id).community | |
| 274 | + end | |
| 275 | + end | |
| 276 | + | |
| 277 | + manage_user_institutions(user, old_communities, new_communities) | |
| 278 | + end | |
| 279 | + | |
| 280 | + def show_sisp_field | |
| 281 | + current_person = User.find(context.session[:user]).person | |
| 282 | + context.environment.admins.include?(current_person) | |
| 283 | + end | |
| 284 | + | |
| 285 | + def call_model_transaction(model,name) | |
| 286 | + send(name + '_transaction') if context.params.key?(model.to_sym) | |
| 287 | + end | |
| 288 | + | |
| 289 | + def call_institution_transaction(model) | |
| 290 | + context.profile.institution.send(model + '_id = ', | |
| 291 | + context.params[model.to_sym]) | |
| 292 | + context.profile.institution.save! | |
| 293 | + end | |
| 294 | + | |
| 295 | + def software_info_button | |
| 296 | + { | |
| 297 | + :title => _('Software Info'), | |
| 298 | + :icon => 'edit-profile-group control-panel-software-link', | |
| 299 | + :url => { | |
| 300 | + :controller => 'software_communities_plugin_myprofile', | |
| 301 | + :action => 'edit_software' | |
| 302 | + } | |
| 303 | + } | |
| 304 | + end | |
| 305 | + | |
| 306 | + def create_new_software_button | |
| 307 | + { | |
| 308 | + :title => _('Create a new software'), | |
| 309 | + :icon => 'design-editor', | |
| 310 | + :url => { | |
| 311 | + :controller => 'software_communities_plugin_myprofile', | |
| 312 | + :action => 'new_software' | |
| 313 | + } | |
| 314 | + } | |
| 315 | + end | |
| 316 | + | |
| 317 | + def institution_info_button | |
| 318 | + { | |
| 319 | + :title => _('Institution Info'), | |
| 320 | + :icon => 'edit-profile-group control-panel-instituton-link', | |
| 321 | + :url => { | |
| 322 | + :controller => 'software_communities_plugin_myprofile', | |
| 323 | + :action => 'edit_institution' | |
| 324 | + } | |
| 325 | + } | |
| 326 | + end | |
| 327 | + | |
| 328 | + def manage_user_institutions(user, old_communities, new_communities) | |
| 329 | + leave_communities = (old_communities - new_communities) | |
| 330 | + enter_communities = (new_communities - old_communities) | |
| 331 | + | |
| 332 | + leave_communities.each do |community| | |
| 333 | + community.remove_member(user.person) | |
| 334 | + user.institutions.delete(community.institution) | |
| 335 | + end | |
| 336 | + | |
| 337 | + enter_communities.each do |community| | |
| 338 | + community.add_member(user.person) | |
| 339 | + user.institutions << community.institution | |
| 340 | + end | |
| 341 | + end | |
| 342 | + | |
| 343 | + def profile_tabs_software | |
| 344 | + { :title => _('Software'), | |
| 345 | + :id => 'mpog-fields', | |
| 346 | + :content => proc do render :partial => 'software_tab' end, | |
| 347 | + :start => true } | |
| 348 | + end | |
| 349 | + | |
| 350 | + def profile_tabs_institution | |
| 351 | + { :title => _('Institution'), | |
| 352 | + :id => 'mpog-fields', | |
| 353 | + :content => Proc::new do render :partial => 'institution_tab' end, | |
| 354 | + :start => true | |
| 355 | + } | |
| 356 | + end | |
| 357 | + | |
| 358 | + def call_percentage_profile_template(person) | |
| 359 | + if context.profile && context.profile.person? && !person.nil? | |
| 360 | + @person = person | |
| 361 | + @percentege = calc_percentage_registration(person) | |
| 362 | + | |
| 363 | + if @percentege >= 0 && @percentege <= 100 | |
| 364 | + expanded_template('incomplete_registration.html.erb') | |
| 365 | + end | |
| 366 | + end | |
| 367 | + end | |
| 368 | + | |
| 369 | + def update_user_institutions(user) | |
| 370 | + context.params[:user][:institution_ids].each do |institution_id| | |
| 371 | + institution = Institution.find institution_id | |
| 372 | + user.institutions << institution | |
| 373 | + | |
| 374 | + if institution.community.admins.blank? | |
| 375 | + institution.community.add_admin(user.person) | |
| 376 | + end | |
| 377 | + end | |
| 378 | + user.save unless user.institution_ids.empty? | |
| 379 | + end | |
| 380 | +end | ... | ... |
po/mpog_software.pot
| ... | ... | @@ -1,1130 +0,0 @@ |
| 1 | -# SOME DESCRIPTIVE TITLE. | |
| 2 | -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
| 3 | -# This file is distributed under the same license as the PACKAGE package. | |
| 4 | -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
| 5 | -# | |
| 6 | -msgid "" | |
| 7 | -msgstr "" | |
| 8 | -"Project-Id-Version: 1.0\n" | |
| 9 | -"POT-Creation-Date: 2015-01-23 16:54-0000\n" | |
| 10 | -"PO-Revision-Date: 2014-11-12 13:05-0000\n" | |
| 11 | -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
| 12 | -"Language-Team: LANGUAGE <LL@li.org>\n" | |
| 13 | -"Language: \n" | |
| 14 | -"MIME-Version: 1.0\n" | |
| 15 | -"Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | -"Content-Transfer-Encoding: 8bit\n" | |
| 17 | -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
| 18 | - | |
| 19 | -#: plugins/software_communities/test/unit/mpog_person_test.rb:57 | |
| 20 | -#: plugins/software_communities/test/unit/mpog_person_test.rb:63 | |
| 21 | -msgid "Name Should begin with a capital letter and no special characters" | |
| 22 | -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 23 | - | |
| 24 | -#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 | |
| 25 | -msgid "Features is too long (maximum is 4000 characters)" | |
| 26 | -msgstr "" | |
| 27 | -"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " | |
| 28 | -"caracteres)" | |
| 29 | - | |
| 30 | -#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 | |
| 31 | -msgid "Objectives is too long (maximum is 4000 characters)" | |
| 32 | -msgstr "" | |
| 33 | -"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " | |
| 34 | -"caracteres)" | |
| 35 | - | |
| 36 | -#: plugins/software_communities/test/functional/search_controller_test.rb:24 | |
| 37 | -#: plugins/software_communities/lib/software_communities_plugin.rb:344 | |
| 38 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 | |
| 39 | -msgid "Software" | |
| 40 | -msgstr "Software" | |
| 41 | - | |
| 42 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 | |
| 43 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 | |
| 44 | -msgid "Save and Configure Community" | |
| 45 | -msgstr "Salvar e Configurar Comunidade" | |
| 46 | - | |
| 47 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 | |
| 48 | -msgid "Software updated sucessefuly" | |
| 49 | -msgstr "Software atualizado com sucesso" | |
| 50 | - | |
| 51 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 | |
| 52 | -msgid "Could not update software" | |
| 53 | -msgstr "Não foi possível atualizar o software" | |
| 54 | - | |
| 55 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 | |
| 56 | -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 | |
| 57 | -msgid "Could not find Governmental Power or Governmental Sphere" | |
| 58 | -msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" | |
| 59 | - | |
| 60 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 | |
| 61 | -msgid "" | |
| 62 | -"Your new software request will be evaluated by anadministrator. You will be " | |
| 63 | -"notified." | |
| 64 | -msgstr "" | |
| 65 | -"Sua requisição para criação de um novo software será avaliada por um " | |
| 66 | -"administrador. Você será noficado." | |
| 67 | - | |
| 68 | -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 | |
| 69 | -msgid "Institution successful created!" | |
| 70 | -msgstr "Instituição criada com sucesso!" | |
| 71 | - | |
| 72 | -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 | |
| 73 | -msgid "Institution could not be created!" | |
| 74 | -msgstr "Instituição não pode ser criada!" | |
| 75 | - | |
| 76 | -#: plugins/software_communities/lib/software_info.rb:69 | |
| 77 | -msgid "Name is too long (maximum is %{count} characters)" | |
| 78 | -msgstr "" | |
| 79 | -"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" | |
| 80 | - | |
| 81 | -#: plugins/software_communities/lib/software_info.rb:113 | |
| 82 | -msgid "can't have more than 10 characteres" | |
| 83 | -msgstr "não pode ter mais de 10 caracteres" | |
| 84 | - | |
| 85 | -#: plugins/software_communities/lib/software_info.rb:116 | |
| 86 | -msgid "can't have whitespaces" | |
| 87 | -msgstr "não pode ter espaços" | |
| 88 | - | |
| 89 | -#: plugins/software_communities/lib/software_info.rb:124 | |
| 90 | -#: plugins/software_communities/lib/software_info.rb:130 | |
| 91 | -#: plugins/software_communities/lib/software_info.rb:136 | |
| 92 | -msgid ": at least one must be filled" | |
| 93 | -msgstr ": pelo menos um deve ser preenchido" | |
| 94 | - | |
| 95 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:17 | |
| 96 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 | |
| 97 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 | |
| 98 | -msgid "Name" | |
| 99 | -msgstr "Nome" | |
| 100 | - | |
| 101 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:18 | |
| 102 | -msgid "Version" | |
| 103 | -msgstr "Versão" | |
| 104 | - | |
| 105 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:19 | |
| 106 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:19 | |
| 107 | -msgid "License" | |
| 108 | -msgstr "Licença" | |
| 109 | - | |
| 110 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:91 | |
| 111 | -msgid "Autocomplete field, type something" | |
| 112 | -msgstr "Campo automático, digite algo" | |
| 113 | - | |
| 114 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:116 | |
| 115 | -msgid "Delete" | |
| 116 | -msgstr "Excluir" | |
| 117 | - | |
| 118 | -#: plugins/software_communities/lib/categories_and_tags_block.rb:8 | |
| 119 | -msgid "Categories and Tags" | |
| 120 | -msgstr "Categorias e Tags" | |
| 121 | - | |
| 122 | -#: plugins/software_communities/lib/categories_and_tags_block.rb:12 | |
| 123 | -msgid "This block displays the categories and tags of a software." | |
| 124 | -msgstr "" | |
| 125 | -"Este bloco exibe as informações de categorias e tags de um perfil de " | |
| 126 | -"software." | |
| 127 | - | |
| 128 | -#: plugins/software_communities/lib/software_information_block.rb:8 | |
| 129 | -msgid "Basic Software Information" | |
| 130 | -msgstr "Informações Básicas Software" | |
| 131 | - | |
| 132 | -#: plugins/software_communities/lib/software_information_block.rb:12 | |
| 133 | -msgid "This block displays the basic information of a software profile." | |
| 134 | -msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 135 | - | |
| 136 | -#: plugins/software_communities/lib/softwares_block.rb:8 | |
| 137 | -msgid "Softwares" | |
| 138 | -msgstr "Softwares" | |
| 139 | - | |
| 140 | -#: plugins/software_communities/lib/softwares_block.rb:13 | |
| 141 | -msgid "{#} generic software" | |
| 142 | -msgid_plural "{#} generic softwares" | |
| 143 | -msgstr[0] "{#} software genérico" | |
| 144 | -msgstr[1] "{#} softwares genéricos" | |
| 145 | - | |
| 146 | -#: plugins/software_communities/lib/softwares_block.rb:15 | |
| 147 | -msgid "{#} public software" | |
| 148 | -msgid_plural "{#} public softwares" | |
| 149 | -msgstr[0] "{#} software público" | |
| 150 | -msgstr[1] "{#} software públicos" | |
| 151 | - | |
| 152 | -#: plugins/software_communities/lib/softwares_block.rb:17 | |
| 153 | -msgid "{#} software" | |
| 154 | -msgid_plural "{#} softwares" | |
| 155 | -msgstr[0] "{#} software" | |
| 156 | -msgstr[1] "{#} softwares" | |
| 157 | - | |
| 158 | -#: plugins/software_communities/lib/softwares_block.rb:22 | |
| 159 | -msgid "This block displays the softwares in which the user is a member." | |
| 160 | -msgstr "Este bloco apresenta os softwares no qual o usuário é membro." | |
| 161 | - | |
| 162 | -#: plugins/software_communities/lib/softwares_block.rb:31 | |
| 163 | -#: plugins/software_communities/lib/softwares_block.rb:37 | |
| 164 | -msgid "softwares|View all" | |
| 165 | -msgstr "Ver todos" | |
| 166 | - | |
| 167 | -#: plugins/software_communities/lib/create_software.rb:36 | |
| 168 | -msgid "New software" | |
| 169 | -msgstr "Novo software" | |
| 170 | - | |
| 171 | -#: plugins/software_communities/lib/create_software.rb:44 | |
| 172 | -msgid "%{requestor} wants to create software %{subject} with" | |
| 173 | -msgstr "%{requestor} deseja criar o software %{subject}" | |
| 174 | - | |
| 175 | -#: plugins/software_communities/lib/create_software.rb:46 | |
| 176 | -msgid " no finality." | |
| 177 | -msgstr " sem finalidade" | |
| 178 | - | |
| 179 | -#: plugins/software_communities/lib/create_software.rb:48 | |
| 180 | -msgid " this finality:<p><em>%{finality}</em></p>" | |
| 181 | -msgstr "" | |
| 182 | -" com esta finalidade:<p><em>" | |
| 183 | -"%{finality}</em></p>" | |
| 184 | - | |
| 185 | -#: plugins/software_communities/lib/create_software.rb:68 | |
| 186 | -msgid "%{requestor} wants to create software %{subject}" | |
| 187 | -msgstr "%{requestor} deseja criar o software %{subject}" | |
| 188 | - | |
| 189 | -#: plugins/software_communities/lib/create_software.rb:73 | |
| 190 | -msgid "" | |
| 191 | -"User \"%{user}\" just requested to create software %{software}.\n" | |
| 192 | -" You have to approve or reject it through the \"Pending Validations\"\n" | |
| 193 | -" section in your control panel.\n" | |
| 194 | -msgstr "" | |
| 195 | -"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " | |
| 196 | -"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " | |
| 197 | -"de controle.\n" | |
| 198 | - | |
| 199 | -#: plugins/software_communities/lib/create_software.rb:80 | |
| 200 | -msgid "" | |
| 201 | -"Your request for registering software %{software} at %{environment} was\n" | |
| 202 | -" just sent. Environment administrator will receive it and will approve " | |
| 203 | -"or\n" | |
| 204 | -" reject your request according to his methods and criteria.\n" | |
| 205 | -"\n" | |
| 206 | -" You will be notified as soon as environment administrator has a " | |
| 207 | -"position\n" | |
| 208 | -" about your request." | |
| 209 | -msgstr "" | |
| 210 | -"Sua requisição para registro do software %{software} no %{environment} acaba \n" | |
| 211 | -"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " | |
| 212 | -"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " | |
| 213 | -"notificado assim que o administrador tenha uma posição sobre sua requisição." | |
| 214 | - | |
| 215 | -#: plugins/software_communities/lib/create_software.rb:90 | |
| 216 | -msgid "" | |
| 217 | -"Your request for registering software %{software} at %{environment} was\n" | |
| 218 | -" not approved by the environment administrator. The following " | |
| 219 | -"explanation\n" | |
| 220 | -" was given: \n" | |
| 221 | -"\n" | |
| 222 | -"%{explanation}" | |
| 223 | -msgstr "" | |
| 224 | -"Sua requisição para o registro do software %{software} no %{environment} não \n" | |
| 225 | -"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " | |
| 226 | -"fornecida: \n" | |
| 227 | -"\n" | |
| 228 | -"%{explanation}" | |
| 229 | - | |
| 230 | -#: plugins/software_communities/lib/create_software.rb:99 | |
| 231 | -msgid "" | |
| 232 | -"Your request for registering the software \"%{software}\" was approved.\n" | |
| 233 | -" You can access %{url} and finish the registration of your software." | |
| 234 | -msgstr "" | |
| 235 | -"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " | |
| 236 | -"pode acessá-la %{url} e finalizar o registro do seu software." | |
| 237 | - | |
| 238 | -#: plugins/software_communities/lib/repository_block.rb:8 | |
| 239 | -msgid "Repository Link" | |
| 240 | -msgstr "Link para o Repositório:" | |
| 241 | - | |
| 242 | -#: plugins/software_communities/lib/repository_block.rb:12 | |
| 243 | -msgid "This block displays the repository link of a software." | |
| 244 | -msgstr "Este bloco exibe o link para o repositório de um perfil de software." | |
| 245 | - | |
| 246 | -#: plugins/software_communities/lib/software_language.rb:10 | |
| 247 | -msgid "Software language is too long (maximum is 20 characters)" | |
| 248 | -msgstr "" | |
| 249 | -"Linguagem de programação do software contém mais caracteres do que o " | |
| 250 | -"permitido (máximo é 20 caracteres)" | |
| 251 | - | |
| 252 | -#: plugins/software_communities/lib/download_block.rb:14 | |
| 253 | -msgid "Download Stable Version" | |
| 254 | -msgstr "Baixar Versão Estável" | |
| 255 | - | |
| 256 | -#: plugins/software_communities/lib/download_block.rb:18 | |
| 257 | -msgid "This block displays the stable version of a software." | |
| 258 | -msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 259 | - | |
| 260 | -#: plugins/software_communities/lib/software_communities_plugin.rb:17 | |
| 261 | -msgid "Add Public Software and MPOG features." | |
| 262 | -msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" | |
| 263 | - | |
| 264 | -#: plugins/software_communities/lib/software_communities_plugin.rb:167 | |
| 265 | -msgid "Create Institution" | |
| 266 | -msgstr "Criar Instituição" | |
| 267 | - | |
| 268 | -#: plugins/software_communities/lib/software_communities_plugin.rb:297 | |
| 269 | -msgid "Software Info" | |
| 270 | -msgstr "Informação de Software" | |
| 271 | - | |
| 272 | -#: plugins/software_communities/lib/software_communities_plugin.rb:308 | |
| 273 | -msgid "Create a new software" | |
| 274 | -msgstr "Criar um novo software" | |
| 275 | - | |
| 276 | -#: plugins/software_communities/lib/software_communities_plugin.rb:319 | |
| 277 | -msgid "Institution Info" | |
| 278 | -msgstr "Informação da Instituição" | |
| 279 | - | |
| 280 | -#: plugins/software_communities/lib/software_communities_plugin.rb:351 | |
| 281 | -msgid "Institution" | |
| 282 | -msgstr "Instituição" | |
| 283 | - | |
| 284 | -#: plugins/software_communities/lib/institution.rb:46 | |
| 285 | -msgid "invalid, only public and private institutions are allowed." | |
| 286 | -msgstr "inválido, somente instituição públicas ou privadas são permitidas." | |
| 287 | - | |
| 288 | -#: plugins/software_communities/lib/institution.rb:59 | |
| 289 | -#: plugins/software_communities/lib/institution.rb:71 | |
| 290 | -#: plugins/software_communities/lib/institution.rb:86 | |
| 291 | -#: plugins/software_communities/lib/institution.rb:111 | |
| 292 | -#: plugins/software_communities/lib/library.rb:5 | |
| 293 | -msgid "can't be blank" | |
| 294 | -msgstr "não pode ser em branco" | |
| 295 | - | |
| 296 | -#: plugins/software_communities/lib/institution.rb:103 | |
| 297 | -msgid "invalid format" | |
| 298 | -msgstr "formato inválido" | |
| 299 | - | |
| 300 | -#: plugins/software_communities/lib/operating_system.rb:12 | |
| 301 | -msgid "too long (maximum is 20 characters)" | |
| 302 | -msgstr "" | |
| 303 | -"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 304 | - | |
| 305 | -#: plugins/software_communities/lib/search_catalog_block.rb:8 | |
| 306 | -msgid "Search Softwares catalog" | |
| 307 | -msgstr "Informações Básicas Software" | |
| 308 | - | |
| 309 | -#: plugins/software_communities/lib/search_catalog_block.rb:12 | |
| 310 | -msgid "This block displays the search categories field " | |
| 311 | -msgstr "Este bloco apresenta a busca por categorias" | |
| 312 | - | |
| 313 | -#: plugins/software_communities/lib/library.rb:8 | |
| 314 | -msgid "Too long (maximum is 20 characters)" | |
| 315 | -msgstr "" | |
| 316 | -"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 317 | - | |
| 318 | -#: plugins/software_communities/lib/categories_software_block.rb:8 | |
| 319 | -msgid "Categories Softwares" | |
| 320 | -msgstr "Ativar Software" | |
| 321 | - | |
| 322 | -#: plugins/software_communities/lib/categories_software_block.rb:12 | |
| 323 | -msgid "" | |
| 324 | -"This block displays the categories and the amount of softwares for\n" | |
| 325 | -" each category." | |
| 326 | -msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." | |
| 327 | - | |
| 328 | -#: plugins/software_communities/lib/ext/user.rb:19 | |
| 329 | -msgid "Email must be different from secondary email." | |
| 330 | -msgstr "E-mail deve ser diferente do e-mail secundário." | |
| 331 | - | |
| 332 | -#: plugins/software_communities/lib/ext/user.rb:40 | |
| 333 | -msgid "E-mail or secondary e-mail already taken." | |
| 334 | -msgstr "E-mail ou e-mail secundário já está sendo utilizado" | |
| 335 | - | |
| 336 | -#: plugins/software_communities/lib/ext/user.rb:50 | |
| 337 | -msgid "Invalid secondary email format." | |
| 338 | -msgstr "Formato do e-mail secundário inválido." | |
| 339 | - | |
| 340 | -#: plugins/software_communities/lib/ext/user.rb:70 | |
| 341 | -msgid "The governamental email must be the primary one." | |
| 342 | -msgstr "O e-mail governamental deve ser o e-mail primário." | |
| 343 | - | |
| 344 | -#: plugins/software_communities/lib/ext/user.rb:78 | |
| 345 | -msgid "Institution is obligatory if user has a government email." | |
| 346 | -msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." | |
| 347 | - | |
| 348 | -#: plugins/software_communities/lib/ext/category.rb:5 | |
| 349 | -msgid "Agriculture, Fisheries and Extraction" | |
| 350 | -msgstr "Agricultura, Extrativismo e Pesca " | |
| 351 | - | |
| 352 | -#: plugins/software_communities/lib/ext/category.rb:6 | |
| 353 | -msgid "Science, Information and Communication" | |
| 354 | -msgstr "Ciência, Informação e Comunicação " | |
| 355 | - | |
| 356 | -#: plugins/software_communities/lib/ext/category.rb:7 | |
| 357 | -msgid "Economy and Finances" | |
| 358 | -msgstr "Economia e Finanças " | |
| 359 | - | |
| 360 | -#: plugins/software_communities/lib/ext/category.rb:8 | |
| 361 | -msgid "Public Administration" | |
| 362 | -msgstr "Administração Pública" | |
| 363 | - | |
| 364 | -#: plugins/software_communities/lib/ext/category.rb:9 | |
| 365 | -msgid "Habitation, Sanitation and Urbanism" | |
| 366 | -msgstr "Habitação, Saneamento e Urbanismo" | |
| 367 | - | |
| 368 | -#: plugins/software_communities/lib/ext/category.rb:10 | |
| 369 | -msgid "Individual, Family and Society" | |
| 370 | -msgstr "Pessoa, Família e Sociedade" | |
| 371 | - | |
| 372 | -#: plugins/software_communities/lib/ext/category.rb:11 | |
| 373 | -msgid "Health" | |
| 374 | -msgstr "Saúde" | |
| 375 | - | |
| 376 | -#: plugins/software_communities/lib/ext/category.rb:12 | |
| 377 | -msgid "Social Welfare and Development" | |
| 378 | -msgstr "Bem-estar Social e Desenvolvimento" | |
| 379 | - | |
| 380 | -#: plugins/software_communities/lib/ext/category.rb:13 | |
| 381 | -msgid "Defense and Security" | |
| 382 | -msgstr "Defesa e Segurança" | |
| 383 | - | |
| 384 | -#: plugins/software_communities/lib/ext/category.rb:14 | |
| 385 | -msgid "Education" | |
| 386 | -msgstr "Educação" | |
| 387 | - | |
| 388 | -#: plugins/software_communities/lib/ext/category.rb:15 | |
| 389 | -msgid "Government and Politics" | |
| 390 | -msgstr "Governo e Política" | |
| 391 | - | |
| 392 | -#: plugins/software_communities/lib/ext/category.rb:16 | |
| 393 | -msgid "Justice and Legislation" | |
| 394 | -msgstr "Justiça e Legislação" | |
| 395 | - | |
| 396 | -#: plugins/software_communities/lib/ext/category.rb:17 | |
| 397 | -msgid "International Relationships" | |
| 398 | -msgstr "Relações Internacionais" | |
| 399 | - | |
| 400 | -#: plugins/software_communities/lib/ext/search_controller.rb:15 | |
| 401 | -msgid "Institution Catalog" | |
| 402 | -msgstr "Catálogo de Instituição" | |
| 403 | - | |
| 404 | -#: plugins/software_communities/lib/ext/search_controller.rb:25 | |
| 405 | -msgid "Software Catalog" | |
| 406 | -msgstr "Catálogo de Software" | |
| 407 | - | |
| 408 | -#: plugins/software_communities/lib/institutions_block.rb:4 | |
| 409 | -#: plugins/software_communities/views/person_editor_extras.html.erb:10 | |
| 410 | -msgid "Institutions" | |
| 411 | -msgstr "Instituições" | |
| 412 | - | |
| 413 | -#: plugins/software_communities/lib/institutions_block.rb:12 | |
| 414 | -msgid "{#} institution" | |
| 415 | -msgid_plural "{#} institutions" | |
| 416 | -msgstr[0] "{#} intituição" | |
| 417 | -msgstr[1] "{#} instituições" | |
| 418 | - | |
| 419 | -#: plugins/software_communities/lib/institutions_block.rb:16 | |
| 420 | -msgid "This block displays the institutions in which the user is a member." | |
| 421 | -msgstr "Este bloco mostra as instituições a que o usuário pertence" | |
| 422 | - | |
| 423 | -#: plugins/software_communities/lib/institutions_block.rb:24 | |
| 424 | -#: plugins/software_communities/lib/institutions_block.rb:30 | |
| 425 | -msgid "institutions|View all" | |
| 426 | -msgstr "instituições|Ver todas" | |
| 427 | - | |
| 428 | -#: plugins/software_communities/lib/software_database.rb:12 | |
| 429 | -msgid "Software database is too long (maximum is 20 characters)" | |
| 430 | -msgstr "" | |
| 431 | -"Banco de dados do software contém mais caracteres do que o permitido (máximo " | |
| 432 | -"é 20 caracteres)" | |
| 433 | - | |
| 434 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 | |
| 435 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:7 | |
| 436 | -msgid "Name:" | |
| 437 | -msgstr "Nome:" | |
| 438 | - | |
| 439 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 | |
| 440 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:21 | |
| 441 | -msgid "Link:" | |
| 442 | -msgstr "Endereço:" | |
| 443 | - | |
| 444 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 | |
| 445 | -msgid "Software Description:" | |
| 446 | -msgstr "Descrição do Software" | |
| 447 | - | |
| 448 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 | |
| 449 | -msgid "Link to Version News:" | |
| 450 | -msgstr "Link para as Novidades da Versão:" | |
| 451 | - | |
| 452 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 | |
| 453 | -msgid "Link to Minimum Requirements:" | |
| 454 | -msgstr "Link para Requisitos Mínimos:" | |
| 455 | - | |
| 456 | -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 | |
| 457 | -msgid "Limit of items" | |
| 458 | -msgstr "Limite de itens" | |
| 459 | - | |
| 460 | -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 | |
| 461 | -msgid "Software Type:" | |
| 462 | -msgstr "Tipo do Software:" | |
| 463 | - | |
| 464 | -#: plugins/software_communities/views/person_editor_extras.html.erb:2 | |
| 465 | -msgid "Secondary e-mail" | |
| 466 | -msgstr "E-mail secundário" | |
| 467 | - | |
| 468 | -#: plugins/software_communities/views/person_editor_extras.html.erb:20 | |
| 469 | -msgid "No institution found" | |
| 470 | -msgstr "Nenhuma instituição encontrada" | |
| 471 | - | |
| 472 | -#: plugins/software_communities/views/person_editor_extras.html.erb:21 | |
| 473 | -msgid "Add new institution" | |
| 474 | -msgstr "Adicionar nova instituição" | |
| 475 | - | |
| 476 | -#: plugins/software_communities/views/person_editor_extras.html.erb:22 | |
| 477 | -msgid "Create new institution" | |
| 478 | -msgstr "Criar nova instituição" | |
| 479 | - | |
| 480 | -#: plugins/software_communities/views/person_editor_extras.html.erb:38 | |
| 481 | -msgid "Should begin with a capital letter and no special characters" | |
| 482 | -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 483 | - | |
| 484 | -#: plugins/software_communities/views/person_editor_extras.html.erb:39 | |
| 485 | -msgid "Email should have the following format: name@host.br" | |
| 486 | -msgstr "Email deve ter o seguinte formato: nome@host.br" | |
| 487 | - | |
| 488 | -#: plugins/software_communities/views/person_editor_extras.html.erb:40 | |
| 489 | -msgid "Site should have a valid format: http://name.hosts" | |
| 490 | -msgstr "Site deve ter um formato válido: http: //name.hosts" | |
| 491 | - | |
| 492 | -#: plugins/software_communities/views/person_editor_extras.html.erb:41 | |
| 493 | -msgid "If you work in a public agency use your government e-Mail" | |
| 494 | -msgstr "" | |
| 495 | -"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" | |
| 496 | - | |
| 497 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 | |
| 498 | -msgid "Institution Information" | |
| 499 | -msgstr "Informação da Instituição" | |
| 500 | - | |
| 501 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 | |
| 502 | -msgid "Type:" | |
| 503 | -msgstr "Tipo:" | |
| 504 | - | |
| 505 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 | |
| 506 | -msgid "CNPJ:" | |
| 507 | -msgstr "CNPJ:" | |
| 508 | - | |
| 509 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 | |
| 510 | -msgid "Last modification:" | |
| 511 | -msgstr "Última Modificação" | |
| 512 | - | |
| 513 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 | |
| 514 | -msgid "Country:" | |
| 515 | -msgstr "País:" | |
| 516 | - | |
| 517 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 | |
| 518 | -msgid "State:" | |
| 519 | -msgstr "Estado:" | |
| 520 | - | |
| 521 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 | |
| 522 | -msgid "City:" | |
| 523 | -msgstr "Cidade:" | |
| 524 | - | |
| 525 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 | |
| 526 | -msgid "Fantasy Name:" | |
| 527 | -msgstr "Nome Fantasia:" | |
| 528 | - | |
| 529 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 | |
| 530 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:15 | |
| 531 | -msgid "Acronym:" | |
| 532 | -msgstr "Sigla:" | |
| 533 | - | |
| 534 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 | |
| 535 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 | |
| 536 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 | |
| 537 | -msgid "Governmental Power:" | |
| 538 | -msgstr "Poder Governamental" | |
| 539 | - | |
| 540 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 | |
| 541 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 | |
| 542 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 | |
| 543 | -msgid "Governmental Sphere:" | |
| 544 | -msgstr "Esfera Governamental:" | |
| 545 | - | |
| 546 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 | |
| 547 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 | |
| 548 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 | |
| 549 | -msgid "Juridical Nature:" | |
| 550 | -msgstr "Natureza Jurídica:" | |
| 551 | - | |
| 552 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 553 | -msgid "SISP:" | |
| 554 | -msgstr "SISP:" | |
| 555 | - | |
| 556 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 557 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 558 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 559 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 560 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 561 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 562 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 | |
| 563 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 | |
| 564 | -msgid "Yes" | |
| 565 | -msgstr "Sim" | |
| 566 | - | |
| 567 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 568 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 569 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 570 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 571 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 572 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 573 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 | |
| 574 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 | |
| 575 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 | |
| 576 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 | |
| 577 | -msgid "No" | |
| 578 | -msgstr "Não" | |
| 579 | - | |
| 580 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:4 | |
| 581 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 | |
| 582 | -msgid "Software Information" | |
| 583 | -msgstr "Informação do Software" | |
| 584 | - | |
| 585 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 586 | -msgid "Adherent to e_mag:" | |
| 587 | -msgstr "Aderente ao e-Mag:" | |
| 588 | - | |
| 589 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 590 | -msgid "Adherent to icp_brasil:" | |
| 591 | -msgstr "Adherent ao ICP-Brasil:" | |
| 592 | - | |
| 593 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 594 | -msgid "Adherent to e_ping:" | |
| 595 | -msgstr "Aderente ao e-Ping:" | |
| 596 | - | |
| 597 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 598 | -msgid "Adherent to e_arq:" | |
| 599 | -msgstr "Aderente ao e-Arq:" | |
| 600 | - | |
| 601 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 602 | -msgid "Internacionalizable:" | |
| 603 | -msgstr "Internacionalizável:" | |
| 604 | - | |
| 605 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:13 | |
| 606 | -msgid "Operating Platform:" | |
| 607 | -msgstr "Plataforma Operacional:" | |
| 608 | - | |
| 609 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:14 | |
| 610 | -msgid "Demonstration URL:" | |
| 611 | -msgstr "URL de demonstração:" | |
| 612 | - | |
| 613 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:16 | |
| 614 | -msgid "Objectives:" | |
| 615 | -msgstr "Objetivos:" | |
| 616 | - | |
| 617 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:17 | |
| 618 | -msgid "Features:" | |
| 619 | -msgstr "Características:" | |
| 620 | - | |
| 621 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:20 | |
| 622 | -msgid "Version:" | |
| 623 | -msgstr "Versão:" | |
| 624 | - | |
| 625 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:26 | |
| 626 | -msgid "Show Libraries" | |
| 627 | -msgstr "Mostrar Bibliotecas" | |
| 628 | - | |
| 629 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:27 | |
| 630 | -msgid "Hide Libraries" | |
| 631 | -msgstr "Esconder Bibliotecas" | |
| 632 | - | |
| 633 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:36 | |
| 634 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 | |
| 635 | -msgid "Libraries" | |
| 636 | -msgstr "Bibliotecas" | |
| 637 | - | |
| 638 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:54 | |
| 639 | -msgid "Show Database" | |
| 640 | -msgstr "Mostrar Banco de Dados" | |
| 641 | - | |
| 642 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:55 | |
| 643 | -msgid "Hide Database" | |
| 644 | -msgstr "Esconder Banco de Dados" | |
| 645 | - | |
| 646 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:64 | |
| 647 | -msgid "Software Databases" | |
| 648 | -msgstr "Banco de Dados" | |
| 649 | - | |
| 650 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:82 | |
| 651 | -msgid "Show Languages" | |
| 652 | -msgstr "Mostrar Linguagens" | |
| 653 | - | |
| 654 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:83 | |
| 655 | -msgid "Hide Languages" | |
| 656 | -msgstr "Esconder Linguagens" | |
| 657 | - | |
| 658 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:92 | |
| 659 | -msgid "Software Languages" | |
| 660 | -msgstr "Linguagens de Software" | |
| 661 | - | |
| 662 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:110 | |
| 663 | -msgid "Show Operating Systems" | |
| 664 | -msgstr "Mostrar Sistemas Operacionais" | |
| 665 | - | |
| 666 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:111 | |
| 667 | -msgid "Hide Operating Systems" | |
| 668 | -msgstr "Esconder Sistemas Operacionais" | |
| 669 | - | |
| 670 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:121 | |
| 671 | -msgid "Operating System" | |
| 672 | -msgstr "Sistema Operacional" | |
| 673 | - | |
| 674 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 | |
| 675 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 | |
| 676 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 | |
| 677 | -#: plugins/software_communities/views/search/_full_community.html.erb:21 | |
| 678 | -msgid "Finality" | |
| 679 | -msgstr "Finalidade" | |
| 680 | - | |
| 681 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 | |
| 682 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 | |
| 683 | -msgid "Licenses" | |
| 684 | -msgstr "Licenças" | |
| 685 | - | |
| 686 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 | |
| 687 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 | |
| 688 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 | |
| 689 | -msgid "License link" | |
| 690 | -msgstr "Endereço da licença" | |
| 691 | - | |
| 692 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 | |
| 693 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 | |
| 694 | -msgid "Link to Repository: " | |
| 695 | -msgstr "Link pro Repositório: " | |
| 696 | - | |
| 697 | -#: plugins/software_communities/views/incomplete_registration.html.erb:3 | |
| 698 | -msgid "Complete Profile" | |
| 699 | -msgstr "Complete o Perfil" | |
| 700 | - | |
| 701 | -#: plugins/software_communities/views/incomplete_registration.html.erb:6 | |
| 702 | -msgid "Complete your profile" | |
| 703 | -msgstr "Complete o seu perfil" | |
| 704 | - | |
| 705 | -#: plugins/software_communities/views/incomplete_registration.html.erb:7 | |
| 706 | -msgid "Hide" | |
| 707 | -msgstr "Esconder" | |
| 708 | - | |
| 709 | -#: plugins/software_communities/views/blocks/repository.html.erb:2 | |
| 710 | -#: plugins/software_communities/views/blocks/download.html.erb:2 | |
| 711 | -#: plugins/software_communities/views/blocks/software_information.html.erb:4 | |
| 712 | -msgid "This community needs a software to use this block" | |
| 713 | -msgstr "Esta comunidade precisa de um software para utilizar este bloco" | |
| 714 | - | |
| 715 | -#: plugins/software_communities/views/blocks/repository.html.erb:4 | |
| 716 | -msgid "Repository" | |
| 717 | -msgstr "Repositório" | |
| 718 | - | |
| 719 | -#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 | |
| 720 | -msgid "Catalog of Public Software" | |
| 721 | -msgstr "Software Público" | |
| 722 | - | |
| 723 | -#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 | |
| 724 | -msgid "Search" | |
| 725 | -msgstr "Pesquisar" | |
| 726 | - | |
| 727 | -#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 | |
| 728 | -#: plugins/software_communities/views/blocks/categories_software.html.erb:24 | |
| 729 | -msgid "Access the complete catalog" | |
| 730 | -msgstr "Acesse o catálogo completo" | |
| 731 | - | |
| 732 | -#: plugins/software_communities/views/blocks/download.html.erb:6 | |
| 733 | -msgid "Download" | |
| 734 | -msgstr "Baixar" | |
| 735 | - | |
| 736 | -#: plugins/software_communities/views/blocks/download.html.erb:19 | |
| 737 | -msgid "Minimal Requirements" | |
| 738 | -msgstr "Requisitos Mínimos" | |
| 739 | - | |
| 740 | -#: plugins/software_communities/views/blocks/download.html.erb:23 | |
| 741 | -msgid "Version News" | |
| 742 | -msgstr "Novidades da Versão" | |
| 743 | - | |
| 744 | -#: plugins/software_communities/views/blocks/download.html.erb:27 | |
| 745 | -msgid "Licensed by" | |
| 746 | -msgstr "Licenciado por " | |
| 747 | - | |
| 748 | -#: plugins/software_communities/views/blocks/categories_software.html.erb:14 | |
| 749 | -msgid "Categories:" | |
| 750 | -msgstr "Categorias:" | |
| 751 | - | |
| 752 | -#: plugins/software_communities/views/blocks/categories_software.html.erb:18 | |
| 753 | -msgid "\"#{category.name}\"" | |
| 754 | -msgstr "\"#{category.name}\"" | |
| 755 | - | |
| 756 | -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 | |
| 757 | -msgid "Categories" | |
| 758 | -msgstr "Categorias" | |
| 759 | - | |
| 760 | -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 | |
| 761 | -msgid "Tags" | |
| 762 | -msgstr "Tags" | |
| 763 | - | |
| 764 | -#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 | |
| 765 | -msgid "See More" | |
| 766 | -msgstr "Veja Mais" | |
| 767 | - | |
| 768 | -#: plugins/software_communities/views/blocks/software_information.html.erb:16 | |
| 769 | -msgid "Control panel" | |
| 770 | -msgstr "Painel de controle" | |
| 771 | - | |
| 772 | -#: plugins/software_communities/views/blocks/software_information.html.erb:24 | |
| 773 | -msgid "\"#{block.owner.software_info.acronym} - \"" | |
| 774 | -msgstr "\"#{block.owner.software_info.acronym} - \"" | |
| 775 | - | |
| 776 | -#: plugins/software_communities/views/blocks/software_information.html.erb:25 | |
| 777 | -msgid "\"#{block.owner.name}\"" | |
| 778 | -msgstr "\"#{block.owner.name}\"" | |
| 779 | - | |
| 780 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 | |
| 781 | -msgid "Edit software" | |
| 782 | -msgstr "Editar software" | |
| 783 | - | |
| 784 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 | |
| 785 | -msgid "Operating Platform" | |
| 786 | -msgstr "Plataforma Operacional" | |
| 787 | - | |
| 788 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 | |
| 789 | -msgid "Features" | |
| 790 | -msgstr "Características" | |
| 791 | - | |
| 792 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 | |
| 793 | -msgid "Operating Systems" | |
| 794 | -msgstr "Sistemas Operacionais" | |
| 795 | - | |
| 796 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 | |
| 797 | -msgid "Programming languages" | |
| 798 | -msgstr "Linguagens de Programação" | |
| 799 | - | |
| 800 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 | |
| 801 | -msgid "Databases" | |
| 802 | -msgstr "Bancos de Dados" | |
| 803 | - | |
| 804 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 | |
| 805 | -msgid "Demonstration url" | |
| 806 | -msgstr "Url de demonstração" | |
| 807 | - | |
| 808 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 809 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 810 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 | |
| 811 | -msgid "Public Software" | |
| 812 | -msgstr "Software Público" | |
| 813 | - | |
| 814 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 815 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 816 | -msgid "Public software" | |
| 817 | -msgstr "Software público" | |
| 818 | - | |
| 819 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 | |
| 820 | -msgid "Adherent to e-PING ?" | |
| 821 | -msgstr "Aderente ao e-PING ?" | |
| 822 | - | |
| 823 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 | |
| 824 | -msgid "Adherent to e-MAG ?" | |
| 825 | -msgstr "Aderente ao e-MAG ?" | |
| 826 | - | |
| 827 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 | |
| 828 | -msgid "Adherent to ICP-Brasil ?" | |
| 829 | -msgstr "Aderente ao ICP-Brasil?" | |
| 830 | - | |
| 831 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 | |
| 832 | -msgid "Adherent to e-ARQ ?" | |
| 833 | -msgstr "Aderente ao e-ARQ?" | |
| 834 | - | |
| 835 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 | |
| 836 | -msgid "Internacionalizable ?" | |
| 837 | -msgstr "Internacionalizável?" | |
| 838 | - | |
| 839 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 | |
| 840 | -msgid " Information" | |
| 841 | -msgstr " Informação" | |
| 842 | - | |
| 843 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 | |
| 844 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 | |
| 845 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 | |
| 846 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 | |
| 847 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 | |
| 848 | -msgid "Acronym" | |
| 849 | -msgstr "Sigla" | |
| 850 | - | |
| 851 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 | |
| 852 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 | |
| 853 | -msgid "It is a software of..." | |
| 854 | -msgstr "É um software de ..." | |
| 855 | - | |
| 856 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 | |
| 857 | -msgid "Link to Repository" | |
| 858 | -msgstr "Link pro Repositório" | |
| 859 | - | |
| 860 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 | |
| 861 | -msgid "New Operating System" | |
| 862 | -msgstr "Novo Sistema Operacional" | |
| 863 | - | |
| 864 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 | |
| 865 | -msgid "Specifications" | |
| 866 | -msgstr "Especificações" | |
| 867 | - | |
| 868 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 | |
| 869 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 | |
| 870 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 | |
| 871 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 | |
| 872 | -msgid "Save" | |
| 873 | -msgstr "Salvar" | |
| 874 | - | |
| 875 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 | |
| 876 | -msgid "Back to control panel" | |
| 877 | -msgstr "Voltar para o painel de controle" | |
| 878 | - | |
| 879 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 | |
| 880 | -msgid "New Library" | |
| 881 | -msgstr "Nova Biblioteca" | |
| 882 | - | |
| 883 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 | |
| 884 | -msgid "New Database" | |
| 885 | -msgstr "Novo Banco de Dados" | |
| 886 | - | |
| 887 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 | |
| 888 | -msgid "New language" | |
| 889 | -msgstr "Nova linguagem" | |
| 890 | - | |
| 891 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 | |
| 892 | -msgid "Step 1/2 - Software Creation" | |
| 893 | -msgstr "Passo 1/2 - Criação de Software" | |
| 894 | - | |
| 895 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 | |
| 896 | -msgid "Creating new software" | |
| 897 | -msgstr "Criando novo software" | |
| 898 | - | |
| 899 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 | |
| 900 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 | |
| 901 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 | |
| 902 | -msgid "" | |
| 903 | -"Note that the creation of communities in this environment is restricted. " | |
| 904 | -"Your request to create this new community will be sent to %{environment} " | |
| 905 | -"administrators and will be approved or rejected according to their methods " | |
| 906 | -"and criteria." | |
| 907 | -msgstr "" | |
| 908 | -"Note que a criação de comunidades neste ambiente é restrita. A sua " | |
| 909 | -"requisição para criar esta nova comunidade será enviada para os " | |
| 910 | -"administradores do %{environment} e será aprovada ou rejeitada de acordo com " | |
| 911 | -"seus métodos e critérios. " | |
| 912 | - | |
| 913 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 | |
| 914 | -msgid "\"Can`t create new software: #{@errors.length} errors\"" | |
| 915 | -msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" | |
| 916 | - | |
| 917 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 | |
| 918 | -msgid "License Version: " | |
| 919 | -msgstr "Versão da Licença: " | |
| 920 | - | |
| 921 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 | |
| 922 | -msgid "Create" | |
| 923 | -msgstr "Criar" | |
| 924 | - | |
| 925 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 | |
| 926 | -msgid "Cancel" | |
| 927 | -msgstr "Cancelar" | |
| 928 | - | |
| 929 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 | |
| 930 | -msgid "Edit Institution" | |
| 931 | -msgstr "Editar Instituição" | |
| 932 | - | |
| 933 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 | |
| 934 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 | |
| 935 | -msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" | |
| 936 | -msgstr "" | |
| 937 | -"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" | |
| 938 | - | |
| 939 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 | |
| 940 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 | |
| 941 | -msgid "All fields with (*) are mandatory" | |
| 942 | -msgstr "Todos os campos com (*) são obrigatórios" | |
| 943 | - | |
| 944 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 | |
| 945 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 | |
| 946 | -msgid "Public Institution" | |
| 947 | -msgstr "Instituição Pública" | |
| 948 | - | |
| 949 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 | |
| 950 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 | |
| 951 | -msgid "Private Institution" | |
| 952 | -msgstr "Instituição Privada" | |
| 953 | - | |
| 954 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 | |
| 955 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 | |
| 956 | -msgid "Institution name already exists" | |
| 957 | -msgstr "Nome da instituição já existe" | |
| 958 | - | |
| 959 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 | |
| 960 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 | |
| 961 | -msgid "Corporate Name" | |
| 962 | -msgstr "Razão Social" | |
| 963 | - | |
| 964 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 | |
| 965 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 | |
| 966 | -msgid "Country" | |
| 967 | -msgstr "País" | |
| 968 | - | |
| 969 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 | |
| 970 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 | |
| 971 | -msgid "State" | |
| 972 | -msgstr "Estado" | |
| 973 | - | |
| 974 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 | |
| 975 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 | |
| 976 | -msgid "CNPJ" | |
| 977 | -msgstr "CNPJ" | |
| 978 | - | |
| 979 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 | |
| 980 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 | |
| 981 | -msgid "Fantasy name" | |
| 982 | -msgstr "Nome Fantasia" | |
| 983 | - | |
| 984 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 | |
| 985 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 | |
| 986 | -msgid "Select a Governmental Sphere" | |
| 987 | -msgstr "Selecione uma Esfera Governamental" | |
| 988 | - | |
| 989 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 | |
| 990 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 | |
| 991 | -msgid "Select a Governmental Power" | |
| 992 | -msgstr "Selecione um Poder Governamental" | |
| 993 | - | |
| 994 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 | |
| 995 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 | |
| 996 | -msgid "Select a Juridical Nature" | |
| 997 | -msgstr "Selecione uma Natureza Jurídica" | |
| 998 | - | |
| 999 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 | |
| 1000 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 | |
| 1001 | -msgid "SISP?" | |
| 1002 | -msgstr "SISP?" | |
| 1003 | - | |
| 1004 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 | |
| 1005 | -msgid "New Institution" | |
| 1006 | -msgstr "Nova Instituição" | |
| 1007 | - | |
| 1008 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 | |
| 1009 | -msgid "Could not send the form data to the server" | |
| 1010 | -msgstr "Não foi possível enviar os dados do formulário para o servidor" | |
| 1011 | - | |
| 1012 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 | |
| 1013 | -msgid "Creating institution" | |
| 1014 | -msgstr "Criando Instituição" | |
| 1015 | - | |
| 1016 | -#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 | |
| 1017 | -msgid "Categories filter" | |
| 1018 | -msgstr "Filtro de Categorias" | |
| 1019 | - | |
| 1020 | -#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 | |
| 1021 | -msgid "Type a category name here" | |
| 1022 | -msgstr "Escreva uma categoria aqui" | |
| 1023 | - | |
| 1024 | -#: plugins/software_communities/views/search/_full_community.html.erb:30 | |
| 1025 | -msgid "Software licence" | |
| 1026 | -msgstr "Licença do Software" | |
| 1027 | - | |
| 1028 | -#: plugins/software_communities/views/search/_full_community.html.erb:39 | |
| 1029 | -msgid "Link software repository" | |
| 1030 | -msgstr "Link pro Repositório" | |
| 1031 | - | |
| 1032 | -#: plugins/software_communities/views/search/_full_community.html.erb:48 | |
| 1033 | -msgid "Software Categories" | |
| 1034 | -msgstr "Categorias de Software" | |
| 1035 | - | |
| 1036 | -#: plugins/software_communities/views/search/_full_community.html.erb:62 | |
| 1037 | -msgid "This software doesn't have categories" | |
| 1038 | -msgstr "Este software não tem categorias" | |
| 1039 | - | |
| 1040 | -#: plugins/software_communities/views/search/software_infos.html.erb:3 | |
| 1041 | -#: plugins/software_communities/views/search/institutions.html.erb:3 | |
| 1042 | -msgid "Type words about the %s you're looking for" | |
| 1043 | -msgstr "Escreva palavras sobre o software que você está procurando" | |
| 1044 | - | |
| 1045 | -#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 | |
| 1046 | -msgid "Step 2/2 - Software Community Configuration" | |
| 1047 | -msgstr "Passo 2/2 - Configuração da Comunidade do Software" | |
| 1048 | - | |
| 1049 | -#~ msgid "database Name: " | |
| 1050 | -#~ msgstr "Nome do banco de dados:" | |
| 1051 | - | |
| 1052 | -#~ msgid "Pick an item on the list" | |
| 1053 | -#~ msgstr "Escolha um item da lista" | |
| 1054 | - | |
| 1055 | -#~ msgid "At last one category must be checked" | |
| 1056 | -#~ msgstr "Pelo menos uma categoria deve ser selecionada" | |
| 1057 | - | |
| 1058 | -#~ msgid "%{requestor} wants to create software %{subject} with no finality." | |
| 1059 | -#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." | |
| 1060 | - | |
| 1061 | -#~ msgid "Operating system is too long (maximum is 20 characters)" | |
| 1062 | -#~ msgstr "" | |
| 1063 | -#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " | |
| 1064 | -#~ "20 caracteres)" | |
| 1065 | - | |
| 1066 | -#~ msgid "Language Name: " | |
| 1067 | -#~ msgstr "Nome da Linguagem: " | |
| 1068 | - | |
| 1069 | -#~ msgid "License:" | |
| 1070 | -#~ msgstr "Licença:" | |
| 1071 | - | |
| 1072 | -#~ msgid "Program Database" | |
| 1073 | -#~ msgstr "Programa de Banco de Dados" | |
| 1074 | - | |
| 1075 | -#~ msgid "Operating System:" | |
| 1076 | -#~ msgstr "Sistema Operacional" | |
| 1077 | - | |
| 1078 | -#~ msgid "Programming Language" | |
| 1079 | -#~ msgstr "Linguagem de Programação" | |
| 1080 | - | |
| 1081 | -#~ msgid "Activate Software" | |
| 1082 | -#~ msgstr "Ativar Software" | |
| 1083 | - | |
| 1084 | -#~ msgid "Do you want to activate this software?" | |
| 1085 | -#~ msgstr "Você quer ativar este software?" | |
| 1086 | - | |
| 1087 | -#~ msgid "Deactivate software" | |
| 1088 | -#~ msgstr "Desativar software" | |
| 1089 | - | |
| 1090 | -#~ msgid "Do you want to deactivate this software?" | |
| 1091 | -#~ msgstr "Você quer desativar este software?" | |
| 1092 | - | |
| 1093 | -#~ msgid "Remove" | |
| 1094 | -#~ msgstr "Remover" | |
| 1095 | - | |
| 1096 | -#~ msgid "Do you want to remove this software?" | |
| 1097 | -#~ msgstr "Você deseja remover este software?" | |
| 1098 | - | |
| 1099 | -#~ msgid "Find software" | |
| 1100 | -#~ msgstr "Buscar software" | |
| 1101 | - | |
| 1102 | -#~ msgid "Software list as [CSV]" | |
| 1103 | -#~ msgstr "Lista de Software como [CSV]" | |
| 1104 | - | |
| 1105 | -#~ msgid "Software list as [XML]" | |
| 1106 | -#~ msgstr "Lista de Software como [XML]" | |
| 1107 | - | |
| 1108 | -#~ msgid "Back" | |
| 1109 | -#~ msgstr "Voltar" | |
| 1110 | - | |
| 1111 | -#~ msgid "Community" | |
| 1112 | -#~ msgstr "Comunidade" | |
| 1113 | - | |
| 1114 | -#~ msgid "Secundary Information" | |
| 1115 | -#~ msgstr "Informação Secundária" | |
| 1116 | - | |
| 1117 | -#~ msgid "For more detailed information see " | |
| 1118 | -#~ msgstr "Para informações mais detalhadas, ver " | |
| 1119 | - | |
| 1120 | -#~ msgid "\"#{block.owner.name} profile\"" | |
| 1121 | -#~ msgstr "\"Perfil de #{block.owner.name}\"" | |
| 1122 | - | |
| 1123 | -#~ msgid "Main repository: " | |
| 1124 | -#~ msgstr "Repositório principal: " | |
| 1125 | - | |
| 1126 | -#~ msgid "Editar Instituição" | |
| 1127 | -#~ msgstr "Editar Instituição" | |
| 1128 | - | |
| 1129 | -#~ msgid "Generic" | |
| 1130 | -#~ msgstr "Genérico" |
po/pt/mpog_software.po
| ... | ... | @@ -1,1130 +0,0 @@ |
| 1 | -# SOME DESCRIPTIVE TITLE. | |
| 2 | -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
| 3 | -# This file is distributed under the same license as the PACKAGE package. | |
| 4 | -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
| 5 | -# | |
| 6 | -msgid "" | |
| 7 | -msgstr "" | |
| 8 | -"Project-Id-Version: 1.0\n" | |
| 9 | -"POT-Creation-Date: 2015-01-23 16:54-0000\n" | |
| 10 | -"PO-Revision-Date: 2014-11-12 13:05-0000\n" | |
| 11 | -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
| 12 | -"Language-Team: LANGUAGE <LL@li.org>\n" | |
| 13 | -"Language: \n" | |
| 14 | -"MIME-Version: 1.0\n" | |
| 15 | -"Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | -"Content-Transfer-Encoding: 8bit\n" | |
| 17 | -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
| 18 | - | |
| 19 | -#: plugins/software_communities/test/unit/mpog_person_test.rb:57 | |
| 20 | -#: plugins/software_communities/test/unit/mpog_person_test.rb:63 | |
| 21 | -msgid "Name Should begin with a capital letter and no special characters" | |
| 22 | -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 23 | - | |
| 24 | -#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 | |
| 25 | -msgid "Features is too long (maximum is 4000 characters)" | |
| 26 | -msgstr "" | |
| 27 | -"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " | |
| 28 | -"caracteres)" | |
| 29 | - | |
| 30 | -#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 | |
| 31 | -msgid "Objectives is too long (maximum is 4000 characters)" | |
| 32 | -msgstr "" | |
| 33 | -"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " | |
| 34 | -"caracteres)" | |
| 35 | - | |
| 36 | -#: plugins/software_communities/test/functional/search_controller_test.rb:24 | |
| 37 | -#: plugins/software_communities/lib/software_communities_plugin.rb:344 | |
| 38 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 | |
| 39 | -msgid "Software" | |
| 40 | -msgstr "Software" | |
| 41 | - | |
| 42 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 | |
| 43 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 | |
| 44 | -msgid "Save and Configure Community" | |
| 45 | -msgstr "Salvar e Configurar Comunidade" | |
| 46 | - | |
| 47 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 | |
| 48 | -msgid "Software updated sucessefuly" | |
| 49 | -msgstr "Software atualizado com sucesso" | |
| 50 | - | |
| 51 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 | |
| 52 | -msgid "Could not update software" | |
| 53 | -msgstr "Não foi possível atualizar o software" | |
| 54 | - | |
| 55 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 | |
| 56 | -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 | |
| 57 | -msgid "Could not find Governmental Power or Governmental Sphere" | |
| 58 | -msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" | |
| 59 | - | |
| 60 | -#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 | |
| 61 | -msgid "" | |
| 62 | -"Your new software request will be evaluated by anadministrator. You will be " | |
| 63 | -"notified." | |
| 64 | -msgstr "" | |
| 65 | -"Sua requisição para criação de um novo software será avaliada por um " | |
| 66 | -"administrador. Você será noficado." | |
| 67 | - | |
| 68 | -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 | |
| 69 | -msgid "Institution successful created!" | |
| 70 | -msgstr "Instituição criada com sucesso!" | |
| 71 | - | |
| 72 | -#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 | |
| 73 | -msgid "Institution could not be created!" | |
| 74 | -msgstr "Instituição não pode ser criada!" | |
| 75 | - | |
| 76 | -#: plugins/software_communities/lib/software_info.rb:69 | |
| 77 | -msgid "Name is too long (maximum is %{count} characters)" | |
| 78 | -msgstr "" | |
| 79 | -"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" | |
| 80 | - | |
| 81 | -#: plugins/software_communities/lib/software_info.rb:113 | |
| 82 | -msgid "can't have more than 10 characteres" | |
| 83 | -msgstr "não pode ter mais de 10 caracteres" | |
| 84 | - | |
| 85 | -#: plugins/software_communities/lib/software_info.rb:116 | |
| 86 | -msgid "can't have whitespaces" | |
| 87 | -msgstr "não pode ter espaços" | |
| 88 | - | |
| 89 | -#: plugins/software_communities/lib/software_info.rb:124 | |
| 90 | -#: plugins/software_communities/lib/software_info.rb:130 | |
| 91 | -#: plugins/software_communities/lib/software_info.rb:136 | |
| 92 | -msgid ": at least one must be filled" | |
| 93 | -msgstr ": pelo menos um deve ser preenchido" | |
| 94 | - | |
| 95 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:17 | |
| 96 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 | |
| 97 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 | |
| 98 | -msgid "Name" | |
| 99 | -msgstr "Nome" | |
| 100 | - | |
| 101 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:18 | |
| 102 | -msgid "Version" | |
| 103 | -msgstr "Versão" | |
| 104 | - | |
| 105 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:19 | |
| 106 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:19 | |
| 107 | -msgid "License" | |
| 108 | -msgstr "Licença" | |
| 109 | - | |
| 110 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:91 | |
| 111 | -msgid "Autocomplete field, type something" | |
| 112 | -msgstr "Campo automático, digite algo" | |
| 113 | - | |
| 114 | -#: plugins/software_communities/lib/dynamic_table_helper.rb:116 | |
| 115 | -msgid "Delete" | |
| 116 | -msgstr "Excluir" | |
| 117 | - | |
| 118 | -#: plugins/software_communities/lib/categories_and_tags_block.rb:8 | |
| 119 | -msgid "Categories and Tags" | |
| 120 | -msgstr "Categorias e Tags" | |
| 121 | - | |
| 122 | -#: plugins/software_communities/lib/categories_and_tags_block.rb:12 | |
| 123 | -msgid "This block displays the categories and tags of a software." | |
| 124 | -msgstr "" | |
| 125 | -"Este bloco exibe as informações de categorias e tags de um perfil de " | |
| 126 | -"software." | |
| 127 | - | |
| 128 | -#: plugins/software_communities/lib/software_information_block.rb:8 | |
| 129 | -msgid "Basic Software Information" | |
| 130 | -msgstr "Informações Básicas Software" | |
| 131 | - | |
| 132 | -#: plugins/software_communities/lib/software_information_block.rb:12 | |
| 133 | -msgid "This block displays the basic information of a software profile." | |
| 134 | -msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 135 | - | |
| 136 | -#: plugins/software_communities/lib/softwares_block.rb:8 | |
| 137 | -msgid "Softwares" | |
| 138 | -msgstr "Softwares" | |
| 139 | - | |
| 140 | -#: plugins/software_communities/lib/softwares_block.rb:13 | |
| 141 | -msgid "{#} generic software" | |
| 142 | -msgid_plural "{#} generic softwares" | |
| 143 | -msgstr[0] "{#} software genérico" | |
| 144 | -msgstr[1] "{#} softwares genéricos" | |
| 145 | - | |
| 146 | -#: plugins/software_communities/lib/softwares_block.rb:15 | |
| 147 | -msgid "{#} public software" | |
| 148 | -msgid_plural "{#} public softwares" | |
| 149 | -msgstr[0] "{#} software público" | |
| 150 | -msgstr[1] "{#} software públicos" | |
| 151 | - | |
| 152 | -#: plugins/software_communities/lib/softwares_block.rb:17 | |
| 153 | -msgid "{#} software" | |
| 154 | -msgid_plural "{#} softwares" | |
| 155 | -msgstr[0] "{#} software" | |
| 156 | -msgstr[1] "{#} softwares" | |
| 157 | - | |
| 158 | -#: plugins/software_communities/lib/softwares_block.rb:22 | |
| 159 | -msgid "This block displays the softwares in which the user is a member." | |
| 160 | -msgstr "Este bloco apresenta os softwares no qual o usuário é membro." | |
| 161 | - | |
| 162 | -#: plugins/software_communities/lib/softwares_block.rb:31 | |
| 163 | -#: plugins/software_communities/lib/softwares_block.rb:37 | |
| 164 | -msgid "softwares|View all" | |
| 165 | -msgstr "Ver todos" | |
| 166 | - | |
| 167 | -#: plugins/software_communities/lib/create_software.rb:36 | |
| 168 | -msgid "New software" | |
| 169 | -msgstr "Novo software" | |
| 170 | - | |
| 171 | -#: plugins/software_communities/lib/create_software.rb:44 | |
| 172 | -msgid "%{requestor} wants to create software %{subject} with" | |
| 173 | -msgstr "%{requestor} deseja criar o software %{subject}" | |
| 174 | - | |
| 175 | -#: plugins/software_communities/lib/create_software.rb:46 | |
| 176 | -msgid " no finality." | |
| 177 | -msgstr " sem finalidade" | |
| 178 | - | |
| 179 | -#: plugins/software_communities/lib/create_software.rb:48 | |
| 180 | -msgid " this finality:<p><em>%{finality}</em></p>" | |
| 181 | -msgstr "" | |
| 182 | -" com esta finalidade:<p><em>" | |
| 183 | -"%{finality}</em></p>" | |
| 184 | - | |
| 185 | -#: plugins/software_communities/lib/create_software.rb:68 | |
| 186 | -msgid "%{requestor} wants to create software %{subject}" | |
| 187 | -msgstr "%{requestor} deseja criar o software %{subject}" | |
| 188 | - | |
| 189 | -#: plugins/software_communities/lib/create_software.rb:73 | |
| 190 | -msgid "" | |
| 191 | -"User \"%{user}\" just requested to create software %{software}.\n" | |
| 192 | -" You have to approve or reject it through the \"Pending Validations\"\n" | |
| 193 | -" section in your control panel.\n" | |
| 194 | -msgstr "" | |
| 195 | -"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " | |
| 196 | -"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " | |
| 197 | -"de controle.\n" | |
| 198 | - | |
| 199 | -#: plugins/software_communities/lib/create_software.rb:80 | |
| 200 | -msgid "" | |
| 201 | -"Your request for registering software %{software} at %{environment} was\n" | |
| 202 | -" just sent. Environment administrator will receive it and will approve " | |
| 203 | -"or\n" | |
| 204 | -" reject your request according to his methods and criteria.\n" | |
| 205 | -"\n" | |
| 206 | -" You will be notified as soon as environment administrator has a " | |
| 207 | -"position\n" | |
| 208 | -" about your request." | |
| 209 | -msgstr "" | |
| 210 | -"Sua requisição para registro do software %{software} no %{environment} acaba \n" | |
| 211 | -"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " | |
| 212 | -"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " | |
| 213 | -"notificado assim que o administrador tenha uma posição sobre sua requisição." | |
| 214 | - | |
| 215 | -#: plugins/software_communities/lib/create_software.rb:90 | |
| 216 | -msgid "" | |
| 217 | -"Your request for registering software %{software} at %{environment} was\n" | |
| 218 | -" not approved by the environment administrator. The following " | |
| 219 | -"explanation\n" | |
| 220 | -" was given: \n" | |
| 221 | -"\n" | |
| 222 | -"%{explanation}" | |
| 223 | -msgstr "" | |
| 224 | -"Sua requisição para o registro do software %{software} no %{environment} não \n" | |
| 225 | -"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " | |
| 226 | -"fornecida: \n" | |
| 227 | -"\n" | |
| 228 | -"%{explanation}" | |
| 229 | - | |
| 230 | -#: plugins/software_communities/lib/create_software.rb:99 | |
| 231 | -msgid "" | |
| 232 | -"Your request for registering the software \"%{software}\" was approved.\n" | |
| 233 | -" You can access %{url} and finish the registration of your software." | |
| 234 | -msgstr "" | |
| 235 | -"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " | |
| 236 | -"pode acessá-la %{url} e finalizar o registro do seu software." | |
| 237 | - | |
| 238 | -#: plugins/software_communities/lib/repository_block.rb:8 | |
| 239 | -msgid "Repository Link" | |
| 240 | -msgstr "Link para o Repositório:" | |
| 241 | - | |
| 242 | -#: plugins/software_communities/lib/repository_block.rb:12 | |
| 243 | -msgid "This block displays the repository link of a software." | |
| 244 | -msgstr "Este bloco exibe o link para o repositório de um perfil de software." | |
| 245 | - | |
| 246 | -#: plugins/software_communities/lib/software_language.rb:10 | |
| 247 | -msgid "Software language is too long (maximum is 20 characters)" | |
| 248 | -msgstr "" | |
| 249 | -"Linguagem de programação do software contém mais caracteres do que o " | |
| 250 | -"permitido (máximo é 20 caracteres)" | |
| 251 | - | |
| 252 | -#: plugins/software_communities/lib/download_block.rb:14 | |
| 253 | -msgid "Download Stable Version" | |
| 254 | -msgstr "Baixar Versão Estável" | |
| 255 | - | |
| 256 | -#: plugins/software_communities/lib/download_block.rb:18 | |
| 257 | -msgid "This block displays the stable version of a software." | |
| 258 | -msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 259 | - | |
| 260 | -#: plugins/software_communities/lib/software_communities_plugin.rb:17 | |
| 261 | -msgid "Add Public Software and MPOG features." | |
| 262 | -msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" | |
| 263 | - | |
| 264 | -#: plugins/software_communities/lib/software_communities_plugin.rb:167 | |
| 265 | -msgid "Create Institution" | |
| 266 | -msgstr "Criar Instituição" | |
| 267 | - | |
| 268 | -#: plugins/software_communities/lib/software_communities_plugin.rb:297 | |
| 269 | -msgid "Software Info" | |
| 270 | -msgstr "Informação de Software" | |
| 271 | - | |
| 272 | -#: plugins/software_communities/lib/software_communities_plugin.rb:308 | |
| 273 | -msgid "Create a new software" | |
| 274 | -msgstr "Criar um novo software" | |
| 275 | - | |
| 276 | -#: plugins/software_communities/lib/software_communities_plugin.rb:319 | |
| 277 | -msgid "Institution Info" | |
| 278 | -msgstr "Informação da Instituição" | |
| 279 | - | |
| 280 | -#: plugins/software_communities/lib/software_communities_plugin.rb:351 | |
| 281 | -msgid "Institution" | |
| 282 | -msgstr "Instituição" | |
| 283 | - | |
| 284 | -#: plugins/software_communities/lib/institution.rb:46 | |
| 285 | -msgid "invalid, only public and private institutions are allowed." | |
| 286 | -msgstr "inválido, somente instituição públicas ou privadas são permitidas." | |
| 287 | - | |
| 288 | -#: plugins/software_communities/lib/institution.rb:59 | |
| 289 | -#: plugins/software_communities/lib/institution.rb:71 | |
| 290 | -#: plugins/software_communities/lib/institution.rb:86 | |
| 291 | -#: plugins/software_communities/lib/institution.rb:111 | |
| 292 | -#: plugins/software_communities/lib/library.rb:5 | |
| 293 | -msgid "can't be blank" | |
| 294 | -msgstr "não pode ser em branco" | |
| 295 | - | |
| 296 | -#: plugins/software_communities/lib/institution.rb:103 | |
| 297 | -msgid "invalid format" | |
| 298 | -msgstr "formato inválido" | |
| 299 | - | |
| 300 | -#: plugins/software_communities/lib/operating_system.rb:12 | |
| 301 | -msgid "too long (maximum is 20 characters)" | |
| 302 | -msgstr "" | |
| 303 | -"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 304 | - | |
| 305 | -#: plugins/software_communities/lib/search_catalog_block.rb:8 | |
| 306 | -msgid "Search Softwares catalog" | |
| 307 | -msgstr "Informações Básicas Software" | |
| 308 | - | |
| 309 | -#: plugins/software_communities/lib/search_catalog_block.rb:12 | |
| 310 | -msgid "This block displays the search categories field " | |
| 311 | -msgstr "Este bloco apresenta a busca por categorias" | |
| 312 | - | |
| 313 | -#: plugins/software_communities/lib/library.rb:8 | |
| 314 | -msgid "Too long (maximum is 20 characters)" | |
| 315 | -msgstr "" | |
| 316 | -"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 317 | - | |
| 318 | -#: plugins/software_communities/lib/categories_software_block.rb:8 | |
| 319 | -msgid "Categories Softwares" | |
| 320 | -msgstr "Ativar Software" | |
| 321 | - | |
| 322 | -#: plugins/software_communities/lib/categories_software_block.rb:12 | |
| 323 | -msgid "" | |
| 324 | -"This block displays the categories and the amount of softwares for\n" | |
| 325 | -" each category." | |
| 326 | -msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." | |
| 327 | - | |
| 328 | -#: plugins/software_communities/lib/ext/user.rb:19 | |
| 329 | -msgid "Email must be different from secondary email." | |
| 330 | -msgstr "E-mail deve ser diferente do e-mail secundário." | |
| 331 | - | |
| 332 | -#: plugins/software_communities/lib/ext/user.rb:40 | |
| 333 | -msgid "E-mail or secondary e-mail already taken." | |
| 334 | -msgstr "E-mail ou e-mail secundário já está sendo utilizado" | |
| 335 | - | |
| 336 | -#: plugins/software_communities/lib/ext/user.rb:50 | |
| 337 | -msgid "Invalid secondary email format." | |
| 338 | -msgstr "Formato do e-mail secundário inválido." | |
| 339 | - | |
| 340 | -#: plugins/software_communities/lib/ext/user.rb:70 | |
| 341 | -msgid "The governamental email must be the primary one." | |
| 342 | -msgstr "O e-mail governamental deve ser o e-mail primário." | |
| 343 | - | |
| 344 | -#: plugins/software_communities/lib/ext/user.rb:78 | |
| 345 | -msgid "Institution is obligatory if user has a government email." | |
| 346 | -msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." | |
| 347 | - | |
| 348 | -#: plugins/software_communities/lib/ext/category.rb:5 | |
| 349 | -msgid "Agriculture, Fisheries and Extraction" | |
| 350 | -msgstr "Agricultura, Extrativismo e Pesca " | |
| 351 | - | |
| 352 | -#: plugins/software_communities/lib/ext/category.rb:6 | |
| 353 | -msgid "Science, Information and Communication" | |
| 354 | -msgstr "Ciência, Informação e Comunicação " | |
| 355 | - | |
| 356 | -#: plugins/software_communities/lib/ext/category.rb:7 | |
| 357 | -msgid "Economy and Finances" | |
| 358 | -msgstr "Economia e Finanças " | |
| 359 | - | |
| 360 | -#: plugins/software_communities/lib/ext/category.rb:8 | |
| 361 | -msgid "Public Administration" | |
| 362 | -msgstr "Administração Pública" | |
| 363 | - | |
| 364 | -#: plugins/software_communities/lib/ext/category.rb:9 | |
| 365 | -msgid "Habitation, Sanitation and Urbanism" | |
| 366 | -msgstr "Habitação, Saneamento e Urbanismo" | |
| 367 | - | |
| 368 | -#: plugins/software_communities/lib/ext/category.rb:10 | |
| 369 | -msgid "Individual, Family and Society" | |
| 370 | -msgstr "Pessoa, Família e Sociedade" | |
| 371 | - | |
| 372 | -#: plugins/software_communities/lib/ext/category.rb:11 | |
| 373 | -msgid "Health" | |
| 374 | -msgstr "Saúde" | |
| 375 | - | |
| 376 | -#: plugins/software_communities/lib/ext/category.rb:12 | |
| 377 | -msgid "Social Welfare and Development" | |
| 378 | -msgstr "Bem-estar Social e Desenvolvimento" | |
| 379 | - | |
| 380 | -#: plugins/software_communities/lib/ext/category.rb:13 | |
| 381 | -msgid "Defense and Security" | |
| 382 | -msgstr "Defesa e Segurança" | |
| 383 | - | |
| 384 | -#: plugins/software_communities/lib/ext/category.rb:14 | |
| 385 | -msgid "Education" | |
| 386 | -msgstr "Educação" | |
| 387 | - | |
| 388 | -#: plugins/software_communities/lib/ext/category.rb:15 | |
| 389 | -msgid "Government and Politics" | |
| 390 | -msgstr "Governo e Política" | |
| 391 | - | |
| 392 | -#: plugins/software_communities/lib/ext/category.rb:16 | |
| 393 | -msgid "Justice and Legislation" | |
| 394 | -msgstr "Justiça e Legislação" | |
| 395 | - | |
| 396 | -#: plugins/software_communities/lib/ext/category.rb:17 | |
| 397 | -msgid "International Relationships" | |
| 398 | -msgstr "Relações Internacionais" | |
| 399 | - | |
| 400 | -#: plugins/software_communities/lib/ext/search_controller.rb:15 | |
| 401 | -msgid "Institution Catalog" | |
| 402 | -msgstr "Catálogo de Instituição" | |
| 403 | - | |
| 404 | -#: plugins/software_communities/lib/ext/search_controller.rb:25 | |
| 405 | -msgid "Software Catalog" | |
| 406 | -msgstr "Catálogo de Software" | |
| 407 | - | |
| 408 | -#: plugins/software_communities/lib/institutions_block.rb:4 | |
| 409 | -#: plugins/software_communities/views/person_editor_extras.html.erb:10 | |
| 410 | -msgid "Institutions" | |
| 411 | -msgstr "Instituições" | |
| 412 | - | |
| 413 | -#: plugins/software_communities/lib/institutions_block.rb:12 | |
| 414 | -msgid "{#} institution" | |
| 415 | -msgid_plural "{#} institutions" | |
| 416 | -msgstr[0] "{#} intituição" | |
| 417 | -msgstr[1] "{#} instituições" | |
| 418 | - | |
| 419 | -#: plugins/software_communities/lib/institutions_block.rb:16 | |
| 420 | -msgid "This block displays the institutions in which the user is a member." | |
| 421 | -msgstr "Este bloco mostra as instituições a que o usuário pertence" | |
| 422 | - | |
| 423 | -#: plugins/software_communities/lib/institutions_block.rb:24 | |
| 424 | -#: plugins/software_communities/lib/institutions_block.rb:30 | |
| 425 | -msgid "institutions|View all" | |
| 426 | -msgstr "instituições|Ver todas" | |
| 427 | - | |
| 428 | -#: plugins/software_communities/lib/software_database.rb:12 | |
| 429 | -msgid "Software database is too long (maximum is 20 characters)" | |
| 430 | -msgstr "" | |
| 431 | -"Banco de dados do software contém mais caracteres do que o permitido (máximo " | |
| 432 | -"é 20 caracteres)" | |
| 433 | - | |
| 434 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 | |
| 435 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:7 | |
| 436 | -msgid "Name:" | |
| 437 | -msgstr "Nome:" | |
| 438 | - | |
| 439 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 | |
| 440 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:21 | |
| 441 | -msgid "Link:" | |
| 442 | -msgstr "Endereço:" | |
| 443 | - | |
| 444 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 | |
| 445 | -msgid "Software Description:" | |
| 446 | -msgstr "Descrição do Software" | |
| 447 | - | |
| 448 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 | |
| 449 | -msgid "Link to Version News:" | |
| 450 | -msgstr "Link para as Novidades da Versão:" | |
| 451 | - | |
| 452 | -#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 | |
| 453 | -msgid "Link to Minimum Requirements:" | |
| 454 | -msgstr "Link para Requisitos Mínimos:" | |
| 455 | - | |
| 456 | -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 | |
| 457 | -msgid "Limit of items" | |
| 458 | -msgstr "Limite de itens" | |
| 459 | - | |
| 460 | -#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 | |
| 461 | -msgid "Software Type:" | |
| 462 | -msgstr "Tipo do Software:" | |
| 463 | - | |
| 464 | -#: plugins/software_communities/views/person_editor_extras.html.erb:2 | |
| 465 | -msgid "Secondary e-mail" | |
| 466 | -msgstr "E-mail secundário" | |
| 467 | - | |
| 468 | -#: plugins/software_communities/views/person_editor_extras.html.erb:20 | |
| 469 | -msgid "No institution found" | |
| 470 | -msgstr "Nenhuma instituição encontrada" | |
| 471 | - | |
| 472 | -#: plugins/software_communities/views/person_editor_extras.html.erb:21 | |
| 473 | -msgid "Add new institution" | |
| 474 | -msgstr "Adicionar nova instituição" | |
| 475 | - | |
| 476 | -#: plugins/software_communities/views/person_editor_extras.html.erb:22 | |
| 477 | -msgid "Create new institution" | |
| 478 | -msgstr "Criar nova instituição" | |
| 479 | - | |
| 480 | -#: plugins/software_communities/views/person_editor_extras.html.erb:38 | |
| 481 | -msgid "Should begin with a capital letter and no special characters" | |
| 482 | -msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 483 | - | |
| 484 | -#: plugins/software_communities/views/person_editor_extras.html.erb:39 | |
| 485 | -msgid "Email should have the following format: name@host.br" | |
| 486 | -msgstr "Email deve ter o seguinte formato: nome@host.br" | |
| 487 | - | |
| 488 | -#: plugins/software_communities/views/person_editor_extras.html.erb:40 | |
| 489 | -msgid "Site should have a valid format: http://name.hosts" | |
| 490 | -msgstr "Site deve ter um formato válido: http: //name.hosts" | |
| 491 | - | |
| 492 | -#: plugins/software_communities/views/person_editor_extras.html.erb:41 | |
| 493 | -msgid "If you work in a public agency use your government e-Mail" | |
| 494 | -msgstr "" | |
| 495 | -"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" | |
| 496 | - | |
| 497 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 | |
| 498 | -msgid "Institution Information" | |
| 499 | -msgstr "Informação da Instituição" | |
| 500 | - | |
| 501 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 | |
| 502 | -msgid "Type:" | |
| 503 | -msgstr "Tipo:" | |
| 504 | - | |
| 505 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 | |
| 506 | -msgid "CNPJ:" | |
| 507 | -msgstr "CNPJ:" | |
| 508 | - | |
| 509 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 | |
| 510 | -msgid "Last modification:" | |
| 511 | -msgstr "Última Modificação" | |
| 512 | - | |
| 513 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 | |
| 514 | -msgid "Country:" | |
| 515 | -msgstr "País:" | |
| 516 | - | |
| 517 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 | |
| 518 | -msgid "State:" | |
| 519 | -msgstr "Estado:" | |
| 520 | - | |
| 521 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 | |
| 522 | -msgid "City:" | |
| 523 | -msgstr "Cidade:" | |
| 524 | - | |
| 525 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 | |
| 526 | -msgid "Fantasy Name:" | |
| 527 | -msgstr "Nome Fantasia:" | |
| 528 | - | |
| 529 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 | |
| 530 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:15 | |
| 531 | -msgid "Acronym:" | |
| 532 | -msgstr "Sigla:" | |
| 533 | - | |
| 534 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 | |
| 535 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 | |
| 536 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 | |
| 537 | -msgid "Governmental Power:" | |
| 538 | -msgstr "Poder Governamental" | |
| 539 | - | |
| 540 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 | |
| 541 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 | |
| 542 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 | |
| 543 | -msgid "Governmental Sphere:" | |
| 544 | -msgstr "Esfera Governamental:" | |
| 545 | - | |
| 546 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 | |
| 547 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 | |
| 548 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 | |
| 549 | -msgid "Juridical Nature:" | |
| 550 | -msgstr "Natureza Jurídica:" | |
| 551 | - | |
| 552 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 553 | -msgid "SISP:" | |
| 554 | -msgstr "SISP:" | |
| 555 | - | |
| 556 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 557 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 558 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 559 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 560 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 561 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 562 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 | |
| 563 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 | |
| 564 | -msgid "Yes" | |
| 565 | -msgstr "Sim" | |
| 566 | - | |
| 567 | -#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 568 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 569 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 570 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 571 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 572 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 573 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 | |
| 574 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 | |
| 575 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 | |
| 576 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 | |
| 577 | -msgid "No" | |
| 578 | -msgstr "Não" | |
| 579 | - | |
| 580 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:4 | |
| 581 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 | |
| 582 | -msgid "Software Information" | |
| 583 | -msgstr "Informação do Software" | |
| 584 | - | |
| 585 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 586 | -msgid "Adherent to e_mag:" | |
| 587 | -msgstr "Aderente ao e-Mag:" | |
| 588 | - | |
| 589 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 590 | -msgid "Adherent to icp_brasil:" | |
| 591 | -msgstr "Adherent ao ICP-Brasil:" | |
| 592 | - | |
| 593 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 594 | -msgid "Adherent to e_ping:" | |
| 595 | -msgstr "Aderente ao e-Ping:" | |
| 596 | - | |
| 597 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 598 | -msgid "Adherent to e_arq:" | |
| 599 | -msgstr "Aderente ao e-Arq:" | |
| 600 | - | |
| 601 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 602 | -msgid "Internacionalizable:" | |
| 603 | -msgstr "Internacionalizável:" | |
| 604 | - | |
| 605 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:13 | |
| 606 | -msgid "Operating Platform:" | |
| 607 | -msgstr "Plataforma Operacional:" | |
| 608 | - | |
| 609 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:14 | |
| 610 | -msgid "Demonstration URL:" | |
| 611 | -msgstr "URL de demonstração:" | |
| 612 | - | |
| 613 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:16 | |
| 614 | -msgid "Objectives:" | |
| 615 | -msgstr "Objetivos:" | |
| 616 | - | |
| 617 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:17 | |
| 618 | -msgid "Features:" | |
| 619 | -msgstr "Características:" | |
| 620 | - | |
| 621 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:20 | |
| 622 | -msgid "Version:" | |
| 623 | -msgstr "Versão:" | |
| 624 | - | |
| 625 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:26 | |
| 626 | -msgid "Show Libraries" | |
| 627 | -msgstr "Mostrar Bibliotecas" | |
| 628 | - | |
| 629 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:27 | |
| 630 | -msgid "Hide Libraries" | |
| 631 | -msgstr "Esconder Bibliotecas" | |
| 632 | - | |
| 633 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:36 | |
| 634 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 | |
| 635 | -msgid "Libraries" | |
| 636 | -msgstr "Bibliotecas" | |
| 637 | - | |
| 638 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:54 | |
| 639 | -msgid "Show Database" | |
| 640 | -msgstr "Mostrar Banco de Dados" | |
| 641 | - | |
| 642 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:55 | |
| 643 | -msgid "Hide Database" | |
| 644 | -msgstr "Esconder Banco de Dados" | |
| 645 | - | |
| 646 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:64 | |
| 647 | -msgid "Software Databases" | |
| 648 | -msgstr "Banco de Dados" | |
| 649 | - | |
| 650 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:82 | |
| 651 | -msgid "Show Languages" | |
| 652 | -msgstr "Mostrar Linguagens" | |
| 653 | - | |
| 654 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:83 | |
| 655 | -msgid "Hide Languages" | |
| 656 | -msgstr "Esconder Linguagens" | |
| 657 | - | |
| 658 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:92 | |
| 659 | -msgid "Software Languages" | |
| 660 | -msgstr "Linguagens de Software" | |
| 661 | - | |
| 662 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:110 | |
| 663 | -msgid "Show Operating Systems" | |
| 664 | -msgstr "Mostrar Sistemas Operacionais" | |
| 665 | - | |
| 666 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:111 | |
| 667 | -msgid "Hide Operating Systems" | |
| 668 | -msgstr "Esconder Sistemas Operacionais" | |
| 669 | - | |
| 670 | -#: plugins/software_communities/views/profile/_software_tab.html.erb:121 | |
| 671 | -msgid "Operating System" | |
| 672 | -msgstr "Sistema Operacional" | |
| 673 | - | |
| 674 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 | |
| 675 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 | |
| 676 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 | |
| 677 | -#: plugins/software_communities/views/search/_full_community.html.erb:21 | |
| 678 | -msgid "Finality" | |
| 679 | -msgstr "Finalidade" | |
| 680 | - | |
| 681 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 | |
| 682 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 | |
| 683 | -msgid "Licenses" | |
| 684 | -msgstr "Licenças" | |
| 685 | - | |
| 686 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 | |
| 687 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 | |
| 688 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 | |
| 689 | -msgid "License link" | |
| 690 | -msgstr "Endereço da licença" | |
| 691 | - | |
| 692 | -#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 | |
| 693 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 | |
| 694 | -msgid "Link to Repository: " | |
| 695 | -msgstr "Link pro Repositório: " | |
| 696 | - | |
| 697 | -#: plugins/software_communities/views/incomplete_registration.html.erb:3 | |
| 698 | -msgid "Complete Profile" | |
| 699 | -msgstr "Complete o Perfil" | |
| 700 | - | |
| 701 | -#: plugins/software_communities/views/incomplete_registration.html.erb:6 | |
| 702 | -msgid "Complete your profile" | |
| 703 | -msgstr "Complete o seu perfil" | |
| 704 | - | |
| 705 | -#: plugins/software_communities/views/incomplete_registration.html.erb:7 | |
| 706 | -msgid "Hide" | |
| 707 | -msgstr "Esconder" | |
| 708 | - | |
| 709 | -#: plugins/software_communities/views/blocks/repository.html.erb:2 | |
| 710 | -#: plugins/software_communities/views/blocks/download.html.erb:2 | |
| 711 | -#: plugins/software_communities/views/blocks/software_information.html.erb:4 | |
| 712 | -msgid "This community needs a software to use this block" | |
| 713 | -msgstr "Esta comunidade precisa de um software para utilizar este bloco" | |
| 714 | - | |
| 715 | -#: plugins/software_communities/views/blocks/repository.html.erb:4 | |
| 716 | -msgid "Repository" | |
| 717 | -msgstr "Repositório" | |
| 718 | - | |
| 719 | -#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 | |
| 720 | -msgid "Catalog of Public Software" | |
| 721 | -msgstr "Software Público" | |
| 722 | - | |
| 723 | -#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 | |
| 724 | -msgid "Search" | |
| 725 | -msgstr "Pesquisar" | |
| 726 | - | |
| 727 | -#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 | |
| 728 | -#: plugins/software_communities/views/blocks/categories_software.html.erb:24 | |
| 729 | -msgid "Access the complete catalog" | |
| 730 | -msgstr "Acesse o catálogo completo" | |
| 731 | - | |
| 732 | -#: plugins/software_communities/views/blocks/download.html.erb:6 | |
| 733 | -msgid "Download" | |
| 734 | -msgstr "Baixar" | |
| 735 | - | |
| 736 | -#: plugins/software_communities/views/blocks/download.html.erb:19 | |
| 737 | -msgid "Minimal Requirements" | |
| 738 | -msgstr "Requisitos Mínimos" | |
| 739 | - | |
| 740 | -#: plugins/software_communities/views/blocks/download.html.erb:23 | |
| 741 | -msgid "Version News" | |
| 742 | -msgstr "Novidades da Versão" | |
| 743 | - | |
| 744 | -#: plugins/software_communities/views/blocks/download.html.erb:27 | |
| 745 | -msgid "Licensed by" | |
| 746 | -msgstr "Licenciado por " | |
| 747 | - | |
| 748 | -#: plugins/software_communities/views/blocks/categories_software.html.erb:14 | |
| 749 | -msgid "Categories:" | |
| 750 | -msgstr "Categorias:" | |
| 751 | - | |
| 752 | -#: plugins/software_communities/views/blocks/categories_software.html.erb:18 | |
| 753 | -msgid "\"#{category.name}\"" | |
| 754 | -msgstr "\"#{category.name}\"" | |
| 755 | - | |
| 756 | -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 | |
| 757 | -msgid "Categories" | |
| 758 | -msgstr "Categorias" | |
| 759 | - | |
| 760 | -#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 | |
| 761 | -msgid "Tags" | |
| 762 | -msgstr "Tags" | |
| 763 | - | |
| 764 | -#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 | |
| 765 | -msgid "See More" | |
| 766 | -msgstr "Veja Mais" | |
| 767 | - | |
| 768 | -#: plugins/software_communities/views/blocks/software_information.html.erb:16 | |
| 769 | -msgid "Control panel" | |
| 770 | -msgstr "Painel de controle" | |
| 771 | - | |
| 772 | -#: plugins/software_communities/views/blocks/software_information.html.erb:24 | |
| 773 | -msgid "\"#{block.owner.software_info.acronym} - \"" | |
| 774 | -msgstr "\"#{block.owner.software_info.acronym} - \"" | |
| 775 | - | |
| 776 | -#: plugins/software_communities/views/blocks/software_information.html.erb:25 | |
| 777 | -msgid "\"#{block.owner.name}\"" | |
| 778 | -msgstr "\"#{block.owner.name}\"" | |
| 779 | - | |
| 780 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 | |
| 781 | -msgid "Edit software" | |
| 782 | -msgstr "Editar software" | |
| 783 | - | |
| 784 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 | |
| 785 | -msgid "Operating Platform" | |
| 786 | -msgstr "Plataforma Operacional" | |
| 787 | - | |
| 788 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 | |
| 789 | -msgid "Features" | |
| 790 | -msgstr "Características" | |
| 791 | - | |
| 792 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 | |
| 793 | -msgid "Operating Systems" | |
| 794 | -msgstr "Sistemas Operacionais" | |
| 795 | - | |
| 796 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 | |
| 797 | -msgid "Programming languages" | |
| 798 | -msgstr "Linguagens de Programação" | |
| 799 | - | |
| 800 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 | |
| 801 | -msgid "Databases" | |
| 802 | -msgstr "Bancos de Dados" | |
| 803 | - | |
| 804 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 | |
| 805 | -msgid "Demonstration url" | |
| 806 | -msgstr "Url de demonstração" | |
| 807 | - | |
| 808 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 809 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 810 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 | |
| 811 | -msgid "Public Software" | |
| 812 | -msgstr "Software Público" | |
| 813 | - | |
| 814 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 815 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 816 | -msgid "Public software" | |
| 817 | -msgstr "Software público" | |
| 818 | - | |
| 819 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 | |
| 820 | -msgid "Adherent to e-PING ?" | |
| 821 | -msgstr "Aderente ao e-PING ?" | |
| 822 | - | |
| 823 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 | |
| 824 | -msgid "Adherent to e-MAG ?" | |
| 825 | -msgstr "Aderente ao e-MAG ?" | |
| 826 | - | |
| 827 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 | |
| 828 | -msgid "Adherent to ICP-Brasil ?" | |
| 829 | -msgstr "Aderente ao ICP-Brasil?" | |
| 830 | - | |
| 831 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 | |
| 832 | -msgid "Adherent to e-ARQ ?" | |
| 833 | -msgstr "Aderente ao e-ARQ?" | |
| 834 | - | |
| 835 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 | |
| 836 | -msgid "Internacionalizable ?" | |
| 837 | -msgstr "Internacionalizável?" | |
| 838 | - | |
| 839 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 | |
| 840 | -msgid " Information" | |
| 841 | -msgstr " Informação" | |
| 842 | - | |
| 843 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 | |
| 844 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 | |
| 845 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 | |
| 846 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 | |
| 847 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 | |
| 848 | -msgid "Acronym" | |
| 849 | -msgstr "Sigla" | |
| 850 | - | |
| 851 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 | |
| 852 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 | |
| 853 | -msgid "It is a software of..." | |
| 854 | -msgstr "É um software de ..." | |
| 855 | - | |
| 856 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 | |
| 857 | -msgid "Link to Repository" | |
| 858 | -msgstr "Link pro Repositório" | |
| 859 | - | |
| 860 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 | |
| 861 | -msgid "New Operating System" | |
| 862 | -msgstr "Novo Sistema Operacional" | |
| 863 | - | |
| 864 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 | |
| 865 | -msgid "Specifications" | |
| 866 | -msgstr "Especificações" | |
| 867 | - | |
| 868 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 | |
| 869 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 | |
| 870 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 | |
| 871 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 | |
| 872 | -msgid "Save" | |
| 873 | -msgstr "Salvar" | |
| 874 | - | |
| 875 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 | |
| 876 | -msgid "Back to control panel" | |
| 877 | -msgstr "Voltar para o painel de controle" | |
| 878 | - | |
| 879 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 | |
| 880 | -msgid "New Library" | |
| 881 | -msgstr "Nova Biblioteca" | |
| 882 | - | |
| 883 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 | |
| 884 | -msgid "New Database" | |
| 885 | -msgstr "Novo Banco de Dados" | |
| 886 | - | |
| 887 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 | |
| 888 | -msgid "New language" | |
| 889 | -msgstr "Nova linguagem" | |
| 890 | - | |
| 891 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 | |
| 892 | -msgid "Step 1/2 - Software Creation" | |
| 893 | -msgstr "Passo 1/2 - Criação de Software" | |
| 894 | - | |
| 895 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 | |
| 896 | -msgid "Creating new software" | |
| 897 | -msgstr "Criando novo software" | |
| 898 | - | |
| 899 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 | |
| 900 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 | |
| 901 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 | |
| 902 | -msgid "" | |
| 903 | -"Note that the creation of communities in this environment is restricted. " | |
| 904 | -"Your request to create this new community will be sent to %{environment} " | |
| 905 | -"administrators and will be approved or rejected according to their methods " | |
| 906 | -"and criteria." | |
| 907 | -msgstr "" | |
| 908 | -"Note que a criação de comunidades neste ambiente é restrita. A sua " | |
| 909 | -"requisição para criar esta nova comunidade será enviada para os " | |
| 910 | -"administradores do %{environment} e será aprovada ou rejeitada de acordo com " | |
| 911 | -"seus métodos e critérios. " | |
| 912 | - | |
| 913 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 | |
| 914 | -msgid "\"Can`t create new software: #{@errors.length} errors\"" | |
| 915 | -msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" | |
| 916 | - | |
| 917 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 | |
| 918 | -msgid "License Version: " | |
| 919 | -msgstr "Versão da Licença: " | |
| 920 | - | |
| 921 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 | |
| 922 | -msgid "Create" | |
| 923 | -msgstr "Criar" | |
| 924 | - | |
| 925 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 | |
| 926 | -msgid "Cancel" | |
| 927 | -msgstr "Cancelar" | |
| 928 | - | |
| 929 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 | |
| 930 | -msgid "Edit Institution" | |
| 931 | -msgstr "Editar Instituição" | |
| 932 | - | |
| 933 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 | |
| 934 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 | |
| 935 | -msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" | |
| 936 | -msgstr "" | |
| 937 | -"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" | |
| 938 | - | |
| 939 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 | |
| 940 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 | |
| 941 | -msgid "All fields with (*) are mandatory" | |
| 942 | -msgstr "Todos os campos com (*) são obrigatórios" | |
| 943 | - | |
| 944 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 | |
| 945 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 | |
| 946 | -msgid "Public Institution" | |
| 947 | -msgstr "Instituição Pública" | |
| 948 | - | |
| 949 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 | |
| 950 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 | |
| 951 | -msgid "Private Institution" | |
| 952 | -msgstr "Instituição Privada" | |
| 953 | - | |
| 954 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 | |
| 955 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 | |
| 956 | -msgid "Institution name already exists" | |
| 957 | -msgstr "Nome da instituição já existe" | |
| 958 | - | |
| 959 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 | |
| 960 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 | |
| 961 | -msgid "Corporate Name" | |
| 962 | -msgstr "Razão Social" | |
| 963 | - | |
| 964 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 | |
| 965 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 | |
| 966 | -msgid "Country" | |
| 967 | -msgstr "País" | |
| 968 | - | |
| 969 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 | |
| 970 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 | |
| 971 | -msgid "State" | |
| 972 | -msgstr "Estado" | |
| 973 | - | |
| 974 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 | |
| 975 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 | |
| 976 | -msgid "CNPJ" | |
| 977 | -msgstr "CNPJ" | |
| 978 | - | |
| 979 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 | |
| 980 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 | |
| 981 | -msgid "Fantasy name" | |
| 982 | -msgstr "Nome Fantasia" | |
| 983 | - | |
| 984 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 | |
| 985 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 | |
| 986 | -msgid "Select a Governmental Sphere" | |
| 987 | -msgstr "Selecione uma Esfera Governamental" | |
| 988 | - | |
| 989 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 | |
| 990 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 | |
| 991 | -msgid "Select a Governmental Power" | |
| 992 | -msgstr "Selecione um Poder Governamental" | |
| 993 | - | |
| 994 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 | |
| 995 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 | |
| 996 | -msgid "Select a Juridical Nature" | |
| 997 | -msgstr "Selecione uma Natureza Jurídica" | |
| 998 | - | |
| 999 | -#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 | |
| 1000 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 | |
| 1001 | -msgid "SISP?" | |
| 1002 | -msgstr "SISP?" | |
| 1003 | - | |
| 1004 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 | |
| 1005 | -msgid "New Institution" | |
| 1006 | -msgstr "Nova Instituição" | |
| 1007 | - | |
| 1008 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 | |
| 1009 | -msgid "Could not send the form data to the server" | |
| 1010 | -msgstr "Não foi possível enviar os dados do formulário para o servidor" | |
| 1011 | - | |
| 1012 | -#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 | |
| 1013 | -msgid "Creating institution" | |
| 1014 | -msgstr "Criando Instituição" | |
| 1015 | - | |
| 1016 | -#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 | |
| 1017 | -msgid "Categories filter" | |
| 1018 | -msgstr "Filtro de Categorias" | |
| 1019 | - | |
| 1020 | -#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 | |
| 1021 | -msgid "Type a category name here" | |
| 1022 | -msgstr "Escreva uma categoria aqui" | |
| 1023 | - | |
| 1024 | -#: plugins/software_communities/views/search/_full_community.html.erb:30 | |
| 1025 | -msgid "Software licence" | |
| 1026 | -msgstr "Licença do Software" | |
| 1027 | - | |
| 1028 | -#: plugins/software_communities/views/search/_full_community.html.erb:39 | |
| 1029 | -msgid "Link software repository" | |
| 1030 | -msgstr "Link pro Repositório" | |
| 1031 | - | |
| 1032 | -#: plugins/software_communities/views/search/_full_community.html.erb:48 | |
| 1033 | -msgid "Software Categories" | |
| 1034 | -msgstr "Categorias de Software" | |
| 1035 | - | |
| 1036 | -#: plugins/software_communities/views/search/_full_community.html.erb:62 | |
| 1037 | -msgid "This software doesn't have categories" | |
| 1038 | -msgstr "Este software não tem categorias" | |
| 1039 | - | |
| 1040 | -#: plugins/software_communities/views/search/software_infos.html.erb:3 | |
| 1041 | -#: plugins/software_communities/views/search/institutions.html.erb:3 | |
| 1042 | -msgid "Type words about the %s you're looking for" | |
| 1043 | -msgstr "Escreva palavras sobre o software que você está procurando" | |
| 1044 | - | |
| 1045 | -#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 | |
| 1046 | -msgid "Step 2/2 - Software Community Configuration" | |
| 1047 | -msgstr "Passo 2/2 - Configuração da Comunidade do Software" | |
| 1048 | - | |
| 1049 | -#~ msgid "database Name: " | |
| 1050 | -#~ msgstr "Nome do banco de dados:" | |
| 1051 | - | |
| 1052 | -#~ msgid "Pick an item on the list" | |
| 1053 | -#~ msgstr "Escolha um item da lista" | |
| 1054 | - | |
| 1055 | -#~ msgid "At last one category must be checked" | |
| 1056 | -#~ msgstr "Pelo menos uma categoria deve ser selecionada" | |
| 1057 | - | |
| 1058 | -#~ msgid "%{requestor} wants to create software %{subject} with no finality." | |
| 1059 | -#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." | |
| 1060 | - | |
| 1061 | -#~ msgid "Operating system is too long (maximum is 20 characters)" | |
| 1062 | -#~ msgstr "" | |
| 1063 | -#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " | |
| 1064 | -#~ "20 caracteres)" | |
| 1065 | - | |
| 1066 | -#~ msgid "Language Name: " | |
| 1067 | -#~ msgstr "Nome da Linguagem: " | |
| 1068 | - | |
| 1069 | -#~ msgid "License:" | |
| 1070 | -#~ msgstr "Licença:" | |
| 1071 | - | |
| 1072 | -#~ msgid "Program Database" | |
| 1073 | -#~ msgstr "Programa de Banco de Dados" | |
| 1074 | - | |
| 1075 | -#~ msgid "Operating System:" | |
| 1076 | -#~ msgstr "Sistema Operacional" | |
| 1077 | - | |
| 1078 | -#~ msgid "Programming Language" | |
| 1079 | -#~ msgstr "Linguagem de Programação" | |
| 1080 | - | |
| 1081 | -#~ msgid "Activate Software" | |
| 1082 | -#~ msgstr "Ativar Software" | |
| 1083 | - | |
| 1084 | -#~ msgid "Do you want to activate this software?" | |
| 1085 | -#~ msgstr "Você quer ativar este software?" | |
| 1086 | - | |
| 1087 | -#~ msgid "Deactivate software" | |
| 1088 | -#~ msgstr "Desativar software" | |
| 1089 | - | |
| 1090 | -#~ msgid "Do you want to deactivate this software?" | |
| 1091 | -#~ msgstr "Você quer desativar este software?" | |
| 1092 | - | |
| 1093 | -#~ msgid "Remove" | |
| 1094 | -#~ msgstr "Remover" | |
| 1095 | - | |
| 1096 | -#~ msgid "Do you want to remove this software?" | |
| 1097 | -#~ msgstr "Você deseja remover este software?" | |
| 1098 | - | |
| 1099 | -#~ msgid "Find software" | |
| 1100 | -#~ msgstr "Buscar software" | |
| 1101 | - | |
| 1102 | -#~ msgid "Software list as [CSV]" | |
| 1103 | -#~ msgstr "Lista de Software como [CSV]" | |
| 1104 | - | |
| 1105 | -#~ msgid "Software list as [XML]" | |
| 1106 | -#~ msgstr "Lista de Software como [XML]" | |
| 1107 | - | |
| 1108 | -#~ msgid "Back" | |
| 1109 | -#~ msgstr "Voltar" | |
| 1110 | - | |
| 1111 | -#~ msgid "Community" | |
| 1112 | -#~ msgstr "Comunidade" | |
| 1113 | - | |
| 1114 | -#~ msgid "Secundary Information" | |
| 1115 | -#~ msgstr "Informação Secundária" | |
| 1116 | - | |
| 1117 | -#~ msgid "For more detailed information see " | |
| 1118 | -#~ msgstr "Para informações mais detalhadas, ver " | |
| 1119 | - | |
| 1120 | -#~ msgid "\"#{block.owner.name} profile\"" | |
| 1121 | -#~ msgstr "\"Perfil de #{block.owner.name}\"" | |
| 1122 | - | |
| 1123 | -#~ msgid "Main repository: " | |
| 1124 | -#~ msgstr "Repositório principal: " | |
| 1125 | - | |
| 1126 | -#~ msgid "Editar Instituição" | |
| 1127 | -#~ msgstr "Editar Instituição" | |
| 1128 | - | |
| 1129 | -#~ msgid "Generic" | |
| 1130 | -#~ msgstr "Genérico" |
| ... | ... | @@ -0,0 +1,1130 @@ |
| 1 | +# SOME DESCRIPTIVE TITLE. | |
| 2 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
| 3 | +# This file is distributed under the same license as the PACKAGE package. | |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
| 5 | +# | |
| 6 | +msgid "" | |
| 7 | +msgstr "" | |
| 8 | +"Project-Id-Version: 1.0\n" | |
| 9 | +"POT-Creation-Date: 2015-01-23 16:54-0000\n" | |
| 10 | +"PO-Revision-Date: 2014-11-12 13:05-0000\n" | |
| 11 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
| 12 | +"Language-Team: LANGUAGE <LL@li.org>\n" | |
| 13 | +"Language: \n" | |
| 14 | +"MIME-Version: 1.0\n" | |
| 15 | +"Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | +"Content-Transfer-Encoding: 8bit\n" | |
| 17 | +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
| 18 | + | |
| 19 | +#: plugins/software_communities/test/unit/mpog_person_test.rb:57 | |
| 20 | +#: plugins/software_communities/test/unit/mpog_person_test.rb:63 | |
| 21 | +msgid "Name Should begin with a capital letter and no special characters" | |
| 22 | +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 23 | + | |
| 24 | +#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 | |
| 25 | +msgid "Features is too long (maximum is 4000 characters)" | |
| 26 | +msgstr "" | |
| 27 | +"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " | |
| 28 | +"caracteres)" | |
| 29 | + | |
| 30 | +#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 | |
| 31 | +msgid "Objectives is too long (maximum is 4000 characters)" | |
| 32 | +msgstr "" | |
| 33 | +"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " | |
| 34 | +"caracteres)" | |
| 35 | + | |
| 36 | +#: plugins/software_communities/test/functional/search_controller_test.rb:24 | |
| 37 | +#: plugins/software_communities/lib/software_communities_plugin.rb:344 | |
| 38 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 | |
| 39 | +msgid "Software" | |
| 40 | +msgstr "Software" | |
| 41 | + | |
| 42 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 | |
| 43 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 | |
| 44 | +msgid "Save and Configure Community" | |
| 45 | +msgstr "Salvar e Configurar Comunidade" | |
| 46 | + | |
| 47 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 | |
| 48 | +msgid "Software updated sucessefuly" | |
| 49 | +msgstr "Software atualizado com sucesso" | |
| 50 | + | |
| 51 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 | |
| 52 | +msgid "Could not update software" | |
| 53 | +msgstr "Não foi possível atualizar o software" | |
| 54 | + | |
| 55 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 | |
| 56 | +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 | |
| 57 | +msgid "Could not find Governmental Power or Governmental Sphere" | |
| 58 | +msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" | |
| 59 | + | |
| 60 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 | |
| 61 | +msgid "" | |
| 62 | +"Your new software request will be evaluated by anadministrator. You will be " | |
| 63 | +"notified." | |
| 64 | +msgstr "" | |
| 65 | +"Sua requisição para criação de um novo software será avaliada por um " | |
| 66 | +"administrador. Você será noficado." | |
| 67 | + | |
| 68 | +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 | |
| 69 | +msgid "Institution successful created!" | |
| 70 | +msgstr "Instituição criada com sucesso!" | |
| 71 | + | |
| 72 | +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 | |
| 73 | +msgid "Institution could not be created!" | |
| 74 | +msgstr "Instituição não pode ser criada!" | |
| 75 | + | |
| 76 | +#: plugins/software_communities/lib/software_info.rb:69 | |
| 77 | +msgid "Name is too long (maximum is %{count} characters)" | |
| 78 | +msgstr "" | |
| 79 | +"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" | |
| 80 | + | |
| 81 | +#: plugins/software_communities/lib/software_info.rb:113 | |
| 82 | +msgid "can't have more than 10 characteres" | |
| 83 | +msgstr "não pode ter mais de 10 caracteres" | |
| 84 | + | |
| 85 | +#: plugins/software_communities/lib/software_info.rb:116 | |
| 86 | +msgid "can't have whitespaces" | |
| 87 | +msgstr "não pode ter espaços" | |
| 88 | + | |
| 89 | +#: plugins/software_communities/lib/software_info.rb:124 | |
| 90 | +#: plugins/software_communities/lib/software_info.rb:130 | |
| 91 | +#: plugins/software_communities/lib/software_info.rb:136 | |
| 92 | +msgid ": at least one must be filled" | |
| 93 | +msgstr ": pelo menos um deve ser preenchido" | |
| 94 | + | |
| 95 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:17 | |
| 96 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 | |
| 97 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 | |
| 98 | +msgid "Name" | |
| 99 | +msgstr "Nome" | |
| 100 | + | |
| 101 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:18 | |
| 102 | +msgid "Version" | |
| 103 | +msgstr "Versão" | |
| 104 | + | |
| 105 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:19 | |
| 106 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:19 | |
| 107 | +msgid "License" | |
| 108 | +msgstr "Licença" | |
| 109 | + | |
| 110 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:91 | |
| 111 | +msgid "Autocomplete field, type something" | |
| 112 | +msgstr "Campo automático, digite algo" | |
| 113 | + | |
| 114 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:116 | |
| 115 | +msgid "Delete" | |
| 116 | +msgstr "Excluir" | |
| 117 | + | |
| 118 | +#: plugins/software_communities/lib/categories_and_tags_block.rb:8 | |
| 119 | +msgid "Categories and Tags" | |
| 120 | +msgstr "Categorias e Tags" | |
| 121 | + | |
| 122 | +#: plugins/software_communities/lib/categories_and_tags_block.rb:12 | |
| 123 | +msgid "This block displays the categories and tags of a software." | |
| 124 | +msgstr "" | |
| 125 | +"Este bloco exibe as informações de categorias e tags de um perfil de " | |
| 126 | +"software." | |
| 127 | + | |
| 128 | +#: plugins/software_communities/lib/software_information_block.rb:8 | |
| 129 | +msgid "Basic Software Information" | |
| 130 | +msgstr "Informações Básicas Software" | |
| 131 | + | |
| 132 | +#: plugins/software_communities/lib/software_information_block.rb:12 | |
| 133 | +msgid "This block displays the basic information of a software profile." | |
| 134 | +msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 135 | + | |
| 136 | +#: plugins/software_communities/lib/softwares_block.rb:8 | |
| 137 | +msgid "Softwares" | |
| 138 | +msgstr "Softwares" | |
| 139 | + | |
| 140 | +#: plugins/software_communities/lib/softwares_block.rb:13 | |
| 141 | +msgid "{#} generic software" | |
| 142 | +msgid_plural "{#} generic softwares" | |
| 143 | +msgstr[0] "{#} software genérico" | |
| 144 | +msgstr[1] "{#} softwares genéricos" | |
| 145 | + | |
| 146 | +#: plugins/software_communities/lib/softwares_block.rb:15 | |
| 147 | +msgid "{#} public software" | |
| 148 | +msgid_plural "{#} public softwares" | |
| 149 | +msgstr[0] "{#} software público" | |
| 150 | +msgstr[1] "{#} software públicos" | |
| 151 | + | |
| 152 | +#: plugins/software_communities/lib/softwares_block.rb:17 | |
| 153 | +msgid "{#} software" | |
| 154 | +msgid_plural "{#} softwares" | |
| 155 | +msgstr[0] "{#} software" | |
| 156 | +msgstr[1] "{#} softwares" | |
| 157 | + | |
| 158 | +#: plugins/software_communities/lib/softwares_block.rb:22 | |
| 159 | +msgid "This block displays the softwares in which the user is a member." | |
| 160 | +msgstr "Este bloco apresenta os softwares no qual o usuário é membro." | |
| 161 | + | |
| 162 | +#: plugins/software_communities/lib/softwares_block.rb:31 | |
| 163 | +#: plugins/software_communities/lib/softwares_block.rb:37 | |
| 164 | +msgid "softwares|View all" | |
| 165 | +msgstr "Ver todos" | |
| 166 | + | |
| 167 | +#: plugins/software_communities/lib/create_software.rb:36 | |
| 168 | +msgid "New software" | |
| 169 | +msgstr "Novo software" | |
| 170 | + | |
| 171 | +#: plugins/software_communities/lib/create_software.rb:44 | |
| 172 | +msgid "%{requestor} wants to create software %{subject} with" | |
| 173 | +msgstr "%{requestor} deseja criar o software %{subject}" | |
| 174 | + | |
| 175 | +#: plugins/software_communities/lib/create_software.rb:46 | |
| 176 | +msgid " no finality." | |
| 177 | +msgstr " sem finalidade" | |
| 178 | + | |
| 179 | +#: plugins/software_communities/lib/create_software.rb:48 | |
| 180 | +msgid " this finality:<p><em>%{finality}</em></p>" | |
| 181 | +msgstr "" | |
| 182 | +" com esta finalidade:<p><em>" | |
| 183 | +"%{finality}</em></p>" | |
| 184 | + | |
| 185 | +#: plugins/software_communities/lib/create_software.rb:68 | |
| 186 | +msgid "%{requestor} wants to create software %{subject}" | |
| 187 | +msgstr "%{requestor} deseja criar o software %{subject}" | |
| 188 | + | |
| 189 | +#: plugins/software_communities/lib/create_software.rb:73 | |
| 190 | +msgid "" | |
| 191 | +"User \"%{user}\" just requested to create software %{software}.\n" | |
| 192 | +" You have to approve or reject it through the \"Pending Validations\"\n" | |
| 193 | +" section in your control panel.\n" | |
| 194 | +msgstr "" | |
| 195 | +"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " | |
| 196 | +"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " | |
| 197 | +"de controle.\n" | |
| 198 | + | |
| 199 | +#: plugins/software_communities/lib/create_software.rb:80 | |
| 200 | +msgid "" | |
| 201 | +"Your request for registering software %{software} at %{environment} was\n" | |
| 202 | +" just sent. Environment administrator will receive it and will approve " | |
| 203 | +"or\n" | |
| 204 | +" reject your request according to his methods and criteria.\n" | |
| 205 | +"\n" | |
| 206 | +" You will be notified as soon as environment administrator has a " | |
| 207 | +"position\n" | |
| 208 | +" about your request." | |
| 209 | +msgstr "" | |
| 210 | +"Sua requisição para registro do software %{software} no %{environment} acaba \n" | |
| 211 | +"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " | |
| 212 | +"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " | |
| 213 | +"notificado assim que o administrador tenha uma posição sobre sua requisição." | |
| 214 | + | |
| 215 | +#: plugins/software_communities/lib/create_software.rb:90 | |
| 216 | +msgid "" | |
| 217 | +"Your request for registering software %{software} at %{environment} was\n" | |
| 218 | +" not approved by the environment administrator. The following " | |
| 219 | +"explanation\n" | |
| 220 | +" was given: \n" | |
| 221 | +"\n" | |
| 222 | +"%{explanation}" | |
| 223 | +msgstr "" | |
| 224 | +"Sua requisição para o registro do software %{software} no %{environment} não \n" | |
| 225 | +"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " | |
| 226 | +"fornecida: \n" | |
| 227 | +"\n" | |
| 228 | +"%{explanation}" | |
| 229 | + | |
| 230 | +#: plugins/software_communities/lib/create_software.rb:99 | |
| 231 | +msgid "" | |
| 232 | +"Your request for registering the software \"%{software}\" was approved.\n" | |
| 233 | +" You can access %{url} and finish the registration of your software." | |
| 234 | +msgstr "" | |
| 235 | +"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " | |
| 236 | +"pode acessá-la %{url} e finalizar o registro do seu software." | |
| 237 | + | |
| 238 | +#: plugins/software_communities/lib/repository_block.rb:8 | |
| 239 | +msgid "Repository Link" | |
| 240 | +msgstr "Link para o Repositório:" | |
| 241 | + | |
| 242 | +#: plugins/software_communities/lib/repository_block.rb:12 | |
| 243 | +msgid "This block displays the repository link of a software." | |
| 244 | +msgstr "Este bloco exibe o link para o repositório de um perfil de software." | |
| 245 | + | |
| 246 | +#: plugins/software_communities/lib/software_language.rb:10 | |
| 247 | +msgid "Software language is too long (maximum is 20 characters)" | |
| 248 | +msgstr "" | |
| 249 | +"Linguagem de programação do software contém mais caracteres do que o " | |
| 250 | +"permitido (máximo é 20 caracteres)" | |
| 251 | + | |
| 252 | +#: plugins/software_communities/lib/download_block.rb:14 | |
| 253 | +msgid "Download Stable Version" | |
| 254 | +msgstr "Baixar Versão Estável" | |
| 255 | + | |
| 256 | +#: plugins/software_communities/lib/download_block.rb:18 | |
| 257 | +msgid "This block displays the stable version of a software." | |
| 258 | +msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 259 | + | |
| 260 | +#: plugins/software_communities/lib/software_communities_plugin.rb:17 | |
| 261 | +msgid "Add Public Software and MPOG features." | |
| 262 | +msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" | |
| 263 | + | |
| 264 | +#: plugins/software_communities/lib/software_communities_plugin.rb:167 | |
| 265 | +msgid "Create Institution" | |
| 266 | +msgstr "Criar Instituição" | |
| 267 | + | |
| 268 | +#: plugins/software_communities/lib/software_communities_plugin.rb:297 | |
| 269 | +msgid "Software Info" | |
| 270 | +msgstr "Informação de Software" | |
| 271 | + | |
| 272 | +#: plugins/software_communities/lib/software_communities_plugin.rb:308 | |
| 273 | +msgid "Create a new software" | |
| 274 | +msgstr "Criar um novo software" | |
| 275 | + | |
| 276 | +#: plugins/software_communities/lib/software_communities_plugin.rb:319 | |
| 277 | +msgid "Institution Info" | |
| 278 | +msgstr "Informação da Instituição" | |
| 279 | + | |
| 280 | +#: plugins/software_communities/lib/software_communities_plugin.rb:351 | |
| 281 | +msgid "Institution" | |
| 282 | +msgstr "Instituição" | |
| 283 | + | |
| 284 | +#: plugins/software_communities/lib/institution.rb:46 | |
| 285 | +msgid "invalid, only public and private institutions are allowed." | |
| 286 | +msgstr "inválido, somente instituição públicas ou privadas são permitidas." | |
| 287 | + | |
| 288 | +#: plugins/software_communities/lib/institution.rb:59 | |
| 289 | +#: plugins/software_communities/lib/institution.rb:71 | |
| 290 | +#: plugins/software_communities/lib/institution.rb:86 | |
| 291 | +#: plugins/software_communities/lib/institution.rb:111 | |
| 292 | +#: plugins/software_communities/lib/library.rb:5 | |
| 293 | +msgid "can't be blank" | |
| 294 | +msgstr "não pode ser em branco" | |
| 295 | + | |
| 296 | +#: plugins/software_communities/lib/institution.rb:103 | |
| 297 | +msgid "invalid format" | |
| 298 | +msgstr "formato inválido" | |
| 299 | + | |
| 300 | +#: plugins/software_communities/lib/operating_system.rb:12 | |
| 301 | +msgid "too long (maximum is 20 characters)" | |
| 302 | +msgstr "" | |
| 303 | +"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 304 | + | |
| 305 | +#: plugins/software_communities/lib/search_catalog_block.rb:8 | |
| 306 | +msgid "Search Softwares catalog" | |
| 307 | +msgstr "Informações Básicas Software" | |
| 308 | + | |
| 309 | +#: plugins/software_communities/lib/search_catalog_block.rb:12 | |
| 310 | +msgid "This block displays the search categories field " | |
| 311 | +msgstr "Este bloco apresenta a busca por categorias" | |
| 312 | + | |
| 313 | +#: plugins/software_communities/lib/library.rb:8 | |
| 314 | +msgid "Too long (maximum is 20 characters)" | |
| 315 | +msgstr "" | |
| 316 | +"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 317 | + | |
| 318 | +#: plugins/software_communities/lib/categories_software_block.rb:8 | |
| 319 | +msgid "Categories Softwares" | |
| 320 | +msgstr "Ativar Software" | |
| 321 | + | |
| 322 | +#: plugins/software_communities/lib/categories_software_block.rb:12 | |
| 323 | +msgid "" | |
| 324 | +"This block displays the categories and the amount of softwares for\n" | |
| 325 | +" each category." | |
| 326 | +msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." | |
| 327 | + | |
| 328 | +#: plugins/software_communities/lib/ext/user.rb:19 | |
| 329 | +msgid "Email must be different from secondary email." | |
| 330 | +msgstr "E-mail deve ser diferente do e-mail secundário." | |
| 331 | + | |
| 332 | +#: plugins/software_communities/lib/ext/user.rb:40 | |
| 333 | +msgid "E-mail or secondary e-mail already taken." | |
| 334 | +msgstr "E-mail ou e-mail secundário já está sendo utilizado" | |
| 335 | + | |
| 336 | +#: plugins/software_communities/lib/ext/user.rb:50 | |
| 337 | +msgid "Invalid secondary email format." | |
| 338 | +msgstr "Formato do e-mail secundário inválido." | |
| 339 | + | |
| 340 | +#: plugins/software_communities/lib/ext/user.rb:70 | |
| 341 | +msgid "The governamental email must be the primary one." | |
| 342 | +msgstr "O e-mail governamental deve ser o e-mail primário." | |
| 343 | + | |
| 344 | +#: plugins/software_communities/lib/ext/user.rb:78 | |
| 345 | +msgid "Institution is obligatory if user has a government email." | |
| 346 | +msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." | |
| 347 | + | |
| 348 | +#: plugins/software_communities/lib/ext/category.rb:5 | |
| 349 | +msgid "Agriculture, Fisheries and Extraction" | |
| 350 | +msgstr "Agricultura, Extrativismo e Pesca " | |
| 351 | + | |
| 352 | +#: plugins/software_communities/lib/ext/category.rb:6 | |
| 353 | +msgid "Science, Information and Communication" | |
| 354 | +msgstr "Ciência, Informação e Comunicação " | |
| 355 | + | |
| 356 | +#: plugins/software_communities/lib/ext/category.rb:7 | |
| 357 | +msgid "Economy and Finances" | |
| 358 | +msgstr "Economia e Finanças " | |
| 359 | + | |
| 360 | +#: plugins/software_communities/lib/ext/category.rb:8 | |
| 361 | +msgid "Public Administration" | |
| 362 | +msgstr "Administração Pública" | |
| 363 | + | |
| 364 | +#: plugins/software_communities/lib/ext/category.rb:9 | |
| 365 | +msgid "Habitation, Sanitation and Urbanism" | |
| 366 | +msgstr "Habitação, Saneamento e Urbanismo" | |
| 367 | + | |
| 368 | +#: plugins/software_communities/lib/ext/category.rb:10 | |
| 369 | +msgid "Individual, Family and Society" | |
| 370 | +msgstr "Pessoa, Família e Sociedade" | |
| 371 | + | |
| 372 | +#: plugins/software_communities/lib/ext/category.rb:11 | |
| 373 | +msgid "Health" | |
| 374 | +msgstr "Saúde" | |
| 375 | + | |
| 376 | +#: plugins/software_communities/lib/ext/category.rb:12 | |
| 377 | +msgid "Social Welfare and Development" | |
| 378 | +msgstr "Bem-estar Social e Desenvolvimento" | |
| 379 | + | |
| 380 | +#: plugins/software_communities/lib/ext/category.rb:13 | |
| 381 | +msgid "Defense and Security" | |
| 382 | +msgstr "Defesa e Segurança" | |
| 383 | + | |
| 384 | +#: plugins/software_communities/lib/ext/category.rb:14 | |
| 385 | +msgid "Education" | |
| 386 | +msgstr "Educação" | |
| 387 | + | |
| 388 | +#: plugins/software_communities/lib/ext/category.rb:15 | |
| 389 | +msgid "Government and Politics" | |
| 390 | +msgstr "Governo e Política" | |
| 391 | + | |
| 392 | +#: plugins/software_communities/lib/ext/category.rb:16 | |
| 393 | +msgid "Justice and Legislation" | |
| 394 | +msgstr "Justiça e Legislação" | |
| 395 | + | |
| 396 | +#: plugins/software_communities/lib/ext/category.rb:17 | |
| 397 | +msgid "International Relationships" | |
| 398 | +msgstr "Relações Internacionais" | |
| 399 | + | |
| 400 | +#: plugins/software_communities/lib/ext/search_controller.rb:15 | |
| 401 | +msgid "Institution Catalog" | |
| 402 | +msgstr "Catálogo de Instituição" | |
| 403 | + | |
| 404 | +#: plugins/software_communities/lib/ext/search_controller.rb:25 | |
| 405 | +msgid "Software Catalog" | |
| 406 | +msgstr "Catálogo de Software" | |
| 407 | + | |
| 408 | +#: plugins/software_communities/lib/institutions_block.rb:4 | |
| 409 | +#: plugins/software_communities/views/person_editor_extras.html.erb:10 | |
| 410 | +msgid "Institutions" | |
| 411 | +msgstr "Instituições" | |
| 412 | + | |
| 413 | +#: plugins/software_communities/lib/institutions_block.rb:12 | |
| 414 | +msgid "{#} institution" | |
| 415 | +msgid_plural "{#} institutions" | |
| 416 | +msgstr[0] "{#} intituição" | |
| 417 | +msgstr[1] "{#} instituições" | |
| 418 | + | |
| 419 | +#: plugins/software_communities/lib/institutions_block.rb:16 | |
| 420 | +msgid "This block displays the institutions in which the user is a member." | |
| 421 | +msgstr "Este bloco mostra as instituições a que o usuário pertence" | |
| 422 | + | |
| 423 | +#: plugins/software_communities/lib/institutions_block.rb:24 | |
| 424 | +#: plugins/software_communities/lib/institutions_block.rb:30 | |
| 425 | +msgid "institutions|View all" | |
| 426 | +msgstr "instituições|Ver todas" | |
| 427 | + | |
| 428 | +#: plugins/software_communities/lib/software_database.rb:12 | |
| 429 | +msgid "Software database is too long (maximum is 20 characters)" | |
| 430 | +msgstr "" | |
| 431 | +"Banco de dados do software contém mais caracteres do que o permitido (máximo " | |
| 432 | +"é 20 caracteres)" | |
| 433 | + | |
| 434 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 | |
| 435 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:7 | |
| 436 | +msgid "Name:" | |
| 437 | +msgstr "Nome:" | |
| 438 | + | |
| 439 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 | |
| 440 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:21 | |
| 441 | +msgid "Link:" | |
| 442 | +msgstr "Endereço:" | |
| 443 | + | |
| 444 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 | |
| 445 | +msgid "Software Description:" | |
| 446 | +msgstr "Descrição do Software" | |
| 447 | + | |
| 448 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 | |
| 449 | +msgid "Link to Version News:" | |
| 450 | +msgstr "Link para as Novidades da Versão:" | |
| 451 | + | |
| 452 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 | |
| 453 | +msgid "Link to Minimum Requirements:" | |
| 454 | +msgstr "Link para Requisitos Mínimos:" | |
| 455 | + | |
| 456 | +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 | |
| 457 | +msgid "Limit of items" | |
| 458 | +msgstr "Limite de itens" | |
| 459 | + | |
| 460 | +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 | |
| 461 | +msgid "Software Type:" | |
| 462 | +msgstr "Tipo do Software:" | |
| 463 | + | |
| 464 | +#: plugins/software_communities/views/person_editor_extras.html.erb:2 | |
| 465 | +msgid "Secondary e-mail" | |
| 466 | +msgstr "E-mail secundário" | |
| 467 | + | |
| 468 | +#: plugins/software_communities/views/person_editor_extras.html.erb:20 | |
| 469 | +msgid "No institution found" | |
| 470 | +msgstr "Nenhuma instituição encontrada" | |
| 471 | + | |
| 472 | +#: plugins/software_communities/views/person_editor_extras.html.erb:21 | |
| 473 | +msgid "Add new institution" | |
| 474 | +msgstr "Adicionar nova instituição" | |
| 475 | + | |
| 476 | +#: plugins/software_communities/views/person_editor_extras.html.erb:22 | |
| 477 | +msgid "Create new institution" | |
| 478 | +msgstr "Criar nova instituição" | |
| 479 | + | |
| 480 | +#: plugins/software_communities/views/person_editor_extras.html.erb:38 | |
| 481 | +msgid "Should begin with a capital letter and no special characters" | |
| 482 | +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 483 | + | |
| 484 | +#: plugins/software_communities/views/person_editor_extras.html.erb:39 | |
| 485 | +msgid "Email should have the following format: name@host.br" | |
| 486 | +msgstr "Email deve ter o seguinte formato: nome@host.br" | |
| 487 | + | |
| 488 | +#: plugins/software_communities/views/person_editor_extras.html.erb:40 | |
| 489 | +msgid "Site should have a valid format: http://name.hosts" | |
| 490 | +msgstr "Site deve ter um formato válido: http: //name.hosts" | |
| 491 | + | |
| 492 | +#: plugins/software_communities/views/person_editor_extras.html.erb:41 | |
| 493 | +msgid "If you work in a public agency use your government e-Mail" | |
| 494 | +msgstr "" | |
| 495 | +"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" | |
| 496 | + | |
| 497 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 | |
| 498 | +msgid "Institution Information" | |
| 499 | +msgstr "Informação da Instituição" | |
| 500 | + | |
| 501 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 | |
| 502 | +msgid "Type:" | |
| 503 | +msgstr "Tipo:" | |
| 504 | + | |
| 505 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 | |
| 506 | +msgid "CNPJ:" | |
| 507 | +msgstr "CNPJ:" | |
| 508 | + | |
| 509 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 | |
| 510 | +msgid "Last modification:" | |
| 511 | +msgstr "Última Modificação" | |
| 512 | + | |
| 513 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 | |
| 514 | +msgid "Country:" | |
| 515 | +msgstr "País:" | |
| 516 | + | |
| 517 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 | |
| 518 | +msgid "State:" | |
| 519 | +msgstr "Estado:" | |
| 520 | + | |
| 521 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 | |
| 522 | +msgid "City:" | |
| 523 | +msgstr "Cidade:" | |
| 524 | + | |
| 525 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 | |
| 526 | +msgid "Fantasy Name:" | |
| 527 | +msgstr "Nome Fantasia:" | |
| 528 | + | |
| 529 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 | |
| 530 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:15 | |
| 531 | +msgid "Acronym:" | |
| 532 | +msgstr "Sigla:" | |
| 533 | + | |
| 534 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 | |
| 535 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 | |
| 536 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 | |
| 537 | +msgid "Governmental Power:" | |
| 538 | +msgstr "Poder Governamental" | |
| 539 | + | |
| 540 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 | |
| 541 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 | |
| 542 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 | |
| 543 | +msgid "Governmental Sphere:" | |
| 544 | +msgstr "Esfera Governamental:" | |
| 545 | + | |
| 546 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 | |
| 547 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 | |
| 548 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 | |
| 549 | +msgid "Juridical Nature:" | |
| 550 | +msgstr "Natureza Jurídica:" | |
| 551 | + | |
| 552 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 553 | +msgid "SISP:" | |
| 554 | +msgstr "SISP:" | |
| 555 | + | |
| 556 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 557 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 558 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 559 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 560 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 561 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 562 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 | |
| 563 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 | |
| 564 | +msgid "Yes" | |
| 565 | +msgstr "Sim" | |
| 566 | + | |
| 567 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 568 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 569 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 570 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 571 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 572 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 573 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 | |
| 574 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 | |
| 575 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 | |
| 576 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 | |
| 577 | +msgid "No" | |
| 578 | +msgstr "Não" | |
| 579 | + | |
| 580 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:4 | |
| 581 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 | |
| 582 | +msgid "Software Information" | |
| 583 | +msgstr "Informação do Software" | |
| 584 | + | |
| 585 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 586 | +msgid "Adherent to e_mag:" | |
| 587 | +msgstr "Aderente ao e-Mag:" | |
| 588 | + | |
| 589 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 590 | +msgid "Adherent to icp_brasil:" | |
| 591 | +msgstr "Adherent ao ICP-Brasil:" | |
| 592 | + | |
| 593 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 594 | +msgid "Adherent to e_ping:" | |
| 595 | +msgstr "Aderente ao e-Ping:" | |
| 596 | + | |
| 597 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 598 | +msgid "Adherent to e_arq:" | |
| 599 | +msgstr "Aderente ao e-Arq:" | |
| 600 | + | |
| 601 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 602 | +msgid "Internacionalizable:" | |
| 603 | +msgstr "Internacionalizável:" | |
| 604 | + | |
| 605 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:13 | |
| 606 | +msgid "Operating Platform:" | |
| 607 | +msgstr "Plataforma Operacional:" | |
| 608 | + | |
| 609 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:14 | |
| 610 | +msgid "Demonstration URL:" | |
| 611 | +msgstr "URL de demonstração:" | |
| 612 | + | |
| 613 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:16 | |
| 614 | +msgid "Objectives:" | |
| 615 | +msgstr "Objetivos:" | |
| 616 | + | |
| 617 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:17 | |
| 618 | +msgid "Features:" | |
| 619 | +msgstr "Características:" | |
| 620 | + | |
| 621 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:20 | |
| 622 | +msgid "Version:" | |
| 623 | +msgstr "Versão:" | |
| 624 | + | |
| 625 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:26 | |
| 626 | +msgid "Show Libraries" | |
| 627 | +msgstr "Mostrar Bibliotecas" | |
| 628 | + | |
| 629 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:27 | |
| 630 | +msgid "Hide Libraries" | |
| 631 | +msgstr "Esconder Bibliotecas" | |
| 632 | + | |
| 633 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:36 | |
| 634 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 | |
| 635 | +msgid "Libraries" | |
| 636 | +msgstr "Bibliotecas" | |
| 637 | + | |
| 638 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:54 | |
| 639 | +msgid "Show Database" | |
| 640 | +msgstr "Mostrar Banco de Dados" | |
| 641 | + | |
| 642 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:55 | |
| 643 | +msgid "Hide Database" | |
| 644 | +msgstr "Esconder Banco de Dados" | |
| 645 | + | |
| 646 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:64 | |
| 647 | +msgid "Software Databases" | |
| 648 | +msgstr "Banco de Dados" | |
| 649 | + | |
| 650 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:82 | |
| 651 | +msgid "Show Languages" | |
| 652 | +msgstr "Mostrar Linguagens" | |
| 653 | + | |
| 654 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:83 | |
| 655 | +msgid "Hide Languages" | |
| 656 | +msgstr "Esconder Linguagens" | |
| 657 | + | |
| 658 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:92 | |
| 659 | +msgid "Software Languages" | |
| 660 | +msgstr "Linguagens de Software" | |
| 661 | + | |
| 662 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:110 | |
| 663 | +msgid "Show Operating Systems" | |
| 664 | +msgstr "Mostrar Sistemas Operacionais" | |
| 665 | + | |
| 666 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:111 | |
| 667 | +msgid "Hide Operating Systems" | |
| 668 | +msgstr "Esconder Sistemas Operacionais" | |
| 669 | + | |
| 670 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:121 | |
| 671 | +msgid "Operating System" | |
| 672 | +msgstr "Sistema Operacional" | |
| 673 | + | |
| 674 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 | |
| 675 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 | |
| 676 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 | |
| 677 | +#: plugins/software_communities/views/search/_full_community.html.erb:21 | |
| 678 | +msgid "Finality" | |
| 679 | +msgstr "Finalidade" | |
| 680 | + | |
| 681 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 | |
| 682 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 | |
| 683 | +msgid "Licenses" | |
| 684 | +msgstr "Licenças" | |
| 685 | + | |
| 686 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 | |
| 687 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 | |
| 688 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 | |
| 689 | +msgid "License link" | |
| 690 | +msgstr "Endereço da licença" | |
| 691 | + | |
| 692 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 | |
| 693 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 | |
| 694 | +msgid "Link to Repository: " | |
| 695 | +msgstr "Link pro Repositório: " | |
| 696 | + | |
| 697 | +#: plugins/software_communities/views/incomplete_registration.html.erb:3 | |
| 698 | +msgid "Complete Profile" | |
| 699 | +msgstr "Complete o Perfil" | |
| 700 | + | |
| 701 | +#: plugins/software_communities/views/incomplete_registration.html.erb:6 | |
| 702 | +msgid "Complete your profile" | |
| 703 | +msgstr "Complete o seu perfil" | |
| 704 | + | |
| 705 | +#: plugins/software_communities/views/incomplete_registration.html.erb:7 | |
| 706 | +msgid "Hide" | |
| 707 | +msgstr "Esconder" | |
| 708 | + | |
| 709 | +#: plugins/software_communities/views/blocks/repository.html.erb:2 | |
| 710 | +#: plugins/software_communities/views/blocks/download.html.erb:2 | |
| 711 | +#: plugins/software_communities/views/blocks/software_information.html.erb:4 | |
| 712 | +msgid "This community needs a software to use this block" | |
| 713 | +msgstr "Esta comunidade precisa de um software para utilizar este bloco" | |
| 714 | + | |
| 715 | +#: plugins/software_communities/views/blocks/repository.html.erb:4 | |
| 716 | +msgid "Repository" | |
| 717 | +msgstr "Repositório" | |
| 718 | + | |
| 719 | +#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 | |
| 720 | +msgid "Catalog of Public Software" | |
| 721 | +msgstr "Software Público" | |
| 722 | + | |
| 723 | +#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 | |
| 724 | +msgid "Search" | |
| 725 | +msgstr "Pesquisar" | |
| 726 | + | |
| 727 | +#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 | |
| 728 | +#: plugins/software_communities/views/blocks/categories_software.html.erb:24 | |
| 729 | +msgid "Access the complete catalog" | |
| 730 | +msgstr "Acesse o catálogo completo" | |
| 731 | + | |
| 732 | +#: plugins/software_communities/views/blocks/download.html.erb:6 | |
| 733 | +msgid "Download" | |
| 734 | +msgstr "Baixar" | |
| 735 | + | |
| 736 | +#: plugins/software_communities/views/blocks/download.html.erb:19 | |
| 737 | +msgid "Minimal Requirements" | |
| 738 | +msgstr "Requisitos Mínimos" | |
| 739 | + | |
| 740 | +#: plugins/software_communities/views/blocks/download.html.erb:23 | |
| 741 | +msgid "Version News" | |
| 742 | +msgstr "Novidades da Versão" | |
| 743 | + | |
| 744 | +#: plugins/software_communities/views/blocks/download.html.erb:27 | |
| 745 | +msgid "Licensed by" | |
| 746 | +msgstr "Licenciado por " | |
| 747 | + | |
| 748 | +#: plugins/software_communities/views/blocks/categories_software.html.erb:14 | |
| 749 | +msgid "Categories:" | |
| 750 | +msgstr "Categorias:" | |
| 751 | + | |
| 752 | +#: plugins/software_communities/views/blocks/categories_software.html.erb:18 | |
| 753 | +msgid "\"#{category.name}\"" | |
| 754 | +msgstr "\"#{category.name}\"" | |
| 755 | + | |
| 756 | +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 | |
| 757 | +msgid "Categories" | |
| 758 | +msgstr "Categorias" | |
| 759 | + | |
| 760 | +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 | |
| 761 | +msgid "Tags" | |
| 762 | +msgstr "Tags" | |
| 763 | + | |
| 764 | +#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 | |
| 765 | +msgid "See More" | |
| 766 | +msgstr "Veja Mais" | |
| 767 | + | |
| 768 | +#: plugins/software_communities/views/blocks/software_information.html.erb:16 | |
| 769 | +msgid "Control panel" | |
| 770 | +msgstr "Painel de controle" | |
| 771 | + | |
| 772 | +#: plugins/software_communities/views/blocks/software_information.html.erb:24 | |
| 773 | +msgid "\"#{block.owner.software_info.acronym} - \"" | |
| 774 | +msgstr "\"#{block.owner.software_info.acronym} - \"" | |
| 775 | + | |
| 776 | +#: plugins/software_communities/views/blocks/software_information.html.erb:25 | |
| 777 | +msgid "\"#{block.owner.name}\"" | |
| 778 | +msgstr "\"#{block.owner.name}\"" | |
| 779 | + | |
| 780 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 | |
| 781 | +msgid "Edit software" | |
| 782 | +msgstr "Editar software" | |
| 783 | + | |
| 784 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 | |
| 785 | +msgid "Operating Platform" | |
| 786 | +msgstr "Plataforma Operacional" | |
| 787 | + | |
| 788 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 | |
| 789 | +msgid "Features" | |
| 790 | +msgstr "Características" | |
| 791 | + | |
| 792 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 | |
| 793 | +msgid "Operating Systems" | |
| 794 | +msgstr "Sistemas Operacionais" | |
| 795 | + | |
| 796 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 | |
| 797 | +msgid "Programming languages" | |
| 798 | +msgstr "Linguagens de Programação" | |
| 799 | + | |
| 800 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 | |
| 801 | +msgid "Databases" | |
| 802 | +msgstr "Bancos de Dados" | |
| 803 | + | |
| 804 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 | |
| 805 | +msgid "Demonstration url" | |
| 806 | +msgstr "Url de demonstração" | |
| 807 | + | |
| 808 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 809 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 810 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 | |
| 811 | +msgid "Public Software" | |
| 812 | +msgstr "Software Público" | |
| 813 | + | |
| 814 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 815 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 816 | +msgid "Public software" | |
| 817 | +msgstr "Software público" | |
| 818 | + | |
| 819 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 | |
| 820 | +msgid "Adherent to e-PING ?" | |
| 821 | +msgstr "Aderente ao e-PING ?" | |
| 822 | + | |
| 823 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 | |
| 824 | +msgid "Adherent to e-MAG ?" | |
| 825 | +msgstr "Aderente ao e-MAG ?" | |
| 826 | + | |
| 827 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 | |
| 828 | +msgid "Adherent to ICP-Brasil ?" | |
| 829 | +msgstr "Aderente ao ICP-Brasil?" | |
| 830 | + | |
| 831 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 | |
| 832 | +msgid "Adherent to e-ARQ ?" | |
| 833 | +msgstr "Aderente ao e-ARQ?" | |
| 834 | + | |
| 835 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 | |
| 836 | +msgid "Internacionalizable ?" | |
| 837 | +msgstr "Internacionalizável?" | |
| 838 | + | |
| 839 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 | |
| 840 | +msgid " Information" | |
| 841 | +msgstr " Informação" | |
| 842 | + | |
| 843 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 | |
| 844 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 | |
| 845 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 | |
| 846 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 | |
| 847 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 | |
| 848 | +msgid "Acronym" | |
| 849 | +msgstr "Sigla" | |
| 850 | + | |
| 851 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 | |
| 852 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 | |
| 853 | +msgid "It is a software of..." | |
| 854 | +msgstr "É um software de ..." | |
| 855 | + | |
| 856 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 | |
| 857 | +msgid "Link to Repository" | |
| 858 | +msgstr "Link pro Repositório" | |
| 859 | + | |
| 860 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 | |
| 861 | +msgid "New Operating System" | |
| 862 | +msgstr "Novo Sistema Operacional" | |
| 863 | + | |
| 864 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 | |
| 865 | +msgid "Specifications" | |
| 866 | +msgstr "Especificações" | |
| 867 | + | |
| 868 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 | |
| 869 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 | |
| 870 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 | |
| 871 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 | |
| 872 | +msgid "Save" | |
| 873 | +msgstr "Salvar" | |
| 874 | + | |
| 875 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 | |
| 876 | +msgid "Back to control panel" | |
| 877 | +msgstr "Voltar para o painel de controle" | |
| 878 | + | |
| 879 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 | |
| 880 | +msgid "New Library" | |
| 881 | +msgstr "Nova Biblioteca" | |
| 882 | + | |
| 883 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 | |
| 884 | +msgid "New Database" | |
| 885 | +msgstr "Novo Banco de Dados" | |
| 886 | + | |
| 887 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 | |
| 888 | +msgid "New language" | |
| 889 | +msgstr "Nova linguagem" | |
| 890 | + | |
| 891 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 | |
| 892 | +msgid "Step 1/2 - Software Creation" | |
| 893 | +msgstr "Passo 1/2 - Criação de Software" | |
| 894 | + | |
| 895 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 | |
| 896 | +msgid "Creating new software" | |
| 897 | +msgstr "Criando novo software" | |
| 898 | + | |
| 899 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 | |
| 900 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 | |
| 901 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 | |
| 902 | +msgid "" | |
| 903 | +"Note that the creation of communities in this environment is restricted. " | |
| 904 | +"Your request to create this new community will be sent to %{environment} " | |
| 905 | +"administrators and will be approved or rejected according to their methods " | |
| 906 | +"and criteria." | |
| 907 | +msgstr "" | |
| 908 | +"Note que a criação de comunidades neste ambiente é restrita. A sua " | |
| 909 | +"requisição para criar esta nova comunidade será enviada para os " | |
| 910 | +"administradores do %{environment} e será aprovada ou rejeitada de acordo com " | |
| 911 | +"seus métodos e critérios. " | |
| 912 | + | |
| 913 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 | |
| 914 | +msgid "\"Can`t create new software: #{@errors.length} errors\"" | |
| 915 | +msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" | |
| 916 | + | |
| 917 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 | |
| 918 | +msgid "License Version: " | |
| 919 | +msgstr "Versão da Licença: " | |
| 920 | + | |
| 921 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 | |
| 922 | +msgid "Create" | |
| 923 | +msgstr "Criar" | |
| 924 | + | |
| 925 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 | |
| 926 | +msgid "Cancel" | |
| 927 | +msgstr "Cancelar" | |
| 928 | + | |
| 929 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 | |
| 930 | +msgid "Edit Institution" | |
| 931 | +msgstr "Editar Instituição" | |
| 932 | + | |
| 933 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 | |
| 934 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 | |
| 935 | +msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" | |
| 936 | +msgstr "" | |
| 937 | +"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" | |
| 938 | + | |
| 939 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 | |
| 940 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 | |
| 941 | +msgid "All fields with (*) are mandatory" | |
| 942 | +msgstr "Todos os campos com (*) são obrigatórios" | |
| 943 | + | |
| 944 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 | |
| 945 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 | |
| 946 | +msgid "Public Institution" | |
| 947 | +msgstr "Instituição Pública" | |
| 948 | + | |
| 949 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 | |
| 950 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 | |
| 951 | +msgid "Private Institution" | |
| 952 | +msgstr "Instituição Privada" | |
| 953 | + | |
| 954 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 | |
| 955 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 | |
| 956 | +msgid "Institution name already exists" | |
| 957 | +msgstr "Nome da instituição já existe" | |
| 958 | + | |
| 959 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 | |
| 960 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 | |
| 961 | +msgid "Corporate Name" | |
| 962 | +msgstr "Razão Social" | |
| 963 | + | |
| 964 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 | |
| 965 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 | |
| 966 | +msgid "Country" | |
| 967 | +msgstr "País" | |
| 968 | + | |
| 969 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 | |
| 970 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 | |
| 971 | +msgid "State" | |
| 972 | +msgstr "Estado" | |
| 973 | + | |
| 974 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 | |
| 975 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 | |
| 976 | +msgid "CNPJ" | |
| 977 | +msgstr "CNPJ" | |
| 978 | + | |
| 979 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 | |
| 980 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 | |
| 981 | +msgid "Fantasy name" | |
| 982 | +msgstr "Nome Fantasia" | |
| 983 | + | |
| 984 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 | |
| 985 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 | |
| 986 | +msgid "Select a Governmental Sphere" | |
| 987 | +msgstr "Selecione uma Esfera Governamental" | |
| 988 | + | |
| 989 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 | |
| 990 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 | |
| 991 | +msgid "Select a Governmental Power" | |
| 992 | +msgstr "Selecione um Poder Governamental" | |
| 993 | + | |
| 994 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 | |
| 995 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 | |
| 996 | +msgid "Select a Juridical Nature" | |
| 997 | +msgstr "Selecione uma Natureza Jurídica" | |
| 998 | + | |
| 999 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 | |
| 1000 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 | |
| 1001 | +msgid "SISP?" | |
| 1002 | +msgstr "SISP?" | |
| 1003 | + | |
| 1004 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 | |
| 1005 | +msgid "New Institution" | |
| 1006 | +msgstr "Nova Instituição" | |
| 1007 | + | |
| 1008 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 | |
| 1009 | +msgid "Could not send the form data to the server" | |
| 1010 | +msgstr "Não foi possível enviar os dados do formulário para o servidor" | |
| 1011 | + | |
| 1012 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 | |
| 1013 | +msgid "Creating institution" | |
| 1014 | +msgstr "Criando Instituição" | |
| 1015 | + | |
| 1016 | +#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 | |
| 1017 | +msgid "Categories filter" | |
| 1018 | +msgstr "Filtro de Categorias" | |
| 1019 | + | |
| 1020 | +#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 | |
| 1021 | +msgid "Type a category name here" | |
| 1022 | +msgstr "Escreva uma categoria aqui" | |
| 1023 | + | |
| 1024 | +#: plugins/software_communities/views/search/_full_community.html.erb:30 | |
| 1025 | +msgid "Software licence" | |
| 1026 | +msgstr "Licença do Software" | |
| 1027 | + | |
| 1028 | +#: plugins/software_communities/views/search/_full_community.html.erb:39 | |
| 1029 | +msgid "Link software repository" | |
| 1030 | +msgstr "Link pro Repositório" | |
| 1031 | + | |
| 1032 | +#: plugins/software_communities/views/search/_full_community.html.erb:48 | |
| 1033 | +msgid "Software Categories" | |
| 1034 | +msgstr "Categorias de Software" | |
| 1035 | + | |
| 1036 | +#: plugins/software_communities/views/search/_full_community.html.erb:62 | |
| 1037 | +msgid "This software doesn't have categories" | |
| 1038 | +msgstr "Este software não tem categorias" | |
| 1039 | + | |
| 1040 | +#: plugins/software_communities/views/search/software_infos.html.erb:3 | |
| 1041 | +#: plugins/software_communities/views/search/institutions.html.erb:3 | |
| 1042 | +msgid "Type words about the %s you're looking for" | |
| 1043 | +msgstr "Escreva palavras sobre o software que você está procurando" | |
| 1044 | + | |
| 1045 | +#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 | |
| 1046 | +msgid "Step 2/2 - Software Community Configuration" | |
| 1047 | +msgstr "Passo 2/2 - Configuração da Comunidade do Software" | |
| 1048 | + | |
| 1049 | +#~ msgid "database Name: " | |
| 1050 | +#~ msgstr "Nome do banco de dados:" | |
| 1051 | + | |
| 1052 | +#~ msgid "Pick an item on the list" | |
| 1053 | +#~ msgstr "Escolha um item da lista" | |
| 1054 | + | |
| 1055 | +#~ msgid "At last one category must be checked" | |
| 1056 | +#~ msgstr "Pelo menos uma categoria deve ser selecionada" | |
| 1057 | + | |
| 1058 | +#~ msgid "%{requestor} wants to create software %{subject} with no finality." | |
| 1059 | +#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." | |
| 1060 | + | |
| 1061 | +#~ msgid "Operating system is too long (maximum is 20 characters)" | |
| 1062 | +#~ msgstr "" | |
| 1063 | +#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " | |
| 1064 | +#~ "20 caracteres)" | |
| 1065 | + | |
| 1066 | +#~ msgid "Language Name: " | |
| 1067 | +#~ msgstr "Nome da Linguagem: " | |
| 1068 | + | |
| 1069 | +#~ msgid "License:" | |
| 1070 | +#~ msgstr "Licença:" | |
| 1071 | + | |
| 1072 | +#~ msgid "Program Database" | |
| 1073 | +#~ msgstr "Programa de Banco de Dados" | |
| 1074 | + | |
| 1075 | +#~ msgid "Operating System:" | |
| 1076 | +#~ msgstr "Sistema Operacional" | |
| 1077 | + | |
| 1078 | +#~ msgid "Programming Language" | |
| 1079 | +#~ msgstr "Linguagem de Programação" | |
| 1080 | + | |
| 1081 | +#~ msgid "Activate Software" | |
| 1082 | +#~ msgstr "Ativar Software" | |
| 1083 | + | |
| 1084 | +#~ msgid "Do you want to activate this software?" | |
| 1085 | +#~ msgstr "Você quer ativar este software?" | |
| 1086 | + | |
| 1087 | +#~ msgid "Deactivate software" | |
| 1088 | +#~ msgstr "Desativar software" | |
| 1089 | + | |
| 1090 | +#~ msgid "Do you want to deactivate this software?" | |
| 1091 | +#~ msgstr "Você quer desativar este software?" | |
| 1092 | + | |
| 1093 | +#~ msgid "Remove" | |
| 1094 | +#~ msgstr "Remover" | |
| 1095 | + | |
| 1096 | +#~ msgid "Do you want to remove this software?" | |
| 1097 | +#~ msgstr "Você deseja remover este software?" | |
| 1098 | + | |
| 1099 | +#~ msgid "Find software" | |
| 1100 | +#~ msgstr "Buscar software" | |
| 1101 | + | |
| 1102 | +#~ msgid "Software list as [CSV]" | |
| 1103 | +#~ msgstr "Lista de Software como [CSV]" | |
| 1104 | + | |
| 1105 | +#~ msgid "Software list as [XML]" | |
| 1106 | +#~ msgstr "Lista de Software como [XML]" | |
| 1107 | + | |
| 1108 | +#~ msgid "Back" | |
| 1109 | +#~ msgstr "Voltar" | |
| 1110 | + | |
| 1111 | +#~ msgid "Community" | |
| 1112 | +#~ msgstr "Comunidade" | |
| 1113 | + | |
| 1114 | +#~ msgid "Secundary Information" | |
| 1115 | +#~ msgstr "Informação Secundária" | |
| 1116 | + | |
| 1117 | +#~ msgid "For more detailed information see " | |
| 1118 | +#~ msgstr "Para informações mais detalhadas, ver " | |
| 1119 | + | |
| 1120 | +#~ msgid "\"#{block.owner.name} profile\"" | |
| 1121 | +#~ msgstr "\"Perfil de #{block.owner.name}\"" | |
| 1122 | + | |
| 1123 | +#~ msgid "Main repository: " | |
| 1124 | +#~ msgstr "Repositório principal: " | |
| 1125 | + | |
| 1126 | +#~ msgid "Editar Instituição" | |
| 1127 | +#~ msgstr "Editar Instituição" | |
| 1128 | + | |
| 1129 | +#~ msgid "Generic" | |
| 1130 | +#~ msgstr "Genérico" | ... | ... |
| ... | ... | @@ -0,0 +1,1130 @@ |
| 1 | +# SOME DESCRIPTIVE TITLE. | |
| 2 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
| 3 | +# This file is distributed under the same license as the PACKAGE package. | |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
| 5 | +# | |
| 6 | +msgid "" | |
| 7 | +msgstr "" | |
| 8 | +"Project-Id-Version: 1.0\n" | |
| 9 | +"POT-Creation-Date: 2015-01-23 16:54-0000\n" | |
| 10 | +"PO-Revision-Date: 2014-11-12 13:05-0000\n" | |
| 11 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
| 12 | +"Language-Team: LANGUAGE <LL@li.org>\n" | |
| 13 | +"Language: \n" | |
| 14 | +"MIME-Version: 1.0\n" | |
| 15 | +"Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | +"Content-Transfer-Encoding: 8bit\n" | |
| 17 | +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | |
| 18 | + | |
| 19 | +#: plugins/software_communities/test/unit/mpog_person_test.rb:57 | |
| 20 | +#: plugins/software_communities/test/unit/mpog_person_test.rb:63 | |
| 21 | +msgid "Name Should begin with a capital letter and no special characters" | |
| 22 | +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 23 | + | |
| 24 | +#: plugins/software_communities/test/unit/software_info_validation_test.rb:107 | |
| 25 | +msgid "Features is too long (maximum is 4000 characters)" | |
| 26 | +msgstr "" | |
| 27 | +"Funcionalidade contém mais caracteres do que o permitido(máximo é 4000 " | |
| 28 | +"caracteres)" | |
| 29 | + | |
| 30 | +#: plugins/software_communities/test/unit/software_info_validation_test.rb:115 | |
| 31 | +msgid "Objectives is too long (maximum is 4000 characters)" | |
| 32 | +msgstr "" | |
| 33 | +"Objetivos contém mais caracteres do que o permitido (máximo é 4000 " | |
| 34 | +"caracteres)" | |
| 35 | + | |
| 36 | +#: plugins/software_communities/test/functional/search_controller_test.rb:24 | |
| 37 | +#: plugins/software_communities/lib/software_communities_plugin.rb:344 | |
| 38 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:7 | |
| 39 | +msgid "Software" | |
| 40 | +msgstr "Software" | |
| 41 | + | |
| 42 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:52 | |
| 43 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:17 | |
| 44 | +msgid "Save and Configure Community" | |
| 45 | +msgstr "Salvar e Configurar Comunidade" | |
| 46 | + | |
| 47 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:56 | |
| 48 | +msgid "Software updated sucessefuly" | |
| 49 | +msgstr "Software atualizado com sucesso" | |
| 50 | + | |
| 51 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:59 | |
| 52 | +msgid "Could not update software" | |
| 53 | +msgstr "Não foi possível atualizar o software" | |
| 54 | + | |
| 55 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:96 | |
| 56 | +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:170 | |
| 57 | +msgid "Could not find Governmental Power or Governmental Sphere" | |
| 58 | +msgstr "Não foi possível encontrar Poder Governamental ou Esfera Governamental" | |
| 59 | + | |
| 60 | +#: plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:149 | |
| 61 | +msgid "" | |
| 62 | +"Your new software request will be evaluated by anadministrator. You will be " | |
| 63 | +"notified." | |
| 64 | +msgstr "" | |
| 65 | +"Sua requisição para criação de um novo software será avaliada por um " | |
| 66 | +"administrador. Você será noficado." | |
| 67 | + | |
| 68 | +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:215 | |
| 69 | +msgid "Institution successful created!" | |
| 70 | +msgstr "Instituição criada com sucesso!" | |
| 71 | + | |
| 72 | +#: plugins/software_communities/controllers/software_communities_plugin_controller.rb:220 | |
| 73 | +msgid "Institution could not be created!" | |
| 74 | +msgstr "Instituição não pode ser criada!" | |
| 75 | + | |
| 76 | +#: plugins/software_communities/lib/software_info.rb:69 | |
| 77 | +msgid "Name is too long (maximum is %{count} characters)" | |
| 78 | +msgstr "" | |
| 79 | +"Nome contém mais caracteres do que o permitido (máximo é %{count} caracteres)" | |
| 80 | + | |
| 81 | +#: plugins/software_communities/lib/software_info.rb:113 | |
| 82 | +msgid "can't have more than 10 characteres" | |
| 83 | +msgstr "não pode ter mais de 10 caracteres" | |
| 84 | + | |
| 85 | +#: plugins/software_communities/lib/software_info.rb:116 | |
| 86 | +msgid "can't have whitespaces" | |
| 87 | +msgstr "não pode ter espaços" | |
| 88 | + | |
| 89 | +#: plugins/software_communities/lib/software_info.rb:124 | |
| 90 | +#: plugins/software_communities/lib/software_info.rb:130 | |
| 91 | +#: plugins/software_communities/lib/software_info.rb:136 | |
| 92 | +msgid ": at least one must be filled" | |
| 93 | +msgstr ": pelo menos um deve ser preenchido" | |
| 94 | + | |
| 95 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:17 | |
| 96 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:3 | |
| 97 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:31 | |
| 98 | +msgid "Name" | |
| 99 | +msgstr "Nome" | |
| 100 | + | |
| 101 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:18 | |
| 102 | +msgid "Version" | |
| 103 | +msgstr "Versão" | |
| 104 | + | |
| 105 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:19 | |
| 106 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:19 | |
| 107 | +msgid "License" | |
| 108 | +msgstr "Licença" | |
| 109 | + | |
| 110 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:91 | |
| 111 | +msgid "Autocomplete field, type something" | |
| 112 | +msgstr "Campo automático, digite algo" | |
| 113 | + | |
| 114 | +#: plugins/software_communities/lib/dynamic_table_helper.rb:116 | |
| 115 | +msgid "Delete" | |
| 116 | +msgstr "Excluir" | |
| 117 | + | |
| 118 | +#: plugins/software_communities/lib/categories_and_tags_block.rb:8 | |
| 119 | +msgid "Categories and Tags" | |
| 120 | +msgstr "Categorias e Tags" | |
| 121 | + | |
| 122 | +#: plugins/software_communities/lib/categories_and_tags_block.rb:12 | |
| 123 | +msgid "This block displays the categories and tags of a software." | |
| 124 | +msgstr "" | |
| 125 | +"Este bloco exibe as informações de categorias e tags de um perfil de " | |
| 126 | +"software." | |
| 127 | + | |
| 128 | +#: plugins/software_communities/lib/software_information_block.rb:8 | |
| 129 | +msgid "Basic Software Information" | |
| 130 | +msgstr "Informações Básicas Software" | |
| 131 | + | |
| 132 | +#: plugins/software_communities/lib/software_information_block.rb:12 | |
| 133 | +msgid "This block displays the basic information of a software profile." | |
| 134 | +msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 135 | + | |
| 136 | +#: plugins/software_communities/lib/softwares_block.rb:8 | |
| 137 | +msgid "Softwares" | |
| 138 | +msgstr "Softwares" | |
| 139 | + | |
| 140 | +#: plugins/software_communities/lib/softwares_block.rb:13 | |
| 141 | +msgid "{#} generic software" | |
| 142 | +msgid_plural "{#} generic softwares" | |
| 143 | +msgstr[0] "{#} software genérico" | |
| 144 | +msgstr[1] "{#} softwares genéricos" | |
| 145 | + | |
| 146 | +#: plugins/software_communities/lib/softwares_block.rb:15 | |
| 147 | +msgid "{#} public software" | |
| 148 | +msgid_plural "{#} public softwares" | |
| 149 | +msgstr[0] "{#} software público" | |
| 150 | +msgstr[1] "{#} software públicos" | |
| 151 | + | |
| 152 | +#: plugins/software_communities/lib/softwares_block.rb:17 | |
| 153 | +msgid "{#} software" | |
| 154 | +msgid_plural "{#} softwares" | |
| 155 | +msgstr[0] "{#} software" | |
| 156 | +msgstr[1] "{#} softwares" | |
| 157 | + | |
| 158 | +#: plugins/software_communities/lib/softwares_block.rb:22 | |
| 159 | +msgid "This block displays the softwares in which the user is a member." | |
| 160 | +msgstr "Este bloco apresenta os softwares no qual o usuário é membro." | |
| 161 | + | |
| 162 | +#: plugins/software_communities/lib/softwares_block.rb:31 | |
| 163 | +#: plugins/software_communities/lib/softwares_block.rb:37 | |
| 164 | +msgid "softwares|View all" | |
| 165 | +msgstr "Ver todos" | |
| 166 | + | |
| 167 | +#: plugins/software_communities/lib/create_software.rb:36 | |
| 168 | +msgid "New software" | |
| 169 | +msgstr "Novo software" | |
| 170 | + | |
| 171 | +#: plugins/software_communities/lib/create_software.rb:44 | |
| 172 | +msgid "%{requestor} wants to create software %{subject} with" | |
| 173 | +msgstr "%{requestor} deseja criar o software %{subject}" | |
| 174 | + | |
| 175 | +#: plugins/software_communities/lib/create_software.rb:46 | |
| 176 | +msgid " no finality." | |
| 177 | +msgstr " sem finalidade" | |
| 178 | + | |
| 179 | +#: plugins/software_communities/lib/create_software.rb:48 | |
| 180 | +msgid " this finality:<p><em>%{finality}</em></p>" | |
| 181 | +msgstr "" | |
| 182 | +" com esta finalidade:<p><em>" | |
| 183 | +"%{finality}</em></p>" | |
| 184 | + | |
| 185 | +#: plugins/software_communities/lib/create_software.rb:68 | |
| 186 | +msgid "%{requestor} wants to create software %{subject}" | |
| 187 | +msgstr "%{requestor} deseja criar o software %{subject}" | |
| 188 | + | |
| 189 | +#: plugins/software_communities/lib/create_software.rb:73 | |
| 190 | +msgid "" | |
| 191 | +"User \"%{user}\" just requested to create software %{software}.\n" | |
| 192 | +" You have to approve or reject it through the \"Pending Validations\"\n" | |
| 193 | +" section in your control panel.\n" | |
| 194 | +msgstr "" | |
| 195 | +"Usuário \"%{user}\" requisitou a criação do software %{software}. Você " | |
| 196 | +"deve aprovar ou rejeitar pela seção \"Validações pendentes\" no seu painel " | |
| 197 | +"de controle.\n" | |
| 198 | + | |
| 199 | +#: plugins/software_communities/lib/create_software.rb:80 | |
| 200 | +msgid "" | |
| 201 | +"Your request for registering software %{software} at %{environment} was\n" | |
| 202 | +" just sent. Environment administrator will receive it and will approve " | |
| 203 | +"or\n" | |
| 204 | +" reject your request according to his methods and criteria.\n" | |
| 205 | +"\n" | |
| 206 | +" You will be notified as soon as environment administrator has a " | |
| 207 | +"position\n" | |
| 208 | +" about your request." | |
| 209 | +msgstr "" | |
| 210 | +"Sua requisição para registro do software %{software} no %{environment} acaba \n" | |
| 211 | +"de ser enviada. O administrador do ambiente a receberá e poderá aprovar ou\n " | |
| 212 | +"rejeitar sua requisição de acordo com seus métodos e critérios.\n Você será " | |
| 213 | +"notificado assim que o administrador tenha uma posição sobre sua requisição." | |
| 214 | + | |
| 215 | +#: plugins/software_communities/lib/create_software.rb:90 | |
| 216 | +msgid "" | |
| 217 | +"Your request for registering software %{software} at %{environment} was\n" | |
| 218 | +" not approved by the environment administrator. The following " | |
| 219 | +"explanation\n" | |
| 220 | +" was given: \n" | |
| 221 | +"\n" | |
| 222 | +"%{explanation}" | |
| 223 | +msgstr "" | |
| 224 | +"Sua requisição para o registro do software %{software} no %{environment} não \n" | |
| 225 | +"foi aprovada pelo administrador do ambiente. A seguinte explicação foi " | |
| 226 | +"fornecida: \n" | |
| 227 | +"\n" | |
| 228 | +"%{explanation}" | |
| 229 | + | |
| 230 | +#: plugins/software_communities/lib/create_software.rb:99 | |
| 231 | +msgid "" | |
| 232 | +"Your request for registering the software \"%{software}\" was approved.\n" | |
| 233 | +" You can access %{url} and finish the registration of your software." | |
| 234 | +msgstr "" | |
| 235 | +"Sua requisição para registro do software \"%{software}\" foi aprovada. \n Você " | |
| 236 | +"pode acessá-la %{url} e finalizar o registro do seu software." | |
| 237 | + | |
| 238 | +#: plugins/software_communities/lib/repository_block.rb:8 | |
| 239 | +msgid "Repository Link" | |
| 240 | +msgstr "Link para o Repositório:" | |
| 241 | + | |
| 242 | +#: plugins/software_communities/lib/repository_block.rb:12 | |
| 243 | +msgid "This block displays the repository link of a software." | |
| 244 | +msgstr "Este bloco exibe o link para o repositório de um perfil de software." | |
| 245 | + | |
| 246 | +#: plugins/software_communities/lib/software_language.rb:10 | |
| 247 | +msgid "Software language is too long (maximum is 20 characters)" | |
| 248 | +msgstr "" | |
| 249 | +"Linguagem de programação do software contém mais caracteres do que o " | |
| 250 | +"permitido (máximo é 20 caracteres)" | |
| 251 | + | |
| 252 | +#: plugins/software_communities/lib/download_block.rb:14 | |
| 253 | +msgid "Download Stable Version" | |
| 254 | +msgstr "Baixar Versão Estável" | |
| 255 | + | |
| 256 | +#: plugins/software_communities/lib/download_block.rb:18 | |
| 257 | +msgid "This block displays the stable version of a software." | |
| 258 | +msgstr "Este bloco exibe as informações básicas de um perfil de software." | |
| 259 | + | |
| 260 | +#: plugins/software_communities/lib/software_communities_plugin.rb:17 | |
| 261 | +msgid "Add Public Software and MPOG features." | |
| 262 | +msgstr "Adicionar funcionalidades referentes ao Software Público e MPOG" | |
| 263 | + | |
| 264 | +#: plugins/software_communities/lib/software_communities_plugin.rb:167 | |
| 265 | +msgid "Create Institution" | |
| 266 | +msgstr "Criar Instituição" | |
| 267 | + | |
| 268 | +#: plugins/software_communities/lib/software_communities_plugin.rb:297 | |
| 269 | +msgid "Software Info" | |
| 270 | +msgstr "Informação de Software" | |
| 271 | + | |
| 272 | +#: plugins/software_communities/lib/software_communities_plugin.rb:308 | |
| 273 | +msgid "Create a new software" | |
| 274 | +msgstr "Criar um novo software" | |
| 275 | + | |
| 276 | +#: plugins/software_communities/lib/software_communities_plugin.rb:319 | |
| 277 | +msgid "Institution Info" | |
| 278 | +msgstr "Informação da Instituição" | |
| 279 | + | |
| 280 | +#: plugins/software_communities/lib/software_communities_plugin.rb:351 | |
| 281 | +msgid "Institution" | |
| 282 | +msgstr "Instituição" | |
| 283 | + | |
| 284 | +#: plugins/software_communities/lib/institution.rb:46 | |
| 285 | +msgid "invalid, only public and private institutions are allowed." | |
| 286 | +msgstr "inválido, somente instituição públicas ou privadas são permitidas." | |
| 287 | + | |
| 288 | +#: plugins/software_communities/lib/institution.rb:59 | |
| 289 | +#: plugins/software_communities/lib/institution.rb:71 | |
| 290 | +#: plugins/software_communities/lib/institution.rb:86 | |
| 291 | +#: plugins/software_communities/lib/institution.rb:111 | |
| 292 | +#: plugins/software_communities/lib/library.rb:5 | |
| 293 | +msgid "can't be blank" | |
| 294 | +msgstr "não pode ser em branco" | |
| 295 | + | |
| 296 | +#: plugins/software_communities/lib/institution.rb:103 | |
| 297 | +msgid "invalid format" | |
| 298 | +msgstr "formato inválido" | |
| 299 | + | |
| 300 | +#: plugins/software_communities/lib/operating_system.rb:12 | |
| 301 | +msgid "too long (maximum is 20 characters)" | |
| 302 | +msgstr "" | |
| 303 | +"Sistema operacional contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 304 | + | |
| 305 | +#: plugins/software_communities/lib/search_catalog_block.rb:8 | |
| 306 | +msgid "Search Softwares catalog" | |
| 307 | +msgstr "Informações Básicas Software" | |
| 308 | + | |
| 309 | +#: plugins/software_communities/lib/search_catalog_block.rb:12 | |
| 310 | +msgid "This block displays the search categories field " | |
| 311 | +msgstr "Este bloco apresenta a busca por categorias" | |
| 312 | + | |
| 313 | +#: plugins/software_communities/lib/library.rb:8 | |
| 314 | +msgid "Too long (maximum is 20 characters)" | |
| 315 | +msgstr "" | |
| 316 | +"Biblioteca contém mais caracteres do que o permitido (máximo é 20 caracteres)" | |
| 317 | + | |
| 318 | +#: plugins/software_communities/lib/categories_software_block.rb:8 | |
| 319 | +msgid "Categories Softwares" | |
| 320 | +msgstr "Ativar Software" | |
| 321 | + | |
| 322 | +#: plugins/software_communities/lib/categories_software_block.rb:12 | |
| 323 | +msgid "" | |
| 324 | +"This block displays the categories and the amount of softwares for\n" | |
| 325 | +" each category." | |
| 326 | +msgstr "Este bloco exibe as categorias e a quantidade de softwares por categoria." | |
| 327 | + | |
| 328 | +#: plugins/software_communities/lib/ext/user.rb:19 | |
| 329 | +msgid "Email must be different from secondary email." | |
| 330 | +msgstr "E-mail deve ser diferente do e-mail secundário." | |
| 331 | + | |
| 332 | +#: plugins/software_communities/lib/ext/user.rb:40 | |
| 333 | +msgid "E-mail or secondary e-mail already taken." | |
| 334 | +msgstr "E-mail ou e-mail secundário já está sendo utilizado" | |
| 335 | + | |
| 336 | +#: plugins/software_communities/lib/ext/user.rb:50 | |
| 337 | +msgid "Invalid secondary email format." | |
| 338 | +msgstr "Formato do e-mail secundário inválido." | |
| 339 | + | |
| 340 | +#: plugins/software_communities/lib/ext/user.rb:70 | |
| 341 | +msgid "The governamental email must be the primary one." | |
| 342 | +msgstr "O e-mail governamental deve ser o e-mail primário." | |
| 343 | + | |
| 344 | +#: plugins/software_communities/lib/ext/user.rb:78 | |
| 345 | +msgid "Institution is obligatory if user has a government email." | |
| 346 | +msgstr "Instituição é obrigatória se o usuário tiver um e-mail governamental." | |
| 347 | + | |
| 348 | +#: plugins/software_communities/lib/ext/category.rb:5 | |
| 349 | +msgid "Agriculture, Fisheries and Extraction" | |
| 350 | +msgstr "Agricultura, Extrativismo e Pesca " | |
| 351 | + | |
| 352 | +#: plugins/software_communities/lib/ext/category.rb:6 | |
| 353 | +msgid "Science, Information and Communication" | |
| 354 | +msgstr "Ciência, Informação e Comunicação " | |
| 355 | + | |
| 356 | +#: plugins/software_communities/lib/ext/category.rb:7 | |
| 357 | +msgid "Economy and Finances" | |
| 358 | +msgstr "Economia e Finanças " | |
| 359 | + | |
| 360 | +#: plugins/software_communities/lib/ext/category.rb:8 | |
| 361 | +msgid "Public Administration" | |
| 362 | +msgstr "Administração Pública" | |
| 363 | + | |
| 364 | +#: plugins/software_communities/lib/ext/category.rb:9 | |
| 365 | +msgid "Habitation, Sanitation and Urbanism" | |
| 366 | +msgstr "Habitação, Saneamento e Urbanismo" | |
| 367 | + | |
| 368 | +#: plugins/software_communities/lib/ext/category.rb:10 | |
| 369 | +msgid "Individual, Family and Society" | |
| 370 | +msgstr "Pessoa, Família e Sociedade" | |
| 371 | + | |
| 372 | +#: plugins/software_communities/lib/ext/category.rb:11 | |
| 373 | +msgid "Health" | |
| 374 | +msgstr "Saúde" | |
| 375 | + | |
| 376 | +#: plugins/software_communities/lib/ext/category.rb:12 | |
| 377 | +msgid "Social Welfare and Development" | |
| 378 | +msgstr "Bem-estar Social e Desenvolvimento" | |
| 379 | + | |
| 380 | +#: plugins/software_communities/lib/ext/category.rb:13 | |
| 381 | +msgid "Defense and Security" | |
| 382 | +msgstr "Defesa e Segurança" | |
| 383 | + | |
| 384 | +#: plugins/software_communities/lib/ext/category.rb:14 | |
| 385 | +msgid "Education" | |
| 386 | +msgstr "Educação" | |
| 387 | + | |
| 388 | +#: plugins/software_communities/lib/ext/category.rb:15 | |
| 389 | +msgid "Government and Politics" | |
| 390 | +msgstr "Governo e Política" | |
| 391 | + | |
| 392 | +#: plugins/software_communities/lib/ext/category.rb:16 | |
| 393 | +msgid "Justice and Legislation" | |
| 394 | +msgstr "Justiça e Legislação" | |
| 395 | + | |
| 396 | +#: plugins/software_communities/lib/ext/category.rb:17 | |
| 397 | +msgid "International Relationships" | |
| 398 | +msgstr "Relações Internacionais" | |
| 399 | + | |
| 400 | +#: plugins/software_communities/lib/ext/search_controller.rb:15 | |
| 401 | +msgid "Institution Catalog" | |
| 402 | +msgstr "Catálogo de Instituição" | |
| 403 | + | |
| 404 | +#: plugins/software_communities/lib/ext/search_controller.rb:25 | |
| 405 | +msgid "Software Catalog" | |
| 406 | +msgstr "Catálogo de Software" | |
| 407 | + | |
| 408 | +#: plugins/software_communities/lib/institutions_block.rb:4 | |
| 409 | +#: plugins/software_communities/views/person_editor_extras.html.erb:10 | |
| 410 | +msgid "Institutions" | |
| 411 | +msgstr "Instituições" | |
| 412 | + | |
| 413 | +#: plugins/software_communities/lib/institutions_block.rb:12 | |
| 414 | +msgid "{#} institution" | |
| 415 | +msgid_plural "{#} institutions" | |
| 416 | +msgstr[0] "{#} intituição" | |
| 417 | +msgstr[1] "{#} instituições" | |
| 418 | + | |
| 419 | +#: plugins/software_communities/lib/institutions_block.rb:16 | |
| 420 | +msgid "This block displays the institutions in which the user is a member." | |
| 421 | +msgstr "Este bloco mostra as instituições a que o usuário pertence" | |
| 422 | + | |
| 423 | +#: plugins/software_communities/lib/institutions_block.rb:24 | |
| 424 | +#: plugins/software_communities/lib/institutions_block.rb:30 | |
| 425 | +msgid "institutions|View all" | |
| 426 | +msgstr "instituições|Ver todas" | |
| 427 | + | |
| 428 | +#: plugins/software_communities/lib/software_database.rb:12 | |
| 429 | +msgid "Software database is too long (maximum is 20 characters)" | |
| 430 | +msgstr "" | |
| 431 | +"Banco de dados do software contém mais caracteres do que o permitido (máximo " | |
| 432 | +"é 20 caracteres)" | |
| 433 | + | |
| 434 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:2 | |
| 435 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:7 | |
| 436 | +msgid "Name:" | |
| 437 | +msgstr "Nome:" | |
| 438 | + | |
| 439 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:3 | |
| 440 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:21 | |
| 441 | +msgid "Link:" | |
| 442 | +msgstr "Endereço:" | |
| 443 | + | |
| 444 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:4 | |
| 445 | +msgid "Software Description:" | |
| 446 | +msgstr "Descrição do Software" | |
| 447 | + | |
| 448 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:5 | |
| 449 | +msgid "Link to Version News:" | |
| 450 | +msgstr "Link para as Novidades da Versão:" | |
| 451 | + | |
| 452 | +#: plugins/software_communities/views/box_organizer/_download_block.html.erb:6 | |
| 453 | +msgid "Link to Minimum Requirements:" | |
| 454 | +msgstr "Link para Requisitos Mínimos:" | |
| 455 | + | |
| 456 | +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:2 | |
| 457 | +msgid "Limit of items" | |
| 458 | +msgstr "Limite de itens" | |
| 459 | + | |
| 460 | +#: plugins/software_communities/views/box_organizer/_softwares_block.html.erb:3 | |
| 461 | +msgid "Software Type:" | |
| 462 | +msgstr "Tipo do Software:" | |
| 463 | + | |
| 464 | +#: plugins/software_communities/views/person_editor_extras.html.erb:2 | |
| 465 | +msgid "Secondary e-mail" | |
| 466 | +msgstr "E-mail secundário" | |
| 467 | + | |
| 468 | +#: plugins/software_communities/views/person_editor_extras.html.erb:20 | |
| 469 | +msgid "No institution found" | |
| 470 | +msgstr "Nenhuma instituição encontrada" | |
| 471 | + | |
| 472 | +#: plugins/software_communities/views/person_editor_extras.html.erb:21 | |
| 473 | +msgid "Add new institution" | |
| 474 | +msgstr "Adicionar nova instituição" | |
| 475 | + | |
| 476 | +#: plugins/software_communities/views/person_editor_extras.html.erb:22 | |
| 477 | +msgid "Create new institution" | |
| 478 | +msgstr "Criar nova instituição" | |
| 479 | + | |
| 480 | +#: plugins/software_communities/views/person_editor_extras.html.erb:38 | |
| 481 | +msgid "Should begin with a capital letter and no special characters" | |
| 482 | +msgstr "Deve começar com uma letra maiúscula e sem caracteres especiais" | |
| 483 | + | |
| 484 | +#: plugins/software_communities/views/person_editor_extras.html.erb:39 | |
| 485 | +msgid "Email should have the following format: name@host.br" | |
| 486 | +msgstr "Email deve ter o seguinte formato: nome@host.br" | |
| 487 | + | |
| 488 | +#: plugins/software_communities/views/person_editor_extras.html.erb:40 | |
| 489 | +msgid "Site should have a valid format: http://name.hosts" | |
| 490 | +msgstr "Site deve ter um formato válido: http: //name.hosts" | |
| 491 | + | |
| 492 | +#: plugins/software_communities/views/person_editor_extras.html.erb:41 | |
| 493 | +msgid "If you work in a public agency use your government e-Mail" | |
| 494 | +msgstr "" | |
| 495 | +"Se você trabalhar em uma agência pública utilize o seu e-mail governamental" | |
| 496 | + | |
| 497 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:3 | |
| 498 | +msgid "Institution Information" | |
| 499 | +msgstr "Informação da Instituição" | |
| 500 | + | |
| 501 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:6 | |
| 502 | +msgid "Type:" | |
| 503 | +msgstr "Tipo:" | |
| 504 | + | |
| 505 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:7 | |
| 506 | +msgid "CNPJ:" | |
| 507 | +msgstr "CNPJ:" | |
| 508 | + | |
| 509 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:8 | |
| 510 | +msgid "Last modification:" | |
| 511 | +msgstr "Última Modificação" | |
| 512 | + | |
| 513 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:9 | |
| 514 | +msgid "Country:" | |
| 515 | +msgstr "País:" | |
| 516 | + | |
| 517 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:10 | |
| 518 | +msgid "State:" | |
| 519 | +msgstr "Estado:" | |
| 520 | + | |
| 521 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:11 | |
| 522 | +msgid "City:" | |
| 523 | +msgstr "Cidade:" | |
| 524 | + | |
| 525 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:13 | |
| 526 | +msgid "Fantasy Name:" | |
| 527 | +msgstr "Nome Fantasia:" | |
| 528 | + | |
| 529 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:15 | |
| 530 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:15 | |
| 531 | +msgid "Acronym:" | |
| 532 | +msgstr "Sigla:" | |
| 533 | + | |
| 534 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:16 | |
| 535 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:90 | |
| 536 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:90 | |
| 537 | +msgid "Governmental Power:" | |
| 538 | +msgstr "Poder Governamental" | |
| 539 | + | |
| 540 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:17 | |
| 541 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:83 | |
| 542 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:83 | |
| 543 | +msgid "Governmental Sphere:" | |
| 544 | +msgstr "Esfera Governamental:" | |
| 545 | + | |
| 546 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:18 | |
| 547 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:96 | |
| 548 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:96 | |
| 549 | +msgid "Juridical Nature:" | |
| 550 | +msgstr "Natureza Jurídica:" | |
| 551 | + | |
| 552 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 553 | +msgid "SISP:" | |
| 554 | +msgstr "SISP:" | |
| 555 | + | |
| 556 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 557 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 558 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 559 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 560 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 561 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 562 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:105 | |
| 563 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:105 | |
| 564 | +msgid "Yes" | |
| 565 | +msgstr "Sim" | |
| 566 | + | |
| 567 | +#: plugins/software_communities/views/profile/_institution_tab.html.erb:19 | |
| 568 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 569 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 570 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 571 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 572 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 573 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:107 | |
| 574 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:110 | |
| 575 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:107 | |
| 576 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:110 | |
| 577 | +msgid "No" | |
| 578 | +msgstr "Não" | |
| 579 | + | |
| 580 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:4 | |
| 581 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:1 | |
| 582 | +msgid "Software Information" | |
| 583 | +msgstr "Informação do Software" | |
| 584 | + | |
| 585 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:8 | |
| 586 | +msgid "Adherent to e_mag:" | |
| 587 | +msgstr "Aderente ao e-Mag:" | |
| 588 | + | |
| 589 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:9 | |
| 590 | +msgid "Adherent to icp_brasil:" | |
| 591 | +msgstr "Adherent ao ICP-Brasil:" | |
| 592 | + | |
| 593 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:10 | |
| 594 | +msgid "Adherent to e_ping:" | |
| 595 | +msgstr "Aderente ao e-Ping:" | |
| 596 | + | |
| 597 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:11 | |
| 598 | +msgid "Adherent to e_arq:" | |
| 599 | +msgstr "Aderente ao e-Arq:" | |
| 600 | + | |
| 601 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:12 | |
| 602 | +msgid "Internacionalizable:" | |
| 603 | +msgstr "Internacionalizável:" | |
| 604 | + | |
| 605 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:13 | |
| 606 | +msgid "Operating Platform:" | |
| 607 | +msgstr "Plataforma Operacional:" | |
| 608 | + | |
| 609 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:14 | |
| 610 | +msgid "Demonstration URL:" | |
| 611 | +msgstr "URL de demonstração:" | |
| 612 | + | |
| 613 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:16 | |
| 614 | +msgid "Objectives:" | |
| 615 | +msgstr "Objetivos:" | |
| 616 | + | |
| 617 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:17 | |
| 618 | +msgid "Features:" | |
| 619 | +msgstr "Características:" | |
| 620 | + | |
| 621 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:20 | |
| 622 | +msgid "Version:" | |
| 623 | +msgstr "Versão:" | |
| 624 | + | |
| 625 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:26 | |
| 626 | +msgid "Show Libraries" | |
| 627 | +msgstr "Mostrar Bibliotecas" | |
| 628 | + | |
| 629 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:27 | |
| 630 | +msgid "Hide Libraries" | |
| 631 | +msgstr "Esconder Bibliotecas" | |
| 632 | + | |
| 633 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:36 | |
| 634 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:14 | |
| 635 | +msgid "Libraries" | |
| 636 | +msgstr "Bibliotecas" | |
| 637 | + | |
| 638 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:54 | |
| 639 | +msgid "Show Database" | |
| 640 | +msgstr "Mostrar Banco de Dados" | |
| 641 | + | |
| 642 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:55 | |
| 643 | +msgid "Hide Database" | |
| 644 | +msgstr "Esconder Banco de Dados" | |
| 645 | + | |
| 646 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:64 | |
| 647 | +msgid "Software Databases" | |
| 648 | +msgstr "Banco de Dados" | |
| 649 | + | |
| 650 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:82 | |
| 651 | +msgid "Show Languages" | |
| 652 | +msgstr "Mostrar Linguagens" | |
| 653 | + | |
| 654 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:83 | |
| 655 | +msgid "Hide Languages" | |
| 656 | +msgstr "Esconder Linguagens" | |
| 657 | + | |
| 658 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:92 | |
| 659 | +msgid "Software Languages" | |
| 660 | +msgstr "Linguagens de Software" | |
| 661 | + | |
| 662 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:110 | |
| 663 | +msgid "Show Operating Systems" | |
| 664 | +msgstr "Mostrar Sistemas Operacionais" | |
| 665 | + | |
| 666 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:111 | |
| 667 | +msgid "Hide Operating Systems" | |
| 668 | +msgstr "Esconder Sistemas Operacionais" | |
| 669 | + | |
| 670 | +#: plugins/software_communities/views/profile/_software_tab.html.erb:121 | |
| 671 | +msgid "Operating System" | |
| 672 | +msgstr "Sistema Operacional" | |
| 673 | + | |
| 674 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:10 | |
| 675 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:8 | |
| 676 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:40 | |
| 677 | +#: plugins/software_communities/views/search/_full_community.html.erb:21 | |
| 678 | +msgid "Finality" | |
| 679 | +msgstr "Finalidade" | |
| 680 | + | |
| 681 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:15 | |
| 682 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:13 | |
| 683 | +msgid "Licenses" | |
| 684 | +msgstr "Licenças" | |
| 685 | + | |
| 686 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:20 | |
| 687 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:18 | |
| 688 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:50 | |
| 689 | +msgid "License link" | |
| 690 | +msgstr "Endereço da licença" | |
| 691 | + | |
| 692 | +#: plugins/software_communities/views/_main_software_editor_extras.html.erb:29 | |
| 693 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:62 | |
| 694 | +msgid "Link to Repository: " | |
| 695 | +msgstr "Link pro Repositório: " | |
| 696 | + | |
| 697 | +#: plugins/software_communities/views/incomplete_registration.html.erb:3 | |
| 698 | +msgid "Complete Profile" | |
| 699 | +msgstr "Complete o Perfil" | |
| 700 | + | |
| 701 | +#: plugins/software_communities/views/incomplete_registration.html.erb:6 | |
| 702 | +msgid "Complete your profile" | |
| 703 | +msgstr "Complete o seu perfil" | |
| 704 | + | |
| 705 | +#: plugins/software_communities/views/incomplete_registration.html.erb:7 | |
| 706 | +msgid "Hide" | |
| 707 | +msgstr "Esconder" | |
| 708 | + | |
| 709 | +#: plugins/software_communities/views/blocks/repository.html.erb:2 | |
| 710 | +#: plugins/software_communities/views/blocks/download.html.erb:2 | |
| 711 | +#: plugins/software_communities/views/blocks/software_information.html.erb:4 | |
| 712 | +msgid "This community needs a software to use this block" | |
| 713 | +msgstr "Esta comunidade precisa de um software para utilizar este bloco" | |
| 714 | + | |
| 715 | +#: plugins/software_communities/views/blocks/repository.html.erb:4 | |
| 716 | +msgid "Repository" | |
| 717 | +msgstr "Repositório" | |
| 718 | + | |
| 719 | +#: plugins/software_communities/views/blocks/search_catalog.html.erb:2 | |
| 720 | +msgid "Catalog of Public Software" | |
| 721 | +msgstr "Software Público" | |
| 722 | + | |
| 723 | +#: plugins/software_communities/views/blocks/search_catalog.html.erb:5 | |
| 724 | +msgid "Search" | |
| 725 | +msgstr "Pesquisar" | |
| 726 | + | |
| 727 | +#: plugins/software_communities/views/blocks/search_catalog.html.erb:9 | |
| 728 | +#: plugins/software_communities/views/blocks/categories_software.html.erb:24 | |
| 729 | +msgid "Access the complete catalog" | |
| 730 | +msgstr "Acesse o catálogo completo" | |
| 731 | + | |
| 732 | +#: plugins/software_communities/views/blocks/download.html.erb:6 | |
| 733 | +msgid "Download" | |
| 734 | +msgstr "Baixar" | |
| 735 | + | |
| 736 | +#: plugins/software_communities/views/blocks/download.html.erb:19 | |
| 737 | +msgid "Minimal Requirements" | |
| 738 | +msgstr "Requisitos Mínimos" | |
| 739 | + | |
| 740 | +#: plugins/software_communities/views/blocks/download.html.erb:23 | |
| 741 | +msgid "Version News" | |
| 742 | +msgstr "Novidades da Versão" | |
| 743 | + | |
| 744 | +#: plugins/software_communities/views/blocks/download.html.erb:27 | |
| 745 | +msgid "Licensed by" | |
| 746 | +msgstr "Licenciado por " | |
| 747 | + | |
| 748 | +#: plugins/software_communities/views/blocks/categories_software.html.erb:14 | |
| 749 | +msgid "Categories:" | |
| 750 | +msgstr "Categorias:" | |
| 751 | + | |
| 752 | +#: plugins/software_communities/views/blocks/categories_software.html.erb:18 | |
| 753 | +msgid "\"#{category.name}\"" | |
| 754 | +msgstr "\"#{category.name}\"" | |
| 755 | + | |
| 756 | +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:2 | |
| 757 | +msgid "Categories" | |
| 758 | +msgstr "Categorias" | |
| 759 | + | |
| 760 | +#: plugins/software_communities/views/blocks/categories_and_tags.html.erb:12 | |
| 761 | +msgid "Tags" | |
| 762 | +msgstr "Tags" | |
| 763 | + | |
| 764 | +#: plugins/software_communities/views/blocks/main_area_softwares.html.erb:22 | |
| 765 | +msgid "See More" | |
| 766 | +msgstr "Veja Mais" | |
| 767 | + | |
| 768 | +#: plugins/software_communities/views/blocks/software_information.html.erb:16 | |
| 769 | +msgid "Control panel" | |
| 770 | +msgstr "Painel de controle" | |
| 771 | + | |
| 772 | +#: plugins/software_communities/views/blocks/software_information.html.erb:24 | |
| 773 | +msgid "\"#{block.owner.software_info.acronym} - \"" | |
| 774 | +msgstr "\"#{block.owner.software_info.acronym} - \"" | |
| 775 | + | |
| 776 | +#: plugins/software_communities/views/blocks/software_information.html.erb:25 | |
| 777 | +msgid "\"#{block.owner.name}\"" | |
| 778 | +msgstr "\"#{block.owner.name}\"" | |
| 779 | + | |
| 780 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:1 | |
| 781 | +msgid "Edit software" | |
| 782 | +msgstr "Editar software" | |
| 783 | + | |
| 784 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:4 | |
| 785 | +msgid "Operating Platform" | |
| 786 | +msgstr "Plataforma Operacional" | |
| 787 | + | |
| 788 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:9 | |
| 789 | +msgid "Features" | |
| 790 | +msgstr "Características" | |
| 791 | + | |
| 792 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:21 | |
| 793 | +msgid "Operating Systems" | |
| 794 | +msgstr "Sistemas Operacionais" | |
| 795 | + | |
| 796 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:29 | |
| 797 | +msgid "Programming languages" | |
| 798 | +msgstr "Linguagens de Programação" | |
| 799 | + | |
| 800 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:36 | |
| 801 | +msgid "Databases" | |
| 802 | +msgstr "Bancos de Dados" | |
| 803 | + | |
| 804 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:42 | |
| 805 | +msgid "Demonstration url" | |
| 806 | +msgstr "Url de demonstração" | |
| 807 | + | |
| 808 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 809 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 810 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:57 | |
| 811 | +msgid "Public Software" | |
| 812 | +msgstr "Software Público" | |
| 813 | + | |
| 814 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:51 | |
| 815 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:54 | |
| 816 | +msgid "Public software" | |
| 817 | +msgstr "Software público" | |
| 818 | + | |
| 819 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:59 | |
| 820 | +msgid "Adherent to e-PING ?" | |
| 821 | +msgstr "Aderente ao e-PING ?" | |
| 822 | + | |
| 823 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:68 | |
| 824 | +msgid "Adherent to e-MAG ?" | |
| 825 | +msgstr "Aderente ao e-MAG ?" | |
| 826 | + | |
| 827 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:77 | |
| 828 | +msgid "Adherent to ICP-Brasil ?" | |
| 829 | +msgstr "Aderente ao ICP-Brasil?" | |
| 830 | + | |
| 831 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:86 | |
| 832 | +msgid "Adherent to e-ARQ ?" | |
| 833 | +msgstr "Aderente ao e-ARQ?" | |
| 834 | + | |
| 835 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_public_software_info.html.erb:95 | |
| 836 | +msgid "Internacionalizable ?" | |
| 837 | +msgstr "Internacionalizável?" | |
| 838 | + | |
| 839 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:1 | |
| 840 | +msgid " Information" | |
| 841 | +msgstr " Informação" | |
| 842 | + | |
| 843 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:3 | |
| 844 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:74 | |
| 845 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:76 | |
| 846 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:74 | |
| 847 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:76 | |
| 848 | +msgid "Acronym" | |
| 849 | +msgstr "Sigla" | |
| 850 | + | |
| 851 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:10 | |
| 852 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:41 | |
| 853 | +msgid "It is a software of..." | |
| 854 | +msgstr "É um software de ..." | |
| 855 | + | |
| 856 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb:26 | |
| 857 | +msgid "Link to Repository" | |
| 858 | +msgstr "Link pro Repositório" | |
| 859 | + | |
| 860 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_operating_system_fields.html.erb:11 | |
| 861 | +msgid "New Operating System" | |
| 862 | +msgstr "Novo Sistema Operacional" | |
| 863 | + | |
| 864 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:10 | |
| 865 | +msgid "Specifications" | |
| 866 | +msgstr "Especificações" | |
| 867 | + | |
| 868 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:16 | |
| 869 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:116 | |
| 870 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:117 | |
| 871 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:120 | |
| 872 | +msgid "Save" | |
| 873 | +msgstr "Salvar" | |
| 874 | + | |
| 875 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_software.html.erb:18 | |
| 876 | +msgid "Back to control panel" | |
| 877 | +msgstr "Voltar para o painel de controle" | |
| 878 | + | |
| 879 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_library_fields.html.erb:11 | |
| 880 | +msgid "New Library" | |
| 881 | +msgstr "Nova Biblioteca" | |
| 882 | + | |
| 883 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_database_fields.html.erb:11 | |
| 884 | +msgid "New Database" | |
| 885 | +msgstr "Novo Banco de Dados" | |
| 886 | + | |
| 887 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/_language_fields.html.erb:11 | |
| 888 | +msgid "New language" | |
| 889 | +msgstr "Nova linguagem" | |
| 890 | + | |
| 891 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:4 | |
| 892 | +msgid "Step 1/2 - Software Creation" | |
| 893 | +msgstr "Passo 1/2 - Criação de Software" | |
| 894 | + | |
| 895 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:7 | |
| 896 | +msgid "Creating new software" | |
| 897 | +msgstr "Criando novo software" | |
| 898 | + | |
| 899 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:11 | |
| 900 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:5 | |
| 901 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:5 | |
| 902 | +msgid "" | |
| 903 | +"Note that the creation of communities in this environment is restricted. " | |
| 904 | +"Your request to create this new community will be sent to %{environment} " | |
| 905 | +"administrators and will be approved or rejected according to their methods " | |
| 906 | +"and criteria." | |
| 907 | +msgstr "" | |
| 908 | +"Note que a criação de comunidades neste ambiente é restrita. A sua " | |
| 909 | +"requisição para criar esta nova comunidade será enviada para os " | |
| 910 | +"administradores do %{environment} e será aprovada ou rejeitada de acordo com " | |
| 911 | +"seus métodos e critérios. " | |
| 912 | + | |
| 913 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:17 | |
| 914 | +msgid "\"Can`t create new software: #{@errors.length} errors\"" | |
| 915 | +msgstr "\"Não é possível criar um novo software: #{@errors.length} erros\"" | |
| 916 | + | |
| 917 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:47 | |
| 918 | +msgid "License Version: " | |
| 919 | +msgstr "Versão da Licença: " | |
| 920 | + | |
| 921 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:70 | |
| 922 | +msgid "Create" | |
| 923 | +msgstr "Criar" | |
| 924 | + | |
| 925 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/new_software.html.erb:71 | |
| 926 | +msgid "Cancel" | |
| 927 | +msgstr "Cancelar" | |
| 928 | + | |
| 929 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:1 | |
| 930 | +msgid "Edit Institution" | |
| 931 | +msgstr "Editar Instituição" | |
| 932 | + | |
| 933 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:11 | |
| 934 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:11 | |
| 935 | +msgid "\"Can`t create new Institution: #{flash[:errors].length} errors\"" | |
| 936 | +msgstr "" | |
| 937 | +"\"Não é possível criar nova Instituição: #{flash[: errors].length} erros\"" | |
| 938 | + | |
| 939 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:24 | |
| 940 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:24 | |
| 941 | +msgid "All fields with (*) are mandatory" | |
| 942 | +msgstr "Todos os campos com (*) são obrigatórios" | |
| 943 | + | |
| 944 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:32 | |
| 945 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:32 | |
| 946 | +msgid "Public Institution" | |
| 947 | +msgstr "Instituição Pública" | |
| 948 | + | |
| 949 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:37 | |
| 950 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:37 | |
| 951 | +msgid "Private Institution" | |
| 952 | +msgstr "Instituição Privada" | |
| 953 | + | |
| 954 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:44 | |
| 955 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:44 | |
| 956 | +msgid "Institution name already exists" | |
| 957 | +msgstr "Nome da instituição já existe" | |
| 958 | + | |
| 959 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:48 | |
| 960 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:48 | |
| 961 | +msgid "Corporate Name" | |
| 962 | +msgstr "Razão Social" | |
| 963 | + | |
| 964 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:53 | |
| 965 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:53 | |
| 966 | +msgid "Country" | |
| 967 | +msgstr "País" | |
| 968 | + | |
| 969 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:57 | |
| 970 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:57 | |
| 971 | +msgid "State" | |
| 972 | +msgstr "Estado" | |
| 973 | + | |
| 974 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:67 | |
| 975 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:67 | |
| 976 | +msgid "CNPJ" | |
| 977 | +msgstr "CNPJ" | |
| 978 | + | |
| 979 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:75 | |
| 980 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:75 | |
| 981 | +msgid "Fantasy name" | |
| 982 | +msgstr "Nome Fantasia" | |
| 983 | + | |
| 984 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:84 | |
| 985 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:84 | |
| 986 | +msgid "Select a Governmental Sphere" | |
| 987 | +msgstr "Selecione uma Esfera Governamental" | |
| 988 | + | |
| 989 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:91 | |
| 990 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:91 | |
| 991 | +msgid "Select a Governmental Power" | |
| 992 | +msgstr "Selecione um Poder Governamental" | |
| 993 | + | |
| 994 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:97 | |
| 995 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:97 | |
| 996 | +msgid "Select a Juridical Nature" | |
| 997 | +msgstr "Selecione uma Natureza Jurídica" | |
| 998 | + | |
| 999 | +#: plugins/software_communities/views/software_communities_plugin_myprofile/edit_institution.html.erb:103 | |
| 1000 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:103 | |
| 1001 | +msgid "SISP?" | |
| 1002 | +msgstr "SISP?" | |
| 1003 | + | |
| 1004 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:1 | |
| 1005 | +msgid "New Institution" | |
| 1006 | +msgstr "Nova Instituição" | |
| 1007 | + | |
| 1008 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:122 | |
| 1009 | +msgid "Could not send the form data to the server" | |
| 1010 | +msgstr "Não foi possível enviar os dados do formulário para o servidor" | |
| 1011 | + | |
| 1012 | +#: plugins/software_communities/views/software_communities_plugin/_institution.html.erb:129 | |
| 1013 | +msgid "Creating institution" | |
| 1014 | +msgstr "Criando Instituição" | |
| 1015 | + | |
| 1016 | +#: plugins/software_communities/views/search/_catalog_filter.html.erb:15 | |
| 1017 | +msgid "Categories filter" | |
| 1018 | +msgstr "Filtro de Categorias" | |
| 1019 | + | |
| 1020 | +#: plugins/software_communities/views/search/_catalog_filter.html.erb:16 | |
| 1021 | +msgid "Type a category name here" | |
| 1022 | +msgstr "Escreva uma categoria aqui" | |
| 1023 | + | |
| 1024 | +#: plugins/software_communities/views/search/_full_community.html.erb:30 | |
| 1025 | +msgid "Software licence" | |
| 1026 | +msgstr "Licença do Software" | |
| 1027 | + | |
| 1028 | +#: plugins/software_communities/views/search/_full_community.html.erb:39 | |
| 1029 | +msgid "Link software repository" | |
| 1030 | +msgstr "Link pro Repositório" | |
| 1031 | + | |
| 1032 | +#: plugins/software_communities/views/search/_full_community.html.erb:48 | |
| 1033 | +msgid "Software Categories" | |
| 1034 | +msgstr "Categorias de Software" | |
| 1035 | + | |
| 1036 | +#: plugins/software_communities/views/search/_full_community.html.erb:62 | |
| 1037 | +msgid "This software doesn't have categories" | |
| 1038 | +msgstr "Este software não tem categorias" | |
| 1039 | + | |
| 1040 | +#: plugins/software_communities/views/search/software_infos.html.erb:3 | |
| 1041 | +#: plugins/software_communities/views/search/institutions.html.erb:3 | |
| 1042 | +msgid "Type words about the %s you're looking for" | |
| 1043 | +msgstr "Escreva palavras sobre o software que você está procurando" | |
| 1044 | + | |
| 1045 | +#: plugins/software_communities/views/first_edit_software_community_extras.html.erb:2 | |
| 1046 | +msgid "Step 2/2 - Software Community Configuration" | |
| 1047 | +msgstr "Passo 2/2 - Configuração da Comunidade do Software" | |
| 1048 | + | |
| 1049 | +#~ msgid "database Name: " | |
| 1050 | +#~ msgstr "Nome do banco de dados:" | |
| 1051 | + | |
| 1052 | +#~ msgid "Pick an item on the list" | |
| 1053 | +#~ msgstr "Escolha um item da lista" | |
| 1054 | + | |
| 1055 | +#~ msgid "At last one category must be checked" | |
| 1056 | +#~ msgstr "Pelo menos uma categoria deve ser selecionada" | |
| 1057 | + | |
| 1058 | +#~ msgid "%{requestor} wants to create software %{subject} with no finality." | |
| 1059 | +#~ msgstr "%{requestor} deseja criar o software %{subject} sem finalidade." | |
| 1060 | + | |
| 1061 | +#~ msgid "Operating system is too long (maximum is 20 characters)" | |
| 1062 | +#~ msgstr "" | |
| 1063 | +#~ "Sistema operacional contém mais caracteres do que o permitido (máximo é " | |
| 1064 | +#~ "20 caracteres)" | |
| 1065 | + | |
| 1066 | +#~ msgid "Language Name: " | |
| 1067 | +#~ msgstr "Nome da Linguagem: " | |
| 1068 | + | |
| 1069 | +#~ msgid "License:" | |
| 1070 | +#~ msgstr "Licença:" | |
| 1071 | + | |
| 1072 | +#~ msgid "Program Database" | |
| 1073 | +#~ msgstr "Programa de Banco de Dados" | |
| 1074 | + | |
| 1075 | +#~ msgid "Operating System:" | |
| 1076 | +#~ msgstr "Sistema Operacional" | |
| 1077 | + | |
| 1078 | +#~ msgid "Programming Language" | |
| 1079 | +#~ msgstr "Linguagem de Programação" | |
| 1080 | + | |
| 1081 | +#~ msgid "Activate Software" | |
| 1082 | +#~ msgstr "Ativar Software" | |
| 1083 | + | |
| 1084 | +#~ msgid "Do you want to activate this software?" | |
| 1085 | +#~ msgstr "Você quer ativar este software?" | |
| 1086 | + | |
| 1087 | +#~ msgid "Deactivate software" | |
| 1088 | +#~ msgstr "Desativar software" | |
| 1089 | + | |
| 1090 | +#~ msgid "Do you want to deactivate this software?" | |
| 1091 | +#~ msgstr "Você quer desativar este software?" | |
| 1092 | + | |
| 1093 | +#~ msgid "Remove" | |
| 1094 | +#~ msgstr "Remover" | |
| 1095 | + | |
| 1096 | +#~ msgid "Do you want to remove this software?" | |
| 1097 | +#~ msgstr "Você deseja remover este software?" | |
| 1098 | + | |
| 1099 | +#~ msgid "Find software" | |
| 1100 | +#~ msgstr "Buscar software" | |
| 1101 | + | |
| 1102 | +#~ msgid "Software list as [CSV]" | |
| 1103 | +#~ msgstr "Lista de Software como [CSV]" | |
| 1104 | + | |
| 1105 | +#~ msgid "Software list as [XML]" | |
| 1106 | +#~ msgstr "Lista de Software como [XML]" | |
| 1107 | + | |
| 1108 | +#~ msgid "Back" | |
| 1109 | +#~ msgstr "Voltar" | |
| 1110 | + | |
| 1111 | +#~ msgid "Community" | |
| 1112 | +#~ msgstr "Comunidade" | |
| 1113 | + | |
| 1114 | +#~ msgid "Secundary Information" | |
| 1115 | +#~ msgstr "Informação Secundária" | |
| 1116 | + | |
| 1117 | +#~ msgid "For more detailed information see " | |
| 1118 | +#~ msgstr "Para informações mais detalhadas, ver " | |
| 1119 | + | |
| 1120 | +#~ msgid "\"#{block.owner.name} profile\"" | |
| 1121 | +#~ msgstr "\"Perfil de #{block.owner.name}\"" | |
| 1122 | + | |
| 1123 | +#~ msgid "Main repository: " | |
| 1124 | +#~ msgstr "Repositório principal: " | |
| 1125 | + | |
| 1126 | +#~ msgid "Editar Instituição" | |
| 1127 | +#~ msgstr "Editar Instituição" | |
| 1128 | + | |
| 1129 | +#~ msgid "Generic" | |
| 1130 | +#~ msgstr "Genérico" | ... | ... |
test/functional/mpog_software_plugin_controller_test.rb
| ... | ... | @@ -1,257 +0,0 @@ |
| 1 | -require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 2 | -require File.dirname(__FILE__) + '/../helpers/institution_test_helper' | |
| 3 | -require File.dirname(__FILE__) + '/../../controllers/software_communities_plugin_controller' | |
| 4 | - | |
| 5 | -class SoftwareCommunitiesPluginController; def rescue_action(e) raise e end; end | |
| 6 | - | |
| 7 | -class SoftwareCommunitiesPluginControllerTest < ActionController::TestCase | |
| 8 | - | |
| 9 | - def setup | |
| 10 | - @admin = create_user("adminuser").person | |
| 11 | - @admin.stubs(:has_permission?).returns("true") | |
| 12 | - @controller.stubs(:current_user).returns(@admin.user) | |
| 13 | - | |
| 14 | - @environment = Environment.default | |
| 15 | - @environment.enabled_plugins = ['SoftwareCommunitiesPlugin'] | |
| 16 | - @environment.add_admin(@admin) | |
| 17 | - @environment.save | |
| 18 | - | |
| 19 | - @gov_power = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 20 | - @gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 21 | - @juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 22 | - @response = ActionController::TestResponse.new | |
| 23 | - | |
| 24 | - @institution_list = [] | |
| 25 | - @institution_list << InstitutionTestHelper.create_public_institution( | |
| 26 | - "Ministerio Publico da Uniao", | |
| 27 | - "MPU", | |
| 28 | - "BR", | |
| 29 | - "DF", | |
| 30 | - "Gama", | |
| 31 | - @juridical_nature, | |
| 32 | - @gov_power, | |
| 33 | - @gov_sphere, | |
| 34 | - "12.345.678/9012-45" | |
| 35 | - ) | |
| 36 | - @institution_list << InstitutionTestHelper.create_public_institution( | |
| 37 | - "Tribunal Regional da Uniao", | |
| 38 | - "TRU", | |
| 39 | - "BR", | |
| 40 | - "DF", | |
| 41 | - "Brasilia", | |
| 42 | - @juridical_nature, | |
| 43 | - @gov_power, | |
| 44 | - @gov_sphere, | |
| 45 | - "12.345.678/9012-90" | |
| 46 | - ) | |
| 47 | - end | |
| 48 | - | |
| 49 | - should "Search for institution with acronym" do | |
| 50 | - xhr :get, :get_institutions, :query=>"TRU" | |
| 51 | - | |
| 52 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 53 | - | |
| 54 | - assert_equal "Tribunal Regional da Uniao", json_response[0]["value"] | |
| 55 | - end | |
| 56 | - | |
| 57 | - should "Search for institution with name" do | |
| 58 | - xhr :get, :get_institutions, :query=>"Minis" | |
| 59 | - | |
| 60 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 61 | - | |
| 62 | - assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] | |
| 63 | - end | |
| 64 | - | |
| 65 | - should "search with name or acronym and return a list with institutions" do | |
| 66 | - xhr :get, :get_institutions, :query=>"uni" | |
| 67 | - | |
| 68 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 69 | - | |
| 70 | - assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] | |
| 71 | - assert_equal "Tribunal Regional da Uniao", json_response[1]["value"] | |
| 72 | - end | |
| 73 | - | |
| 74 | - should "method create_institution return the html for modal" do | |
| 75 | - @controller.stubs(:current_user).returns(@admin.user) | |
| 76 | - xhr :get, :create_institution | |
| 77 | - assert_template 'create_institution' | |
| 78 | - end | |
| 79 | - | |
| 80 | - should "create new institution with ajax without acronym" do | |
| 81 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 82 | - | |
| 83 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 84 | - "foo bar", | |
| 85 | - "BR", | |
| 86 | - "DF", | |
| 87 | - "Brasilia", | |
| 88 | - "12.234.567/8900-10", | |
| 89 | - "PublicInstitution" | |
| 90 | - ) | |
| 91 | - fields[:institutions][:governmental_power] = @gov_power.id | |
| 92 | - fields[:institutions][:governmental_sphere] = @gov_sphere.id | |
| 93 | - fields[:institutions][:juridical_nature] = @juridical_nature.id | |
| 94 | - | |
| 95 | - xhr :get, :new_institution, fields | |
| 96 | - | |
| 97 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 98 | - | |
| 99 | - assert json_response["success"] | |
| 100 | - end | |
| 101 | - | |
| 102 | - should "not create a institution that already exists" do | |
| 103 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 104 | - | |
| 105 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 106 | - "Ministerio Publico da Uniao", | |
| 107 | - "BR", | |
| 108 | - "DF", | |
| 109 | - "Brasilia", | |
| 110 | - "12.234.567/8900-10", | |
| 111 | - "PublicInstitution" | |
| 112 | - ) | |
| 113 | - fields[:institutions][:governmental_power] = @gov_power.id | |
| 114 | - fields[:institutions][:governmental_sphere] = @gov_sphere.id | |
| 115 | - fields[:institutions][:juridical_nature] = @juridical_nature.id | |
| 116 | - | |
| 117 | - xhr :get, :new_institution, fields | |
| 118 | - | |
| 119 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 120 | - | |
| 121 | - assert !json_response["success"] | |
| 122 | - end | |
| 123 | - | |
| 124 | - should "not create a institution without cnpj" do | |
| 125 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 126 | - | |
| 127 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 128 | - "Some Private Institution", | |
| 129 | - "BR", | |
| 130 | - "DF", | |
| 131 | - "Brasilia", | |
| 132 | - "", | |
| 133 | - "PrivateInstitution" | |
| 134 | - ) | |
| 135 | - fields[:institutions][:acronym] = "SPI" | |
| 136 | - | |
| 137 | - xhr :get, :new_institution, fields | |
| 138 | - | |
| 139 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 140 | - | |
| 141 | - assert !json_response["success"] | |
| 142 | - end | |
| 143 | - | |
| 144 | - should "verify if institution name already exists" do | |
| 145 | - xhr :get, :institution_already_exists, :name=>"Ministerio Publico da Uniao" | |
| 146 | - assert_equal "true", @response.body | |
| 147 | - | |
| 148 | - xhr :get, :institution_already_exists, :name=>"Another name here" | |
| 149 | - assert_equal "false", @response.body | |
| 150 | - end | |
| 151 | - | |
| 152 | - should "hide registration incomplete message" do | |
| 153 | - xhr :get, :hide_registration_incomplete_percentage, :hide=>true | |
| 154 | - assert_equal "true", @response.body | |
| 155 | - end | |
| 156 | - | |
| 157 | - should "not hide registration incomplete message" do | |
| 158 | - xhr :get, :hide_registration_incomplete_percentage, :hide=>false | |
| 159 | - assert_equal "false", @response.body | |
| 160 | - end | |
| 161 | - | |
| 162 | - should "Create new institution with method post" do | |
| 163 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 164 | - | |
| 165 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 166 | - "Some Private Institution", | |
| 167 | - "BR", | |
| 168 | - "DF", | |
| 169 | - "Brasilia", | |
| 170 | - "12.345.567/8900-10", | |
| 171 | - "PrivateInstitution" | |
| 172 | - ) | |
| 173 | - fields[:institutions][:acronym] = "SPI" | |
| 174 | - | |
| 175 | - post :new_institution, fields | |
| 176 | - | |
| 177 | - assert_redirected_to(controller: "admin_panel", action: "index") | |
| 178 | - end | |
| 179 | - | |
| 180 | - should "not create new institution with method post without cnpj" do | |
| 181 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 182 | - | |
| 183 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 184 | - "Some Private Institution", | |
| 185 | - "BR", | |
| 186 | - "DF", | |
| 187 | - "Brasilia", | |
| 188 | - "", | |
| 189 | - "PrivateInstitution" | |
| 190 | - ) | |
| 191 | - fields[:institutions][:acronym] = "SPI" | |
| 192 | - | |
| 193 | - post :new_institution, fields | |
| 194 | - | |
| 195 | - assert_redirected_to(controller: "software_communities_plugin", action: "create_institution_admin") | |
| 196 | - end | |
| 197 | - | |
| 198 | - should "Create foreign institution without city, state and cnpj by post" do | |
| 199 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 200 | - | |
| 201 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 202 | - "Foreign institution", | |
| 203 | - "AZ", | |
| 204 | - "", | |
| 205 | - "", | |
| 206 | - "", | |
| 207 | - "PrivateInstitution" | |
| 208 | - ) | |
| 209 | - fields[:institutions][:acronym] = "FI" | |
| 210 | - | |
| 211 | - post :new_institution, fields | |
| 212 | - | |
| 213 | - assert_redirected_to(controller: "admin_panel", action: "index") | |
| 214 | - end | |
| 215 | - | |
| 216 | - should "Create foreign institution without city, state and cnpj by ajax" do | |
| 217 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 218 | - | |
| 219 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 220 | - "Foreign institution", | |
| 221 | - "AZ", | |
| 222 | - "", | |
| 223 | - "", | |
| 224 | - "", | |
| 225 | - "PrivateInstitution" | |
| 226 | - ) | |
| 227 | - fields[:institutions][:acronym] = "FI" | |
| 228 | - | |
| 229 | - xhr :post, :new_institution, fields | |
| 230 | - | |
| 231 | - json_response = ActiveSupport::JSON.decode(@response.body) | |
| 232 | - assert json_response["success"] | |
| 233 | - end | |
| 234 | - | |
| 235 | - should "add environment admins to institution when created via admin panel" do | |
| 236 | - @controller.stubs(:verify_recaptcha).returns(true) | |
| 237 | - admin2 = create_user("another_admin").person | |
| 238 | - admin2.stubs(:has_permission?).returns("true") | |
| 239 | - @environment.add_admin(admin2) | |
| 240 | - @environment.save | |
| 241 | - | |
| 242 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 243 | - "Private Institution", | |
| 244 | - "BR", | |
| 245 | - "DF", | |
| 246 | - "Brasilia", | |
| 247 | - "12.323.557/8900-10", | |
| 248 | - "PrivateInstitution" | |
| 249 | - ) | |
| 250 | - fields[:institutions][:acronym] = "PI" | |
| 251 | - fields[:edit_institution_page] = false | |
| 252 | - post :new_institution, fields | |
| 253 | - | |
| 254 | - assert(Institution.last.community.admins.include?(admin2) ) | |
| 255 | - end | |
| 256 | - | |
| 257 | -end | |
| 258 | 0 | \ No newline at end of file |
test/functional/mpog_software_plugin_myprofile_controller_test.rb
| ... | ... | @@ -1,260 +0,0 @@ |
| 1 | -require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 2 | -require File.dirname(__FILE__) + '/../helpers/software_test_helper' | |
| 3 | -require File.dirname(__FILE__) + '/../helpers/institution_test_helper' | |
| 4 | -require( | |
| 5 | - File.dirname(__FILE__) + | |
| 6 | - '/../../controllers/software_communities_plugin_myprofile_controller' | |
| 7 | -) | |
| 8 | - | |
| 9 | -class SoftwareCommunitiesPluginMyprofileController; def rescue_action(e) raise e end; | |
| 10 | -end | |
| 11 | - | |
| 12 | -class SoftwareCommunitiesPluginMyprofileControllerTest < ActionController::TestCase | |
| 13 | - include SoftwareTestHelper | |
| 14 | - def setup | |
| 15 | - @controller = SoftwareCommunitiesPluginMyprofileController.new | |
| 16 | - @request = ActionController::TestRequest.new | |
| 17 | - @response = ActionController::TestResponse.new | |
| 18 | - @person = create_user('person').person | |
| 19 | - @offer = create_user('Angela Silva') | |
| 20 | - @offer_1 = create_user('Ana de Souza') | |
| 21 | - @offer_2 = create_user('Angelo Roberto') | |
| 22 | - | |
| 23 | - LicenseInfo.create( | |
| 24 | - :version=>"CC-GPL-V2", | |
| 25 | - :link=>"http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" | |
| 26 | - ) | |
| 27 | - | |
| 28 | - ProgrammingLanguage.create(:name =>"language") | |
| 29 | - DatabaseDescription.create(:name => "database") | |
| 30 | - OperatingSystemName.create(:name=>"Debian") | |
| 31 | - | |
| 32 | - login_as(@person.user_login) | |
| 33 | - @environment = Environment.default | |
| 34 | - @environment.enable_plugin('SoftwareCommunitiesPlugin') | |
| 35 | - @environment.save! | |
| 36 | - end | |
| 37 | - | |
| 38 | - attr_accessor :person, :offer | |
| 39 | - | |
| 40 | - should 'Add offer to admin in new software' do | |
| 41 | - @hash_list = software_fields | |
| 42 | - @software = create_software @hash_list | |
| 43 | - @software.community.add_admin(@offer.person) | |
| 44 | - @software.save | |
| 45 | - assert_equal @offer.person.id, @software.community.admins.last.id | |
| 46 | - end | |
| 47 | - | |
| 48 | - should 'search new offers while creating a new software' do | |
| 49 | - offer_token = "An" | |
| 50 | - post :search_offerers, :profile => person.identifier,:q => offer_token | |
| 51 | - response = JSON.parse(@response.body) | |
| 52 | - response.sort!{|a, b| a["name"] <=> b["name"]} | |
| 53 | - assert_equal "Ana de Souza",response[0]["name"] | |
| 54 | - assert_equal "Angela Silva",response[1]["name"] | |
| 55 | - assert_equal "Angelo Roberto",response[2]["name"] | |
| 56 | - end | |
| 57 | - | |
| 58 | - should 'make search for Ang for offerer in software creation' do | |
| 59 | - offer_token = "Ang" | |
| 60 | - post :search_offerers, :profile => person.identifier,:q => offer_token | |
| 61 | - response = JSON.parse(@response.body) | |
| 62 | - response.sort!{|a, b| a["name"] <=> b["name"]} | |
| 63 | - assert_equal "Angela Silva",response[0]["name"] | |
| 64 | - assert_equal "Angelo Roberto",response[1]["name"] | |
| 65 | - end | |
| 66 | - | |
| 67 | - should 'not find any offerer for software creation' do | |
| 68 | - offer_token = "Jos" | |
| 69 | - post :search_offerers, :profile => person.identifier,:q => offer_token | |
| 70 | - response = JSON.parse(@response.body) | |
| 71 | - assert response.count == 0 | |
| 72 | - end | |
| 73 | - | |
| 74 | - should 'create a new software with all fields filled in' do | |
| 75 | - fields = software_fields | |
| 76 | - @environment.add_admin(@person) | |
| 77 | - post( | |
| 78 | - :new_software, | |
| 79 | - :profile => @person.identifier, | |
| 80 | - :community => fields[1], | |
| 81 | - :license_info => fields[0], | |
| 82 | - :software_info => fields[2] | |
| 83 | - ) | |
| 84 | - assert_equal SoftwareInfo.last.community.name, "Debian" | |
| 85 | - end | |
| 86 | - | |
| 87 | - should 'edit a new software adding basic information' do | |
| 88 | - fields_software = software_fields | |
| 89 | - fields = software_edit_basic_fields | |
| 90 | - | |
| 91 | - software = create_software fields_software | |
| 92 | - post( | |
| 93 | - :edit_software, | |
| 94 | - :profile => software.community.identifier, | |
| 95 | - :license => fields[1], | |
| 96 | - :software => fields[0], | |
| 97 | - :library => {}, | |
| 98 | - :operating_system => {}, | |
| 99 | - :language => {}, | |
| 100 | - :database => {} | |
| 101 | - ) | |
| 102 | - assert_equal SoftwareInfo.last.repository_link, "www.github.com/test" | |
| 103 | - end | |
| 104 | - | |
| 105 | - should 'edit a new software adding specific information' do | |
| 106 | - fields_software = software_fields | |
| 107 | - fields = software_edit_specific_fields | |
| 108 | - | |
| 109 | - software = create_software fields_software | |
| 110 | - post( | |
| 111 | - :edit_software, | |
| 112 | - :profile => software.community.identifier, | |
| 113 | - :library => fields[0], | |
| 114 | - :language => fields[1], | |
| 115 | - :database => fields[2], | |
| 116 | - :operating_system => fields[3], | |
| 117 | - :software => fields[4], | |
| 118 | - :license => fields[5] | |
| 119 | - ) | |
| 120 | - assert_equal SoftwareInfo.last.acronym, "test" | |
| 121 | - end | |
| 122 | - | |
| 123 | - should 'upgrade a generic software to a public software' do | |
| 124 | - fields_software = software_fields | |
| 125 | - fields = software_edit_specific_fields | |
| 126 | - | |
| 127 | - fields[4]['public_software'] = true | |
| 128 | - software = create_software fields_software | |
| 129 | - | |
| 130 | - post( | |
| 131 | - :edit_software, | |
| 132 | - :profile => software.community.identifier, | |
| 133 | - :library => fields[0], | |
| 134 | - :language => fields[1], | |
| 135 | - :database => fields[2], | |
| 136 | - :operating_system => fields[3], | |
| 137 | - :software => fields[4], | |
| 138 | - :license => fields[5] | |
| 139 | - ) | |
| 140 | - | |
| 141 | - assert_equal true, SoftwareInfo.last.public_software? | |
| 142 | - end | |
| 143 | - | |
| 144 | - should "user edit its community institution" do | |
| 145 | - govPower = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 146 | - govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 147 | - juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 148 | - | |
| 149 | - institution = InstitutionTestHelper.create_public_institution( | |
| 150 | - "Ministerio Publico da Uniao", | |
| 151 | - "MPU", | |
| 152 | - "BR", | |
| 153 | - "DF", | |
| 154 | - "Gama", | |
| 155 | - juridical_nature, | |
| 156 | - govPower, | |
| 157 | - govSphere, | |
| 158 | - "12.345.678/9012-45" | |
| 159 | - ) | |
| 160 | - | |
| 161 | - identifier = institution.community.identifier | |
| 162 | - | |
| 163 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 164 | - "institution new name", | |
| 165 | - "BR", | |
| 166 | - "DF", | |
| 167 | - "Gama", | |
| 168 | - "12.345.678/9012-45", | |
| 169 | - "PrivateInstitution" | |
| 170 | - ) | |
| 171 | - | |
| 172 | - post( | |
| 173 | - :edit_institution, | |
| 174 | - :profile=>institution.community.identifier, | |
| 175 | - :community=>fields[:community], | |
| 176 | - :institutions=>fields[:institutions] | |
| 177 | - ) | |
| 178 | - | |
| 179 | - institution = Community[identifier].institution | |
| 180 | - assert_not_equal "Ministerio Publico da Uniao", institution.community.name | |
| 181 | - end | |
| 182 | - | |
| 183 | - should "not user edit its community institution with wrong values" do | |
| 184 | - govPower = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 185 | - govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 186 | - juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 187 | - | |
| 188 | - institution = InstitutionTestHelper.create_public_institution( | |
| 189 | - "Ministerio Publico da Uniao", | |
| 190 | - "MPU", | |
| 191 | - "BR", | |
| 192 | - "DF", | |
| 193 | - "Gama", | |
| 194 | - juridical_nature, | |
| 195 | - govPower, | |
| 196 | - govSphere, | |
| 197 | - "12.345.678/9012-45" | |
| 198 | - ) | |
| 199 | - | |
| 200 | - identifier = institution.community.identifier | |
| 201 | - | |
| 202 | - fields = InstitutionTestHelper.generate_form_fields( | |
| 203 | - "", | |
| 204 | - "BR", | |
| 205 | - "DF", | |
| 206 | - "Gama", | |
| 207 | - "6465465465", | |
| 208 | - "PrivateInstitution" | |
| 209 | - ) | |
| 210 | - | |
| 211 | - post( | |
| 212 | - :edit_institution, | |
| 213 | - :profile=>institution.community.identifier, | |
| 214 | - :community=>fields[:community], | |
| 215 | - :institutions=>fields[:institutions] | |
| 216 | - ) | |
| 217 | - | |
| 218 | - institution = Community[identifier].institution | |
| 219 | - assert_equal "Ministerio Publico da Uniao", institution.community.name | |
| 220 | - assert_equal "12.345.678/9012-45", institution.cnpj | |
| 221 | - end | |
| 222 | - | |
| 223 | - should "create software_info with existing license_info" do | |
| 224 | - @environment.add_admin(@person) | |
| 225 | - | |
| 226 | - post( | |
| 227 | - :new_software, | |
| 228 | - :community => {:name =>"New Software"}, | |
| 229 | - :software_info => {:finality => "", :repository_link => ""}, | |
| 230 | - :license_info =>{:id => LicenseInfo.last.id}, | |
| 231 | - :profile => @person.identifier | |
| 232 | - ) | |
| 233 | - | |
| 234 | - assert_equal SoftwareInfo.last.license_info, LicenseInfo.last | |
| 235 | - end | |
| 236 | - | |
| 237 | - should "create software_info with 'Another' license_info" do | |
| 238 | - license_another = LicenseInfo.create(:version => "Another", :link => "#") | |
| 239 | - @environment.add_admin(@person) | |
| 240 | - | |
| 241 | - another_license_version = "Different License" | |
| 242 | - another_license_link = "http://diferent.link" | |
| 243 | - | |
| 244 | - post( | |
| 245 | - :new_software, | |
| 246 | - :community => { :name =>"New Software" }, | |
| 247 | - :software_info => { :finality => "", :repository_link => "" }, | |
| 248 | - :license_info =>{ :id => license_another.id }, | |
| 249 | - :license => { :version => another_license_version, | |
| 250 | - :link => another_license_link }, | |
| 251 | - :profile => @person.identifier | |
| 252 | - ) | |
| 253 | - | |
| 254 | - assert_equal SoftwareInfo.last.license_info_id, license_another.id | |
| 255 | - assert_equal SoftwareInfo.last.license_info.id, nil | |
| 256 | - assert_equal SoftwareInfo.last.license_info.version, another_license_version | |
| 257 | - assert_equal SoftwareInfo.last.license_info.link, another_license_link | |
| 258 | - end | |
| 259 | - | |
| 260 | -end |
test/functional/software_communities_plugin_controller_test.rb
0 → 100644
| ... | ... | @@ -0,0 +1,257 @@ |
| 1 | +require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 2 | +require File.dirname(__FILE__) + '/../helpers/institution_test_helper' | |
| 3 | +require File.dirname(__FILE__) + '/../../controllers/software_communities_plugin_controller' | |
| 4 | + | |
| 5 | +class SoftwareCommunitiesPluginController; def rescue_action(e) raise e end; end | |
| 6 | + | |
| 7 | +class SoftwareCommunitiesPluginControllerTest < ActionController::TestCase | |
| 8 | + | |
| 9 | + def setup | |
| 10 | + @admin = create_user("adminuser").person | |
| 11 | + @admin.stubs(:has_permission?).returns("true") | |
| 12 | + @controller.stubs(:current_user).returns(@admin.user) | |
| 13 | + | |
| 14 | + @environment = Environment.default | |
| 15 | + @environment.enabled_plugins = ['SoftwareCommunitiesPlugin'] | |
| 16 | + @environment.add_admin(@admin) | |
| 17 | + @environment.save | |
| 18 | + | |
| 19 | + @gov_power = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 20 | + @gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 21 | + @juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 22 | + @response = ActionController::TestResponse.new | |
| 23 | + | |
| 24 | + @institution_list = [] | |
| 25 | + @institution_list << InstitutionTestHelper.create_public_institution( | |
| 26 | + "Ministerio Publico da Uniao", | |
| 27 | + "MPU", | |
| 28 | + "BR", | |
| 29 | + "DF", | |
| 30 | + "Gama", | |
| 31 | + @juridical_nature, | |
| 32 | + @gov_power, | |
| 33 | + @gov_sphere, | |
| 34 | + "12.345.678/9012-45" | |
| 35 | + ) | |
| 36 | + @institution_list << InstitutionTestHelper.create_public_institution( | |
| 37 | + "Tribunal Regional da Uniao", | |
| 38 | + "TRU", | |
| 39 | + "BR", | |
| 40 | + "DF", | |
| 41 | + "Brasilia", | |
| 42 | + @juridical_nature, | |
| 43 | + @gov_power, | |
| 44 | + @gov_sphere, | |
| 45 | + "12.345.678/9012-90" | |
| 46 | + ) | |
| 47 | + end | |
| 48 | + | |
| 49 | + should "Search for institution with acronym" do | |
| 50 | + xhr :get, :get_institutions, :query=>"TRU" | |
| 51 | + | |
| 52 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 53 | + | |
| 54 | + assert_equal "Tribunal Regional da Uniao", json_response[0]["value"] | |
| 55 | + end | |
| 56 | + | |
| 57 | + should "Search for institution with name" do | |
| 58 | + xhr :get, :get_institutions, :query=>"Minis" | |
| 59 | + | |
| 60 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 61 | + | |
| 62 | + assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] | |
| 63 | + end | |
| 64 | + | |
| 65 | + should "search with name or acronym and return a list with institutions" do | |
| 66 | + xhr :get, :get_institutions, :query=>"uni" | |
| 67 | + | |
| 68 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 69 | + | |
| 70 | + assert_equal "Ministerio Publico da Uniao", json_response[0]["value"] | |
| 71 | + assert_equal "Tribunal Regional da Uniao", json_response[1]["value"] | |
| 72 | + end | |
| 73 | + | |
| 74 | + should "method create_institution return the html for modal" do | |
| 75 | + @controller.stubs(:current_user).returns(@admin.user) | |
| 76 | + xhr :get, :create_institution | |
| 77 | + assert_template 'create_institution' | |
| 78 | + end | |
| 79 | + | |
| 80 | + should "create new institution with ajax without acronym" do | |
| 81 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 82 | + | |
| 83 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 84 | + "foo bar", | |
| 85 | + "BR", | |
| 86 | + "DF", | |
| 87 | + "Brasilia", | |
| 88 | + "12.234.567/8900-10", | |
| 89 | + "PublicInstitution" | |
| 90 | + ) | |
| 91 | + fields[:institutions][:governmental_power] = @gov_power.id | |
| 92 | + fields[:institutions][:governmental_sphere] = @gov_sphere.id | |
| 93 | + fields[:institutions][:juridical_nature] = @juridical_nature.id | |
| 94 | + | |
| 95 | + xhr :get, :new_institution, fields | |
| 96 | + | |
| 97 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 98 | + | |
| 99 | + assert json_response["success"] | |
| 100 | + end | |
| 101 | + | |
| 102 | + should "not create a institution that already exists" do | |
| 103 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 104 | + | |
| 105 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 106 | + "Ministerio Publico da Uniao", | |
| 107 | + "BR", | |
| 108 | + "DF", | |
| 109 | + "Brasilia", | |
| 110 | + "12.234.567/8900-10", | |
| 111 | + "PublicInstitution" | |
| 112 | + ) | |
| 113 | + fields[:institutions][:governmental_power] = @gov_power.id | |
| 114 | + fields[:institutions][:governmental_sphere] = @gov_sphere.id | |
| 115 | + fields[:institutions][:juridical_nature] = @juridical_nature.id | |
| 116 | + | |
| 117 | + xhr :get, :new_institution, fields | |
| 118 | + | |
| 119 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 120 | + | |
| 121 | + assert !json_response["success"] | |
| 122 | + end | |
| 123 | + | |
| 124 | + should "not create a institution without cnpj" do | |
| 125 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 126 | + | |
| 127 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 128 | + "Some Private Institution", | |
| 129 | + "BR", | |
| 130 | + "DF", | |
| 131 | + "Brasilia", | |
| 132 | + "", | |
| 133 | + "PrivateInstitution" | |
| 134 | + ) | |
| 135 | + fields[:institutions][:acronym] = "SPI" | |
| 136 | + | |
| 137 | + xhr :get, :new_institution, fields | |
| 138 | + | |
| 139 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 140 | + | |
| 141 | + assert !json_response["success"] | |
| 142 | + end | |
| 143 | + | |
| 144 | + should "verify if institution name already exists" do | |
| 145 | + xhr :get, :institution_already_exists, :name=>"Ministerio Publico da Uniao" | |
| 146 | + assert_equal "true", @response.body | |
| 147 | + | |
| 148 | + xhr :get, :institution_already_exists, :name=>"Another name here" | |
| 149 | + assert_equal "false", @response.body | |
| 150 | + end | |
| 151 | + | |
| 152 | + should "hide registration incomplete message" do | |
| 153 | + xhr :get, :hide_registration_incomplete_percentage, :hide=>true | |
| 154 | + assert_equal "true", @response.body | |
| 155 | + end | |
| 156 | + | |
| 157 | + should "not hide registration incomplete message" do | |
| 158 | + xhr :get, :hide_registration_incomplete_percentage, :hide=>false | |
| 159 | + assert_equal "false", @response.body | |
| 160 | + end | |
| 161 | + | |
| 162 | + should "Create new institution with method post" do | |
| 163 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 164 | + | |
| 165 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 166 | + "Some Private Institution", | |
| 167 | + "BR", | |
| 168 | + "DF", | |
| 169 | + "Brasilia", | |
| 170 | + "12.345.567/8900-10", | |
| 171 | + "PrivateInstitution" | |
| 172 | + ) | |
| 173 | + fields[:institutions][:acronym] = "SPI" | |
| 174 | + | |
| 175 | + post :new_institution, fields | |
| 176 | + | |
| 177 | + assert_redirected_to(controller: "admin_panel", action: "index") | |
| 178 | + end | |
| 179 | + | |
| 180 | + should "not create new institution with method post without cnpj" do | |
| 181 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 182 | + | |
| 183 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 184 | + "Some Private Institution", | |
| 185 | + "BR", | |
| 186 | + "DF", | |
| 187 | + "Brasilia", | |
| 188 | + "", | |
| 189 | + "PrivateInstitution" | |
| 190 | + ) | |
| 191 | + fields[:institutions][:acronym] = "SPI" | |
| 192 | + | |
| 193 | + post :new_institution, fields | |
| 194 | + | |
| 195 | + assert_redirected_to(controller: "software_communities_plugin", action: "create_institution_admin") | |
| 196 | + end | |
| 197 | + | |
| 198 | + should "Create foreign institution without city, state and cnpj by post" do | |
| 199 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 200 | + | |
| 201 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 202 | + "Foreign institution", | |
| 203 | + "AZ", | |
| 204 | + "", | |
| 205 | + "", | |
| 206 | + "", | |
| 207 | + "PrivateInstitution" | |
| 208 | + ) | |
| 209 | + fields[:institutions][:acronym] = "FI" | |
| 210 | + | |
| 211 | + post :new_institution, fields | |
| 212 | + | |
| 213 | + assert_redirected_to(controller: "admin_panel", action: "index") | |
| 214 | + end | |
| 215 | + | |
| 216 | + should "Create foreign institution without city, state and cnpj by ajax" do | |
| 217 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 218 | + | |
| 219 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 220 | + "Foreign institution", | |
| 221 | + "AZ", | |
| 222 | + "", | |
| 223 | + "", | |
| 224 | + "", | |
| 225 | + "PrivateInstitution" | |
| 226 | + ) | |
| 227 | + fields[:institutions][:acronym] = "FI" | |
| 228 | + | |
| 229 | + xhr :post, :new_institution, fields | |
| 230 | + | |
| 231 | + json_response = ActiveSupport::JSON.decode(@response.body) | |
| 232 | + assert json_response["success"] | |
| 233 | + end | |
| 234 | + | |
| 235 | + should "add environment admins to institution when created via admin panel" do | |
| 236 | + @controller.stubs(:verify_recaptcha).returns(true) | |
| 237 | + admin2 = create_user("another_admin").person | |
| 238 | + admin2.stubs(:has_permission?).returns("true") | |
| 239 | + @environment.add_admin(admin2) | |
| 240 | + @environment.save | |
| 241 | + | |
| 242 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 243 | + "Private Institution", | |
| 244 | + "BR", | |
| 245 | + "DF", | |
| 246 | + "Brasilia", | |
| 247 | + "12.323.557/8900-10", | |
| 248 | + "PrivateInstitution" | |
| 249 | + ) | |
| 250 | + fields[:institutions][:acronym] = "PI" | |
| 251 | + fields[:edit_institution_page] = false | |
| 252 | + post :new_institution, fields | |
| 253 | + | |
| 254 | + assert(Institution.last.community.admins.include?(admin2) ) | |
| 255 | + end | |
| 256 | + | |
| 257 | +end | |
| 0 | 258 | \ No newline at end of file | ... | ... |
test/functional/software_communities_plugin_myprofile_controller_test.rb
0 → 100644
| ... | ... | @@ -0,0 +1,260 @@ |
| 1 | +require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 2 | +require File.dirname(__FILE__) + '/../helpers/software_test_helper' | |
| 3 | +require File.dirname(__FILE__) + '/../helpers/institution_test_helper' | |
| 4 | +require( | |
| 5 | + File.dirname(__FILE__) + | |
| 6 | + '/../../controllers/software_communities_plugin_myprofile_controller' | |
| 7 | +) | |
| 8 | + | |
| 9 | +class SoftwareCommunitiesPluginMyprofileController; def rescue_action(e) raise e end; | |
| 10 | +end | |
| 11 | + | |
| 12 | +class SoftwareCommunitiesPluginMyprofileControllerTest < ActionController::TestCase | |
| 13 | + include SoftwareTestHelper | |
| 14 | + def setup | |
| 15 | + @controller = SoftwareCommunitiesPluginMyprofileController.new | |
| 16 | + @request = ActionController::TestRequest.new | |
| 17 | + @response = ActionController::TestResponse.new | |
| 18 | + @person = create_user('person').person | |
| 19 | + @offer = create_user('Angela Silva') | |
| 20 | + @offer_1 = create_user('Ana de Souza') | |
| 21 | + @offer_2 = create_user('Angelo Roberto') | |
| 22 | + | |
| 23 | + LicenseInfo.create( | |
| 24 | + :version=>"CC-GPL-V2", | |
| 25 | + :link=>"http://creativecommons.org/licenses/GPL/2.0/legalcode.pt" | |
| 26 | + ) | |
| 27 | + | |
| 28 | + ProgrammingLanguage.create(:name =>"language") | |
| 29 | + DatabaseDescription.create(:name => "database") | |
| 30 | + OperatingSystemName.create(:name=>"Debian") | |
| 31 | + | |
| 32 | + login_as(@person.user_login) | |
| 33 | + @environment = Environment.default | |
| 34 | + @environment.enable_plugin('SoftwareCommunitiesPlugin') | |
| 35 | + @environment.save! | |
| 36 | + end | |
| 37 | + | |
| 38 | + attr_accessor :person, :offer | |
| 39 | + | |
| 40 | + should 'Add offer to admin in new software' do | |
| 41 | + @hash_list = software_fields | |
| 42 | + @software = create_software @hash_list | |
| 43 | + @software.community.add_admin(@offer.person) | |
| 44 | + @software.save | |
| 45 | + assert_equal @offer.person.id, @software.community.admins.last.id | |
| 46 | + end | |
| 47 | + | |
| 48 | + should 'search new offers while creating a new software' do | |
| 49 | + offer_token = "An" | |
| 50 | + post :search_offerers, :profile => person.identifier,:q => offer_token | |
| 51 | + response = JSON.parse(@response.body) | |
| 52 | + response.sort!{|a, b| a["name"] <=> b["name"]} | |
| 53 | + assert_equal "Ana de Souza",response[0]["name"] | |
| 54 | + assert_equal "Angela Silva",response[1]["name"] | |
| 55 | + assert_equal "Angelo Roberto",response[2]["name"] | |
| 56 | + end | |
| 57 | + | |
| 58 | + should 'make search for Ang for offerer in software creation' do | |
| 59 | + offer_token = "Ang" | |
| 60 | + post :search_offerers, :profile => person.identifier,:q => offer_token | |
| 61 | + response = JSON.parse(@response.body) | |
| 62 | + response.sort!{|a, b| a["name"] <=> b["name"]} | |
| 63 | + assert_equal "Angela Silva",response[0]["name"] | |
| 64 | + assert_equal "Angelo Roberto",response[1]["name"] | |
| 65 | + end | |
| 66 | + | |
| 67 | + should 'not find any offerer for software creation' do | |
| 68 | + offer_token = "Jos" | |
| 69 | + post :search_offerers, :profile => person.identifier,:q => offer_token | |
| 70 | + response = JSON.parse(@response.body) | |
| 71 | + assert response.count == 0 | |
| 72 | + end | |
| 73 | + | |
| 74 | + should 'create a new software with all fields filled in' do | |
| 75 | + fields = software_fields | |
| 76 | + @environment.add_admin(@person) | |
| 77 | + post( | |
| 78 | + :new_software, | |
| 79 | + :profile => @person.identifier, | |
| 80 | + :community => fields[1], | |
| 81 | + :license_info => fields[0], | |
| 82 | + :software_info => fields[2] | |
| 83 | + ) | |
| 84 | + assert_equal SoftwareInfo.last.community.name, "Debian" | |
| 85 | + end | |
| 86 | + | |
| 87 | + should 'edit a new software adding basic information' do | |
| 88 | + fields_software = software_fields | |
| 89 | + fields = software_edit_basic_fields | |
| 90 | + | |
| 91 | + software = create_software fields_software | |
| 92 | + post( | |
| 93 | + :edit_software, | |
| 94 | + :profile => software.community.identifier, | |
| 95 | + :license => fields[1], | |
| 96 | + :software => fields[0], | |
| 97 | + :library => {}, | |
| 98 | + :operating_system => {}, | |
| 99 | + :language => {}, | |
| 100 | + :database => {} | |
| 101 | + ) | |
| 102 | + assert_equal SoftwareInfo.last.repository_link, "www.github.com/test" | |
| 103 | + end | |
| 104 | + | |
| 105 | + should 'edit a new software adding specific information' do | |
| 106 | + fields_software = software_fields | |
| 107 | + fields = software_edit_specific_fields | |
| 108 | + | |
| 109 | + software = create_software fields_software | |
| 110 | + post( | |
| 111 | + :edit_software, | |
| 112 | + :profile => software.community.identifier, | |
| 113 | + :library => fields[0], | |
| 114 | + :language => fields[1], | |
| 115 | + :database => fields[2], | |
| 116 | + :operating_system => fields[3], | |
| 117 | + :software => fields[4], | |
| 118 | + :license => fields[5] | |
| 119 | + ) | |
| 120 | + assert_equal SoftwareInfo.last.acronym, "test" | |
| 121 | + end | |
| 122 | + | |
| 123 | + should 'upgrade a generic software to a public software' do | |
| 124 | + fields_software = software_fields | |
| 125 | + fields = software_edit_specific_fields | |
| 126 | + | |
| 127 | + fields[4]['public_software'] = true | |
| 128 | + software = create_software fields_software | |
| 129 | + | |
| 130 | + post( | |
| 131 | + :edit_software, | |
| 132 | + :profile => software.community.identifier, | |
| 133 | + :library => fields[0], | |
| 134 | + :language => fields[1], | |
| 135 | + :database => fields[2], | |
| 136 | + :operating_system => fields[3], | |
| 137 | + :software => fields[4], | |
| 138 | + :license => fields[5] | |
| 139 | + ) | |
| 140 | + | |
| 141 | + assert_equal true, SoftwareInfo.last.public_software? | |
| 142 | + end | |
| 143 | + | |
| 144 | + should "user edit its community institution" do | |
| 145 | + govPower = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 146 | + govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 147 | + juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 148 | + | |
| 149 | + institution = InstitutionTestHelper.create_public_institution( | |
| 150 | + "Ministerio Publico da Uniao", | |
| 151 | + "MPU", | |
| 152 | + "BR", | |
| 153 | + "DF", | |
| 154 | + "Gama", | |
| 155 | + juridical_nature, | |
| 156 | + govPower, | |
| 157 | + govSphere, | |
| 158 | + "12.345.678/9012-45" | |
| 159 | + ) | |
| 160 | + | |
| 161 | + identifier = institution.community.identifier | |
| 162 | + | |
| 163 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 164 | + "institution new name", | |
| 165 | + "BR", | |
| 166 | + "DF", | |
| 167 | + "Gama", | |
| 168 | + "12.345.678/9012-45", | |
| 169 | + "PrivateInstitution" | |
| 170 | + ) | |
| 171 | + | |
| 172 | + post( | |
| 173 | + :edit_institution, | |
| 174 | + :profile=>institution.community.identifier, | |
| 175 | + :community=>fields[:community], | |
| 176 | + :institutions=>fields[:institutions] | |
| 177 | + ) | |
| 178 | + | |
| 179 | + institution = Community[identifier].institution | |
| 180 | + assert_not_equal "Ministerio Publico da Uniao", institution.community.name | |
| 181 | + end | |
| 182 | + | |
| 183 | + should "not user edit its community institution with wrong values" do | |
| 184 | + govPower = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 185 | + govSphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 186 | + juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 187 | + | |
| 188 | + institution = InstitutionTestHelper.create_public_institution( | |
| 189 | + "Ministerio Publico da Uniao", | |
| 190 | + "MPU", | |
| 191 | + "BR", | |
| 192 | + "DF", | |
| 193 | + "Gama", | |
| 194 | + juridical_nature, | |
| 195 | + govPower, | |
| 196 | + govSphere, | |
| 197 | + "12.345.678/9012-45" | |
| 198 | + ) | |
| 199 | + | |
| 200 | + identifier = institution.community.identifier | |
| 201 | + | |
| 202 | + fields = InstitutionTestHelper.generate_form_fields( | |
| 203 | + "", | |
| 204 | + "BR", | |
| 205 | + "DF", | |
| 206 | + "Gama", | |
| 207 | + "6465465465", | |
| 208 | + "PrivateInstitution" | |
| 209 | + ) | |
| 210 | + | |
| 211 | + post( | |
| 212 | + :edit_institution, | |
| 213 | + :profile=>institution.community.identifier, | |
| 214 | + :community=>fields[:community], | |
| 215 | + :institutions=>fields[:institutions] | |
| 216 | + ) | |
| 217 | + | |
| 218 | + institution = Community[identifier].institution | |
| 219 | + assert_equal "Ministerio Publico da Uniao", institution.community.name | |
| 220 | + assert_equal "12.345.678/9012-45", institution.cnpj | |
| 221 | + end | |
| 222 | + | |
| 223 | + should "create software_info with existing license_info" do | |
| 224 | + @environment.add_admin(@person) | |
| 225 | + | |
| 226 | + post( | |
| 227 | + :new_software, | |
| 228 | + :community => {:name =>"New Software"}, | |
| 229 | + :software_info => {:finality => "", :repository_link => ""}, | |
| 230 | + :license_info =>{:id => LicenseInfo.last.id}, | |
| 231 | + :profile => @person.identifier | |
| 232 | + ) | |
| 233 | + | |
| 234 | + assert_equal SoftwareInfo.last.license_info, LicenseInfo.last | |
| 235 | + end | |
| 236 | + | |
| 237 | + should "create software_info with 'Another' license_info" do | |
| 238 | + license_another = LicenseInfo.create(:version => "Another", :link => "#") | |
| 239 | + @environment.add_admin(@person) | |
| 240 | + | |
| 241 | + another_license_version = "Different License" | |
| 242 | + another_license_link = "http://diferent.link" | |
| 243 | + | |
| 244 | + post( | |
| 245 | + :new_software, | |
| 246 | + :community => { :name =>"New Software" }, | |
| 247 | + :software_info => { :finality => "", :repository_link => "" }, | |
| 248 | + :license_info =>{ :id => license_another.id }, | |
| 249 | + :license => { :version => another_license_version, | |
| 250 | + :link => another_license_link }, | |
| 251 | + :profile => @person.identifier | |
| 252 | + ) | |
| 253 | + | |
| 254 | + assert_equal SoftwareInfo.last.license_info_id, license_another.id | |
| 255 | + assert_equal SoftwareInfo.last.license_info.id, nil | |
| 256 | + assert_equal SoftwareInfo.last.license_info.version, another_license_version | |
| 257 | + assert_equal SoftwareInfo.last.license_info.link, another_license_link | |
| 258 | + end | |
| 259 | + | |
| 260 | +end | ... | ... |
test/unit/mpog_person_test.rb
| ... | ... | @@ -1,95 +0,0 @@ |
| 1 | -# encoding: utf-8 | |
| 2 | - | |
| 3 | -require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 4 | -require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' | |
| 5 | - | |
| 6 | -class SoftwareCommunitiesPluginPersonTest < ActiveSupport::TestCase | |
| 7 | - include PluginTestHelper | |
| 8 | - | |
| 9 | - def setup | |
| 10 | - @plugin = SoftwareCommunitiesPlugin.new | |
| 11 | - | |
| 12 | - @user = fast_create(User) | |
| 13 | - @person = create_person( | |
| 14 | - "My Name", | |
| 15 | - "user@email.com", | |
| 16 | - "123456", | |
| 17 | - "123456", | |
| 18 | - "user@secondary_email.com", | |
| 19 | - "Any State", | |
| 20 | - "Some City" | |
| 21 | - ) | |
| 22 | - end | |
| 23 | - | |
| 24 | - def teardown | |
| 25 | - @plugin = nil | |
| 26 | - end | |
| 27 | - | |
| 28 | - should 'be a noosfero plugin' do | |
| 29 | - assert_kind_of Noosfero::Plugin, @plugin | |
| 30 | - end | |
| 31 | - | |
| 32 | - | |
| 33 | - should 'return true when the email has not gov.br,jus.br,leg.br or mp.br' do | |
| 34 | - @user.secondary_email = "test_email@com.br" | |
| 35 | - @user.email = "test_email@net.br" | |
| 36 | - assert @user.save | |
| 37 | - end | |
| 38 | - | |
| 39 | - should 'save person with a valid full name' do | |
| 40 | - p = Person::new :name=>"S1mpl3 0f N4m3", :identifier=>"simple-name" | |
| 41 | - p.user = fast_create(:user) | |
| 42 | - | |
| 43 | - assert_equal true, p.save | |
| 44 | - end | |
| 45 | - | |
| 46 | - should 'save person with a valid full name with accents' do | |
| 47 | - name = 'Jônatàs dâ Sîlvã Jösé' | |
| 48 | - identifier = "jonatas-jose-da-silva" | |
| 49 | - p = Person::new :name=>name, :identifier=>identifier | |
| 50 | - p.user = fast_create(:user) | |
| 51 | - | |
| 52 | - assert_equal true, p.save | |
| 53 | - end | |
| 54 | - | |
| 55 | - should 'not save person whose name has not capital letter' do | |
| 56 | - p = Person::new :name=>"simple name" | |
| 57 | - assert !p.save, _("Name Should begin with a capital letter and no special characters") | |
| 58 | - end | |
| 59 | - | |
| 60 | - should 'not save person whose name has special characters' do | |
| 61 | - p = Person::new :name=>"Simple N@me" | |
| 62 | - | |
| 63 | - assert !p.save , _("Name Should begin with a capital letter and no special characters") | |
| 64 | - end | |
| 65 | - | |
| 66 | - should 'calculate the percentege of person incomplete fields' do | |
| 67 | - @person.cell_phone = "76888919" | |
| 68 | - @person.contact_phone = "987654321" | |
| 69 | - | |
| 70 | - assert_equal(67, @plugin.calc_percentage_registration(@person)) | |
| 71 | - | |
| 72 | - @person.comercial_phone = "11223344" | |
| 73 | - @person.country = "I dont know" | |
| 74 | - @person.state = "I dont know" | |
| 75 | - @person.city = "I dont know" | |
| 76 | - @person.organization_website = "www.whatever.com" | |
| 77 | - @person.image = Image::new :uploaded_data=>fixture_file_upload('/files/rails.png', 'image/png') | |
| 78 | - @person.save | |
| 79 | - | |
| 80 | - assert_equal(100, @plugin.calc_percentage_registration(@person)) | |
| 81 | - end | |
| 82 | - | |
| 83 | - should 'get a list of softwares of a person' do | |
| 84 | - software1 = create_software_info "noosfero" | |
| 85 | - software2 = create_software_info "colab" | |
| 86 | - community = create_community "simple_community" | |
| 87 | - | |
| 88 | - software1.community.add_member @person | |
| 89 | - software1.save! | |
| 90 | - community.add_member @person | |
| 91 | - community.save! | |
| 92 | - | |
| 93 | - assert_equal 1, @person.softwares.count | |
| 94 | - end | |
| 95 | -end |
test/unit/mpog_software_plugin_user_test.rb
| ... | ... | @@ -1,138 +0,0 @@ |
| 1 | -require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 2 | -require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' | |
| 3 | - | |
| 4 | -class SoftwareCommunitiesPluginUserTest < ActiveSupport::TestCase | |
| 5 | - include PluginTestHelper | |
| 6 | - | |
| 7 | - should 'not save user whose both email and secondary email are the same' do | |
| 8 | - | |
| 9 | - user = fast_create(User) | |
| 10 | - user.email = "test@email.com" | |
| 11 | - user.secondary_email = "test@email.com" | |
| 12 | - | |
| 13 | - assert !user.save | |
| 14 | - end | |
| 15 | - | |
| 16 | - should 'not save user whose email and secondary email have been taken' do | |
| 17 | - user1 = create_default_user | |
| 18 | - user2 = fast_create(User) | |
| 19 | - | |
| 20 | - user2.email = "primary@email.com" | |
| 21 | - user2.secondary_email = "secondary@email.com" | |
| 22 | - assert !user2.save | |
| 23 | - end | |
| 24 | - | |
| 25 | - should 'not save user whose email has already been used' do | |
| 26 | - user1 = create_default_user | |
| 27 | - user2 = fast_create(User) | |
| 28 | - | |
| 29 | - user2.email = "primary@email.com" | |
| 30 | - user2.secondary_email = "noosfero@email.com" | |
| 31 | - assert !user2.save | |
| 32 | - end | |
| 33 | - | |
| 34 | - should 'not save user whose email has been taken another in users secondary email' do | |
| 35 | - user1 = create_default_user | |
| 36 | - user2 = fast_create(User) | |
| 37 | - | |
| 38 | - user2.login = "another-login" | |
| 39 | - user2.email = "secondary@email.com" | |
| 40 | - user2.secondary_email = "noosfero@email.com" | |
| 41 | - assert !user2.save | |
| 42 | - end | |
| 43 | - | |
| 44 | - should 'not save user whose secondary email has been taken used in another users email' do | |
| 45 | - user1 = create_default_user | |
| 46 | - user2 = fast_create(User) | |
| 47 | - | |
| 48 | - user2.login = "another-login" | |
| 49 | - user2.email = "noosfero@email.com" | |
| 50 | - user2.secondary_email = "primary@email.com" | |
| 51 | - assert !user2.save | |
| 52 | - end | |
| 53 | - | |
| 54 | - should 'not save user whose secondary email has already been used in another users secondary email' do | |
| 55 | - user1 = create_default_user | |
| 56 | - user2 = fast_create(User) | |
| 57 | - | |
| 58 | - user2.login = "another-login" | |
| 59 | - user2.email = "noosfero@email.com" | |
| 60 | - user2.secondary_email = "secondary@email.com" | |
| 61 | - assert !user2.save | |
| 62 | - end | |
| 63 | - | |
| 64 | - should 'not save user whose secondary email is in the wrong format' do | |
| 65 | - user = fast_create(User) | |
| 66 | - user.email = "test@email.com" | |
| 67 | - user.secondary_email = "notarightformat.com" | |
| 68 | - | |
| 69 | - assert !user.save | |
| 70 | - | |
| 71 | - user.secondary_email = "not@arightformatcom" | |
| 72 | - | |
| 73 | - assert !user.save | |
| 74 | - end | |
| 75 | - | |
| 76 | - should 'save more than one user without secondary email' do | |
| 77 | - user = fast_create(User) | |
| 78 | - user.email = "test@email.com" | |
| 79 | - user.secondary_email = "" | |
| 80 | - user.save | |
| 81 | - | |
| 82 | - user2 = fast_create(User) | |
| 83 | - user2.email = "test2@email.com" | |
| 84 | - user2.secondary_email = "" | |
| 85 | - assert user2.save | |
| 86 | - end | |
| 87 | - should 'return an error if secondary email is governmental and primary is not' do | |
| 88 | - invalid_msg = "The governamental email must be the primary one." | |
| 89 | - user = fast_create(User) | |
| 90 | - | |
| 91 | - user.email = "test@email.com" | |
| 92 | - user.secondary_email = "test@gov.br" | |
| 93 | - | |
| 94 | - assert !user.save | |
| 95 | - assert user.errors.full_messages.include?(invalid_msg) | |
| 96 | - end | |
| 97 | - | |
| 98 | - should 'have institution if email is governmental' do | |
| 99 | - user = fast_create(User) | |
| 100 | - | |
| 101 | - user.email = "testtest@gov.br" | |
| 102 | - | |
| 103 | - user.institutions = [] | |
| 104 | - assert !user.save, "this should not save" | |
| 105 | - | |
| 106 | - gov_power = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 107 | - gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 108 | - juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 109 | - institution = create_public_institution( | |
| 110 | - "Ministerio Publico da Uniao", | |
| 111 | - "MPU", | |
| 112 | - "BR", | |
| 113 | - "DF", | |
| 114 | - "Gama", | |
| 115 | - juridical_nature, | |
| 116 | - gov_power, | |
| 117 | - gov_sphere, | |
| 118 | - "44.555.666/7777-88" | |
| 119 | - ) | |
| 120 | - institution.save! | |
| 121 | - | |
| 122 | - user.institutions << institution | |
| 123 | - assert user.save, "this should save" | |
| 124 | - end | |
| 125 | - | |
| 126 | - private | |
| 127 | - | |
| 128 | - def create_default_user | |
| 129 | - user = fast_create(User) | |
| 130 | - user.login = "a-login" | |
| 131 | - user.email = "primary@email.com" | |
| 132 | - user.secondary_email = "secondary@email.com" | |
| 133 | - user.save | |
| 134 | - | |
| 135 | - return user | |
| 136 | - end | |
| 137 | - | |
| 138 | -end |
| ... | ... | @@ -0,0 +1,95 @@ |
| 1 | +# encoding: utf-8 | |
| 2 | + | |
| 3 | +require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 4 | +require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' | |
| 5 | + | |
| 6 | +class SoftwareCommunitiesPluginPersonTest < ActiveSupport::TestCase | |
| 7 | + include PluginTestHelper | |
| 8 | + | |
| 9 | + def setup | |
| 10 | + @plugin = SoftwareCommunitiesPlugin.new | |
| 11 | + | |
| 12 | + @user = fast_create(User) | |
| 13 | + @person = create_person( | |
| 14 | + "My Name", | |
| 15 | + "user@email.com", | |
| 16 | + "123456", | |
| 17 | + "123456", | |
| 18 | + "user@secondary_email.com", | |
| 19 | + "Any State", | |
| 20 | + "Some City" | |
| 21 | + ) | |
| 22 | + end | |
| 23 | + | |
| 24 | + def teardown | |
| 25 | + @plugin = nil | |
| 26 | + end | |
| 27 | + | |
| 28 | + should 'be a noosfero plugin' do | |
| 29 | + assert_kind_of Noosfero::Plugin, @plugin | |
| 30 | + end | |
| 31 | + | |
| 32 | + | |
| 33 | + should 'return true when the email has not gov.br,jus.br,leg.br or mp.br' do | |
| 34 | + @user.secondary_email = "test_email@com.br" | |
| 35 | + @user.email = "test_email@net.br" | |
| 36 | + assert @user.save | |
| 37 | + end | |
| 38 | + | |
| 39 | + should 'save person with a valid full name' do | |
| 40 | + p = Person::new :name=>"S1mpl3 0f N4m3", :identifier=>"simple-name" | |
| 41 | + p.user = fast_create(:user) | |
| 42 | + | |
| 43 | + assert_equal true, p.save | |
| 44 | + end | |
| 45 | + | |
| 46 | + should 'save person with a valid full name with accents' do | |
| 47 | + name = 'Jônatàs dâ Sîlvã Jösé' | |
| 48 | + identifier = "jonatas-jose-da-silva" | |
| 49 | + p = Person::new :name=>name, :identifier=>identifier | |
| 50 | + p.user = fast_create(:user) | |
| 51 | + | |
| 52 | + assert_equal true, p.save | |
| 53 | + end | |
| 54 | + | |
| 55 | + should 'not save person whose name has not capital letter' do | |
| 56 | + p = Person::new :name=>"simple name" | |
| 57 | + assert !p.save, _("Name Should begin with a capital letter and no special characters") | |
| 58 | + end | |
| 59 | + | |
| 60 | + should 'not save person whose name has special characters' do | |
| 61 | + p = Person::new :name=>"Simple N@me" | |
| 62 | + | |
| 63 | + assert !p.save , _("Name Should begin with a capital letter and no special characters") | |
| 64 | + end | |
| 65 | + | |
| 66 | + should 'calculate the percentege of person incomplete fields' do | |
| 67 | + @person.cell_phone = "76888919" | |
| 68 | + @person.contact_phone = "987654321" | |
| 69 | + | |
| 70 | + assert_equal(67, @plugin.calc_percentage_registration(@person)) | |
| 71 | + | |
| 72 | + @person.comercial_phone = "11223344" | |
| 73 | + @person.country = "I dont know" | |
| 74 | + @person.state = "I dont know" | |
| 75 | + @person.city = "I dont know" | |
| 76 | + @person.organization_website = "www.whatever.com" | |
| 77 | + @person.image = Image::new :uploaded_data=>fixture_file_upload('/files/rails.png', 'image/png') | |
| 78 | + @person.save | |
| 79 | + | |
| 80 | + assert_equal(100, @plugin.calc_percentage_registration(@person)) | |
| 81 | + end | |
| 82 | + | |
| 83 | + should 'get a list of softwares of a person' do | |
| 84 | + software1 = create_software_info "noosfero" | |
| 85 | + software2 = create_software_info "colab" | |
| 86 | + community = create_community "simple_community" | |
| 87 | + | |
| 88 | + software1.community.add_member @person | |
| 89 | + software1.save! | |
| 90 | + community.add_member @person | |
| 91 | + community.save! | |
| 92 | + | |
| 93 | + assert_equal 1, @person.softwares.count | |
| 94 | + end | |
| 95 | +end | ... | ... |
| ... | ... | @@ -0,0 +1,138 @@ |
| 1 | +require File.dirname(__FILE__) + '/../../../../test/test_helper' | |
| 2 | +require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' | |
| 3 | + | |
| 4 | +class SoftwareCommunitiesPluginUserTest < ActiveSupport::TestCase | |
| 5 | + include PluginTestHelper | |
| 6 | + | |
| 7 | + should 'not save user whose both email and secondary email are the same' do | |
| 8 | + | |
| 9 | + user = fast_create(User) | |
| 10 | + user.email = "test@email.com" | |
| 11 | + user.secondary_email = "test@email.com" | |
| 12 | + | |
| 13 | + assert !user.save | |
| 14 | + end | |
| 15 | + | |
| 16 | + should 'not save user whose email and secondary email have been taken' do | |
| 17 | + user1 = create_default_user | |
| 18 | + user2 = fast_create(User) | |
| 19 | + | |
| 20 | + user2.email = "primary@email.com" | |
| 21 | + user2.secondary_email = "secondary@email.com" | |
| 22 | + assert !user2.save | |
| 23 | + end | |
| 24 | + | |
| 25 | + should 'not save user whose email has already been used' do | |
| 26 | + user1 = create_default_user | |
| 27 | + user2 = fast_create(User) | |
| 28 | + | |
| 29 | + user2.email = "primary@email.com" | |
| 30 | + user2.secondary_email = "noosfero@email.com" | |
| 31 | + assert !user2.save | |
| 32 | + end | |
| 33 | + | |
| 34 | + should 'not save user whose email has been taken another in users secondary email' do | |
| 35 | + user1 = create_default_user | |
| 36 | + user2 = fast_create(User) | |
| 37 | + | |
| 38 | + user2.login = "another-login" | |
| 39 | + user2.email = "secondary@email.com" | |
| 40 | + user2.secondary_email = "noosfero@email.com" | |
| 41 | + assert !user2.save | |
| 42 | + end | |
| 43 | + | |
| 44 | + should 'not save user whose secondary email has been taken used in another users email' do | |
| 45 | + user1 = create_default_user | |
| 46 | + user2 = fast_create(User) | |
| 47 | + | |
| 48 | + user2.login = "another-login" | |
| 49 | + user2.email = "noosfero@email.com" | |
| 50 | + user2.secondary_email = "primary@email.com" | |
| 51 | + assert !user2.save | |
| 52 | + end | |
| 53 | + | |
| 54 | + should 'not save user whose secondary email has already been used in another users secondary email' do | |
| 55 | + user1 = create_default_user | |
| 56 | + user2 = fast_create(User) | |
| 57 | + | |
| 58 | + user2.login = "another-login" | |
| 59 | + user2.email = "noosfero@email.com" | |
| 60 | + user2.secondary_email = "secondary@email.com" | |
| 61 | + assert !user2.save | |
| 62 | + end | |
| 63 | + | |
| 64 | + should 'not save user whose secondary email is in the wrong format' do | |
| 65 | + user = fast_create(User) | |
| 66 | + user.email = "test@email.com" | |
| 67 | + user.secondary_email = "notarightformat.com" | |
| 68 | + | |
| 69 | + assert !user.save | |
| 70 | + | |
| 71 | + user.secondary_email = "not@arightformatcom" | |
| 72 | + | |
| 73 | + assert !user.save | |
| 74 | + end | |
| 75 | + | |
| 76 | + should 'save more than one user without secondary email' do | |
| 77 | + user = fast_create(User) | |
| 78 | + user.email = "test@email.com" | |
| 79 | + user.secondary_email = "" | |
| 80 | + user.save | |
| 81 | + | |
| 82 | + user2 = fast_create(User) | |
| 83 | + user2.email = "test2@email.com" | |
| 84 | + user2.secondary_email = "" | |
| 85 | + assert user2.save | |
| 86 | + end | |
| 87 | + should 'return an error if secondary email is governmental and primary is not' do | |
| 88 | + invalid_msg = "The governamental email must be the primary one." | |
| 89 | + user = fast_create(User) | |
| 90 | + | |
| 91 | + user.email = "test@email.com" | |
| 92 | + user.secondary_email = "test@gov.br" | |
| 93 | + | |
| 94 | + assert !user.save | |
| 95 | + assert user.errors.full_messages.include?(invalid_msg) | |
| 96 | + end | |
| 97 | + | |
| 98 | + should 'have institution if email is governmental' do | |
| 99 | + user = fast_create(User) | |
| 100 | + | |
| 101 | + user.email = "testtest@gov.br" | |
| 102 | + | |
| 103 | + user.institutions = [] | |
| 104 | + assert !user.save, "this should not save" | |
| 105 | + | |
| 106 | + gov_power = GovernmentalPower.create(:name=>"Some Gov Power") | |
| 107 | + gov_sphere = GovernmentalSphere.create(:name=>"Some Gov Sphere") | |
| 108 | + juridical_nature = JuridicalNature.create(:name => "Autarquia") | |
| 109 | + institution = create_public_institution( | |
| 110 | + "Ministerio Publico da Uniao", | |
| 111 | + "MPU", | |
| 112 | + "BR", | |
| 113 | + "DF", | |
| 114 | + "Gama", | |
| 115 | + juridical_nature, | |
| 116 | + gov_power, | |
| 117 | + gov_sphere, | |
| 118 | + "44.555.666/7777-88" | |
| 119 | + ) | |
| 120 | + institution.save! | |
| 121 | + | |
| 122 | + user.institutions << institution | |
| 123 | + assert user.save, "this should save" | |
| 124 | + end | |
| 125 | + | |
| 126 | + private | |
| 127 | + | |
| 128 | + def create_default_user | |
| 129 | + user = fast_create(User) | |
| 130 | + user.login = "a-login" | |
| 131 | + user.email = "primary@email.com" | |
| 132 | + user.secondary_email = "secondary@email.com" | |
| 133 | + user.save | |
| 134 | + | |
| 135 | + return user | |
| 136 | + end | |
| 137 | + | |
| 138 | +end | ... | ... |
views/mpog_software_plugin/_institution.html.erb
| ... | ... | @@ -1,129 +0,0 @@ |
| 1 | -<h1><%= _('New Institution') %></h1> | |
| 2 | - | |
| 3 | -<% if environment.enabled?('admin_must_approve_new_communities') %> | |
| 4 | - <div class='explanation'> | |
| 5 | - <%= _("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 }%> | |
| 6 | - </div> | |
| 7 | -<%end %> | |
| 8 | - | |
| 9 | -<% unless flash[:errors].nil? %> | |
| 10 | -<div class="errorExplanation" id="errorExplanation"> | |
| 11 | - <h2> <%= _("Can`t create new Institution: #{flash[:errors].length} errors") %> </h2> | |
| 12 | - <ul> | |
| 13 | - <% flash[:errors].each do |error| %> | |
| 14 | - <li> <%= error %> </li> | |
| 15 | - <% end %> | |
| 16 | - </ul> | |
| 17 | -</div> | |
| 18 | -<% end %> | |
| 19 | - | |
| 20 | -<div id = 'create_institution_errors' class='errorExplanation hide-field'></div> | |
| 21 | - | |
| 22 | -<div> | |
| 23 | - <div class="fields-required"> | |
| 24 | - <span class="errorExplanation"><%= _("All fields with (*) are mandatory") %></span> | |
| 25 | - </div> | |
| 26 | - <br/> | |
| 27 | - <%= labelled_form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> | |
| 28 | - <%= hidden_field_tag "edit_institution_page", false %> | |
| 29 | - <%= fields_for :institutions do |inst| %> | |
| 30 | - <span class=''> | |
| 31 | - <div class='formfield type-radio'> | |
| 32 | - <label> <%= _("Public Institution") %> | |
| 33 | - <%= radio_button_tag("institutions[type]", "PublicInstitution") %> | |
| 34 | - </label> | |
| 35 | - | |
| 36 | - <label> | |
| 37 | - <%= _("Private Institution") %> | |
| 38 | - <%= radio_button_tag("institutions[type]" ,"PrivateInstitution", true)%> | |
| 39 | - </label> | |
| 40 | - </div> | |
| 41 | - </span> | |
| 42 | - | |
| 43 | - <%= required f.text_field(:name) %> | |
| 44 | - <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> | |
| 45 | - | |
| 46 | - <span class='required-field'> | |
| 47 | - <div class="formfield type-text"> | |
| 48 | - <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> | |
| 49 | - <%= required inst.text_field(:corporate_name) %> | |
| 50 | - </div> | |
| 51 | - </span> | |
| 52 | - | |
| 53 | - <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}) %> | |
| 54 | - | |
| 55 | - <span class='required-field'> | |
| 56 | - <div class="formfield"> | |
| 57 | - <label for="community_state" class="formlabel"><%= _("State") %></label> | |
| 58 | - <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}) %> | |
| 59 | - </div> | |
| 60 | - </span> | |
| 61 | - | |
| 62 | - <%= required f.text_field(:city) %> | |
| 63 | - | |
| 64 | - | |
| 65 | - <span class='required-field'> | |
| 66 | - <div class="formfield type-text"> | |
| 67 | - <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> | |
| 68 | - <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field") %> | |
| 69 | - </div> | |
| 70 | - </span> | |
| 71 | - | |
| 72 | - <span class='optional-field'> | |
| 73 | - <div class="formfield type-text"> | |
| 74 | - <%= hidden_field_tag "acronym_translate", _("Acronym") %> | |
| 75 | - <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> | |
| 76 | - <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> | |
| 77 | - <%= inst.text_field(:acronym) %> | |
| 78 | - </div> | |
| 79 | - </span> | |
| 80 | - | |
| 81 | - <span class='required-field public-institutions-fields'> | |
| 82 | - <div class="formfield type-text"> | |
| 83 | - <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> | |
| 84 | - <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>0})%> | |
| 85 | - </div> | |
| 86 | - </span> | |
| 87 | - | |
| 88 | - <span class='required-field public-institutions-fields'> | |
| 89 | - <div class="formfield type-text"> | |
| 90 | - <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> | |
| 91 | - <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=>0})%> | |
| 92 | - </div> | |
| 93 | - </span> | |
| 94 | - <span class='required-field public-institutions-fields'> | |
| 95 | - <div class="formfield type-text"> | |
| 96 | - <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> | |
| 97 | - <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=>0})%> | |
| 98 | - </div> | |
| 99 | - </span> | |
| 100 | - | |
| 101 | - <span class='required-field public-institutions-fields'> | |
| 102 | - <div class="formfield type-text"> | |
| 103 | - <%= _("SISP?") %> | |
| 104 | - <% if @show_sisp_field %> | |
| 105 | - <%= inst.label("sisp" ,_("Yes")) %> | |
| 106 | - <%= inst.radio_button(:sisp, true) %> | |
| 107 | - <%= inst.label("sisp" ,_("No")) %> | |
| 108 | - <%= inst.radio_button(:sisp, false, :checked=>"checked") %> | |
| 109 | - <% else %> | |
| 110 | - <%= inst.label("sisp", _("No")) %> | |
| 111 | - <% end %> | |
| 112 | - </div> | |
| 113 | - </span> | |
| 114 | - <br /> | |
| 115 | - | |
| 116 | - <% if @url_token == "create_institution_admin" %> | |
| 117 | - <%= submit_button :save, _('Save') %> | |
| 118 | - <%else%> | |
| 119 | - <div> | |
| 120 | - <%= link_to(_('Save'), '#', :id=>'save_institution_button', :class=>'button with-text icon-add') %> | |
| 121 | - </div> | |
| 122 | - <%= hidden_field_tag :institution_error_message, _("Could not send the form data to the server") %> | |
| 123 | - <%end%> | |
| 124 | - | |
| 125 | - <% end %> | |
| 126 | - | |
| 127 | - <% end %> | |
| 128 | -</div> | |
| 129 | -<%= hidden_field_tag :loading_message, _("Creating institution") %> |
views/mpog_software_plugin/create_institution.html.erb
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -<%= render :partial => "institution" %> |
views/mpog_software_plugin/create_institution_admin.html.erb
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -<%= render :partial => "institution" %> |
views/mpog_software_plugin_myprofile/_database_fields.html.erb
| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | -<%= fields_for :database_description, @database_description do |db| %> | |
| 2 | - | |
| 3 | -<div id='databases'> | |
| 4 | - <% database = [] if database.blank? %> | |
| 5 | - <% DatabaseHelper.database_as_tables(database).each do |tab| %> | |
| 6 | - <%= tab.call %> | |
| 7 | - <%end%> | |
| 8 | -</div> | |
| 9 | - | |
| 10 | -<div id='table_structure_databases' style="display:none"><%= DatabaseHelper.add_dynamic_table %></div> | |
| 11 | -<%= link_to _('New Database'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-databases"%> | |
| 12 | -<% end %> |
views/mpog_software_plugin_myprofile/_language_fields.html.erb
| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | -<%= fields_for :software_language, @software_language do |lng| %> | |
| 2 | - | |
| 3 | -<div id='languages'> | |
| 4 | - <% languages = [] if languages.blank? %> | |
| 5 | - <% SoftwareLanguageHelper.language_as_tables(languages).each do |tab| %> | |
| 6 | - <%= tab.call %> | |
| 7 | - <%end%> | |
| 8 | -</div> | |
| 9 | - | |
| 10 | -<div id='table_structure_languages' style="display:none"><%= SoftwareLanguageHelper.add_dynamic_table %></div> | |
| 11 | -<%= link_to _('New language'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-languages"%> | |
| 12 | -<% end %> | |
| 13 | 0 | \ No newline at end of file |
views/mpog_software_plugin_myprofile/_library_fields.html.erb
| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | -<%= fields_for :library ,@library do |lib| %> | |
| 2 | - | |
| 3 | -<div id='libraries'> | |
| 4 | - <% libraries = [] if libraries.blank? %> | |
| 5 | - <% LibraryHelper.libraries_as_tables(libraries).each do |tab| %> | |
| 6 | - <%= tab.call %> | |
| 7 | - <% end %> | |
| 8 | -</div> | |
| 9 | - | |
| 10 | -<div id='table_structure_libraries' style="display:none"><%= LibraryHelper.add_dynamic_table %></div> | |
| 11 | -<%= link_to _('New Library'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-libraries"%> | |
| 12 | -<% end %> |
views/mpog_software_plugin_myprofile/_license_info_fields.html.erb
| ... | ... | @@ -1,15 +0,0 @@ |
| 1 | -<% LicenseHelper.getListLicenses.each do | license | %> | |
| 2 | - <input type="hidden" id = "version_<%=license.id %>" value = "<%=license.link%>"> | |
| 3 | -<% end %> | |
| 4 | - | |
| 5 | -<h3><%= _("License Version: ") %></h3> | |
| 6 | -<%= text_field_tag "license_info[version]", license_version, :id=>"license_info_version", :class=>"license_info_version", :placeholder=>_('Autocomplete field, type some license') %> | |
| 7 | -<%= hidden_field_tag "license[license_infos_id]", license_id, :id=>"license_info_id", :class=>"license_info_id", :data => {:label=>license_version} %> | |
| 8 | - | |
| 9 | -<a id = "version_link" href="#" target="_BLANK" class="hide-field"><%= _("Read license") %></a> | |
| 10 | - | |
| 11 | -<div id="another_license" class="<%= 'hide-field' if license_version != 'Another' %>"> | |
| 12 | - <%= labelled_text_field "Licence version", "license[version]", another_version, :id=>"licence_version" %> | |
| 13 | - <br /> | |
| 14 | - <%= labelled_text_field "Licence link", "license[link]", another_link, :id=>"licence_link" %> | |
| 15 | -</div> |
views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb
| ... | ... | @@ -1,27 +0,0 @@ |
| 1 | -<h1><%= @profile.software_info.name + _(' Information') %></h1> | |
| 2 | - | |
| 3 | -<h3> <%= _("Acronym") %> </h3> | |
| 4 | -<div id="acronym"> | |
| 5 | - <%= text_field_tag("software[acronym]", @profile.software_info.acronym, :maxlength=>"10") %> | |
| 6 | -</div> | |
| 7 | - | |
| 8 | -<h3> <%= _("Finality") %> </h3> | |
| 9 | -<div id="finality"> | |
| 10 | - <%= text_area_tag "software[finality]", @profile.software_info.finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140%> | |
| 11 | -</div> | |
| 12 | - | |
| 13 | -<div id='licenses'> | |
| 14 | - <%= render :partial => "license_info_fields", :locals => { | |
| 15 | - :license_version => @license_version, | |
| 16 | - :license_id => @license_id, | |
| 17 | - :another_version => @another_license_version, | |
| 18 | - :another_link => @another_license_link | |
| 19 | - } | |
| 20 | - %> | |
| 21 | -</div> | |
| 22 | - | |
| 23 | -<h3> <%= _("Link to Repository") %> </h3> | |
| 24 | -<div id='repository_link'> | |
| 25 | - <%= text_field_tag("software[repository_link]", @profile.software_info.repository_link, :class => "improve_input_size") %> | |
| 26 | -</div> | |
| 27 | - |
views/mpog_software_plugin_myprofile/_operating_system_fields.html.erb
| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | -<%= fields_for :operating_systems ,@operating_systems do |lib| %> | |
| 2 | - | |
| 3 | -<div id='operating_systems'> | |
| 4 | - <% operating_systems_fields = [] if operating_systems_fields.nil? %> | |
| 5 | - <% OperatingSystemHelper.operating_system_as_tables(operating_systems_fields).each do |tab| %> | |
| 6 | - <%= tab.call %> | |
| 7 | - <% end %> | |
| 8 | -</div> | |
| 9 | - | |
| 10 | -<div id='table_structure_operating_systems' style="display:none"><%= OperatingSystemHelper.add_dynamic_table %></div> | |
| 11 | -<%= link_to _('New Operating System'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-operating_systems"%> | |
| 12 | -<% end %> |
views/mpog_software_plugin_myprofile/_public_software_info.html.erb
| ... | ... | @@ -1,103 +0,0 @@ |
| 1 | -<h1><%= _('Edit software') %></h1> | |
| 2 | - | |
| 3 | -<div class="formfieldline"> | |
| 4 | - <h4> <%= _("Operating Platform") %> </h4> | |
| 5 | - <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%> | |
| 6 | -</div> | |
| 7 | - | |
| 8 | -<div class="formfieldline"> | |
| 9 | - <h4> <%= _("Features") %> </h4> | |
| 10 | - <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%> | |
| 11 | -</div> | |
| 12 | - | |
| 13 | -<div id='libraries_fields'> | |
| 14 | - <h4> <%= _("Libraries") %> </h4> | |
| 15 | - | |
| 16 | - <%= render :partial => 'library_fields', :locals => {:object_name => 'community', :profile => @community, :libraries => @list_libraries } %> | |
| 17 | -</div> | |
| 18 | -<br /> | |
| 19 | - | |
| 20 | -<div id='operating_system_fields'> | |
| 21 | - <h4> <%= _("Operating Systems") %> </h4> | |
| 22 | - | |
| 23 | - <%= render :partial => 'operating_system_fields', :locals => {:object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %> | |
| 24 | -</div> | |
| 25 | -<br /> | |
| 26 | - | |
| 27 | -<br /> | |
| 28 | -<div id='programming_languages_fields'> | |
| 29 | - <h4> <%= _("Programming languages") %> </h4> | |
| 30 | - | |
| 31 | - <%= render :partial => 'language_fields', :locals => { :object_name => 'community', :profile => @community, :languages => @list_languages } %> | |
| 32 | -</div> | |
| 33 | - | |
| 34 | -<br /> | |
| 35 | -<div id='database_fields'> | |
| 36 | - <h4> <%= _("Databases") %> </h4> | |
| 37 | - | |
| 38 | - <%= render :partial => 'database_fields', :locals => {:object_name => 'community', :profile => @community, :database => @list_databases } %> | |
| 39 | -</div> | |
| 40 | - | |
| 41 | -<div id = "demonstration_url"> | |
| 42 | - <h4> <%= _("Demonstration url") %> </h4> | |
| 43 | - <%= text_field_tag("software[demonstration_url]", @software_info.demonstration_url) %> | |
| 44 | -</div> | |
| 45 | - | |
| 46 | -<br> | |
| 47 | - | |
| 48 | -<div id = "public_software"> | |
| 49 | - <% if @disabled_public_software_field == true %> | |
| 50 | - <%= check_box_tag("software[public_software]", "true", @software_info.public_software?, :disabled => "disabled") %> | |
| 51 | - <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_disabled" %> | |
| 52 | - <% else %> | |
| 53 | - <%= check_box_tag("software[public_software]", "true", @software_info.public_software?) %> | |
| 54 | - <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_enabled" %> | |
| 55 | - <% end %> | |
| 56 | - <div class="public-software-fields"> | |
| 57 | - <h4> <%= _("Public Software") %> </h4> | |
| 58 | - <div class="formfieldline"> | |
| 59 | - <%= label_tag _("Adherent to e-PING ?") %> | |
| 60 | - | |
| 61 | - <%= label_tag "e_ping_true", "Yes" %> | |
| 62 | - <%= radio_button_tag("software[e_ping]", true, @software_info.e_ping)%> | |
| 63 | - <%= label_tag "e_ping_false", "No"%> | |
| 64 | - <%= radio_button_tag("software[e_ping]", false, !@software_info.e_ping)%> | |
| 65 | - </div> | |
| 66 | - | |
| 67 | - <div class="formfieldline"> | |
| 68 | - <%= label_tag _("Adherent to e-MAG ?") %> | |
| 69 | - | |
| 70 | - <%= label_tag "e_mag_true", "Yes"%> | |
| 71 | - <%= radio_button_tag("software[e_mag]", true, @software_info.e_mag)%> | |
| 72 | - <%= label_tag "e_mag_false", "No"%> | |
| 73 | - <%= radio_button_tag("software[e_mag]", false, !@software_info.e_mag)%> | |
| 74 | - </div> | |
| 75 | - | |
| 76 | - <div class="formfieldline"> | |
| 77 | - <%= label_tag _("Adherent to ICP-Brasil ?") %> | |
| 78 | - | |
| 79 | - <%= label_tag "icp_brasil_true", "Yes"%> | |
| 80 | - <%= radio_button_tag("software[icp_brasil]", true, @software_info.icp_brasil)%> | |
| 81 | - <%= label_tag "icp_brasil_false", "No"%> | |
| 82 | - <%= radio_button_tag("software[icp_brasil]", false, !@software_info.icp_brasil)%> | |
| 83 | - </div> | |
| 84 | - | |
| 85 | - <div class="formfieldline"> | |
| 86 | - <%= label_tag _("Adherent to e-ARQ ?") %> | |
| 87 | - | |
| 88 | - <%= label_tag "e_arq_true", "Yes"%> | |
| 89 | - <%= radio_button_tag("software[e_arq]", true, @software_info.e_arq)%> | |
| 90 | - <%= label_tag "e_arq_false", "No"%> | |
| 91 | - <%= radio_button_tag("software[e_arq]", false, !@software_info.e_arq)%> | |
| 92 | - </div> | |
| 93 | - | |
| 94 | - <div class="formfieldline"> | |
| 95 | - <%= label_tag _("Internacionalizable ?") %> | |
| 96 | - | |
| 97 | - <%= label_tag "intern_true", "Yes" %> | |
| 98 | - <%= radio_button_tag("software[intern]", true, @software_info.intern)%> | |
| 99 | - <%= label_tag "intern_false", "No"%> | |
| 100 | - <%= radio_button_tag("software[intern]", false, !@software_info.intern)%> | |
| 101 | - </div> | |
| 102 | - </div> | |
| 103 | -</div> |
views/mpog_software_plugin_myprofile/edit_institution.html.erb
| ... | ... | @@ -1,119 +0,0 @@ |
| 1 | -<h1><%= _('Edit Institution') %></h1> | |
| 2 | - | |
| 3 | -<% if environment.enabled?('admin_must_approve_new_communities') %> | |
| 4 | - <div class='explanation'> | |
| 5 | - <%= _("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 }%> | |
| 6 | - </div> | |
| 7 | -<%end %> | |
| 8 | - | |
| 9 | -<% unless flash[:errors].nil? %> | |
| 10 | -<div class="errorExplanation" id="errorExplanation"> | |
| 11 | - <h2> <%= _("Can`t create new Institution: #{flash[:errors].length} errors") %> </h2> | |
| 12 | - <ul> | |
| 13 | - <% flash[:errors].each do |error| %> | |
| 14 | - <li> <%= error %> </li> | |
| 15 | - <% end %> | |
| 16 | - </ul> | |
| 17 | -</div> | |
| 18 | -<% end %> | |
| 19 | - | |
| 20 | -<div id = 'create_institution_errors' class='errorExplanation hide-field'></div> | |
| 21 | - | |
| 22 | -<div> | |
| 23 | - <div class="fields-required"> | |
| 24 | - <span class="errorExplanation"><%= _("All fields with (*) are mandatory") %></span> | |
| 25 | - </div> | |
| 26 | - <br/> | |
| 27 | - <%= labelled_form_for :community,:html => { :multipart => true, :id=>"institution_form" } do |f| %> | |
| 28 | - <%= hidden_field_tag "edit_institution_page", true %> | |
| 29 | - <%= fields_for :institutions do |inst| %> | |
| 30 | - <span class=''> | |
| 31 | - <div class='formfield type-radio'> | |
| 32 | - <label> <%= _("Public Institution") %> | |
| 33 | - <%= radio_button_tag("institutions[type]", "PublicInstitution", (@institution.type == "PublicInstitution" ? true : false)) %> | |
| 34 | - </label> | |
| 35 | - | |
| 36 | - <label> | |
| 37 | - <%= _("Private Institution") %> | |
| 38 | - <%= radio_button_tag("institutions[type]" ,"PrivateInstitution", (@institution.type == "PrivateInstitution" ? true : false))%> | |
| 39 | - </label> | |
| 40 | - </div> | |
| 41 | - </span> | |
| 42 | - | |
| 43 | - <%= required f.text_field(:name, :value => @institution.community.name) %> | |
| 44 | - <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> | |
| 45 | - | |
| 46 | - <span class='required-field'> | |
| 47 | - <div class="formfield type-text"> | |
| 48 | - <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> | |
| 49 | - <%= required inst.text_field(:corporate_name, :value => @institution.corporate_name) %> | |
| 50 | - </div> | |
| 51 | - </span> | |
| 52 | - | |
| 53 | - <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}, :selected => @institution.community.country) %> | |
| 54 | - | |
| 55 | - <span class='required-field'> | |
| 56 | - <div class="formfield"> | |
| 57 | - <label for="community_state" class="formlabel"><%= _("State") %></label> | |
| 58 | - <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}, :selected => @institution.community.state) %> | |
| 59 | - </div> | |
| 60 | - </span> | |
| 61 | - | |
| 62 | - <%= required f.text_field(:city, :value => @institution.community.city) %> | |
| 63 | - | |
| 64 | - | |
| 65 | - <span class='required-field'> | |
| 66 | - <div class="formfield type-text"> | |
| 67 | - <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> | |
| 68 | - <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field", :value => @institution.cnpj) %> | |
| 69 | - </div> | |
| 70 | - </span> | |
| 71 | - | |
| 72 | - <span class='optional-field'> | |
| 73 | - <div class="formfield type-text"> | |
| 74 | - <%= hidden_field_tag "acronym_translate", _("Acronym") %> | |
| 75 | - <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> | |
| 76 | - <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> | |
| 77 | - <%= inst.text_field(:acronym, :value => @institution.acronym) %> | |
| 78 | - </div> | |
| 79 | - </span> | |
| 80 | - | |
| 81 | - <span class='required-field public-institutions-fields'> | |
| 82 | - <div class="formfield type-text"> | |
| 83 | - <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> | |
| 84 | - <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>@institution.governmental_power_id})%> | |
| 85 | - </div> | |
| 86 | - </span> | |
| 87 | - | |
| 88 | - <span class='required-field public-institutions-fields'> | |
| 89 | - <div class="formfield type-text"> | |
| 90 | - <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> | |
| 91 | - <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=> @institution.governmental_sphere_id})%> | |
| 92 | - </div> | |
| 93 | - </span> | |
| 94 | - <span class='required-field public-institutions-fields'> | |
| 95 | - <div class="formfield type-text"> | |
| 96 | - <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> | |
| 97 | - <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=> @institution.juridical_nature_id})%> | |
| 98 | - </div> | |
| 99 | - </span> | |
| 100 | - | |
| 101 | - <span class='required-field public-institutions-fields'> | |
| 102 | - <div class="formfield type-text"> | |
| 103 | - <%= _("SISP?") %> | |
| 104 | - <% if @show_sisp_field %> | |
| 105 | - <%= inst.label("sisp" ,_("Yes")) %> | |
| 106 | - <%= inst.radio_button(:sisp, true, :checked=>(@institution.sisp ? true : false)) %> | |
| 107 | - <%= inst.label("sisp" ,_("No")) %> | |
| 108 | - <%= inst.radio_button(:sisp, false, :checked=>(@institution.sisp ? false : true)) %> | |
| 109 | - <% else %> | |
| 110 | - <%= inst.label("sisp", _("No")) %> | |
| 111 | - <% end %> | |
| 112 | - </div> | |
| 113 | - </span> | |
| 114 | - <br /> | |
| 115 | - | |
| 116 | - <%= submit_button :save, _('Save') %> | |
| 117 | - <% end %> | |
| 118 | -<% end %> | |
| 119 | - |
views/mpog_software_plugin_myprofile/edit_software.html.erb
| ... | ... | @@ -1,20 +0,0 @@ |
| 1 | -<% tabs = [] %> | |
| 2 | - | |
| 3 | -<%= error_messages_for :software_info %> | |
| 4 | - | |
| 5 | -<%= labelled_form_for :software_communities_plugin_myprofile, :html => { :multipart => true, :id => 'edit-form' } do |f| %> | |
| 6 | - | |
| 7 | -<% tabs << {:title => _("Software"), :id => 'basic-info', | |
| 8 | - :content => (render :partial => 'main_software_editor_extras')} %> | |
| 9 | - | |
| 10 | -<% tabs << {:title => _("Specifications"), :id => 'especific-info', | |
| 11 | - :content => (render :partial => 'public_software_info')} %> | |
| 12 | - | |
| 13 | -<%= render_tabs(tabs) %> | |
| 14 | - | |
| 15 | -<% button_bar do %> | |
| 16 | - <%= submit_button(:save, _('Save')) %> | |
| 17 | - <%= submit_button(:save, _('Save and Configure Community')) %> | |
| 18 | - <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> | |
| 19 | -<% end %> | |
| 20 | -<% end %> |
views/mpog_software_plugin_myprofile/new_software.html.erb
| ... | ... | @@ -1,70 +0,0 @@ |
| 1 | -<%= stylesheet_link_tag('plugins/software_communities/mpog-software') %> | |
| 2 | - | |
| 3 | -<div class="software-step-info"> | |
| 4 | - <h3><%= _("Step 1/2 - Software Creation")%></h3> | |
| 5 | -</div> | |
| 6 | - | |
| 7 | -<h1><%= _('Creating new software') %></h1> | |
| 8 | - | |
| 9 | -<% if environment.enabled?('admin_must_approve_new_communities') %> | |
| 10 | - <div class='explanation'> | |
| 11 | - <%= _("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 }%> | |
| 12 | - </div> | |
| 13 | -<%end %> | |
| 14 | - | |
| 15 | -<% unless @errors.blank? %> | |
| 16 | -<div class="errorExplanation" id="errorExplanation"> | |
| 17 | - <h2> <%= _("Can`t create new software: #{@errors.length} errors") %> </h2> | |
| 18 | - <ul> | |
| 19 | - <% @errors.each do |error| %> | |
| 20 | - <li> <%= error %> </li> | |
| 21 | - <% end %> | |
| 22 | - </ul> | |
| 23 | -</div> | |
| 24 | -<% end %> | |
| 25 | - | |
| 26 | -<div> | |
| 27 | - <%= labelled_form_for :community, :html => { :multipart => true } do |f| %> | |
| 28 | - | |
| 29 | - <%= required_fields_message %> | |
| 30 | - | |
| 31 | - <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %> | |
| 32 | - | |
| 33 | - <div id='software-name-field' class='formfield'> | |
| 34 | - <span id='software-hostname'><%= environment.default_hostname %>/</span> | |
| 35 | - <%= required text_field(:community, :name, :size => 30, :maxlength => 100) %> | |
| 36 | - </div> | |
| 37 | - | |
| 38 | - <%= fields_for @software_info do |swf| %> | |
| 39 | - <div class="formfield type-text"> | |
| 40 | - <%= swf.label("finality" ,_("Finality"), :class=>"formlabel") %> | |
| 41 | - <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140) %> | |
| 42 | - </div> | |
| 43 | - <% end %> | |
| 44 | - | |
| 45 | - <div class="formfieldline"> | |
| 46 | - <%= render :partial => "license_info_fields", :locals => { | |
| 47 | - :license_version => "", | |
| 48 | - :license_id => "", | |
| 49 | - :another_version=>"", | |
| 50 | - :another_link=>"" | |
| 51 | - } %> | |
| 52 | - </div> | |
| 53 | - | |
| 54 | - <%= fields_for @software_info do |swf| %> | |
| 55 | - <div class="formfieldline formfield type-text"> | |
| 56 | - <%= swf.label "repository_url", _("Link to Repository: "), :class => "formlabel"%> | |
| 57 | - <%= swf.text_field :repository_link, :class => "improve_input_size" %> | |
| 58 | - </div> | |
| 59 | - <% end %> | |
| 60 | - | |
| 61 | - <%= hidden_field_tag('back_to', @back_to) %> | |
| 62 | - | |
| 63 | - <% button_bar do %> | |
| 64 | - <%= submit_button(:save, _('Create')) %> | |
| 65 | - <%= button(:cancel, _('Cancel'), @back_to ) %> | |
| 66 | - <% end %> | |
| 67 | - | |
| 68 | - <% end %> | |
| 69 | - | |
| 70 | -</div> |
views/search/_mpog_search_form.html.erb
| ... | ... | @@ -1,57 +0,0 @@ |
| 1 | -<div class='search-form'> | |
| 2 | - <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, | |
| 3 | - :method => 'get', :class => 'search_form' ) do %> | |
| 4 | - | |
| 5 | - <div style="margin:0;padding:0;display:inline"> | |
| 6 | - <input name="utf8" type="hidden" value="✓" /></div> | |
| 7 | - <%= hidden_field_tag :display, params[:display] %> | |
| 8 | - <%= hidden_field_tag :filter, params[:filter] %> | |
| 9 | - | |
| 10 | - <div class="search-field"> | |
| 11 | - <span class="formfield"> | |
| 12 | - <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50, :placeholder=>_("Type words about the software_info you're looking for") %> | |
| 13 | - </span> | |
| 14 | - | |
| 15 | - <%= submit_button(:search, _('Filter')) %> | |
| 16 | - </div> | |
| 17 | - <%= render :partial => 'search_form_extra_fields' %> | |
| 18 | - <%= render :partial => 'catalog_filter' %> | |
| 19 | - | |
| 20 | - <!-- #display-options sera substituido pelo html passado pela equipe de design --> | |
| 21 | - <div id="catalog-display-options"> | |
| 22 | - <div id="catalog-display-options-count"> | |
| 23 | - <strong><%= "#{@software_count} Software(s)" %> </strong> | |
| 24 | - </div> | |
| 25 | - | |
| 26 | - <div id="catalog-display-options-show-and-sort"> | |
| 27 | - <div id="catalog-display-options-show"> | |
| 28 | - Show: | |
| 29 | - <%= select_tag("software_display", | |
| 30 | - options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) | |
| 31 | - ) %> | |
| 32 | - </div> | |
| 33 | - | |
| 34 | - <div id="catalog-display-options-sort"> | |
| 35 | - Sort by: | |
| 36 | - <%= select_tag("sort", | |
| 37 | - options_for_select( | |
| 38 | - [ | |
| 39 | - [_("Name A-Z"), 'asc'], | |
| 40 | - [_("Name Z-A"), 'desc'], | |
| 41 | - [_("Relevance"), 'relevance'] | |
| 42 | - ], :selected=>params[:sort]) | |
| 43 | - ) %> | |
| 44 | - </div> | |
| 45 | - </div> | |
| 46 | - </div> | |
| 47 | - <% end %> | |
| 48 | - | |
| 49 | - <% if @empty_query %> | |
| 50 | - <% hint = environment.search_hints[@asset] %> | |
| 51 | - <% if hint and !hint.blank? %> | |
| 52 | - <div class="search-hint"><%= hint %></div> | |
| 53 | - <% end %> | |
| 54 | - <% end %> | |
| 55 | - | |
| 56 | - <div style="clear: both"></div> | |
| 57 | -</div> |
| ... | ... | @@ -0,0 +1,57 @@ |
| 1 | +<div class='search-form'> | |
| 2 | + <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, | |
| 3 | + :method => 'get', :class => 'search_form' ) do %> | |
| 4 | + | |
| 5 | + <div style="margin:0;padding:0;display:inline"> | |
| 6 | + <input name="utf8" type="hidden" value="✓" /></div> | |
| 7 | + <%= hidden_field_tag :display, params[:display] %> | |
| 8 | + <%= hidden_field_tag :filter, params[:filter] %> | |
| 9 | + | |
| 10 | + <div class="search-field"> | |
| 11 | + <span class="formfield"> | |
| 12 | + <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50, :placeholder=>_("Type words about the software_info you're looking for") %> | |
| 13 | + </span> | |
| 14 | + | |
| 15 | + <%= submit_button(:search, _('Filter')) %> | |
| 16 | + </div> | |
| 17 | + <%= render :partial => 'search_form_extra_fields' %> | |
| 18 | + <%= render :partial => 'catalog_filter' %> | |
| 19 | + | |
| 20 | + <!-- #display-options sera substituido pelo html passado pela equipe de design --> | |
| 21 | + <div id="catalog-display-options"> | |
| 22 | + <div id="catalog-display-options-count"> | |
| 23 | + <strong><%= "#{@software_count} Software(s)" %> </strong> | |
| 24 | + </div> | |
| 25 | + | |
| 26 | + <div id="catalog-display-options-show-and-sort"> | |
| 27 | + <div id="catalog-display-options-show"> | |
| 28 | + Show: | |
| 29 | + <%= select_tag("software_display", | |
| 30 | + options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) | |
| 31 | + ) %> | |
| 32 | + </div> | |
| 33 | + | |
| 34 | + <div id="catalog-display-options-sort"> | |
| 35 | + Sort by: | |
| 36 | + <%= select_tag("sort", | |
| 37 | + options_for_select( | |
| 38 | + [ | |
| 39 | + [_("Name A-Z"), 'asc'], | |
| 40 | + [_("Name Z-A"), 'desc'], | |
| 41 | + [_("Relevance"), 'relevance'] | |
| 42 | + ], :selected=>params[:sort]) | |
| 43 | + ) %> | |
| 44 | + </div> | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + <% end %> | |
| 48 | + | |
| 49 | + <% if @empty_query %> | |
| 50 | + <% hint = environment.search_hints[@asset] %> | |
| 51 | + <% if hint and !hint.blank? %> | |
| 52 | + <div class="search-hint"><%= hint %></div> | |
| 53 | + <% end %> | |
| 54 | + <% end %> | |
| 55 | + | |
| 56 | + <div style="clear: both"></div> | |
| 57 | +</div> | ... | ... |
| ... | ... | @@ -0,0 +1,129 @@ |
| 1 | +<h1><%= _('New Institution') %></h1> | |
| 2 | + | |
| 3 | +<% if environment.enabled?('admin_must_approve_new_communities') %> | |
| 4 | + <div class='explanation'> | |
| 5 | + <%= _("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 }%> | |
| 6 | + </div> | |
| 7 | +<%end %> | |
| 8 | + | |
| 9 | +<% unless flash[:errors].nil? %> | |
| 10 | +<div class="errorExplanation" id="errorExplanation"> | |
| 11 | + <h2> <%= _("Can`t create new Institution: #{flash[:errors].length} errors") %> </h2> | |
| 12 | + <ul> | |
| 13 | + <% flash[:errors].each do |error| %> | |
| 14 | + <li> <%= error %> </li> | |
| 15 | + <% end %> | |
| 16 | + </ul> | |
| 17 | +</div> | |
| 18 | +<% end %> | |
| 19 | + | |
| 20 | +<div id = 'create_institution_errors' class='errorExplanation hide-field'></div> | |
| 21 | + | |
| 22 | +<div> | |
| 23 | + <div class="fields-required"> | |
| 24 | + <span class="errorExplanation"><%= _("All fields with (*) are mandatory") %></span> | |
| 25 | + </div> | |
| 26 | + <br/> | |
| 27 | + <%= labelled_form_for :community, :url => {:action=>"new_institution"}, :html => { :multipart => true, :id=>"institution_form" } do |f| %> | |
| 28 | + <%= hidden_field_tag "edit_institution_page", false %> | |
| 29 | + <%= fields_for :institutions do |inst| %> | |
| 30 | + <span class=''> | |
| 31 | + <div class='formfield type-radio'> | |
| 32 | + <label> <%= _("Public Institution") %> | |
| 33 | + <%= radio_button_tag("institutions[type]", "PublicInstitution") %> | |
| 34 | + </label> | |
| 35 | + | |
| 36 | + <label> | |
| 37 | + <%= _("Private Institution") %> | |
| 38 | + <%= radio_button_tag("institutions[type]" ,"PrivateInstitution", true)%> | |
| 39 | + </label> | |
| 40 | + </div> | |
| 41 | + </span> | |
| 42 | + | |
| 43 | + <%= required f.text_field(:name) %> | |
| 44 | + <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> | |
| 45 | + | |
| 46 | + <span class='required-field'> | |
| 47 | + <div class="formfield type-text"> | |
| 48 | + <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> | |
| 49 | + <%= required inst.text_field(:corporate_name) %> | |
| 50 | + </div> | |
| 51 | + </span> | |
| 52 | + | |
| 53 | + <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}) %> | |
| 54 | + | |
| 55 | + <span class='required-field'> | |
| 56 | + <div class="formfield"> | |
| 57 | + <label for="community_state" class="formlabel"><%= _("State") %></label> | |
| 58 | + <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}) %> | |
| 59 | + </div> | |
| 60 | + </span> | |
| 61 | + | |
| 62 | + <%= required f.text_field(:city) %> | |
| 63 | + | |
| 64 | + | |
| 65 | + <span class='required-field'> | |
| 66 | + <div class="formfield type-text"> | |
| 67 | + <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> | |
| 68 | + <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field") %> | |
| 69 | + </div> | |
| 70 | + </span> | |
| 71 | + | |
| 72 | + <span class='optional-field'> | |
| 73 | + <div class="formfield type-text"> | |
| 74 | + <%= hidden_field_tag "acronym_translate", _("Acronym") %> | |
| 75 | + <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> | |
| 76 | + <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> | |
| 77 | + <%= inst.text_field(:acronym) %> | |
| 78 | + </div> | |
| 79 | + </span> | |
| 80 | + | |
| 81 | + <span class='required-field public-institutions-fields'> | |
| 82 | + <div class="formfield type-text"> | |
| 83 | + <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> | |
| 84 | + <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>0})%> | |
| 85 | + </div> | |
| 86 | + </span> | |
| 87 | + | |
| 88 | + <span class='required-field public-institutions-fields'> | |
| 89 | + <div class="formfield type-text"> | |
| 90 | + <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> | |
| 91 | + <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=>0})%> | |
| 92 | + </div> | |
| 93 | + </span> | |
| 94 | + <span class='required-field public-institutions-fields'> | |
| 95 | + <div class="formfield type-text"> | |
| 96 | + <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> | |
| 97 | + <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=>0})%> | |
| 98 | + </div> | |
| 99 | + </span> | |
| 100 | + | |
| 101 | + <span class='required-field public-institutions-fields'> | |
| 102 | + <div class="formfield type-text"> | |
| 103 | + <%= _("SISP?") %> | |
| 104 | + <% if @show_sisp_field %> | |
| 105 | + <%= inst.label("sisp" ,_("Yes")) %> | |
| 106 | + <%= inst.radio_button(:sisp, true) %> | |
| 107 | + <%= inst.label("sisp" ,_("No")) %> | |
| 108 | + <%= inst.radio_button(:sisp, false, :checked=>"checked") %> | |
| 109 | + <% else %> | |
| 110 | + <%= inst.label("sisp", _("No")) %> | |
| 111 | + <% end %> | |
| 112 | + </div> | |
| 113 | + </span> | |
| 114 | + <br /> | |
| 115 | + | |
| 116 | + <% if @url_token == "create_institution_admin" %> | |
| 117 | + <%= submit_button :save, _('Save') %> | |
| 118 | + <%else%> | |
| 119 | + <div> | |
| 120 | + <%= link_to(_('Save'), '#', :id=>'save_institution_button', :class=>'button with-text icon-add') %> | |
| 121 | + </div> | |
| 122 | + <%= hidden_field_tag :institution_error_message, _("Could not send the form data to the server") %> | |
| 123 | + <%end%> | |
| 124 | + | |
| 125 | + <% end %> | |
| 126 | + | |
| 127 | + <% end %> | |
| 128 | +</div> | |
| 129 | +<%= hidden_field_tag :loading_message, _("Creating institution") %> | ... | ... |
views/software_communities_plugin/create_institution.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +<%= render :partial => "institution" %> | ... | ... |
views/software_communities_plugin/create_institution_admin.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +<%= render :partial => "institution" %> | ... | ... |
views/software_communities_plugin_myprofile/_database_fields.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +<%= fields_for :database_description, @database_description do |db| %> | |
| 2 | + | |
| 3 | +<div id='databases'> | |
| 4 | + <% database = [] if database.blank? %> | |
| 5 | + <% DatabaseHelper.database_as_tables(database).each do |tab| %> | |
| 6 | + <%= tab.call %> | |
| 7 | + <%end%> | |
| 8 | +</div> | |
| 9 | + | |
| 10 | +<div id='table_structure_databases' style="display:none"><%= DatabaseHelper.add_dynamic_table %></div> | |
| 11 | +<%= link_to _('New Database'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-databases"%> | |
| 12 | +<% end %> | ... | ... |
views/software_communities_plugin_myprofile/_language_fields.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +<%= fields_for :software_language, @software_language do |lng| %> | |
| 2 | + | |
| 3 | +<div id='languages'> | |
| 4 | + <% languages = [] if languages.blank? %> | |
| 5 | + <% SoftwareLanguageHelper.language_as_tables(languages).each do |tab| %> | |
| 6 | + <%= tab.call %> | |
| 7 | + <%end%> | |
| 8 | +</div> | |
| 9 | + | |
| 10 | +<div id='table_structure_languages' style="display:none"><%= SoftwareLanguageHelper.add_dynamic_table %></div> | |
| 11 | +<%= link_to _('New language'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-languages"%> | |
| 12 | +<% end %> | |
| 0 | 13 | \ No newline at end of file | ... | ... |
views/software_communities_plugin_myprofile/_library_fields.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +<%= fields_for :library ,@library do |lib| %> | |
| 2 | + | |
| 3 | +<div id='libraries'> | |
| 4 | + <% libraries = [] if libraries.blank? %> | |
| 5 | + <% LibraryHelper.libraries_as_tables(libraries).each do |tab| %> | |
| 6 | + <%= tab.call %> | |
| 7 | + <% end %> | |
| 8 | +</div> | |
| 9 | + | |
| 10 | +<div id='table_structure_libraries' style="display:none"><%= LibraryHelper.add_dynamic_table %></div> | |
| 11 | +<%= link_to _('New Library'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-libraries"%> | |
| 12 | +<% end %> | ... | ... |
views/software_communities_plugin_myprofile/_license_info_fields.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,15 @@ |
| 1 | +<% LicenseHelper.getListLicenses.each do | license | %> | |
| 2 | + <input type="hidden" id = "version_<%=license.id %>" value = "<%=license.link%>"> | |
| 3 | +<% end %> | |
| 4 | + | |
| 5 | +<h3><%= _("License Version: ") %></h3> | |
| 6 | +<%= text_field_tag "license_info[version]", license_version, :id=>"license_info_version", :class=>"license_info_version", :placeholder=>_('Autocomplete field, type some license') %> | |
| 7 | +<%= hidden_field_tag "license[license_infos_id]", license_id, :id=>"license_info_id", :class=>"license_info_id", :data => {:label=>license_version} %> | |
| 8 | + | |
| 9 | +<a id = "version_link" href="#" target="_BLANK" class="hide-field"><%= _("Read license") %></a> | |
| 10 | + | |
| 11 | +<div id="another_license" class="<%= 'hide-field' if license_version != 'Another' %>"> | |
| 12 | + <%= labelled_text_field "Licence version", "license[version]", another_version, :id=>"licence_version" %> | |
| 13 | + <br /> | |
| 14 | + <%= labelled_text_field "Licence link", "license[link]", another_link, :id=>"licence_link" %> | |
| 15 | +</div> | ... | ... |
views/software_communities_plugin_myprofile/_main_software_editor_extras.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,27 @@ |
| 1 | +<h1><%= @profile.software_info.name + _(' Information') %></h1> | |
| 2 | + | |
| 3 | +<h3> <%= _("Acronym") %> </h3> | |
| 4 | +<div id="acronym"> | |
| 5 | + <%= text_field_tag("software[acronym]", @profile.software_info.acronym, :maxlength=>"10") %> | |
| 6 | +</div> | |
| 7 | + | |
| 8 | +<h3> <%= _("Finality") %> </h3> | |
| 9 | +<div id="finality"> | |
| 10 | + <%= text_area_tag "software[finality]", @profile.software_info.finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140%> | |
| 11 | +</div> | |
| 12 | + | |
| 13 | +<div id='licenses'> | |
| 14 | + <%= render :partial => "license_info_fields", :locals => { | |
| 15 | + :license_version => @license_version, | |
| 16 | + :license_id => @license_id, | |
| 17 | + :another_version => @another_license_version, | |
| 18 | + :another_link => @another_license_link | |
| 19 | + } | |
| 20 | + %> | |
| 21 | +</div> | |
| 22 | + | |
| 23 | +<h3> <%= _("Link to Repository") %> </h3> | |
| 24 | +<div id='repository_link'> | |
| 25 | + <%= text_field_tag("software[repository_link]", @profile.software_info.repository_link, :class => "improve_input_size") %> | |
| 26 | +</div> | |
| 27 | + | ... | ... |
views/software_communities_plugin_myprofile/_operating_system_fields.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +<%= fields_for :operating_systems ,@operating_systems do |lib| %> | |
| 2 | + | |
| 3 | +<div id='operating_systems'> | |
| 4 | + <% operating_systems_fields = [] if operating_systems_fields.nil? %> | |
| 5 | + <% OperatingSystemHelper.operating_system_as_tables(operating_systems_fields).each do |tab| %> | |
| 6 | + <%= tab.call %> | |
| 7 | + <% end %> | |
| 8 | +</div> | |
| 9 | + | |
| 10 | +<div id='table_structure_operating_systems' style="display:none"><%= OperatingSystemHelper.add_dynamic_table %></div> | |
| 11 | +<%= link_to _('New Operating System'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-operating_systems"%> | |
| 12 | +<% end %> | ... | ... |
views/software_communities_plugin_myprofile/_public_software_info.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,103 @@ |
| 1 | +<h1><%= _('Edit software') %></h1> | |
| 2 | + | |
| 3 | +<div class="formfieldline"> | |
| 4 | + <h4> <%= _("Operating Platform") %> </h4> | |
| 5 | + <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%> | |
| 6 | +</div> | |
| 7 | + | |
| 8 | +<div class="formfieldline"> | |
| 9 | + <h4> <%= _("Features") %> </h4> | |
| 10 | + <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%> | |
| 11 | +</div> | |
| 12 | + | |
| 13 | +<div id='libraries_fields'> | |
| 14 | + <h4> <%= _("Libraries") %> </h4> | |
| 15 | + | |
| 16 | + <%= render :partial => 'library_fields', :locals => {:object_name => 'community', :profile => @community, :libraries => @list_libraries } %> | |
| 17 | +</div> | |
| 18 | +<br /> | |
| 19 | + | |
| 20 | +<div id='operating_system_fields'> | |
| 21 | + <h4> <%= _("Operating Systems") %> </h4> | |
| 22 | + | |
| 23 | + <%= render :partial => 'operating_system_fields', :locals => {:object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %> | |
| 24 | +</div> | |
| 25 | +<br /> | |
| 26 | + | |
| 27 | +<br /> | |
| 28 | +<div id='programming_languages_fields'> | |
| 29 | + <h4> <%= _("Programming languages") %> </h4> | |
| 30 | + | |
| 31 | + <%= render :partial => 'language_fields', :locals => { :object_name => 'community', :profile => @community, :languages => @list_languages } %> | |
| 32 | +</div> | |
| 33 | + | |
| 34 | +<br /> | |
| 35 | +<div id='database_fields'> | |
| 36 | + <h4> <%= _("Databases") %> </h4> | |
| 37 | + | |
| 38 | + <%= render :partial => 'database_fields', :locals => {:object_name => 'community', :profile => @community, :database => @list_databases } %> | |
| 39 | +</div> | |
| 40 | + | |
| 41 | +<div id = "demonstration_url"> | |
| 42 | + <h4> <%= _("Demonstration url") %> </h4> | |
| 43 | + <%= text_field_tag("software[demonstration_url]", @software_info.demonstration_url) %> | |
| 44 | +</div> | |
| 45 | + | |
| 46 | +<br> | |
| 47 | + | |
| 48 | +<div id = "public_software"> | |
| 49 | + <% if @disabled_public_software_field == true %> | |
| 50 | + <%= check_box_tag("software[public_software]", "true", @software_info.public_software?, :disabled => "disabled") %> | |
| 51 | + <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_disabled" %> | |
| 52 | + <% else %> | |
| 53 | + <%= check_box_tag("software[public_software]", "true", @software_info.public_software?) %> | |
| 54 | + <%= label_tag _("Public Software"), _("Public software"), :class => "public_software_enabled" %> | |
| 55 | + <% end %> | |
| 56 | + <div class="public-software-fields"> | |
| 57 | + <h4> <%= _("Public Software") %> </h4> | |
| 58 | + <div class="formfieldline"> | |
| 59 | + <%= label_tag _("Adherent to e-PING ?") %> | |
| 60 | + | |
| 61 | + <%= label_tag "e_ping_true", "Yes" %> | |
| 62 | + <%= radio_button_tag("software[e_ping]", true, @software_info.e_ping)%> | |
| 63 | + <%= label_tag "e_ping_false", "No"%> | |
| 64 | + <%= radio_button_tag("software[e_ping]", false, !@software_info.e_ping)%> | |
| 65 | + </div> | |
| 66 | + | |
| 67 | + <div class="formfieldline"> | |
| 68 | + <%= label_tag _("Adherent to e-MAG ?") %> | |
| 69 | + | |
| 70 | + <%= label_tag "e_mag_true", "Yes"%> | |
| 71 | + <%= radio_button_tag("software[e_mag]", true, @software_info.e_mag)%> | |
| 72 | + <%= label_tag "e_mag_false", "No"%> | |
| 73 | + <%= radio_button_tag("software[e_mag]", false, !@software_info.e_mag)%> | |
| 74 | + </div> | |
| 75 | + | |
| 76 | + <div class="formfieldline"> | |
| 77 | + <%= label_tag _("Adherent to ICP-Brasil ?") %> | |
| 78 | + | |
| 79 | + <%= label_tag "icp_brasil_true", "Yes"%> | |
| 80 | + <%= radio_button_tag("software[icp_brasil]", true, @software_info.icp_brasil)%> | |
| 81 | + <%= label_tag "icp_brasil_false", "No"%> | |
| 82 | + <%= radio_button_tag("software[icp_brasil]", false, !@software_info.icp_brasil)%> | |
| 83 | + </div> | |
| 84 | + | |
| 85 | + <div class="formfieldline"> | |
| 86 | + <%= label_tag _("Adherent to e-ARQ ?") %> | |
| 87 | + | |
| 88 | + <%= label_tag "e_arq_true", "Yes"%> | |
| 89 | + <%= radio_button_tag("software[e_arq]", true, @software_info.e_arq)%> | |
| 90 | + <%= label_tag "e_arq_false", "No"%> | |
| 91 | + <%= radio_button_tag("software[e_arq]", false, !@software_info.e_arq)%> | |
| 92 | + </div> | |
| 93 | + | |
| 94 | + <div class="formfieldline"> | |
| 95 | + <%= label_tag _("Internacionalizable ?") %> | |
| 96 | + | |
| 97 | + <%= label_tag "intern_true", "Yes" %> | |
| 98 | + <%= radio_button_tag("software[intern]", true, @software_info.intern)%> | |
| 99 | + <%= label_tag "intern_false", "No"%> | |
| 100 | + <%= radio_button_tag("software[intern]", false, !@software_info.intern)%> | |
| 101 | + </div> | |
| 102 | + </div> | |
| 103 | +</div> | ... | ... |
views/software_communities_plugin_myprofile/edit_institution.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,119 @@ |
| 1 | +<h1><%= _('Edit Institution') %></h1> | |
| 2 | + | |
| 3 | +<% if environment.enabled?('admin_must_approve_new_communities') %> | |
| 4 | + <div class='explanation'> | |
| 5 | + <%= _("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 }%> | |
| 6 | + </div> | |
| 7 | +<%end %> | |
| 8 | + | |
| 9 | +<% unless flash[:errors].nil? %> | |
| 10 | +<div class="errorExplanation" id="errorExplanation"> | |
| 11 | + <h2> <%= _("Can`t create new Institution: #{flash[:errors].length} errors") %> </h2> | |
| 12 | + <ul> | |
| 13 | + <% flash[:errors].each do |error| %> | |
| 14 | + <li> <%= error %> </li> | |
| 15 | + <% end %> | |
| 16 | + </ul> | |
| 17 | +</div> | |
| 18 | +<% end %> | |
| 19 | + | |
| 20 | +<div id = 'create_institution_errors' class='errorExplanation hide-field'></div> | |
| 21 | + | |
| 22 | +<div> | |
| 23 | + <div class="fields-required"> | |
| 24 | + <span class="errorExplanation"><%= _("All fields with (*) are mandatory") %></span> | |
| 25 | + </div> | |
| 26 | + <br/> | |
| 27 | + <%= labelled_form_for :community,:html => { :multipart => true, :id=>"institution_form" } do |f| %> | |
| 28 | + <%= hidden_field_tag "edit_institution_page", true %> | |
| 29 | + <%= fields_for :institutions do |inst| %> | |
| 30 | + <span class=''> | |
| 31 | + <div class='formfield type-radio'> | |
| 32 | + <label> <%= _("Public Institution") %> | |
| 33 | + <%= radio_button_tag("institutions[type]", "PublicInstitution", (@institution.type == "PublicInstitution" ? true : false)) %> | |
| 34 | + </label> | |
| 35 | + | |
| 36 | + <label> | |
| 37 | + <%= _("Private Institution") %> | |
| 38 | + <%= radio_button_tag("institutions[type]" ,"PrivateInstitution", (@institution.type == "PrivateInstitution" ? true : false))%> | |
| 39 | + </label> | |
| 40 | + </div> | |
| 41 | + </span> | |
| 42 | + | |
| 43 | + <%= required f.text_field(:name, :value => @institution.community.name) %> | |
| 44 | + <%= content_tag :span, _("Institution name already exists"), :id=>"already_exists_text", :class=>"errorExplanation hide-field" %> | |
| 45 | + | |
| 46 | + <span class='required-field'> | |
| 47 | + <div class="formfield type-text"> | |
| 48 | + <%= inst.label "corporate_name", _("Corporate Name"), :class=>"formlabel" %> | |
| 49 | + <%= required inst.text_field(:corporate_name, :value => @institution.corporate_name) %> | |
| 50 | + </div> | |
| 51 | + </span> | |
| 52 | + | |
| 53 | + <%= required select_country(_('Country'), 'community', 'country', {:class => 'type-select', :id => "community_country"}, :selected => @institution.community.country) %> | |
| 54 | + | |
| 55 | + <span class='required-field'> | |
| 56 | + <div class="formfield"> | |
| 57 | + <label for="community_state" class="formlabel"><%= _("State") %></label> | |
| 58 | + <%= f.select(:state, @state_list.collect {|state| [state.name, state.name]}, :selected => @institution.community.state) %> | |
| 59 | + </div> | |
| 60 | + </span> | |
| 61 | + | |
| 62 | + <%= required f.text_field(:city, :value => @institution.community.city) %> | |
| 63 | + | |
| 64 | + | |
| 65 | + <span class='required-field'> | |
| 66 | + <div class="formfield type-text"> | |
| 67 | + <%= inst.label("cnpj" ,_("CNPJ"), :class=>"formlabel") %> | |
| 68 | + <%= required inst.text_field(:cnpj, :placeholder=>"99.999.999/9999-99", :class=>"intitution_cnpj_field", :value => @institution.cnpj) %> | |
| 69 | + </div> | |
| 70 | + </span> | |
| 71 | + | |
| 72 | + <span class='optional-field'> | |
| 73 | + <div class="formfield type-text"> | |
| 74 | + <%= hidden_field_tag "acronym_translate", _("Acronym") %> | |
| 75 | + <%= hidden_field_tag "fantasy_name_translate", _("Fantasy name") %> | |
| 76 | + <%= inst.label("acronym" ,_("Acronym"), :class=>"formlabel") %> | |
| 77 | + <%= inst.text_field(:acronym, :value => @institution.acronym) %> | |
| 78 | + </div> | |
| 79 | + </span> | |
| 80 | + | |
| 81 | + <span class='required-field public-institutions-fields'> | |
| 82 | + <div class="formfield type-text"> | |
| 83 | + <%= inst.label("governmental_sphere_id" ,_("Governmental Sphere:"), :class=>"formlabel") %> | |
| 84 | + <%= inst.select(:governmental_sphere, [[_("Select a Governmental Sphere"), 0]]|GovernmentalSphere.all.map {|s| [s.name, s.id]}, {:selected=>@institution.governmental_power_id})%> | |
| 85 | + </div> | |
| 86 | + </span> | |
| 87 | + | |
| 88 | + <span class='required-field public-institutions-fields'> | |
| 89 | + <div class="formfield type-text"> | |
| 90 | + <%= inst.label("governmental_power_id" ,_("Governmental Power:"), :class=>"formlabel") %> | |
| 91 | + <%= inst.select(:governmental_power, [[_("Select a Governmental Power"), 0]]|GovernmentalPower.all.map {|g| [g.name, g.id]}, {:selected=> @institution.governmental_sphere_id})%> | |
| 92 | + </div> | |
| 93 | + </span> | |
| 94 | + <span class='required-field public-institutions-fields'> | |
| 95 | + <div class="formfield type-text"> | |
| 96 | + <%= inst.label("juridical_nature_id" ,_("Juridical Nature:"), :class=>"formlabel") %> | |
| 97 | + <%= inst.select(:juridical_nature, [[_("Select a Juridical Nature"), 0]]|JuridicalNature.all.map {|j| [j.name, j.id]}, {:selected=> @institution.juridical_nature_id})%> | |
| 98 | + </div> | |
| 99 | + </span> | |
| 100 | + | |
| 101 | + <span class='required-field public-institutions-fields'> | |
| 102 | + <div class="formfield type-text"> | |
| 103 | + <%= _("SISP?") %> | |
| 104 | + <% if @show_sisp_field %> | |
| 105 | + <%= inst.label("sisp" ,_("Yes")) %> | |
| 106 | + <%= inst.radio_button(:sisp, true, :checked=>(@institution.sisp ? true : false)) %> | |
| 107 | + <%= inst.label("sisp" ,_("No")) %> | |
| 108 | + <%= inst.radio_button(:sisp, false, :checked=>(@institution.sisp ? false : true)) %> | |
| 109 | + <% else %> | |
| 110 | + <%= inst.label("sisp", _("No")) %> | |
| 111 | + <% end %> | |
| 112 | + </div> | |
| 113 | + </span> | |
| 114 | + <br /> | |
| 115 | + | |
| 116 | + <%= submit_button :save, _('Save') %> | |
| 117 | + <% end %> | |
| 118 | +<% end %> | |
| 119 | + | ... | ... |
views/software_communities_plugin_myprofile/edit_software.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,20 @@ |
| 1 | +<% tabs = [] %> | |
| 2 | + | |
| 3 | +<%= error_messages_for :software_info %> | |
| 4 | + | |
| 5 | +<%= labelled_form_for :software_communities_plugin_myprofile, :html => { :multipart => true, :id => 'edit-form' } do |f| %> | |
| 6 | + | |
| 7 | +<% tabs << {:title => _("Software"), :id => 'basic-info', | |
| 8 | + :content => (render :partial => 'main_software_editor_extras')} %> | |
| 9 | + | |
| 10 | +<% tabs << {:title => _("Specifications"), :id => 'especific-info', | |
| 11 | + :content => (render :partial => 'public_software_info')} %> | |
| 12 | + | |
| 13 | +<%= render_tabs(tabs) %> | |
| 14 | + | |
| 15 | +<% button_bar do %> | |
| 16 | + <%= submit_button(:save, _('Save')) %> | |
| 17 | + <%= submit_button(:save, _('Save and Configure Community')) %> | |
| 18 | + <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> | |
| 19 | +<% end %> | |
| 20 | +<% end %> | ... | ... |
views/software_communities_plugin_myprofile/new_software.html.erb
0 → 100644
| ... | ... | @@ -0,0 +1,70 @@ |
| 1 | +<%= stylesheet_link_tag('plugins/software_communities/mpog-software') %> | |
| 2 | + | |
| 3 | +<div class="software-step-info"> | |
| 4 | + <h3><%= _("Step 1/2 - Software Creation")%></h3> | |
| 5 | +</div> | |
| 6 | + | |
| 7 | +<h1><%= _('Creating new software') %></h1> | |
| 8 | + | |
| 9 | +<% if environment.enabled?('admin_must_approve_new_communities') %> | |
| 10 | + <div class='explanation'> | |
| 11 | + <%= _("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 }%> | |
| 12 | + </div> | |
| 13 | +<%end %> | |
| 14 | + | |
| 15 | +<% unless @errors.blank? %> | |
| 16 | +<div class="errorExplanation" id="errorExplanation"> | |
| 17 | + <h2> <%= _("Can`t create new software: #{@errors.length} errors") %> </h2> | |
| 18 | + <ul> | |
| 19 | + <% @errors.each do |error| %> | |
| 20 | + <li> <%= error %> </li> | |
| 21 | + <% end %> | |
| 22 | + </ul> | |
| 23 | +</div> | |
| 24 | +<% end %> | |
| 25 | + | |
| 26 | +<div> | |
| 27 | + <%= labelled_form_for :community, :html => { :multipart => true } do |f| %> | |
| 28 | + | |
| 29 | + <%= required_fields_message %> | |
| 30 | + | |
| 31 | + <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %> | |
| 32 | + | |
| 33 | + <div id='software-name-field' class='formfield'> | |
| 34 | + <span id='software-hostname'><%= environment.default_hostname %>/</span> | |
| 35 | + <%= required text_field(:community, :name, :size => 30, :maxlength => 100) %> | |
| 36 | + </div> | |
| 37 | + | |
| 38 | + <%= fields_for @software_info do |swf| %> | |
| 39 | + <div class="formfield type-text"> | |
| 40 | + <%= swf.label("finality" ,_("Finality"), :class=>"formlabel") %> | |
| 41 | + <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140) %> | |
| 42 | + </div> | |
| 43 | + <% end %> | |
| 44 | + | |
| 45 | + <div class="formfieldline"> | |
| 46 | + <%= render :partial => "license_info_fields", :locals => { | |
| 47 | + :license_version => "", | |
| 48 | + :license_id => "", | |
| 49 | + :another_version=>"", | |
| 50 | + :another_link=>"" | |
| 51 | + } %> | |
| 52 | + </div> | |
| 53 | + | |
| 54 | + <%= fields_for @software_info do |swf| %> | |
| 55 | + <div class="formfieldline formfield type-text"> | |
| 56 | + <%= swf.label "repository_url", _("Link to Repository: "), :class => "formlabel"%> | |
| 57 | + <%= swf.text_field :repository_link, :class => "improve_input_size" %> | |
| 58 | + </div> | |
| 59 | + <% end %> | |
| 60 | + | |
| 61 | + <%= hidden_field_tag('back_to', @back_to) %> | |
| 62 | + | |
| 63 | + <% button_bar do %> | |
| 64 | + <%= submit_button(:save, _('Create')) %> | |
| 65 | + <%= button(:cancel, _('Cancel'), @back_to ) %> | |
| 66 | + <% end %> | |
| 67 | + | |
| 68 | + <% end %> | |
| 69 | + | |
| 70 | +</div> | ... | ... |