import {encode, decode} from 'uint8-to-base64'; // transform /path/to/file.ext to file.ext export function basename(path = '') { return path ? path.replace(/^.*\//, '') : ''; } // transform /path/to/file.ext to .ext export function extname(path = '') { const [_, ext] = /.+(\.[^.]+)$/.exec(path) || []; return ext || ''; } // test whether a variable is an object export function isObject(obj) { return Object.prototype.toString.call(obj) === '[object Object]'; } // returns whether a dark theme is enabled export function isDarkTheme() { const style = window.getComputedStyle(document.documentElement); return style.getPropertyValue('--is-dark-theme').trim().toLowerCase() === 'true'; } // strip from a string export function stripTags(text) { return text.replace(/<[^>]*>?/g, ''); } export function parseIssueHref(href) { const path = (href || '').replace(/[#?].*$/, ''); const [_, owner, repo, type, index] = /([^/]+)\/([^/]+)\/(issues|pulls)\/([0-9]+)/.exec(path) || []; return {owner, repo, type, index}; } // parse a URL, either relative '/path' or absolute 'https://localhost/path' export function parseUrl(str) { return new URL(str, str.startsWith('http') ? undefined : window.location.origin); } // return current locale chosen by user export function getCurrentLocale() { return document.documentElement.lang; } // given a month (0-11), returns it in the documents language export function translateMonth(month) { return new Date(Date.UTC(2022, month, 12)).toLocaleString(getCurrentLocale(), {month: 'short', timeZone: 'UTC'}); } // given a weekday (0-6, Sunday to Saturday), returns it in the documents language export function translateDay(day) { return new Date(Date.UTC(2022, 7, day)).toLocaleString(getCurrentLocale(), {weekday: 'short', timeZone: 'UTC'}); } // convert a Blob to a DataURI export function blobToDataURI(blob) { return new Promise((resolve, reject) => { try { const reader = new FileReader(); reader.addEventListener('load', (e) => { resolve(e.target.result); }); reader.addEventListener('error', () => { reject(new Error('FileReader failed')); }); reader.readAsDataURL(blob); } catch (err) { reject(err); } }); } // convert image Blob to another mime-type format. export function convertImage(blob, mime) { return new Promise(async (resolve, reject) => { try { const img = new Image(); const canvas = document.createElement('canvas'); img.addEventListener('load', () => { try { canvas.width = img.naturalWidth; canvas.height = img.naturalHeight; const context = canvas.getContext('2d'); context.drawImage(img, 0, 0); canvas.toBlob((blob) => { if (!(blob instanceof Blob)) return reject(new Error('imageBlobToPng failed')); resolve(blob); }, mime); } catch (err) { reject(err); } }); img.addEventListener('error', () => { reject(new Error('imageBlobToPng failed')); }); img.src = await blobToDataURI(blob); } catch (err) { reject(err); } }); } export function toAbsoluteUrl(url) { if (url.startsWith('http://') || url.startsWith('https://')) { return url; } if (url.startsWith('//')) { return `${window.location.protocol}${url}`; // it's also a somewhat absolute URL (with the current scheme) } if (url && !url.startsWith('/')) { throw new Error('unsupported url, it should either start with / or http(s)://'); } return `${window.location.origin}${url}`; } // Encode an ArrayBuffer into a URLEncoded base64 string. export function encodeURLEncodedBase64(arrayBuffer) { return encode(arrayBuffer) .replace(/\+/g, '-') .replace(/\//g, '_') .replace(/=/g, ''); } // Decode a URLEncoded base64 to an ArrayBuffer string. export function decodeURLEncodedBase64(base64url) { return decode(base64url .replace(/_/g, '/') .replace(/-/g, '+')); } value='artonge/backport/stable27/47770'>artonge/backport/stable27/47770 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/l10n/gl.js
blob: 3206f82981393ab123222c4dab324d75651260ab (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
OC.L10N.register(
    "files_external",
    {
    "Step 1 failed. Exception: %s" : "Fallou o paso 1. Excepción: %s",
    "Step 2 failed. Exception: %s" : "Fallou o paso 2. Excepción: %s",
    "External storage" : "Almacenamento externo",
    "Storage with id \"%i\" not found" : "Non se atopa o almacenamento co ID «%i» ",
    "Invalid mount point" : "Punto de montaxe incorrecto",
    "Invalid storage backend \"%s\"" : "Infraestrutura de almacenamento «%s» incorrecta",
    "Personal" : "Persoal",
    "System" : "Sistema",
    "Grant access" : "Permitir o acceso",
    "Access granted" : "Concedeuse acceso",
    "Generate keys" : "Xerar chaves",
    "Error generating key pair" : "Produciuse un erro ao xerar o par de chaves",
    "All users. Type to select user or group." : "Todos os usuarios. Escriba para seleccionar usuario ou grupo.",
    "(group)" : "(grupo)",
    "Saved" : "Gardado",
    "Username" : "Nome de usuario",
    "Password" : "Contrasinal",
    "Save" : "Gardar",
    "None" : "Ningún",
    "App key" : "Clave da API",
    "App secret" : "Secreto da aplicación",
    "Client ID" : "ID do cliente",
    "Client secret" : "Secreto do cliente",
    "API key" : "Chave da API",
    "Public key" : "Chave pública",
    "Amazon S3" : "Amazon S3",
    "Bucket" : "Bucket",
    "Hostname" : "Nome de máquina",
    "Port" : "Porto",
    "Region" : "Rexión",
    "Enable SSL" : "Activar SSL",
    "Enable Path Style" : "Activar o estilo de ruta",
    "WebDAV" : "WebDAV",
    "URL" : "URL",
    "Remote subfolder" : "Subcartafol remoto",
    "Secure https://" : "https:// seguro",
    "Dropbox" : "Dropbox",
    "Host" : "Servidor",
    "Secure ftps://" : "ftps:// seguro",
    "Local" : "Local",
    "Location" : "Localización",
    "ownCloud" : "ownCloud",
    "Root" : "Root (raíz)",
    "SFTP with secret key login" : "SFTP con chave secreta de acceso",
    "Share" : "Compartir",
    "SMB / CIFS using OC login" : "SMB / CIFS usando acceso OC",
    "Username as share" : "Nome de usuario como compartición",
    "OpenStack Object Storage" : "OpenStack Object Storage",
    "<b>Note:</b> " : "<b>Nota:</b> ",
    "<b>Note:</b> The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "<b>Nota:</b> A compatibilidade de cURL en PHP non está activada, ou non está instalado. Non é posíbel a montaxe de %s. Consulte co administrador do sistema como instalalo.",
    "<b>Note:</b> The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "<b>Nota:</b> A compatibilidade de FTP en PHP non está activada, ou non está instalado. Non é posíbel a montaxe de %s. Consulte co administrador do sistema como instalalo.",
    "<b>Note:</b> \"%s\" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "<b>Nota:</b> «%s»  non está instalado. Non é posíbel a montaxe de %s. Consulte co administrador do sistema como instalalo.",
    "No external storage configured" : "Non hai un almacenamento externo configurado",
    "You can add external storages in the personal settings" : "Pode engadir almacenamentos externos nos axustes persoais",
    "Name" : "Nome",
    "Storage type" : "Tipo de almacenamento",
    "Scope" : "Ámbito",
    "Enable encryption" : "Activar o cifrado",
    "Enable previews" : "Activar as vistas previas",
    "Check for changes" : "Comprobar se hai cambios",
    "Never" : "Nunca",
    "Once every direct access" : "Unha vez cada acceso directo",
    "External Storage" : "Almacenamento externo",
    "Folder name" : "Nome do cartafol",
    "Configuration" : "Configuración",
    "Available for" : "Dispoñíbel para",
    "Add storage" : "Engadir almacenamento",
    "Advanced settings" : "Axustes avanzados",
    "Delete" : "Eliminar",
    "Allow users to mount the following external storage" : "Permitirlle aos usuarios montar o seguinte almacenamento externo"
},
"nplurals=2; plural=(n != 1);");