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`
|
||||
* `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:
|
||||

|
||||
|
||||
#### 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:
|
||||

|
||||
|
||||
Reference in New Issue
Block a user