plupload-rails3 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/README.md +2 -1
  2. data/lib/app/controllers/plupload_rails_controller.rb +23 -23
  3. data/lib/app/helpers/plupload_helper.rb +6 -4
  4. data/lib/app/middleware/plupload_params_renamer.rb +9 -4
  5. data/lib/app/views/plupload/_uploader_scripts.html.erb +3 -4
  6. data/lib/plupload-rails3/asset_mover.rb +3 -3
  7. data/lib/plupload-rails3/version.rb +1 -1
  8. data/lib/public/images/plupload-rails3/plupload/throbber.gif +0 -0
  9. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/cs.js +14 -0
  10. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/da.js +12 -0
  11. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/de.js +25 -0
  12. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/es.js +25 -0
  13. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/fi.js +33 -0
  14. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/fr.js +25 -0
  15. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/it.js +21 -0
  16. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/ja.js +37 -0
  17. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/lv.js +33 -0
  18. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/nl.js +21 -0
  19. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/pt-br.js +35 -0
  20. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/ru.js +21 -0
  21. data/lib/public/javascripts/plupload-rails3/plupload/js/i18n/sv.js +12 -0
  22. data/lib/public/javascripts/plupload-rails3/plupload/js/jquery.plupload.queue/jquery.plupload.queue.js +1 -1
  23. data/lib/public/javascripts/plupload-rails3/plupload/js/jquery.ui.plupload/css/jquery.ui.plupload.css +8 -0
  24. data/lib/public/javascripts/plupload-rails3/plupload/js/jquery.ui.plupload/jquery.ui.plupload.js +1 -1
  25. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.browserplus.js +1 -1
  26. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.flash.js +1 -1
  27. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.flash.swf +0 -0
  28. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.full.js +2 -2
  29. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.gears.js +1 -1
  30. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.html4.js +1 -1
  31. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.html5.js +1 -1
  32. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.js +2 -2
  33. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.silverlight.js +1 -1
  34. data/lib/public/javascripts/plupload-rails3/plupload/js/plupload.silverlight.xap +0 -0
  35. data/lib/public/stylesheets/plupload-rails3/plupload.queue.3.1.css +177 -171
  36. data/lib/public/stylesheets/plupload-rails3/plupload.queue.css +177 -171
  37. metadata +16 -4
data/README.md CHANGED
@@ -51,6 +51,7 @@ Options can be:
51
51
  * :filters => An array of hashes with :title and :extension keys specifying the files to look for. Defaults to [], which will show all files.
52
52
  * :pluploader => a value of `true` indicates that you want to have the files submitted with your form instead of in individual requests. To make this work, you need to add `match 'plupload_rails/_plupload_uploader', :controller=>'plupload_rails', :action=>'_plupload_uploader', :as=>'pluploader'` to your config/routes.rb file so plupload can upload the files, and then this plugin will insert some extra form fields into your page via JavaScript. Those fields tell the middleware how to form the request parameters before they get to your controller.
53
53
  * :field_name => the name of the field, which defaults to model_name[method_name]
54
+ * :runtimes => the comma delimited list of runtimes you want to use, in order of preference. Defaults to 'html5,flash,silverlight,gears,browserplus'
54
55
 
55
56
  Example filter:
56
57
 
@@ -89,7 +90,7 @@ Consider the common case of an Album which has_many Photos.
89
90
 
90
91
  In your form for an album, you can use:
91
92
 
92
- <%= plupload(@album, :photos, options={:plupload_container=>'uploader', :pluploader=>true, :field_name=>'album[photos][][payload]'}) %>
93
+ <%= plupload(@album, :photos, options={:plupload_container=>'uploader', :pluploader=>true, :field_name=>'album[photos_attributes][][payload]'}) %>
93
94
  <div id="uploader" name="uploader" style="width: 100%;"></div>
94
95
 
95
96
 
@@ -5,32 +5,32 @@ class PluploadRailsController < ActionController::Base
5
5
  FileUtils.mv(params[:file].tempfile, plupload_temp_path)
6
6
  add_fields_for_files_to_forms =<<END
7
7
  function _pluploadRails_addFieldsForFilesToForms(){
8
- for(var i=0; document.forms.length; i++) {
9
- var theForm = document.forms[i];
10
- var input = document.createElement("input");
11
- input.name='_plupload_files[]';
12
- input.type='hidden';
13
- input.value='#{File.expand_path(params[:file].tempfile.path)}';
14
- theForm.appendChild(input);
8
+ $('form').each(function() {
9
+ var theForm = $(this);
15
10
 
16
- var input = document.createElement("input");
17
- input.name='_plupload_original_names[]';
18
- input.type='hidden';
19
- input.value='#{params[:file].original_filename}';
20
- theForm.appendChild(input);
11
+ var default_input = $('<input />').attr('type', 'hidden');
21
12
 
22
- var input = document.createElement("input");
23
- input.name='_plupload_content_types[]';
24
- input.type='hidden';
25
- input.value='#{params[:file].content_type}';
26
- theForm.appendChild(input);
13
+ var input = default_input.clone()
14
+ .attr('name', '_plupload_files[]')
15
+ .val('#{File.expand_path(params[:file].tempfile.path)}');
16
+ theForm.append(input);
27
17
 
28
- var input = document.createElement("input");
29
- input.name='_plupload_upload';
30
- input.type='hidden';
31
- input.value='#{params[:_plupload_upload]}';
32
- if(document.getElementsByName(input.name).length == 0) theForm.appendChild(input);
33
- }
18
+ var input = default_input.clone()
19
+ .attr('name', '_plupload_original_names[]')
20
+ .val('#{params[:file].original_filename}');
21
+ theForm.append(input);
22
+
23
+ var input = default_input.clone()
24
+ .attr('name', '_plupload_content_types[]')
25
+ .val('#{params[:file].content_type}');
26
+ theForm.append(input);
27
+
28
+ var input = default_input.clone()
29
+ .attr('name', '_plupload_upload')
30
+ .val('#{params[:_plupload_upload]}');
31
+ if(document.getElementsByName(input.name).length == 0) theForm.append(input);
32
+
33
+ });
34
34
  }
35
35
  _pluploadRails_addFieldsForFilesToForms();
36
36
  END
@@ -5,10 +5,12 @@ module PluploadHelper
5
5
  options[:filters] ||= []
6
6
  options[:params] ||= {}
7
7
  options[:field_name] ||= [model_object].flatten.pop.class.name.underscore.downcase + "[#{model_object_method}]"
8
- render :partial=>'plupload/uploader_scripts', :locals=>{
9
- :model_object=>model_object,
10
- :model_object_method=>model_object_method,
11
- :options=>options
8
+ options[:runtimes] ||= "html5,flash,silverlight,gears,browserplus"
9
+ render :partial => 'plupload/uploader_scripts',
10
+ :locals => {
11
+ :model_object => model_object,
12
+ :model_object_method => model_object_method,
13
+ :options => options
12
14
  }
13
15
  end
14
16
  end
@@ -9,10 +9,10 @@ module ActionDispatch
9
9
  req = Rack::Request.new(env)
10
10
  form_hash = Rails.version < "3.1" ? req.POST : env['rack.request.form_hash']
11
11
  form_hash ||= {}
12
-
12
+
13
13
  if form_hash["_plupload_upload"]
14
14
  object, method = form_hash["_plupload_upload"].split(/[\[\]]/)
15
- submethod = form_hash["_plupload_upload"].split(/[\[\]]/)[-1]
15
+ submethod = form_hash["_plupload_upload"].split(/[\[\]]/)[-1]
16
16
  form_hash[object] ||= {}
17
17
  if form_hash["_plupload_files"]
18
18
  form_hash[object][method] = []
@@ -23,9 +23,14 @@ module ActionDispatch
23
23
  original_filename = form_hash["_plupload_original_names"][i]
24
24
  content_type = form_hash["_plupload_content_types"][i]
25
25
 
26
- uploaded_file = ActionDispatch::Http::UploadedFile.new(:tempfile=>File.new(file), :content_type=>content_type, :filename=>original_filename)
26
+ uploaded_file = ActionDispatch::Http::UploadedFile.new(
27
+ :tempfile => File.new(file),
28
+ :type => content_type,
29
+ :head => "Content-Disposition: form-data; name=\"file\"; filename=\"#{original_filename}\"\r\nContent-Type: #{content_type}\r\n",
30
+ :filename => original_filename
31
+ )
27
32
 
28
- form_hash[object][method] << {submethod=>uploaded_file}
33
+ form_hash[object][method] << {submethod => uploaded_file}
29
34
  end
30
35
  else
31
36
  form_hash[object][method] = form_hash["file"]
@@ -18,7 +18,6 @@
18
18
  <% else %>
19
19
 
20
20
  <style type="text/css">@import url(/assets/plupload-rails3/plupload.queue.3.1.css);</style>
21
- <%= stylesheet_link_tag 'plupload-rails3/plupload/js/plupload.full.js' %>
22
21
  <%= javascript_include_tag 'plupload-rails3/plupload/js/plupload.full.js' %>
23
22
  <%= javascript_include_tag 'plupload-rails3/plupload/js/jquery.plupload.queue/jquery.plupload.queue.js' %>
24
23
  <%= javascript_include_tag 'plupload-rails3/plupload/js/plupload.gears.js' %>
@@ -27,13 +26,13 @@
27
26
 
28
27
 
29
28
  <script type="text/javascript">
30
-
29
+
31
30
  // Convert divs to queue widgets when the DOM is ready
32
31
  $(function() {
33
32
  var authtoken = $("input[name=authenticity_token]").val();
34
33
  $("#<%= options[:plupload_container] %>").pluploadQueue({
35
34
  // General settings
36
- runtimes : 'html5,flash,silverlight,gears,browserplus',
35
+ runtimes : '<%= options[:runtimes] %>',
37
36
  <% unless options[:pluploader] %>
38
37
  url : '<%= url_for(model_object) %>',
39
38
  <% else %>
@@ -45,7 +44,7 @@
45
44
  multipart: true,
46
45
  multipart_params :
47
46
  $.extend({
48
- <% if options[:params].count > 0 %>'<%= CGI::unescape(options[:params].to_query.split("=").join("':'")) %>'<% end %>
47
+ <% if options[:params].count > 0 %>'<%= CGI::unescape(options[:params].to_param).split("=").join("':'").gsub("&", "', '") %>'<% end %>
49
48
  },
50
49
  {
51
50
  authenticity_token : authtoken,
@@ -38,17 +38,17 @@ def install_plupload_assets
38
38
 
39
39
  dest = File.join(Rails.root, 'tmp/plupload-rails3')
40
40
  puts "Creating tmp folder at #{dest}"
41
- FileUtils.mkdir(dest)
41
+ FileUtils.mkdir(dest) unless File.exists?(dest)
42
42
  end
43
43
 
44
44
  def uninstall_plupload_assets
45
45
  plupload_asset_destination.keys.each do |asset_type|
46
46
  directory = File.join(Rails.root, plupload_asset_destination[asset_type], "plupload-rails3")
47
47
  puts "Removing directory #{directory} and its contents"
48
- FileUtils.rm_r(directory)
48
+ FileUtils.rm_r(directory) if File.exists?(directory)
49
49
  end
50
50
 
51
51
  directory = File.join(Rails.root,'tmp/plupload-rails3')
52
52
  puts "Removing directory #{directory} and its contents"
53
- FileUtils.rm_r(directory)
53
+ FileUtils.rm_r(directory) if File.exists?(directory)
54
54
  end
@@ -1,5 +1,5 @@
1
1
  module Plupload
2
2
  module Rails3
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -0,0 +1,14 @@
1
+ // .po file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Vyberte soubory',
4
+ 'Add files to the upload queue and click the start button.' : 'Přidejte soubory do fronty a pak spusťte nahrávání.',
5
+ 'Filename' : 'Název souboru',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Velikost',
8
+ 'Add Files' : 'Přidat soubory',
9
+ 'Stop current upload' : 'Zastavit nahrávání',
10
+ 'Start uploading queue' : 'Spustit frontu nahrávání',
11
+ 'Drag files here.' : 'Sem přetáhněte soubory.',
12
+ 'Start Upload': 'Spustit nahrávání',
13
+ 'Uploaded %d/%d files': 'Nahráno %d/%d souborů'
14
+ });
@@ -0,0 +1,12 @@
1
+ // .po file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Vælg filer',
4
+ 'Add files to the upload queue and click the start button.' : 'Tilføj filer til køen, og tryk på start.',
5
+ 'Filename' : 'Filnavn',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Størrelse',
8
+ 'Add files' : 'Tilføj filer',
9
+ 'Stop current upload' : 'Stop upload',
10
+ 'Start uploading queue' : 'Start upload',
11
+ 'Drag files here.' : 'Træk filer her.'
12
+ });
@@ -0,0 +1,25 @@
1
+ // German
2
+ plupload.addI18n({
3
+ 'Select files' : 'W&auml;hlen Sie die Dateien:',
4
+ 'Add files to the upload queue and click the start button.' : 'Dateien hinzuf&uuml;gen und danach auf \'Starten des Uploads\' klicken und die Datei hochzuladen.',
5
+ 'Filename' : 'Dateiname',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Gr&ouml;&szlig;e',
8
+ 'Add files' : 'Hinzuf&uuml;gen von Dateien',
9
+ 'Stop current upload' : 'Stop aktuellen Upload',
10
+ 'Start uploading queue' : 'Starte Upload',
11
+ 'Uploaded %d/%d files': '%d/%d Dateien sind Hochgeladen',
12
+ 'N/A' : 'Nicht verf&uuml;gbar',
13
+ 'Drag files here.' : 'Ziehen Sie die Dateien hier hin',
14
+ 'File extension error.': 'Dateiendungs Fehler.',
15
+ 'File size error.': 'Dateigr&ouml;ßen Fehler.',
16
+ 'Init error.': 'Initialisierungs Fehler.',
17
+ 'HTTP Error.': 'HTTP Fehler.',
18
+ 'Security error.': 'Sicherheits Fehler.',
19
+ 'Generic error.': 'Generic Fehler.',
20
+ 'IO error.': 'Ein/Ausgabe Fehler.',
21
+ 'Stop Upload': 'Stoppen des Uploads.',
22
+ 'Add Files': 'Dateien hinzuf&uuml;gen',
23
+ 'Start Upload': 'Starten des Uploads.',
24
+ '%d files queued': '%d Dateien in der Warteschlange.'
25
+ });
@@ -0,0 +1,25 @@
1
+ // Spanish
2
+ plupload.addI18n({
3
+ 'Select files' : 'Elija archivos:',
4
+ 'Add files to the upload queue and click the start button.' : 'Agregue archivos a la cola de subida y haga click en el boton de iniciar.',
5
+ 'Filename' : 'Nombre de archivo',
6
+ 'Status' : 'Estado',
7
+ 'Size' : 'Tama&ntilde;o',
8
+ 'Add files' : 'Agregue archivos',
9
+ 'Stop current upload' : 'Detener subida actual',
10
+ 'Start uploading queue' : 'Iniciar subida de cola',
11
+ 'Uploaded %d/%d files': 'Subidos %d/%d archivos',
12
+ 'N/A' : 'No disponible',
13
+ 'Drag files here.' : 'Arrastre archivos aqu&iacute;',
14
+ 'File extension error.': 'Error de extensi&oacute;n de archivo.',
15
+ 'File size error.': 'Error de tama&ntilde;o de archivo.',
16
+ 'Init error.': 'Error de inicializaci&oacute;n.',
17
+ 'HTTP Error.': 'Error de HTTP.',
18
+ 'Security error.': 'Error de seguridad.',
19
+ 'Generic error.': 'Error gen&eacute;rico.',
20
+ 'IO error.': 'Error de entrada/salida.',
21
+ 'Stop Upload': 'Detener Subida.',
22
+ 'Add Files': 'Agregar Archivos',
23
+ 'Start Upload': 'Comenzar Subida.',
24
+ '%d files queued': '%d archivos en cola.'
25
+ });
@@ -0,0 +1,33 @@
1
+ // .fi file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Valitse tiedostoja',
4
+ 'Add files to the upload queue and click the start button.' : 'Lisää tiedostoja latausjonoon ja klikkaa aloita-nappia.',
5
+ 'Filename' : 'Tiedostonimi',
6
+ 'Status' : 'Tila',
7
+ 'Size' : 'Koko',
8
+ 'Add files' : 'Lisää tiedostoja',
9
+ 'Stop current upload' : 'Pysäytä nykyinen lataus',
10
+ 'Start uploading queue' : 'Aloita jonon lataus',
11
+ 'Drag files here.' : 'Raahaa tiedostot tänne.',
12
+ 'Start upload' : 'Aloita lataus',
13
+ 'Uploaded %d/%d files': 'Ladattu %d/%d tiedostoa',
14
+ 'Stop upload': 'Pysäytä lataus',
15
+ 'Start upload': 'Aloita lataus',
16
+ '%d files queued': '%d tiedostoa jonossa',
17
+ 'File: %s': 'Tiedosto: %s',
18
+ 'Close': 'Sulje',
19
+ 'Using runtime: ': 'Käytetään ajonaikaista: ',
20
+ 'File: %f, size: %s, max file size: %m': 'Tiedosto: %f, koko: %s, maksimi tiedostokoko: %m',
21
+ 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Latauselementti sallii ladata vain %d tiedosto(a) kerrallaan. Ylimääräiset tiedostot ohitettiin.',
22
+ 'Upload URL might be wrong or doesn\'t exist': 'Lataus URL saattaa olla väärin tai ei ole olemassa',
23
+ 'Error: File too large: ': 'Virhe: Tiedosto liian suuri: ',
24
+ 'Error: Invalid file extension: ': 'Virhe: Kelpaamaton tiedostopääte: ',
25
+ 'File extension error.': 'Tiedostopäätevirhe.',
26
+ 'File size error.': 'Tiedostokokovirhe.',
27
+ 'File count error.': 'Tiedostolaskentavirhe.',
28
+ 'Init error.': 'Init virhe.',
29
+ 'HTTP Error.': 'HTTP virhe.',
30
+ 'Security error.': 'Tietoturvavirhe.',
31
+ 'Generic error.': 'Yleinen virhe.',
32
+ 'IO error.': 'I/O virhe.'
33
+ });
@@ -0,0 +1,25 @@
1
+ // .po file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Sélectionnez les fichiers',
4
+ 'Add files to the upload queue and click the start button.' : 'Ajoutez des fichiers à la file et appuyez sur le bouton démarrer.',
5
+ 'Filename' : 'Nom de fichier',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Taille',
8
+ 'Add files' : 'Ajouter Fichiers',
9
+ 'Stop current upload' : 'Arrêter l\'envoi en cours',
10
+ 'Start uploading queue' : 'Démarrer l\'envoi',
11
+ 'Uploaded %d/%d files': '%d/%d fichiers envoyés',
12
+ 'N/A' : 'Non applicable',
13
+ 'Drag files here.' : 'Déposer les fichiers ici.',
14
+ 'File extension error.': 'Erreur extension fichier',
15
+ 'File size error.': 'Erreur taille fichier.',
16
+ 'Init error.': 'Erreur d\'initialisation.',
17
+ 'HTTP Error.': 'Erreur HTTP.',
18
+ 'Security error.': 'Erreur de sécurité.',
19
+ 'Generic error.': 'Erreur générique.',
20
+ 'IO error.': 'Erreur E/S.',
21
+ 'Stop Upload': 'Arrêter les envois.',
22
+ 'Add Files': 'Ajouter des fichiers',
23
+ 'Start Upload': 'Démarrer les envois.',
24
+ '%d files queued': '%d fichiers en attente.'
25
+ });
@@ -0,0 +1,21 @@
1
+ // .po file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Seleziona i files',
4
+ 'Add files to the upload queue and click the start button.' : 'Aggiungi i file alla coda di caricamento e clicca il pulsante di avvio.',
5
+ 'Filename' : 'Nome file',
6
+ 'Status' : 'Stato',
7
+ 'Size' : 'Dimensione',
8
+ 'Add files' : 'Aggiungi file',
9
+ 'Stop current upload' : 'Interrompi il caricamento',
10
+ 'Start uploading queue' : 'Avvia il caricamento',
11
+ 'Uploaded %d/%d files': 'Caricati %d/%d file',
12
+ 'N/A' : 'N/D',
13
+ 'Drag files here.' : 'Trascina i file qui.',
14
+ 'File extension error.': 'Errore estensione file.',
15
+ 'File size error.': 'Errore dimensione file.',
16
+ 'Init error.': 'Errore inizializzazione.',
17
+ 'HTTP Error.': 'Errore HTTP.',
18
+ 'Security error.': 'Errore sicurezza.',
19
+ 'Generic error.': 'Errore generico.',
20
+ 'IO error.': 'Errore IO.'
21
+ });
@@ -0,0 +1,37 @@
1
+ // Japanese
2
+ plupload.addI18n({
3
+ 'Select files' : 'ファイル選択',
4
+ 'Add files to the upload queue and click the start button.' : 'ファイルをアップロードキューに追加してスタートボタンをクリックしてください',
5
+ 'Filename' : 'ファイル名',
6
+ 'Status' : 'ステータス',
7
+ 'Size' : 'サイズ',
8
+ 'Add Files' : 'ファイルを追加',
9
+ 'Stop Upload' : 'アップロード停止',
10
+ 'Start Upload' : 'アップロード',
11
+ 'Add files' : 'ファイルを追加',
12
+ 'Add files.' : 'ファイルを追加',
13
+ 'Stop current upload' : '現在のアップロードを停止',
14
+ 'Start uploading queue' : 'アップロード',
15
+ 'Stop upload' : 'アップロード停止',
16
+ 'Start upload' : 'アップロード',
17
+ 'Uploaded %d/%d files': 'アップロード中 %d/%d ファイル',
18
+ 'N/A' : 'N/A',
19
+ 'Drag files here.' : 'ここにファイルをドラッグ',
20
+ 'File extension error.': 'ファイル拡張子エラー',
21
+ 'File size error.': 'ファイルサイズエラー',
22
+ 'File count error.': 'ファイル数エラー',
23
+ 'Init error.': 'イニシャライズエラー',
24
+ 'HTTP Error.': 'HTTP エラー',
25
+ 'Security error.': 'セキュリティエラー',
26
+ 'Generic error.': 'エラー',
27
+ 'IO error.': 'IO エラー',
28
+ 'File: %s': 'ファイル: %s',
29
+ 'Close': '閉じる',
30
+ '%d files queued': '%d ファイルが追加されました',
31
+ 'Using runtime: ': 'モード: ',
32
+ 'File: %f, size: %s, max file size: %m': 'ファイル: %f, サイズ: %s, 最大ファイルサイズ: %m',
33
+ 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'アップロード可能なファイル数は %d です。余分なファイルは削除されました',
34
+ 'Upload URL might be wrong or doesn\'t exist': 'アップロード先の URL が存在しません',
35
+ 'Error: File too large: ': 'エラー: サイズが大きすぎます: ',
36
+ 'Error: Invalid file extension: ': 'エラー: 拡張子が許可されていません: '
37
+ });
@@ -0,0 +1,33 @@
1
+ // .lv file like language pack
2
+ plupload.addI18n({
3
+ 'Select files' : 'Izvēlieties failus',
4
+ 'Add files to the upload queue and click the start button.' : 'Pieveinojiet failus rindai un klikšķiniet uz "Sākt augšupielādi" pogas.',
5
+ 'Filename' : 'Faila nosaukums',
6
+ 'Status' : 'Statuss',
7
+ 'Size' : 'Izmērs',
8
+ 'Add files' : 'Pievienot failus',
9
+ 'Stop current upload' : 'Apturēt pašreizējo augšupielādi',
10
+ 'Start uploading queue' : 'Sākt augšupielādi',
11
+ 'Drag files here.' : 'Ievelciet failus šeit',
12
+ 'Start upload' : 'Sākt augšupielādi',
13
+ 'Uploaded %d/%d files': 'Augšupielādēti %d/%d faili',
14
+ 'Stop upload': 'Pārtraukt augšupielādi',
15
+ 'Start upload': 'Sākt augšupielādi',
16
+ '%d files queued': '%d faili pievienoti rindai',
17
+ 'File: %s': 'Fails: %s',
18
+ 'Close': 'Aizvērt',
19
+ 'Using runtime: ': 'Lieto saskarni: ',
20
+ 'File: %f, size: %s, max file size: %m': 'Fails: %f, izmērs: %s, maksimālais faila izmērs: %m',
21
+ 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Iespējams ielādēt tikai %d failus vienā reizē. Atlikušie faili netika pievienoti',
22
+ 'Upload URL might be wrong or doesn\'t exist': 'Augšupielādes URL varētu būt nepareizs vai neeksistē',
23
+ 'Error: File too large: ': 'Kļūda: Fails pārāk liels: ',
24
+ 'Error: Invalid file extension: ': 'Kļūda: Nekorekts faila paplašinājums:',
25
+ 'File extension error.': 'Faila paplašinājuma kļūda.',
26
+ 'File size error.': 'Faila izmēra kļūda.',
27
+ 'File count error.': 'Failu skaita kļūda',
28
+ 'Init error.': 'Inicializācijas kļūda.',
29
+ 'HTTP Error.': 'HTTP kļūda.',
30
+ 'Security error.': 'Drošības kļūda.',
31
+ 'Generic error.': 'Vispārēja rakstura kļūda.',
32
+ 'IO error.': 'Ievades/Izvades kļūda.'
33
+ });
@@ -0,0 +1,21 @@
1
+ // Dutch
2
+ plupload.addI18n({
3
+ 'Select files' : 'Selecteer bestand(en):',
4
+ 'Add files to the upload queue and click the start button.' : 'Voeg bestanden toe aan de wachtrij en druk op \'Start\'.',
5
+ 'Filename' : 'Bestandsnaam',
6
+ 'Status' : 'Status',
7
+ 'Size' : 'Grootte',
8
+ 'Add files' : 'Voeg bestanden toe',
9
+ 'Stop current upload' : 'Stop upload',
10
+ 'Start uploading queue' : 'Start upload',
11
+ 'Uploaded %d/%d files': '%d/%d bestanden ge-upload',
12
+ 'N/A' : 'Niet beschikbaar',
13
+ 'Drag files here.' : 'Sleep bestanden hierheen.',
14
+ 'File extension error.': 'Ongeldig bestandstype.',
15
+ 'File size error.': 'Bestandsgrootte Error.',
16
+ 'Init error.': 'Initialisatie error.',
17
+ 'HTTP Error.': 'HTTP Error.',
18
+ 'Security error.': 'Beveiliging error.',
19
+ 'Generic error.': 'Onbekende error.',
20
+ 'IO error.': 'IO error.'
21
+ });