summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/l10n/sr@latin.js
blob: e044946e117157545d9b9eca316aea80eaf38692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
OC.L10N.register(
    "files_sharing",
    {
    "Server to server sharing is not enabled on this server" : "Deljenje od servera do servera nije omogućeno na ovom serveru.",
    "The mountpoint name contains invalid characters." : "Ime tačke za montiranje sadrži neispravne karaktere.",
    "Invalid or untrusted SSL certificate" : "Nevažeći SSL sertifikat ili SSL sertifikat koji nije od poverenja.",
    "Couldn't add remote share" : "Nemoguće dodavanje udaljenog deljenog direktorijuma",
    "Shared with you" : "Deljeno sa Vama",
    "Shared with others" : "Deljeno sa ostalima",
    "Shared by link" : "Deljeno pomoću prečice",
    "Nothing shared with you yet" : "Još ništa nije deljeno sa Vama",
    "Files and folders others share with you will show up here" : "Fajlovi i direktorijumi koji drugi dele sa Vama će se pojaviti ovde",
    "Nothing shared yet" : "Još ništa nije deljeno",
    "Files and folders you share will show up here" : "Fajlovi i direktorijumi koje vi delite će se pojaviti ovde",
    "No shared links" : "Nema deljenih prečica",
    "Files and folders you share by link will show up here" : "Fajlovi i direktorijumi koje delite putem prečice će se pojaviti ovde",
    "Do you want to add the remote share {name} from {owner}@{remote}?" : "Da li želite da dodate udaljeni deljeni resurs {name} od {owner}@{remote}?",
    "Remote share" : "Udaljeni deljeni resurs",
    "Remote share password" : "Lozinka za udaljeni deljeni resurs",
    "Cancel" : "Otkaži",
    "Add remote share" : "Dodaj udaljeni deljeni resurs",
    "No ownCloud installation (7 or higher) found at {remote}" : "Nije pronađena ownCloud instalacija (7 ili noviji) na {remote}",
    "Invalid ownCloud url" : "Neispravan ownCloud url",
    "Shared by" : "Deljeno od strane",
    "A file or folder has been <strong>shared</strong>" : "Fijl ili direktorijum je <strong>podeljen</strong>",
    "A file or folder was shared from <strong>another server</strong>" : "Fajl ili direktorijum je deljen sa <strong>drugog servera</strong>",
    "A public shared file or folder was <strong>downloaded</strong>" : "Javni deljeni fajl ili direktorijum je <strong>preuzet</strong>",
    "You received a new remote share from %s" : "Primili ste novi udaljeni deljeni resurs od %s",
    "%1$s accepted remote share %2$s" : "%1$s je prihvatio udaljeni deljeni resurs %2$s",
    "%1$s declined remote share %2$s" : "%1$s je odbio %2$s",
    "%1$s unshared %2$s from you" : "%1$s je prekinuo deljenje %2$s sa Vama",
    "Public shared folder %1$s was downloaded" : "Javni deljeni direktorijum %1$s je preuzet",
    "Public shared file %1$s was downloaded" : "Javni deljeni fajl %1$s je preuzet",
    "You shared %1$s with %2$s" : "Delili ste %1$s sa %2$s",
    "You shared %1$s with group %2$s" : "Delili ste %1$s sa grupom %2$s",
    "You shared %1$s via link" : "Delili ste %1$s pomoću prečice",
    "%2$s shared %1$s with you" : "%2$s je delio %1$s sa Vama",
    "Shares" : "Deljenja",
    "This share is password-protected" : "Ovaj deljeni resurs je zaštićen lozinkom",
    "The password is wrong. Try again." : "Lozinka je netačna. Pokušajte ponovo.",
    "Password" : "Lozinka",
    "No entries found in this folder" : "Nema unosa u ovom direktorijumu",
    "Name" : "Ime",
    "Share time" : "Vreme deljenja",
    "Sorry, this link doesn’t seem to work anymore." : "Žao nam je, ali ova prečica više ne radi.",
    "Reasons might be:" : "Razlozi mogu biti:",
    "the item was removed" : "stavka je uklonjena",
    "the link expired" : "prečica je istekla",
    "sharing is disabled" : "deljenje je onemogućeno",
    "For more info, please ask the person who sent this link." : "Za više informacija, molimo Vas da se obratite osobi koja je poslala prečicu.",
    "Add to your ownCloud" : "Dodaj na svoj ownCloud",
    "Download" : "Preuzmi",
    "Download %s" : "Preuzmi %s",
    "Direct link" : "Direktna prečica"
},
"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);");
">var FileList = function($el, options) { this.initialize($el, options); }; FileList.prototype = _.extend({}, OCA.Files.FileList.prototype, /** @lends OCA.Trashbin.FileList.prototype */ { id: 'trashbin', appName: t('files_trashbin', 'Deleted files'), /** * @private */ initialize: function() { var result = OCA.Files.FileList.prototype.initialize.apply(this, arguments); this.$el.find('.undelete').click('click', _.bind(this._onClickRestoreSelected, this)); this.setSort('mtime', 'desc'); /** * Override crumb making to add "Deleted Files" entry * and convert files with ".d" extensions to a more * user friendly name. */ this.breadcrumb._makeCrumbs = function() { var parts = OCA.Files.BreadCrumb.prototype._makeCrumbs.apply(this, arguments); for (var i = 1; i < parts.length; i++) { parts[i].name = getDeletedFileName(parts[i].name); } return parts; }; OC.Plugins.attach('OCA.Trashbin.FileList', this); return result; }, /** * Override to only return read permissions */ getDirectoryPermissions: function() { return OC.PERMISSION_READ | OC.PERMISSION_DELETE; }, _setCurrentDir: function(targetDir) { OCA.Files.FileList.prototype._setCurrentDir.apply(this, arguments); var baseDir = OC.basename(targetDir); if (baseDir !== '') { this.setPageTitle(getDeletedFileName(baseDir)); } }, _createRow: function() { // FIXME: MEGAHACK until we find a better solution var tr = OCA.Files.FileList.prototype._createRow.apply(this, arguments); tr.find('td.filesize').remove(); return tr; }, _renderRow: function(fileData, options) { options = options || {}; var dir = this.getCurrentDirectory(); var dirListing = dir !== '' && dir !== '/'; // show deleted time as mtime if (fileData.mtime) { fileData.mtime = parseInt(fileData.mtime, 10); } if (!dirListing) { fileData.displayName = fileData.name; fileData.name = fileData.name + '.d' + Math.floor(fileData.mtime / 1000); } return OCA.Files.FileList.prototype._renderRow.call(this, fileData, options); }, getAjaxUrl: function(action, params) { var q = ''; if (params) { q = '?' + OC.buildQueryString(params); } return OC.filePath('files_trashbin', 'ajax', action + '.php') + q; }, setupUploadEvents: function() { // override and do nothing }, linkTo: function(dir){ return OC.linkTo('files', 'index.php')+"?view=trashbin&dir="+ encodeURIComponent(dir).replace(/%2F/g, '/'); }, elementToFile: function($el) { var fileInfo = OCA.Files.FileList.prototype.elementToFile($el); if (this.getCurrentDirectory() === '/') { fileInfo.displayName = getDeletedFileName(fileInfo.name); } // no size available delete fileInfo.size; return fileInfo; }, updateEmptyContent: function(){ var exists = this.$fileList.find('tr:first').exists(); this.$el.find('#emptycontent').toggleClass('hidden', exists); this.$el.find('#filestable th').toggleClass('hidden', !exists); }, _removeCallback: function(result) { if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error')); } var files = result.data.success; var $el; for (var i = 0; i < files.length; i++) { $el = this.remove(OC.basename(files[i].filename), {updateSummary: false}); this.fileSummary.remove({type: $el.attr('data-type'), size: $el.attr('data-size')}); } this.fileSummary.update(); this.updateEmptyContent(); this.enableActions(); }, _onClickRestoreSelected: function(event) { event.preventDefault(); var self = this; var allFiles = this.$el.find('.select-all').is(':checked'); var files = []; var params = {}; this.disableActions(); if (allFiles) { this.showMask(); params = { allfiles: true, dir: this.getCurrentDirectory() }; } else { files = _.pluck(this.getSelectedFiles(), 'name'); for (var i = 0; i < files.length; i++) { var deleteAction = this.findFileEl(files[i]).children("td.date").children(".action.delete"); deleteAction.removeClass('icon-delete').addClass('icon-loading-small'); } params = { files: JSON.stringify(files), dir: this.getCurrentDirectory() }; } $.post(OC.filePath('files_trashbin', 'ajax', 'undelete.php'), params, function(result) { if (allFiles) { if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error')); } self.hideMask(); // simply remove all files self.setFiles([]); self.enableActions(); } else { self._removeCallback(result); } } ); }, _onClickDeleteSelected: function(event) { event.preventDefault(); var self = this; var allFiles = this.$el.find('.select-all').is(':checked'); var files = []; var params = {}; if (allFiles) { params = { allfiles: true, dir: this.getCurrentDirectory() }; } else { files = _.pluck(this.getSelectedFiles(), 'name'); params = { files: JSON.stringify(files), dir: this.getCurrentDirectory() }; } this.disableActions(); if (allFiles) { this.showMask(); } else { for (var i = 0; i < files.length; i++) { var deleteAction = this.findFileEl(files[i]).children("td.date").children(".action.delete"); deleteAction.removeClass('icon-delete').addClass('icon-loading-small'); } } $.post(OC.filePath('files_trashbin', 'ajax', 'delete.php'), params, function(result) { if (allFiles) { if (result.status !== 'success') { OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error')); } self.hideMask(); // simply remove all files self.setFiles([]); self.enableActions(); } else { self._removeCallback(result); } } ); }, _onClickFile: function(event) { var mime = $(this).parent().parent().data('mime'); if (mime !== 'httpd/unix-directory') { event.preventDefault(); } return OCA.Files.FileList.prototype._onClickFile.apply(this, arguments); }, generatePreviewUrl: function(urlSpec) { return OC.generateUrl('/apps/files_trashbin/ajax/preview.php?') + $.param(urlSpec); }, getDownloadUrl: function() { // no downloads return '#'; }, enableActions: function() { this.$el.find('.action').css('display', 'inline'); this.$el.find('input:checkbox').removeClass('u-hidden'); }, disableActions: function() { this.$el.find('.action').css('display', 'none'); this.$el.find('input:checkbox').addClass('u-hidden'); }, updateStorageStatistics: function() { // no op because the trashbin doesn't have // storage info like free space / used space }, isSelectedDeletable: function() { return true; }, /** * Reloads the file list using ajax call * * @return ajax call object */ reload: function() { this._selectedFiles = {}; this._selectionSummary.clear(); this.$el.find('.select-all').prop('checked', false); this.showMask(); if (this._reloadCall) { this._reloadCall.abort(); } this._reloadCall = $.ajax({ url: this.getAjaxUrl('list'), data: { dir : this.getCurrentDirectory(), sort: this._sort, sortdirection: this._sortDirection } }); var callBack = this.reloadCallback.bind(this); return this._reloadCall.then(callBack, callBack); }, reloadCallback: function(result) { delete this._reloadCall; this.hideMask(); if (!result || result.status === 'error') { // if the error is not related to folder we're trying to load, reload the page to handle logout etc if (result.data.error === 'authentication_error' || result.data.error === 'token_expired' || result.data.error === 'application_not_enabled' ) { OC.redirect(OC.generateUrl('apps/files')); } OC.Notification.show(result.data.message); return false; } if (result.status === 401) { return false; } // Firewall Blocked request? if (result.status === 403) { // Go home this.changeDirectory('/'); OC.Notification.show(t('files', 'This operation is forbidden')); return false; } // Did share service die or something else fail? if (result.status === 500) { // Go home this.changeDirectory('/'); OC.Notification.show(t('files', 'This directory is unavailable, please check the logs or contact the administrator')); return false; } if (result.status === 404) { // go back home this.changeDirectory('/'); return false; } // aborted ? if (result.status === 0){ return true; } this.setFiles(result.data.files); return true; }, }); OCA.Trashbin.FileList = FileList; })();