Skip to content

Commit

Permalink
Fixed issues with i18n support and added a Swedish language pack.
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Feb 9, 2010
1 parent e804b84 commit 6af384d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Version 1.0.x (2010-02-xx)
Added FileUploaded event that fires when a file is uploaded.
Fixed issues with i18n support and added a Swedish language pack.
Version 1.0 (2010-02-03)
First official release of Plupload.
13 changes: 13 additions & 0 deletions src/javascript/i18n/sv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// .po file like language pack
plupload.addI18n({
'Select files' : 'Välj filer',
'Add files to the upload queue and click the start button.' : 'Lägg till filter till kön och tryck på start.',
'Filename' : 'Filnamn',
'Status' : 'Status',
'Size' : 'Storlek',
'Add files to queue' : 'Lägg till filer till kön',
'Add files.' : 'Lägg till filer',
'Stop current upload' : 'Stoppa uppladdningen',
'Start uploading queue' : 'Starta uppladdningen',
'Drag files here.' : 'Dra filer hit'
});
2 changes: 1 addition & 1 deletion src/javascript/jquery.plupload.queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
// Enable drag/drop
if (up.features.dragdrop && up.settings.dragdrop) {
up.settings.drop_element = id + '_filelist';
$('#' + id + '_filelist').append('<li class="plupload_droptext">Drag files here.</li>');
$('#' + id + '_filelist').append('<li class="plupload_droptext">' + _("Drag files here.") + '</li>');
}

$('#' + id + '_container').attr('title', 'Using runtime: ' + res.runtime);
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/plupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
* @return {Object} Extended language pack object.
*/
addI18n : function(pack) {
return plipload.extend(i18n, pack);
return plupload.extend(i18n, pack);
},

/**
Expand Down

0 comments on commit 6af384d

Please sign in to comment.