combo_auto_box 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module ComboAutoBox
2
- VERSION = '0.0.25'
2
+ VERSION = '0.0.26'
3
3
  end
@@ -220,7 +220,29 @@ var ComboAutoBox = {
220
220
  }
221
221
  return title;
222
222
  };
223
-
223
+
224
+ var i18nSourceNotFound = function (language) {
225
+ var title = 'not found';
226
+ switch(language) {
227
+ case 'pt-br':
228
+ title = 'não encontrado';
229
+ break;
230
+ case 'pt':
231
+ title = 'não encontrado';
232
+ break;
233
+ case 'fr':
234
+ title = 'pas trouvé';
235
+ break;
236
+ case 'es':
237
+ title = 'no encontrado';
238
+ break;
239
+ case 'it':
240
+ title = 'non trovato';
241
+ break;
242
+ }
243
+ return title;
244
+ };
245
+
224
246
  // generates text field with html options
225
247
  var generateInputTag = function () {
226
248
  var html = 'input type="text"';
@@ -676,7 +698,7 @@ var ComboAutoBox = {
676
698
  options.source_not_found = false;
677
699
 
678
700
  if (options.not_found_message == null) {
679
- options.not_found_message = "was not found";
701
+ options.not_found_message = i18nSourceNotFound(options.lang);
680
702
  }
681
703
 
682
704
  validLanguage();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combo_auto_box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: