Consul Bot
52b040c884
New translations responders.yml (Albanian)
2018-11-06 13:14:19 +01:00
Consul Bot
fce267d78b
New translations officing.yml (Albanian)
2018-11-06 13:14:18 +01:00
Consul Bot
d9f9bd7ec7
New translations settings.yml (Albanian)
2018-11-06 13:14:17 +01:00
Consul Bot
66b65f0752
New translations documents.yml (Albanian)
2018-11-06 13:14:16 +01:00
Consul Bot
677835bb1f
New translations management.yml (Albanian)
2018-11-06 13:14:15 +01:00
Consul Bot
f6c4dd4c5e
New translations admin.yml (Albanian)
2018-11-06 13:14:13 +01:00
Consul Bot
27f1a64802
New translations general.yml (Albanian)
2018-11-06 13:14:07 +01:00
Consul Bot
aa7e2ccda9
New translations kaminari.yml (Albanian)
2018-11-06 13:14:05 +01:00
Consul Bot
3788bc9446
New translations community.yml (Albanian)
2018-11-06 13:14:04 +01:00
Consul Bot
7ac04c4194
New translations social_share_button.yml (Albanian)
2018-11-06 13:14:03 +01:00
Consul Bot
ec91bdfdff
New translations valuation.yml (Albanian)
2018-11-06 13:14:02 +01:00
Consul Bot
22603388b2
New translations activerecord.yml (Albanian)
2018-11-06 13:14:01 +01:00
Consul Bot
85e09715fc
New translations verification.yml (Albanian)
2018-11-06 13:13:59 +01:00
Consul Bot
10bc138f94
New translations activemodel.yml (Albanian)
2018-11-06 13:13:57 +01:00
Consul Bot
380e6b1d6a
New translations mailers.yml (Albanian)
2018-11-06 13:13:57 +01:00
Consul Bot
86c9a166cc
New translations devise_views.yml (Albanian)
2018-11-06 13:13:56 +01:00
Consul Bot
0afaf6f7bd
New translations pages.yml (Albanian)
2018-11-06 13:13:54 +01:00
Consul Bot
afe109fb18
New translations devise.yml (Albanian)
2018-11-06 13:13:53 +01:00
Consul Bot
b7b683d27d
New translations budgets.yml (Albanian)
2018-11-06 13:13:52 +01:00
Consul Bot
5a81923d99
New translations legislation.yml (Albanian)
2018-11-06 13:13:51 +01:00
Consul Bot
d2388dec54
New translations moderation.yml (Albanian)
2018-11-06 13:12:17 +01:00
Consul Bot
bc7be0ee7b
New translations kaminari.yml (Swedish)
2018-11-06 13:10:38 +01:00
Consul Bot
c17b739068
New translations community.yml (Swedish)
2018-11-06 13:10:37 +01:00
Consul Bot
d173e39abb
New translations social_share_button.yml (Swedish)
2018-11-06 13:10:36 +01:00
Consul Bot
b1e77e07c6
New translations valuation.yml (Swedish)
2018-11-06 13:10:34 +01:00
Consul Bot
f03f8f529f
New translations verification.yml (Swedish)
2018-11-06 13:10:33 +01:00
Consul Bot
db7c8cc915
New translations activemodel.yml (Swedish)
2018-11-06 13:10:32 +01:00
Consul Bot
f1cd3f3713
New translations mailers.yml (Swedish)
2018-11-06 13:10:31 +01:00
Consul Bot
c2ca684409
New translations devise_views.yml (Swedish)
2018-11-06 13:10:30 +01:00
Consul Bot
137c16a68b
New translations pages.yml (Swedish)
2018-11-06 13:10:29 +01:00
Consul Bot
078ae17cff
New translations devise.yml (Swedish)
2018-11-06 13:10:28 +01:00
Consul Bot
73e6639d28
New translations budgets.yml (Swedish)
2018-11-06 13:10:27 +01:00
Consul Bot
6e9cc6972f
New translations moderation.yml (Swedish)
2018-11-06 13:10:26 +01:00
Consul Bot
daf850d42b
New translations rails.yml (Swedish)
2018-11-06 13:10:25 +01:00
Consul Bot
c7c9c42b58
New translations activerecord.yml (Swedish)
2018-11-06 13:10:22 +01:00
Consul Bot
3c5642004d
New translations admin.yml (Spanish)
2018-11-06 13:09:24 +01:00
Consul Bot
e3a88a7b05
New translations activerecord.yml (Spanish)
2018-11-06 13:09:17 +01:00
Consul Bot
afa26f4df5
New translations rails.yml (Albanian)
2018-11-06 13:06:43 +01:00
voodoorai2000
f79f219f2c
Fix date translations
2018-11-06 11:42:51 +01:00
decabeza
cb2b2ac965
Merge branch 'master' into i18n-uptade-crowdin
2018-11-05 19:07:37 +01:00
decabeza
816f0c55c0
Adds new social share partial for proposals
2018-11-05 18:20:51 +01:00
voodoorai2000
ac7d1ebf27
Increase delayed jobs max run time
2018-11-05 18:20:50 +01:00
voodoorai2000
bfe9ae6ab0
Add counter of emails sent to newsletter preview
2018-11-05 18:20:50 +01:00
Javi Martín
0c1228a7ce
Fix crash with no translation for default locale
...
When we were visiting a page showing the content of a record which uses
globalize and our locale was the default one and there was no
translation for the default locale, the application was crashing in some
places because there are no fallbacks for the default locale.
For example, when visiting a legislation process, the line with
`CGI.escape(title)` was crashing because `title` was `nil` for the
default locale.
We've decided to solve this issue by using any available translations as
globalize fallbacks instead of showing a 404 error or a translation
missing error because these solutions would (we thinkg) either require
modifying many places in the application or making the translatable
logic even more complex.
Initially we tried to add this solution to an initializer, but it must
be called after initializing the application so I18n.fallbacks[locale]
gets the value defined in config.i18n.fallbacks.
Also note the line:
fallbacks[locale] = I18n.fallbacks[locale] + I18n.available_locales
Doesn't mention `I18n.default_locale` because the method
`I18n.fallbacks[locale]` automatically adds the default locale.
2018-11-05 18:20:50 +01:00
Javi Martín
1ab3b7f42d
Don't force translations for the current locale
...
Globalize creates a translation for the current locale, and the only way
I've found to change this behaviour is to monkey-patch it.
The original code uses `translation.locale` instead of
`Globalize.locale`. Since `translation.locale` loads the translation
with empty attributes. It both makes the record invalid if there are
validations and it makes it almost impossible to create a record with
translations which don't include the current locale.
See also the following convertations:
https://github.com/globalize/globalize/pull/328
https://github.com/globalize/globalize/issues/468
https://github.com/globalize/globalize/pull/578
https://github.com/shioyama/mobility/wiki/Migrating-from-Globalize#blank-translations
2018-11-05 18:20:50 +01:00
Javi Martín
981b13ac9b
Update widget cards translatable fields
2018-11-05 18:20:50 +01:00
Javi Martín
e400cb8eae
Update site customization pages translatable fields
2018-11-05 18:20:50 +01:00
Javi Martín
e9a5f03089
Update poll question answers translatable fields
...
We needed to bring back support for CKEditor in our translatable form,
which we had temporarily remove.
And now we support CKEditor in our translatable specs, and so we can
remove the duplicated specs for poll question answers.
2018-11-05 18:20:50 +01:00
Javi Martín
292609e7ac
Update poll questions translatable fields
...
We need to replace ".title=" by ".title_#{locale}=" in one place because
for some reason globalize builds a new translation record when using the
latter but it doesn't build one when using the former.
2018-11-05 18:20:25 +01:00
Javi Martín
6478bb70c2
Update polls translatable fields
...
The `:name` attribute is still allowed in the controller because some
forks use it when creating a poll from a budget.
2018-11-05 18:20:25 +01:00