From 9f43b4258da72612a5d3957819d449f8d4ae4dad Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Mon, 1 Sep 2014 14:41:46 +0200 Subject: [PATCH 1/2] Remove unused jQuery UI translations file We use translation strings included in Bower jQuery UI package. Signed-off-by: Alex Coles --- app/assets/javascripts/jquery-ui-i18n.js | 27 ------------------------ 1 file changed, 27 deletions(-) delete mode 100644 app/assets/javascripts/jquery-ui-i18n.js diff --git a/app/assets/javascripts/jquery-ui-i18n.js b/app/assets/javascripts/jquery-ui-i18n.js deleted file mode 100644 index a9094d848f..0000000000 --- a/app/assets/javascripts/jquery-ui-i18n.js +++ /dev/null @@ -1,27 +0,0 @@ -/*! jQuery UI - v1.8.24 - 2012-09-28 -* https://github.com/jquery/jquery-ui -* Includes: jquery.ui.datepicker-af.js, jquery.ui.datepicker-ar-DZ.js, jquery.ui.datepicker-ar.js, jquery.ui.datepicker-az.js, jquery.ui.datepicker-bg.js, jquery.ui.datepicker-bs.js, jquery.ui.datepicker-ca.js, jquery.ui.datepicker-cs.js, jquery.ui.datepicker-cy-GB.js, jquery.ui.datepicker-da.js, jquery.ui.datepicker-de.js, jquery.ui.datepicker-el.js, jquery.ui.datepicker-en-AU.js, jquery.ui.datepicker-en-GB.js, jquery.ui.datepicker-en-NZ.js, jquery.ui.datepicker-eo.js, jquery.ui.datepicker-es.js, jquery.ui.datepicker-et.js, jquery.ui.datepicker-eu.js, jquery.ui.datepicker-fa.js, jquery.ui.datepicker-fi.js, jquery.ui.datepicker-fo.js, jquery.ui.datepicker-fr-CH.js, jquery.ui.datepicker-fr.js, jquery.ui.datepicker-gl.js, jquery.ui.datepicker-he.js, jquery.ui.datepicker-hi.js, jquery.ui.datepicker-hr.js, jquery.ui.datepicker-hu.js, jquery.ui.datepicker-hy.js, jquery.ui.datepicker-id.js, jquery.ui.datepicker-is.js, jquery.ui.datepicker-it.js, jquery.ui.datepicker-ja.js, jquery.ui.datepicker-ka.js, jquery.ui.datepicker-kk.js, jquery.ui.datepicker-km.js, jquery.ui.datepicker-ko.js, jquery.ui.datepicker-lb.js, jquery.ui.datepicker-lt.js, jquery.ui.datepicker-lv.js, jquery.ui.datepicker-mk.js, jquery.ui.datepicker-ml.js, jquery.ui.datepicker-ms.js, jquery.ui.datepicker-nl-BE.js, jquery.ui.datepicker-nl.js, jquery.ui.datepicker-no.js, jquery.ui.datepicker-pl.js, jquery.ui.datepicker-pt-BR.js, jquery.ui.datepicker-pt.js, jquery.ui.datepicker-rm.js, jquery.ui.datepicker-ro.js, jquery.ui.datepicker-ru.js, jquery.ui.datepicker-sk.js, jquery.ui.datepicker-sl.js, jquery.ui.datepicker-sq.js, jquery.ui.datepicker-sr-SR.js, jquery.ui.datepicker-sr.js, jquery.ui.datepicker-sv.js, jquery.ui.datepicker-ta.js, jquery.ui.datepicker-th.js, jquery.ui.datepicker-tj.js, jquery.ui.datepicker-tr.js, jquery.ui.datepicker-uk.js, jquery.ui.datepicker-vi.js, jquery.ui.datepicker-zh-CN.js, jquery.ui.datepicker-zh-HK.js, jquery.ui.datepicker-zh-TW.js -* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ -/* German initialisation for the jQuery UI date picker plugin. */ -/* Written by Milian Wolff (mail@milianw.de). */ -jQuery(function($){ - $.datepicker.regional['de'] = { - closeText: 'schließen', - prevText: '<zurück', - nextText: 'Vor>', - currentText: 'heute', - monthNames: ['Januar','Februar','März','April','Mai','Juni', - 'Juli','August','September','Oktober','November','Dezember'], - monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', - 'Jul','Aug','Sep','Okt','Nov','Dez'], - dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], - dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], - dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], - weekHeader: 'KW', - dateFormat: 'dd.mm.yy', - firstDay: 1, - isRTL: false, - showMonthAfterYear: false, - yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['de']); -}); \ No newline at end of file From b6d8a6d2ff2963504bcc0fe7b8e447ebab226d46 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Mon, 1 Sep 2014 14:42:56 +0200 Subject: [PATCH 2/2] Only require jQuery UI strings for core locales Signed-off-by: Alex Coles --- app/assets/javascripts/application.js.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 1e5cf467f6..667bb011b7 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -14,7 +14,8 @@ //= require jquery-migrate/jquery-migrate //= require jquery-ujs //= require jquery-ui -//= require jquery-ui/ui/i18n/jquery-ui-i18n +//= require jquery-ui/ui/i18n/jquery.ui.datepicker-en-GB.js +//= require jquery-ui/ui/i18n/jquery.ui.datepicker-de.js //= require momentjs //= require momentjs/lang/en-gb.js //= require momentjs/lang/de.js