Add Translations docs

This commit is contained in:
taitus
2019-01-29 00:02:32 +01:00
parent 6d6d79bf38
commit f8ebeac773
8 changed files with 42 additions and 0 deletions

View File

@@ -21,3 +21,24 @@ Also these are the files where you can apply some customization:
* `app/assets/javascripts/custom.js`
* `Gemfile_custom`
* `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:
![Active interface translations](../../img/translations/interface_translations/active-interface-translations-en.png)
#### 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.
![Translations inteface enabled](../../img/translations/interface_translations/translations-interface-enabled-en.png)
* 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:
![Translations inteface enabled](../../img/translations/interface_translations/translations-interface-disabled-en.png)