Commit Graph

11379 Commits

Author SHA1 Message Date
voodoorai2000
bc0479f9c3 Fix pluralization spec when using different default locale
This spec was failing due to using :es as the default_locale in application.rb[1], but using :en as the default_locale in the test environment[2]

The fallback rules where getting a little confused and not including the default locale, for the test environment, in the fallback rules

With this commit we are making sure that rule is created, as it would in a production environment that uses the default_locale in application.rb

[1] https://github.com/AyuntamientoMadrid/consul/blob/master/config/application.rb#L22

[2] https://github.com/AyuntamientoMadrid/consul/blob/master/spec/rails_helper.rb#L15
2018-11-05 18:19:50 +01:00
voodoorai2000
2c34a8b4e2 Remove fallback rules for locales not yet added 2018-11-05 18:19:50 +01:00
voodoorai2000
56e85ff692 Remove duplicate language names 2018-11-05 18:19:50 +01:00
voodoorai2000
9fcd2598c1 Add fallback i18n locales
All other languages will fallback to the default locale

Rails also, seems to pick up dialect fallbacks, for locales with this format: es-CO, es-PE, etc, which will fallback to "es", so that is great 😌
2018-11-05 18:16:58 +01:00
voodoorai2000
df32a5407f Add all available locales
Only addding those with significant number of translations
2018-11-05 18:16:58 +01:00
voodoorai2000
5117f3eb37 Add all language names 2018-11-05 18:16:58 +01:00
Javi Martín
82187a9c1a Skip spec before doing any requests
Skipping a spec in the middle of it, particularly after doing some
requests, caused Capybara to keep using the same driver in the following
spec.

Since the current spec uses the JavaScript driver, the next test would
also use the JavaScript driver, causing apparently random failures if
that test was supposed to use the Rack driver.
2018-11-05 18:05:49 +01:00
kreopelle
e357ff2236 Change spelling for constant to TITLE_LENGTH_RANGE, instead of TITLE_LEGHT_RANGE 2018-11-05 18:05:49 +01:00
voodoorai2000
b49b20a6bb Fix locale folder names
There seems to be some differences between the folder name and the locale name used in the files themselves.

For example: the folder might have been called "de-DE", for German, but the files use one "de"

And thus translations where not being displayed

Using the locale key in the files and modifying the folder name if neccesary, let's see what happens in the next Crowdin pull, might need to review more thoroughly why this is happening (maybe due to custom settings in Crowdin)
2018-11-05 18:05:49 +01:00
voodoorai2000
c46ee1175b Fix flaky spec for translations
This spec was causing a side effect on another spec[2], making it fail 😌

I think it was because no translation had been called yet, in the failing spec, and so the the i18n backend translations had not been initialized, and was always returning empty translations for any locale. This might have been due to tampering with translations in the this newly introduced spec.

By forcing translations to load after this new spec, the other spec passes again

[2] https://github.com/AyuntamientoMadrid/consul/blob/master/spec/features/localization_spec.rb#L20
2018-11-05 18:05:49 +01:00
Angel Perez
97809db1b7 Enable filtering of investments by their milestones statuses 2018-11-05 18:04:38 +01:00
Angel Perez
3574bf867c Add default image for investments without picture 2018-11-05 18:04:38 +01:00
Angel Perez
3e6cbc9505 Add basic frontend for budget executions list 2018-11-05 18:04:38 +01:00
Consul Bot
3bd19b2046 New translations general.yml (Spanish, El Salvador) 2018-11-05 17:41:38 +01:00
Consul Bot
93c53520a1 New translations mailers.yml (Spanish, El Salvador) 2018-11-05 17:41:34 +01:00
Angel Perez
b483ca7f7e Add 'Execution' tab to a finished Budget
This new tab will show all winner investments projects with milestones
2018-11-05 16:33:32 +01:00
Consul Bot
90fec25489 New translations general.yml (Spanish, El Salvador) 2018-11-05 16:11:29 +01:00
Consul Bot
8e6922de9f New translations devise.yml (Spanish, El Salvador) 2018-11-05 16:11:25 +01:00
Consul Bot
86ebd64504 New translations rails.yml (Turkish) 2018-11-05 14:42:32 +01:00
Consul Bot
1db9022a25 New translations i18n.yml (Persian) 2018-11-05 14:42:31 +01:00
Consul Bot
6079c1f235 New translations i18n.yml (German) 2018-11-05 14:42:29 +01:00
Consul Bot
6c33f17fcb New translations rails.yml (Portuguese, Brazilian) 2018-11-05 14:32:09 +01:00
Consul Bot
a4f87553d4 New translations rails.yml (Polish) 2018-11-05 14:32:07 +01:00
Consul Bot
192d654d73 New translations rails.yml (Italian) 2018-11-05 14:32:05 +01:00
Consul Bot
e71d6ddfc5 New translations rails.yml (Indonesian) 2018-11-05 14:32:04 +01:00
Consul Bot
0b7730fcf6 New translations rails.yml (Galician) 2018-11-05 14:32:02 +01:00
Consul Bot
23a5ecdbf0 New translations rails.yml (Dutch) 2018-11-05 14:32:01 +01:00
Consul Bot
edea5c1ccb New translations rails.yml (Albanian) 2018-11-05 14:31:59 +01:00
Consul Bot
ec032728a7 New translations rails.yml (Spanish, Venezuela) 2018-11-05 14:22:36 +01:00
Consul Bot
7cb69ff879 New translations rails.yml (Persian) 2018-11-05 14:22:34 +01:00
Consul Bot
ed8aa44ecb New translations rails.yml (French) 2018-11-05 14:22:33 +01:00
Consul Bot
28d9e9e8c3 New translations i18n.yml (Chinese Traditional) 2018-11-05 14:22:31 +01:00
Consul Bot
9b80b0ee0f New translations i18n.yml (Valencian) 2018-11-05 14:13:59 +01:00
Consul Bot
58c2862f8c New translations i18n.yml (Chinese Simplified) 2018-11-05 14:13:57 +01:00
Consul Bot
da2fff853c New translations i18n.yml (Turkish) 2018-11-05 14:13:02 +01:00
Consul Bot
1c0ab6414b New translations i18n.yml (Galician) 2018-11-05 14:13:01 +01:00
Consul Bot
063b006acf New translations i18n.yml (Hebrew) 2018-11-05 14:13:00 +01:00
Consul Bot
45cd2590a0 New translations i18n.yml (Indonesian) 2018-11-05 14:12:59 +01:00
Consul Bot
3786568b54 New translations i18n.yml (Italian) 2018-11-05 14:12:58 +01:00
Consul Bot
5e72d65c49 New translations i18n.yml (Papiamento) 2018-11-05 14:12:57 +01:00
Consul Bot
2dcbeb5062 New translations i18n.yml (Portuguese, Brazilian) 2018-11-05 14:12:56 +01:00
Consul Bot
36e6245165 New translations i18n.yml (Russian) 2018-11-05 14:12:55 +01:00
Consul Bot
8e288c659d New translations i18n.yml (Slovenian) 2018-11-05 14:12:54 +01:00
Consul Bot
91e890588c New translations i18n.yml (Dutch) 2018-11-05 14:12:53 +01:00
Consul Bot
95a37c59c2 New translations i18n.yml (Somali) 2018-11-05 14:12:52 +01:00
Consul Bot
1b3f428632 New translations i18n.yml (Spanish, Mexico) 2018-11-05 14:12:51 +01:00
Consul Bot
8cc0616c13 New translations i18n.yml (Spanish, Nicaragua) 2018-11-05 14:12:50 +01:00
Consul Bot
270500738d New translations i18n.yml (Spanish, Panama) 2018-11-05 14:12:49 +01:00
Consul Bot
f0bb964e38 New translations i18n.yml (Spanish, Paraguay) 2018-11-05 14:12:48 +01:00
Consul Bot
39e20a2b8b New translations i18n.yml (Spanish, Peru) 2018-11-05 14:12:47 +01:00