Add Translations docs
This commit is contained in:
@@ -21,3 +21,24 @@ Also these are the files where you can apply some customization:
|
|||||||
* `app/assets/javascripts/custom.js`
|
* `app/assets/javascripts/custom.js`
|
||||||
* `Gemfile_custom`
|
* `Gemfile_custom`
|
||||||
* `config/application.custom.rb`
|
* `config/application.custom.rb`
|
||||||
|
|
||||||
|
## Translation interface
|
||||||
|
|
||||||
|
The aim of this functionality is to allow the introduction of all the dynamic contents of the application (proposals, debates, budgetary investments and comments) in different languages. From the administration panel you can activate or deactivate the translation interface.
|
||||||
|
|
||||||
|
#### Enable module
|
||||||
|
To activate the functionality you must follow 2 steps:
|
||||||
|
1. Execute the following command `bin/rake settings:create_translation_interface_setting RAILS_ENV=production`
|
||||||
|
1. Accessing through the administration panel of your application to the section **Configuration > Funcionalidades** and activate the module **Translation Interface** as you can see below:
|
||||||
|

|
||||||
|
|
||||||
|
#### Use Cases
|
||||||
|
|
||||||
|
* When the translation interface is active:
|
||||||
|
As we can see in the image appears a selector to add languages where each time we select one appears in the selector of languages in use and the translatable fields appears with a blue background. Also we have a button `Remove language` to delete a language in case of needing it.
|
||||||
|
This feature is visible both for the creation pages and for the editing pages.
|
||||||
|

|
||||||
|
|
||||||
|
* When the translation interface is disabled:
|
||||||
|
As you can see in the image when this feature is deactivated, the current rendering is maintained in both the creation and edition forms:
|
||||||
|

|
||||||
|
|||||||
@@ -21,3 +21,24 @@ Aparte de estos directorios también cuentas con ciertos ficheros para:
|
|||||||
* `app/assets/javascripts/custom.js`
|
* `app/assets/javascripts/custom.js`
|
||||||
* `Gemfile_custom`
|
* `Gemfile_custom`
|
||||||
* `config/application.custom.rb`
|
* `config/application.custom.rb`
|
||||||
|
|
||||||
|
## Interfaz de traducción
|
||||||
|
|
||||||
|
Esta funcionalidad tiene como objetivo permitir introducir todos los contenidos dinámicos de la aplicación (propuestas, debates, inversiones presupuestarias y comentarios) en diferentes idiomas. Desde el panel de administración se puede activar o desactivar la interfaz de traducción.
|
||||||
|
|
||||||
|
#### Activar funcionalidad
|
||||||
|
Para activar la funcionalidad deberá realizar 2 pasos:
|
||||||
|
1. Ejecutar el siguiente comando `bin/rake settings:create_translation_interface_setting RAILS_ENV=production`
|
||||||
|
1. Acceder a través del panel de administración de su aplicación a la sección **Configuración > Funcionalidades** y activar el módulo de **Interfaz de traducción** como se puede ver a continuación:
|
||||||
|

|
||||||
|
|
||||||
|
#### Funcionalidad
|
||||||
|
Dependiendo de si activamos o desactivamos el módulo de **Interfaz de traducción** veremos los formularios accesibles por el usuario de la siguiente manera:
|
||||||
|
* Cuando la interfaz de traducción esta activa:
|
||||||
|
Como podemos ver en la imagen aparece un selector para añadir idiomas donde cada vez que seleccionamos uno aparece en el selector de idiomas en uso y se visualizan los campos traducibles con un fondo azul. También disponemos de un botón `Eliminar idioma` para eliminar un idioma en caso de necesitarlo.
|
||||||
|
Esta funcionalidad está visible tanto para las páginas de creación como para las páginas de edición.
|
||||||
|

|
||||||
|
|
||||||
|
* Cuando la interfaz de traducción esta desactivada:
|
||||||
|
Como se puede ver en la imagen al tener desactivada esta funcionalidad se mantiene la renderización actual en los formularios tanto de creación como de edición:
|
||||||
|

|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
Reference in New Issue
Block a user