From 5e4d07e2d2446f70c9927937f525cf81dbaa6c23 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 8 Jan 2015 18:02:33 -0300 Subject: [PATCH 1/4] Spanish translation and updated README --- README.rdoc | 12 ++++++---- config/locales/en.yml | 51 +++++++++++++++++++++---------------------- lang/es.yml | 2 ++ 3 files changed, 35 insertions(+), 30 deletions(-) create mode 100644 lang/es.yml diff --git a/README.rdoc b/README.rdoc index e151309..b9a719c 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,6 +1,11 @@ = Redmine Join Project -A Redmine plugin to allow non-members to join a project in Redmine +A Redmine plugin to allow non-members to join a project in Redmine. Now compatible with Redmine 2.x. + +Supported languages: + +* English +* Spanish == Features @@ -18,11 +23,10 @@ A copy of the plugin can be downloaded from {Little Stream Software}[https://pro == Installation and Setup 1. Follow the Redmine plugin installation steps at: http://www.redmine.org/wiki/redmine/Plugins -2. Run the plugin migrations +rake db:migrate_plugins+ +2. Run the plugin migrations "+rake db:migrate_plugins+" or "bundle exec rake redmine:plugins:migrate RAILS_ENV=production" 3. Restart your Redmine web servers (e.g. mongrel, thin, mod_rails) 4. Login to Redmine as an Administrator -5. Configure the permissions for the plugin: 'Approve Project Join Requests' -5. Configure the plugin (below) +5. Configure the plugin (below) going to /settings/plugin/redmine_simple_join_project 6. Setup any projects that allow non-members to join == Plugin configuration diff --git a/config/locales/en.yml b/config/locales/en.yml index 16998c3..9c07dca 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,27 +1,26 @@ -# English strings go here for Rails i18n -en: - join_project_text_join_project: Contributing to this Project - join_project_text_join_this_project: Contribute to this project - join_project_text_settings_configuration: "Configuration" - join_project_settings_help: "Select which roles each new project member should receive by default" - join_project_missing_roles: "Missing Role. Please create at least one first." - join_project_error_cant_join: "Unable to join the project." - join_project_successful_request: "Your request to join was added successfully. The project manager(s) have been notified." - join_project_successful_decline: "Declined join request" - join_project_setting_email_content: "Email body text" - join_project_text_accept_request: "Accept request" - join_project_text_decline_request: "Decline request" - join_project_text_project_join_requests: "Project Join Requests" - join_project_text_request_to_join_subject: Request to Join - join_project_text_declined_request_to_join_this_project_subject: Declined request to join to this project - join_project_text_accepted_request_to_join_this_project_subject: Accepted request to join to this project - join_project_text_your_request_to_join_was_declined: "Your request to join %{project} was declined." - join_project_text_your_request_to_join_was_accepted: "Your request to join %{project} was accepted." - join_project_unlogged_info: | - If you are interested in contributing to this project, you may request to join it. In order to do that, you must sign in first. - join_project_log_in_link: Sign in - join_project_request_to_join_this_project_info: | - If you want to contribute to this project, use the link below to request to join. Your request will - be sent to the project manager for approval. - join_project_request_to_join_this_project_link: Request to join this project +# Spanish strings go here for Rails i18n +es: + join_project_text_join_project: "Colaborar con este proyecto" + join_project_text_join_this_project: "Colaborar con este proyecto" + join_project_text_settings_configuration: "Configuración" + join_project_settings_help: "Elige que roles debe recibir un nuevo miembro del proyecto por defecto" + join_project_missing_roles: "No hay roles. Debe crear al menos un rol" + join_project_error_cant_join: "No se puede sumar al proyecto." + join_project_successful_request: "Tu solicitud para sumarte a este prouecto fue enviada. El/los administradores del mismo serán notificados." + join_project_successful_decline: "Solicitud rechazada" + join_project_setting_email_content: "Cuerpo del mensaje" + join_project_text_accept_request: "Aceptar solicitud" + join_project_text_decline_request: "Rechazar solicitud" + join_project_text_project_join_requests: "Solicitudes pendientes" + join_project_text_request_to_join_subject: "Request to Join" + join_project_text_declined_request_to_join_this_project_subject: "Solicitud para sumarse a proyecto fue rechazada" + join_project_text_accepted_request_to_join_this_project_subject: "Accepted request to join to this project" + join_project_text_your_request_to_join_was_declined: "Tu solicitud para sumarte al proyecto %{project} fue rechazada." + join_project_text_your_request_to_join_was_accepted: "Tu solicitud para sumarte al proyecto %{project} fue aceptada." + join_project_unlogged_info: "| + Si estar interesado en contribuir con este proyecto, puedes solicitar ser incorporado al mismo. Para hacerlo, primero debes ingresar con tu usuario." + join_project_log_in_link: "Ingresar ahora" + join_project_request_to_join_this_project_info: "| + Si estar interesado en contribuir con este proyecto, puedes solicitar ser incorporado al mismo usando el siguiente enlace. Tu solicitud será evaluada por el administrador del proyecto." + join_project_request_to_join_this_project_link: "Quiero sumarme a este proyecto" diff --git a/lang/es.yml b/lang/es.yml new file mode 100644 index 0000000..a0e3acc --- /dev/null +++ b/lang/es.yml @@ -0,0 +1,2 @@ +# English strings go here +my_label: "Mi etiqueta" From 7a6114e90c3604bee6cc240e335adbe6a3d09e90 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 8 Jan 2015 18:05:22 -0300 Subject: [PATCH 2/4] added missing encoding declaration --- Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Rakefile b/Rakefile index c23e217..c444ef2 100755 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,4 @@ +#encoding: utf-8 #!/usr/bin/env ruby require 'redmine_plugin_support' From b993c218a21ca6b214561ae8a0b5e5cf6134004b Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 8 Jan 2015 18:09:01 -0300 Subject: [PATCH 3/4] added missing encoding declaration --- init.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/init.rb b/init.rb index c62438b..f127b2d 100644 --- a/init.rb +++ b/init.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 require 'redmine' require 'simple_join_project/hooks/layout_hooks' From a72d826f88137680a3326553bf4b726efbe09b59 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 8 Jan 2015 18:13:14 -0300 Subject: [PATCH 4/4] fixed error of translation file name --- config/locales/en.yml | 43 ++++++++++++++++++++++--------------------- config/locales/es.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 21 deletions(-) create mode 100644 config/locales/es.yml diff --git a/config/locales/en.yml b/config/locales/en.yml index 9c07dca..105bd1d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,26 +1,27 @@ -# Spanish strings go here for Rails i18n -es: - join_project_text_join_project: "Colaborar con este proyecto" - join_project_text_join_this_project: "Colaborar con este proyecto" - join_project_text_settings_configuration: "Configuración" - join_project_settings_help: "Elige que roles debe recibir un nuevo miembro del proyecto por defecto" - join_project_missing_roles: "No hay roles. Debe crear al menos un rol" - join_project_error_cant_join: "No se puede sumar al proyecto." - join_project_successful_request: "Tu solicitud para sumarte a este prouecto fue enviada. El/los administradores del mismo serán notificados." - join_project_successful_decline: "Solicitud rechazada" - join_project_setting_email_content: "Cuerpo del mensaje" - join_project_text_accept_request: "Aceptar solicitud" - join_project_text_decline_request: "Rechazar solicitud" - join_project_text_project_join_requests: "Solicitudes pendientes" +# English strings go here for Rails i18n +en: + join_project_text_join_project: "Contributing to this Project" + join_project_text_join_this_project: "Contribute to this project" + join_project_text_settings_configuration: "Configuration" + join_project_settings_help: "Select which roles each new project member should receive by default" + join_project_missing_roles: "Missing Role. Please create at least one first." + join_project_error_cant_join: "Unable to join the project." + join_project_successful_request: "Your request to join was added successfully. The project manager(s) have been notified." + join_project_successful_decline: "Declined join request" + join_project_setting_email_content: "Email body text" + join_project_text_accept_request: "Accept request" + join_project_text_decline_request: "Decline request" + join_project_text_project_join_requests: "Project Join Requests" join_project_text_request_to_join_subject: "Request to Join" - join_project_text_declined_request_to_join_this_project_subject: "Solicitud para sumarse a proyecto fue rechazada" + join_project_text_declined_request_to_join_this_project_subject: "Declined request to join to this project" join_project_text_accepted_request_to_join_this_project_subject: "Accepted request to join to this project" - join_project_text_your_request_to_join_was_declined: "Tu solicitud para sumarte al proyecto %{project} fue rechazada." - join_project_text_your_request_to_join_was_accepted: "Tu solicitud para sumarte al proyecto %{project} fue aceptada." + join_project_text_your_request_to_join_was_declined: "Your request to join %{project} was declined." + join_project_text_your_request_to_join_was_accepted: "Your request to join %{project} was accepted." join_project_unlogged_info: "| - Si estar interesado en contribuir con este proyecto, puedes solicitar ser incorporado al mismo. Para hacerlo, primero debes ingresar con tu usuario." - join_project_log_in_link: "Ingresar ahora" + If you are interested in contributing to this project, you may request to join it. In order to do that, you must sign in first." + join_project_log_in_link: "Sign in" join_project_request_to_join_this_project_info: "| - Si estar interesado en contribuir con este proyecto, puedes solicitar ser incorporado al mismo usando el siguiente enlace. Tu solicitud será evaluada por el administrador del proyecto." - join_project_request_to_join_this_project_link: "Quiero sumarme a este proyecto" + If you want to contribute to this project, use the link below to request to join. Your request will + be sent to the project manager for approval." + join_project_request_to_join_this_project_link: "Request to join this project" diff --git a/config/locales/es.yml b/config/locales/es.yml new file mode 100644 index 0000000..9c07dca --- /dev/null +++ b/config/locales/es.yml @@ -0,0 +1,26 @@ +# Spanish strings go here for Rails i18n +es: + join_project_text_join_project: "Colaborar con este proyecto" + join_project_text_join_this_project: "Colaborar con este proyecto" + join_project_text_settings_configuration: "Configuración" + join_project_settings_help: "Elige que roles debe recibir un nuevo miembro del proyecto por defecto" + join_project_missing_roles: "No hay roles. Debe crear al menos un rol" + join_project_error_cant_join: "No se puede sumar al proyecto." + join_project_successful_request: "Tu solicitud para sumarte a este prouecto fue enviada. El/los administradores del mismo serán notificados." + join_project_successful_decline: "Solicitud rechazada" + join_project_setting_email_content: "Cuerpo del mensaje" + join_project_text_accept_request: "Aceptar solicitud" + join_project_text_decline_request: "Rechazar solicitud" + join_project_text_project_join_requests: "Solicitudes pendientes" + join_project_text_request_to_join_subject: "Request to Join" + join_project_text_declined_request_to_join_this_project_subject: "Solicitud para sumarse a proyecto fue rechazada" + join_project_text_accepted_request_to_join_this_project_subject: "Accepted request to join to this project" + join_project_text_your_request_to_join_was_declined: "Tu solicitud para sumarte al proyecto %{project} fue rechazada." + join_project_text_your_request_to_join_was_accepted: "Tu solicitud para sumarte al proyecto %{project} fue aceptada." + join_project_unlogged_info: "| + Si estar interesado en contribuir con este proyecto, puedes solicitar ser incorporado al mismo. Para hacerlo, primero debes ingresar con tu usuario." + join_project_log_in_link: "Ingresar ahora" + join_project_request_to_join_this_project_info: "| + Si estar interesado en contribuir con este proyecto, puedes solicitar ser incorporado al mismo usando el siguiente enlace. Tu solicitud será evaluada por el administrador del proyecto." + join_project_request_to_join_this_project_link: "Quiero sumarme a este proyecto" +