Commit Graph

11379 Commits

Author SHA1 Message Date
Consul Bot
c14dddd6e4 New translations admin.yml (German) 2018-10-18 13:37:17 +02:00
Consul Bot
44675f00cb New translations admin.yml (Galician) 2018-10-18 13:36:59 +02:00
Consul Bot
c04fdd0769 New translations admin.yml (French) 2018-10-18 13:35:59 +02:00
Consul Bot
a6cafeabab New translations admin.yml (Polish) 2018-10-18 13:35:17 +02:00
Consul Bot
186e768c98 New translations admin.yml (Italian) 2018-10-18 13:34:24 +02:00
Consul Bot
148711e4dd New translations admin.yml (Albanian) 2018-10-18 13:33:16 +02:00
Consul Bot
886e0a9a94 New translations admin.yml (Dutch) 2018-10-18 13:32:20 +02:00
Consul Bot
dcf74875b1 New translations admin.yml (Chinese Simplified) 2018-10-18 13:31:44 +02:00
Consul Bot
b00b2f87fa New translations admin.yml (Chinese Traditional) 2018-10-18 13:31:22 +02:00
Consul Bot
201123a8dd New translations admin.yml (Portuguese, Brazilian) 2018-10-18 13:25:18 +02:00
Consul Bot
abfe588d8c New translations admin.yml (Spanish, Chile) 2018-10-18 13:24:26 +02:00
Alberto
3878946c9e Merge pull request #2823 from consul/remove-guides
Removes guide feature
2018-10-18 13:19:33 +02:00
Consul Bot
8c847f6db2 New translations management.yml (Chinese Simplified) 2018-10-18 07:20:48 +02:00
Consul Bot
83131f46a8 New translations management.yml (Chinese Simplified) 2018-10-18 07:00:44 +02:00
Consul Bot
5293e95d06 New translations management.yml (Chinese Simplified) 2018-10-18 03:10:30 +02:00
Consul Bot
f1ebe46990 New translations management.yml (Chinese Simplified) 2018-10-18 03:00:35 +02:00
Consul Bot
0c649e4914 New translations management.yml (Chinese Simplified) 2018-10-18 02:50:30 +02:00
Consul Bot
e8d352b64b New translations management.yml (Chinese Simplified) 2018-10-18 02:40:33 +02:00
Consul Bot
2cd9f1ea13 New translations management.yml (Chinese Simplified) 2018-10-18 02:30:31 +02:00
Consul Bot
74bcc4c083 New translations mailers.yml (Chinese Simplified) 2018-10-18 02:20:32 +02:00
Consul Bot
0bb3e40d1c New translations mailers.yml (Chinese Simplified) 2018-10-18 02:10:46 +02:00
Consul Bot
d7fa85176d New translations guides.yml (Chinese Simplified) 2018-10-18 02:00:46 +02:00
Consul Bot
f085831701 New translations legislation.yml (Chinese Simplified) 2018-10-18 02:00:44 +02:00
Consul Bot
3a336c989c New translations mailers.yml (Chinese Simplified) 2018-10-18 02:00:43 +02:00
Raimond Garcia
e2e9d8ed60 Merge pull request #2973 from consul/i18n_defensive_spec
[Backport] Fix pluralization spec when using different default locale
2018-10-17 20:26:26 +02:00
Javier Martín
e117218d68 Merge pull request #2977 from consul/backport-reenable_ckeditor_images
Bring back CKEditor images button
2018-10-17 20:21:18 +02:00
Javi Martín
6f96265a0b Bring back CKEditor images button
It was accidentally deleted in commit 914bfa6.

Note the following spec passes on my machine if we add a `sleep 0.1`
call in the `:wait_readable` part of ruby's `Net::Protocol#rbuf_fill`.
Otherwise, it hangs forever after clicking the `.fileupload-file` div,
which closes its window. It might be solved when upgrading rails,
capybara, selenium or chromedriver.

scenario "Allows images in CKEditor", :js do
  visit edit_admin_site_customization_page_path(custom_page)

  within(".ckeditor") do
    within_frame(0) { expect(page).not_to have_css("img") }

    expect(page).to have_css(".cke_toolbar .cke_button__image_icon")
    find(".cke_toolbar .cke_button__image_icon").click
  end

  within_window(window_opened_by { click_link "Browse Server" }) do
    attach_file :file,
                Rails.root.join('spec/fixtures/files/clippy.jpg'),
                visible: false
    find(".fileupload-file").click
  end

  click_link "OK"

  within(".ckeditor") do
    within_frame(0) { expect(page).to have_css("img") }
  end
end
2018-10-17 19:39:37 +02:00
Javier Martín
4f831b9e1d Merge pull request #2976 from consul/backport-1603-fix_flaky_legislation_questions_spec
Fix flaky spec: Admin legislation questions Update Valid legislation question
2018-10-17 19:18:54 +02:00
Javi Martín
893f29a27a Fix flaky legislation question spec
The test was failing sometimes because of the sequence:

within('#side_menu') do
  click_link "Collaborative Legislation"
end

click_link "All"
expect(page).to have_content 'An example legislation process'
click_link 'An example legislation process'

Right after clicking the "Collaborative Legislation" link, the link 'An
example legislation process' is already available. So sometimes Capybara
might click the links "All" and 'An example legislation process' at more
or less the same time, causing the second link not to be correctly
clicked.

Making sure the "All" link doesn't exist anymore we guarantee Capybara
will wait for the previous AJAX request to finish before clicking the
next link.

Note the test to "Create Valid legislation question" is almost identical
but it doesn't fail because it doesn't use Capybara's JavaScript driver.
2018-10-17 15:54:59 +02:00
decabeza
dbf41421ed Removes guide feature 2018-10-17 14:58:29 +02:00
Raimond Garcia
74925a7022 Merge pull request #2964 from consul/i18n_all_language_names
Add all available languages
2018-10-17 13:34:26 +02:00
voodoorai2000
3976b2f4f2 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-10-17 13:26:47 +02:00
voodoorai2000
8eb399150e Remove fallback rules for locales not yet added 2018-10-17 12:47:35 +02:00
voodoorai2000
e771440d18 Remove duplicate language names 2018-10-17 12:47:35 +02:00
voodoorai2000
3b8bb5038d 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-10-17 12:47:35 +02:00
voodoorai2000
f2fe230a15 Add all available locales
Only addding those with significant number of translations
2018-10-17 12:47:35 +02:00
voodoorai2000
d8fa322763 Remove obsolete language name translations 2018-10-17 12:47:35 +02:00
voodoorai2000
7fb6f6a7a6 Add all language names 2018-10-17 12:47:35 +02:00
Raimond Garcia
2f5fc5d863 Merge pull request #2963 from consul/locale_names
Fix locale folder names
2018-10-17 12:46:28 +02:00
Raimond Garcia
8864168e3c Merge pull request #2962 from consul/flaky_i18n
Fix flaky spec for translations
2018-10-17 12:45:51 +02:00
Consul Bot
f3be8835bc New translations legislation.yml (Chinese Simplified) 2018-10-17 07:30:26 +02:00
Consul Bot
d591f20841 New translations mailers.yml (Chinese Simplified) 2018-10-17 02:55:39 +02:00
Consul Bot
6831967746 New translations legislation.yml (Chinese Simplified) 2018-10-17 02:50:33 +02:00
Consul Bot
84a3beaf7e New translations mailers.yml (Chinese Simplified) 2018-10-17 02:50:32 +02:00
Consul Bot
0ad14944d5 New translations legislation.yml (Chinese Simplified) 2018-10-17 02:30:27 +02:00
Consul Bot
3d35bffc96 New translations images.yml (Chinese Simplified) 2018-10-17 02:20:35 +02:00
Consul Bot
29e86772db New translations legislation.yml (Chinese Simplified) 2018-10-17 02:20:34 +02:00
Consul Bot
b4798f6149 New translations kaminari.yml (Chinese Simplified) 2018-10-17 02:20:32 +02:00
Consul Bot
68ee4d5ed1 New translations i18n.yml (Chinese Simplified) 2018-10-17 02:10:34 +02:00
Consul Bot
43f0448a61 New translations guides.yml (Chinese Simplified) 2018-10-17 02:10:33 +02:00