decidim-term_customizer 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/app/controllers/decidim/term_customizer/admin/translation_sets_controller.rb +1 -1
- data/app/controllers/decidim/term_customizer/admin/translations_controller.rb +1 -0
- data/app/forms/decidim/term_customizer/admin/translation_form.rb +1 -1
- data/app/views/decidim/term_customizer/admin/translations/index.html.erb +4 -0
- data/config/locales/en.yml +2 -1
- data/config/locales/fi.yml +3 -2
- data/config/locales/sv.yml +2 -1
- data/lib/decidim/term_customizer/translation_store.rb +4 -0
- data/lib/decidim/term_customizer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c56c7da03b27c3f194772872e09e573a25bf780149a6f1486baf8577fc991e6a
|
4
|
+
data.tar.gz: fc23655eee6230889d6f859458e5a46b8d636a09d61f8749cb186ada121c3f46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a205919d276b877c7cbd4b94edf21e6bfebffd62d5c94f1a458cfe0d3147c11b92d14801e96bbb6dad02b37a4595fc02a4dfcdbec953b6b71e46e0ab45ef42f4
|
7
|
+
data.tar.gz: bd83fd4e13a93a15a71ba2dbffcfe23731d9c75541ff0bf76e930f933ed43db853457658fbc246702148c6873787266011c6cce8e54abbe2a838a6d146bcc0fa
|
data/README.md
CHANGED
@@ -27,9 +27,12 @@ Example use cases for this module:
|
|
27
27
|
- Admin wants to change the term "debate" to "discussion" for all assemblies
|
28
28
|
within the system.
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
You can add the term customizations using either of the following methods:
|
31
|
+
|
32
|
+
- Search the terms from all the system translations matching the term itself or
|
33
|
+
the translation keys. This method is available in the "Add multiple" view.
|
34
|
+
- Add the term customizations for specific translation keys in case you have the
|
35
|
+
technical knowledge to find out the translation keys.
|
33
36
|
|
34
37
|
## Installation
|
35
38
|
|
@@ -62,7 +65,9 @@ To keep the gem up to date, you can use the commands above to also update it.
|
|
62
65
|
active.
|
63
66
|
- Save the set.
|
64
67
|
- Add the translations to the set which you want to customize within the defined
|
65
|
-
scope.
|
68
|
+
scope. You can either add specific translation keys manually or search the
|
69
|
+
translations from all the system's translations using the translation terms or
|
70
|
+
keys.
|
66
71
|
|
67
72
|
## Contributing
|
68
73
|
|
@@ -21,6 +21,7 @@
|
|
21
21
|
<thead>
|
22
22
|
<tr>
|
23
23
|
<th><%= t("models.translations.fields.key", scope: "decidim.admin") %></th>
|
24
|
+
<th><%= t("models.translations.fields.original_term", scope: "decidim.admin") %></th>
|
24
25
|
<th><%= t("models.translations.fields.term", scope: "decidim.admin") %></th>
|
25
26
|
<th></th>
|
26
27
|
</tr>
|
@@ -31,6 +32,9 @@
|
|
31
32
|
<td>
|
32
33
|
<%= translation.key %>
|
33
34
|
</td>
|
35
|
+
<td>
|
36
|
+
<%= @directory.translations.term(translation.key) %>
|
37
|
+
</td>
|
34
38
|
<td>
|
35
39
|
<%= translation.value %>
|
36
40
|
</td>
|
data/config/locales/en.yml
CHANGED
data/config/locales/fi.yml
CHANGED
@@ -2,7 +2,7 @@ fi:
|
|
2
2
|
decidim:
|
3
3
|
admin:
|
4
4
|
actions:
|
5
|
-
add_multiple_translations:
|
5
|
+
add_multiple_translations: Lisää useita
|
6
6
|
back: Takaisin
|
7
7
|
new_translation_set: Uusi käännöspaketti
|
8
8
|
new_translation: Uusi käännös
|
@@ -13,7 +13,8 @@ fi:
|
|
13
13
|
translations:
|
14
14
|
fields:
|
15
15
|
key: Avain
|
16
|
-
|
16
|
+
original_term: Alkuperäinen termi
|
17
|
+
term: Kustomoitu termi
|
17
18
|
titles:
|
18
19
|
translation_sets: Käännöspaketit
|
19
20
|
translations: Käännökset
|
data/config/locales/sv.yml
CHANGED