decidim-dev 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/locales/ar-SA.yml +4 -4
- data/config/locales/ca.yml +3 -3
- data/config/locales/es.yml +2 -2
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +10 -4
- data/lib/decidim/dev/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d31484ec7fa3febbe6d216f79bf75490c3565c1adae28dfbd2f1d6b89b3afab
|
|
4
|
+
data.tar.gz: d0f9ce29bddd1c8ce2a1196d4eab5220eaa0358f6ebb3ba7719315a39e07a29c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6aaceb320cb08bb50f94780a3e29642fa3c044292eea27df8e18df1d6a83994a3ed0a4601196a65b43fbb6884b59d2d4507fa450e7eeec7af6889e326d3848ea
|
|
7
|
+
data.tar.gz: 2df1535febc62701a992af50202ee469242a52b291934312cd5752dd9b97790f45d8565dba542f386feb39f42d0f809b768c72c8f60705f869096356dfd2f0d6
|
data/config/locales/ar-SA.yml
CHANGED
|
@@ -4,8 +4,8 @@ ar:
|
|
|
4
4
|
dummy_resource:
|
|
5
5
|
created_at: أنشئت في
|
|
6
6
|
field: مجالي
|
|
7
|
-
start_date: تاريخ
|
|
8
|
-
title:
|
|
7
|
+
start_date: تاريخ البداية
|
|
8
|
+
title: العنوان
|
|
9
9
|
updated_at: تم التحديث في
|
|
10
10
|
decidim:
|
|
11
11
|
dummy:
|
|
@@ -20,10 +20,10 @@ ar:
|
|
|
20
20
|
description: يحصل المشاركون على هذه الشارة عن طريق إنشاء اختبارات.
|
|
21
21
|
description_another: قام هذا المشارك بإنشاء %{score} اختبار.
|
|
22
22
|
description_own: لقد أنشأت %{score} اختبارات.
|
|
23
|
-
name:
|
|
23
|
+
name: الاختبارات
|
|
24
24
|
next_level_in: إنشاء %{score} اختبارات أخرى للوصول إلى المستوى التالي!
|
|
25
25
|
unearned_another: لم ينشئ هذا المشارك أي اختبارات حتى الآن.
|
|
26
|
-
unearned_own: لم تنشئ اختبارات بعد.
|
|
26
|
+
unearned_own: لم تنشئ أية اختبارات بعد.
|
|
27
27
|
pages:
|
|
28
28
|
home:
|
|
29
29
|
statistics:
|
data/config/locales/ca.yml
CHANGED
|
@@ -11,7 +11,7 @@ ca:
|
|
|
11
11
|
dummy:
|
|
12
12
|
admin:
|
|
13
13
|
exports:
|
|
14
|
-
dummies:
|
|
14
|
+
dummies: Proves
|
|
15
15
|
gamification:
|
|
16
16
|
badges:
|
|
17
17
|
test:
|
|
@@ -19,7 +19,7 @@ ca:
|
|
|
19
19
|
- Utilitza un entorn de prova per decidim.
|
|
20
20
|
description: Les participants obtenen aquesta insígnia creant proves.
|
|
21
21
|
description_another: Aquesta participant ha creat %{score} proves.
|
|
22
|
-
description_own:
|
|
22
|
+
description_own: Has creat %{score} proves.
|
|
23
23
|
name: Proves
|
|
24
24
|
next_level_in: Crea %{score} més proves per arribar al següent nivell!
|
|
25
25
|
unearned_another: Aquesta participant encara no ha creat cap prova.
|
|
@@ -37,4 +37,4 @@ ca:
|
|
|
37
37
|
dummies_count_medium: Prova mig
|
|
38
38
|
resource_links:
|
|
39
39
|
test_link:
|
|
40
|
-
dummy_resource_dummy:
|
|
40
|
+
dummy_resource_dummy: Prova relacionada
|
data/config/locales/es.yml
CHANGED
|
@@ -11,7 +11,7 @@ es:
|
|
|
11
11
|
dummy:
|
|
12
12
|
admin:
|
|
13
13
|
exports:
|
|
14
|
-
dummies:
|
|
14
|
+
dummies: Pruebas
|
|
15
15
|
gamification:
|
|
16
16
|
badges:
|
|
17
17
|
test:
|
|
@@ -37,4 +37,4 @@ es:
|
|
|
37
37
|
dummies_count_medium: Dummies media
|
|
38
38
|
resource_links:
|
|
39
39
|
test_link:
|
|
40
|
-
dummy_resource_dummy:
|
|
40
|
+
dummy_resource_dummy: Prueba relacionada
|
|
@@ -21,8 +21,8 @@ module TranslationHelpers
|
|
|
21
21
|
#
|
|
22
22
|
# field - the field that holds the translations
|
|
23
23
|
# upcase - a boolean to indicate whether the string must be checked upcased or not.
|
|
24
|
-
def have_i18n_content(field, upcase: false)
|
|
25
|
-
have_content(i18n_content(field, upcase: upcase))
|
|
24
|
+
def have_i18n_content(field, upcase: false, strip_tags: false)
|
|
25
|
+
have_content(i18n_content(field, upcase: upcase, strip_tags: strip_tags))
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
# Checks that the current page doesn't have some translated content. It strips
|
|
@@ -92,8 +92,14 @@ module TranslationHelpers
|
|
|
92
92
|
#
|
|
93
93
|
# field - the field that holds the translations
|
|
94
94
|
# upcase - a boolean to indicate whether the string must be checked upcased or not.
|
|
95
|
-
def i18n_content(field, upcase: false)
|
|
96
|
-
content =
|
|
95
|
+
def i18n_content(field, upcase: false, strip_tags: false)
|
|
96
|
+
content = translated(field, locale: I18n.locale)
|
|
97
|
+
content = if strip_tags
|
|
98
|
+
Decidim::ApplicationController.helpers.strip_tags(content)
|
|
99
|
+
else
|
|
100
|
+
stripped(content)
|
|
101
|
+
end
|
|
102
|
+
|
|
97
103
|
upcase ? content.upcase : content
|
|
98
104
|
end
|
|
99
105
|
end
|
data/lib/decidim/dev/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.17.
|
|
4
|
+
version: 0.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josep Jaume Rey Peroy
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-03
|
|
13
|
+
date: 2019-06-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: capybara
|
|
@@ -32,14 +32,14 @@ dependencies:
|
|
|
32
32
|
requirements:
|
|
33
33
|
- - '='
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: 0.17.
|
|
35
|
+
version: 0.17.1
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - '='
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 0.17.
|
|
42
|
+
version: 0.17.1
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: factory_bot_rails
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|