瀏覽代碼

Simpler naming for files in locales and themes folders

Kartik Visweswaran 9 年之前
父節點
當前提交
48fe060373

+ 2 - 1
CHANGE.md

@@ -63,6 +63,7 @@ Change Log: `bootstrap-fileinput`
         - `dragTitle`
         - `dragSettings`
     - New template `actionDrag` will be available within `layoutTemplates` to configure your drag indicator markup.
+17. Simpler naming for files in locales and themes folders.
 
 ## version 4.3.1
 
@@ -298,7 +299,7 @@ Change Log: `bootstrap-fileinput`
 17. (enh #202): Ability to add Translations / Locales.
     - Identify and group all messages that need to be translated configurable via `$.fn.fileinput.locales['<lang-code>']`
     - Set default english messages configuration `$.fn.fileinput.locales['en']` within the plugin core code
-    - Individual locale files need to be created as separate js files e.g. `fileinput_locale_<lang>.js`
+    - Individual locale files need to be created as separate js files e.g. `<lang>.js`
 18. (enh #203): Enhancements and revamp of all error events.
     - fileerror
     - fileuploaderror

+ 3 - 3
README.md

@@ -73,13 +73,13 @@ Step 1: Load the following assets in your header.
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" type="text/javascript"></script>
 <!-- optionally if you need a theme like font awesome theme you can include 
     it as mentioned below -->
-<script src="path/to/js/fileinput_theme_fa.js"></script>
+<script src="path/to/js/themes/fa.js"></script>
 <!-- optionally if you need translation for your language then include 
     locale file as mentioned below -->
-<script src="path/to/js/fileinput_locale_<lang>.js"></script>
+<script src="path/to/js/locales/<lang>.js"></script>
 ```
 
-If you noticed, you need to load the `jquery.min.js` and `bootstrap.min.css` in addition to the `fileinput.min.css` and `fileinput.min.js`. The theme file `fileinput_locale_fa.js` can be optionally included for the font awesome icons styling. The locale file `fileinput_locale_<lang>.js` can be optionally included for translating for your language if needed.
+If you noticed, you need to load the `jquery.min.js` and `bootstrap.min.css` in addition to the `fileinput.min.css` and `fileinput.min.js`. The theme file `fa.js` can be optionally included for the font awesome icons styling. The locale file `<lang>.js` can be optionally included for translating for your language if needed.
 
 **Optional Dependent Plugins**
 

+ 0 - 0
js/locales/fileinput_locale_LANG.js → js/locales/LANG.js


+ 0 - 0
js/locales/fileinput_locale_ar.js → js/locales/ar.js


+ 0 - 0
js/locales/fileinput_locale_bg.js → js/locales/bg.js


+ 0 - 0
js/locales/fileinput_locale_ca.js → js/locales/ca.js


+ 0 - 0
js/locales/fileinput_locale_cr.js → js/locales/cr.js


+ 0 - 0
js/locales/fileinput_locale_cz.js → js/locales/cz.js


+ 0 - 0
js/locales/fileinput_locale_da.js → js/locales/da.js


+ 0 - 0
js/locales/fileinput_locale_de.js → js/locales/de.js


+ 0 - 0
js/locales/fileinput_locale_el.js → js/locales/el.js


+ 0 - 0
js/locales/fileinput_locale_es.js → js/locales/es.js


+ 0 - 0
js/locales/fileinput_locale_fa.js → js/locales/fa.js


+ 0 - 0
js/locales/fileinput_locale_fi.js → js/locales/fi.js


+ 0 - 0
js/locales/fileinput_locale_fr.js → js/locales/fr.js


+ 0 - 0
js/locales/fileinput_locale_hu.js → js/locales/hu.js


+ 0 - 0
js/locales/fileinput_locale_id.js → js/locales/id.js


+ 0 - 0
js/locales/fileinput_locale_it.js → js/locales/it.js


+ 0 - 0
js/locales/fileinput_locale_ja.js → js/locales/ja.js


+ 0 - 0
js/locales/fileinput_locale_nl.js → js/locales/nl.js


+ 0 - 0
js/locales/fileinput_locale_pl.js → js/locales/pl.js


+ 0 - 0
js/locales/fileinput_locale_pt-BR.js → js/locales/pt-BR.js


+ 0 - 0
js/locales/fileinput_locale_pt.js → js/locales/pt.js


+ 0 - 0
js/locales/fileinput_locale_ro.js → js/locales/ro.js


+ 0 - 0
js/locales/fileinput_locale_ru.js → js/locales/ru.js


+ 0 - 0
js/locales/fileinput_locale_sk.js → js/locales/sk.js


+ 0 - 0
js/locales/fileinput_locale_th.js → js/locales/th.js


+ 0 - 0
js/locales/fileinput_locale_tr.js → js/locales/tr.js


+ 0 - 0
js/locales/fileinput_locale_uk.js → js/locales/uk.js


+ 0 - 0
js/locales/fileinput_locale_zh-TW.js → js/locales/zh-TW.js


+ 0 - 0
js/locales/fileinput_locale_zh.js → js/locales/zh.js


+ 0 - 0
js/themes/fileinput_theme_fa.js → js/themes/fa.js


+ 0 - 0
js/themes/fileinput_theme_gly.js → js/themes/gly.js