Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
feat: New Crowdin translations (auto-merged 🤖) (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Sep 30, 2021
1 parent 87a2c58 commit 72cba72
Show file tree
Hide file tree
Showing 27 changed files with 456 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Wenn Sie Abstürze oder Probleme in Electron auftreten, von denen Sie glauben, d
* **.lldbinit**: Create or edit `~/.lldbinit` to allow Chromium code to be properly source-mapped.

```text
command script import ~/electron/src/tools/lldb/lldbinit.py
# e.g: ['~/electron/src/tools/lldb']
script sys.path[:0] = ['<...path/to/electron/src/tools/lldb>']
script import lldbinit
```

## Attaching to and Debugging Electron
Expand Down
56 changes: 56 additions & 0 deletions content/de-DE/docs/tutorial/devices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Device Access

Like Chromium based browsers, Electron provides access to device hardware through web APIs. For the most part these APIs work like they do in a browser, but there are some differences that need to be taken into account. The primary difference between Electron and browsers is what happens when device access is requested. In a browser, users are presented with a popup where they can grant access to an individual device. In Electron APIs are provided which can be used by a developer to either automatically pick a device or prompt users to pick a device via a developer created interface.

## Web Bluetooth API

The [Web Bluetooth API](https://web.dev/bluetooth/) can be used to communicate with bluetooth devices. In order to use this API in Electron, developers will need to handle the [`select-bluetooth-device` event on the webContents](../api/web-contents.md#event-select-bluetooth-device) associated with the device request.

### Beispiel

This example demonstrates an Electron application that automatically selects the first available bluetooth device when the `Test Bluetooth` button is clicked.

```javascript fiddle='docs/fiddles/features/web-bluetooth'

```

## WebHID API

The [WebHID API](https://web.dev/hid/) can be used to access HID devices such as keyboards and gamepads. Electron provides several APIs for working with the WebHID API:

* The [`select-hid-device` event on the Session](../api/session.md#event-select-hid-device) can be used to select a HID device when a call to `navigator.hid.requestDevice` is made. Additionally the [`hid-device-added`](../api/session.md#event-hid-device-added) and [`hid-device-removed`](../api/session.md#event-hid-device-removed) events on the Session can be used to handle devices being plugged in or unplugged during the `navigator.hid.requestDevice` process.
* [`ses.setDevicePermissionHandler(handler)`](../api/session.md#sessetdevicepermissionhandlerhandler) can be used to provide default permissioning to devices without first calling for permission to devices via `navigator.hid.requestDevice`. Additionally, the default behavior of Electron is to store granted device permision through the lifetime of the corresponding WebContents. If longer term storage is needed, a developer can store granted device permissions (eg when handling the `select-hid-device` event) and then read from that storage with `setDevicePermissionHandler`.
* [`ses.setPermissionCheckHandler(handler)`](../api/session.md#sessetpermissioncheckhandlerhandler) can be used to disable HID access for specific origins.

### Blocklist

By default Electron employs the same [blocklist](https://github.com/WICG/webhid/blob/main/blocklist.txt) used by Chromium. If you wish to override this behavior, you can do so by setting the `disable-hid-blocklist` flag:

```javascript
app.commandLine.appendSwitch('disable-hid-blocklist')
```

### Beispiel

This example demonstrates an Electron application that automatically selects HID devices through [`ses.setDevicePermissionHandler(handler)`](../api/session.md#sessetdevicepermissionhandlerhandler) and through [`select-hid-device` event on the Session](../api/session.md#event-select-hid-device) when the `Test WebHID` button is clicked.

```javascript fiddle='docs/fiddles/features/web-hid'

```

## Web Serial API

The [Web Serial API](https://web.dev/serial/) can be used to access serial devices that are connected via serial port, USB, or Bluetooth. In order to use this API in Electron, developers will need to handle the [`select-serial-port` event on the Session](../api/session.md#event-select-serial-port) associated with the serial port request.

There are several additional APIs for working with the Web Serial API:

* The [`serial-port-added`](../api/session.md#event-serial-port-added) and [`serial-port-removed`](../api/session.md#event-serial-port-removed) events on the Session can be used to handle devices being plugged in or unplugged during the `navigator.serial.requestPort` process.
* [`ses.setPermissionCheckHandler(handler)`](../api/session.md#sessetpermissioncheckhandlerhandler) can be used to disable serial access for specific origins.

### Beispiel

This example demonstrates an Electron application that automatically selects the first available Arduino Uno serial device (if connected) through [`select-serial-port` event on the Session](../api/session.md#event-select-serial-port) when the `Test Web Serial` button is clicked.

```javascript fiddle='docs/fiddles/features/web-serial'

```
26 changes: 13 additions & 13 deletions content/es-ES/docs/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ Chromium ha eliminado el soporte para cambiar los limites del nivel de zoom del

### Comportamiento Modificado: Enviando objetos no JS sobre IPC ahora lanza una excepción

En Electron 8.0, el IPC se cambió para que utilizara el algoritmo de clon estructurado, con importantes mejoras de rendimiento. To help ease the transition, the old IPC serialization algorithm was kept and used for some objects that aren't serializable with Structured Clone. In particular, DOM objects (e.g. `Element`, `Location` and `DOMMatrix`), Node.js objects backed by C++ classes (e.g. `process.env`, some members of `Stream`), and Electron objects backed by C++ classes (e.g. `WebContents`, `BrowserWindow` and `WebFrame`) are not serializable with Structured Clone. Whenever the old algorithm was invoked, a deprecation warning was printed.
En Electron 8.0, el IPC se cambió para que utilizara el algoritmo de clon estructurado, con importantes mejoras de rendimiento. To help ease the transition, the old IPC serialization algorithm was kept and used for some objects that aren't serializable with Structured Clone. In particular, DOM objects (e.g. `Element`, `Location` and `DOMMatrix`), Node.js objects backed by C++ classes (e.g. `process.env`, some members of `Stream`), and Electron objects backed by C++ classes (e.g. `WebContents`, `BrowserWindow` and `WebFrame`) are not serializable with Structured Clone. Siempre que se invocaba el algoritmo anterior, se imprimía una advertencia de desaprobación.

En Electron 9,0, se eliminó el algoritmo de serialización anterior, y enviar tales objetos no serializables ahora lanzará un error "no se pudo clonar el objeto".

Expand All @@ -507,7 +507,7 @@ La API `shell.openItem` ha sido reemplazada con una API asíncrona `shell.openPa

## Cambios planeados en la API(8.0)

### Behavior Changed: Values sent over IPC are now serialized with Structured Clone Algorithm
### Comportamiento Cambiado: Los valores enviados sobre IPC ahora son serializados con Algoritmo de Clon Estructurado

El algoritmo usado para serializar los objetos enviados sobre IPC (mediante `ipcRenderer.send`, `ipcRenderer.sendSync`, `WebContents.send` y métodos relacionados) han sido cambiados de un algoritmo personalizado a los de V8 [Structured Clone Algorithm][SCA], el mismo algoritmo usado para serializar los mensajes para `postMessage`. Esto conlleva una mejora en el rendimiento de 2x para mensajes grandes, pero también trae algunos cambios de comportamiento.

Expand Down Expand Up @@ -582,14 +582,14 @@ ipcRenderer.invoke('openDevTools', webview.getWebContentsId())

Chromium ha eliminado el soporte para cambiar los limites del nivel de zoom del diseño y esta más allá de la capacidad de Electron el mantenerlo. La función emitirá una advertencia en Electron 8.x, y dejará de existir en Electron 9.x. The layout zoom level limits are now fixed at a minimum of 0.25 and a maximum of 5.0, as defined [here](https://chromium.googlesource.com/chromium/src/+/938b37a6d2886bf8335fc7db792f1eb46c65b2ae/third_party/blink/common/page/page_zoom.cc#11).

### Deprecated events in `systemPreferences`
### Eventos obsoletos en `systemPreferences`

The following `systemPreferences` events have been deprecated:
Los siguientes eventos `systemPreferences` han sido marcados como obsoletos:

* `inverted-color-scheme-changed`
* `high-contrast-color-scheme-changed`

Use the new `updated` event on the `nativeTheme` module instead.
Use el nuevo evento `updated` en el módulo `nativeTheme` en su lugar.

```js
// Obsoleto
Expand All @@ -600,7 +600,7 @@ systemPreferences.on('high-contrast-color-scheme-changed', () => { /* ... */ })
nativeTheme.on('updated', () => { /* ... */ })
```

### Deprecated: methods in `systemPreferences`
### Obsoleto: métodos en `systemPreferences`

Los métodos siguientes de `systemPreferences` han quedado obsoletos:

Expand Down Expand Up @@ -637,9 +637,9 @@ nativeTheme.shouldUseHighContrastColors

Este es el URL especificado como `disturl` en un archivo `.npmrc` o como el comando de linea `--dist-url` al construir los módulos nativos de nodo. Ambos serán admitidos para el futuro previsible, pero se recomienda que cambies.

Deprecated: https://atom.io/download/electron
Obsoleto: https://atom.io/download/electron

Replace with: https://electronjs.org/headers
Reemplazar con: https://electronjs.org/headers

### API Modificada: `session.clearAuthCache()` ya no acepta opciones

Expand Down Expand Up @@ -720,7 +720,7 @@ En Electron 7, esto ahora retorna un `FileList` con un objeto `File` para:
/path/to/folder/file1
```

Note that `webkitdirectory` no longer exposes the path to the selected folder. Si requieras la ruta a la carpeta seleccionada en lugar de los contenidos de la carpeta, ver el `Dialog. showOpenDialog` API ([Link](api/dialog.md#dialogshowopendialogbrowserwindow-options)).
Tenga en cuenta que `webkitdirectory` ya no expone la ruta de la carpeta seleccionada. Si requieras la ruta a la carpeta seleccionada en lugar de los contenidos de la carpeta, ver el `Dialog. showOpenDialog` API ([Link](api/dialog.md#dialogshowopendialogbrowserwindow-options)).

### API Modificada: Versiones basadas en Callback de APIs promisificadas

Expand Down Expand Up @@ -789,7 +789,7 @@ require('electron').screen
require('electron').remote.screen
```

### API Changed: `require()`ing node builtins in sandboxed renderers no longer implicitly loads the `remote` version
### API Modificada: `require()` los ing integrados de node builtins en renderizadores sandboxed no carga más de forma implícita la versión `remote`

```js
// Deprecado
Expand Down Expand Up @@ -852,7 +852,7 @@ tray.setHighlightMode(mode)

## Cambios Planeados en la API (5.0)

### Default Changed: `nodeIntegration` and `webviewTag` default to false, `contextIsolation` defaults to true
### Valor por defecto modificado: `nodeIntegration` y `webviewTag` por defecto a false, `contextIsolation` por defecto a true

Los siguientes valores por defectos de opción `webPreferences` están obsoletos a favor de los nuevos valores por defectos listados a continuación.

Expand All @@ -862,7 +862,7 @@ Los siguientes valores por defectos de opción `webPreferences` están obsoletos
| `nodeIntegration` | `true` | `false` |
| `webviewTag` | `nodeIntegration` if set else `true` | `false` |

P.e. Re-enabling the webviewTag
P.e. Volver a habilitar el webviewTag

```js
const w = new BrowserWindow({
Expand All @@ -880,7 +880,7 @@ Child windows opened with the `nativeWindowOpen` option will always have Node.js

Renderer process APIs `webFrame.registerURLSchemeAsPrivileged` and `webFrame.registerURLSchemeAsBypassingCSP` as well as browser process API `protocol.registerStandardSchemes` have been removed. Una nueva API, `protocol.registerSchemesAsPrivileged` ha sido agregada y debe ser usada para registrar esquemas personalizados con los privilegios requeridos. Se requieren esquemas personalizados para ser registrados antes de que la aplicación esté lista.

### Deprecated: `webFrame.setIsolatedWorld*` replaced with `webFrame.setIsolatedWorldInfo`
### Obsoleto: `webFrame.setIsolatedWorld*` reemplazado con `webFrame.setIsolatedWorldInfo`

```js
// Deprecated
Expand Down
2 changes: 1 addition & 1 deletion content/es-ES/docs/development/build-instructions-gn.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Comprueba los pre-requisitos de tu plataforma para la compilación antes de avan
* [Linux](build-instructions-linux.md#prerequisites)
* [Windows](build-instructions-windows.md#prerequisites)

## Build Tools
## Herramientas de construcción

[Electron's Build Tools](https://github.com/electron/build-tools) automate much of the setup for compiling Electron from source with different configurations and build targets. Si deseas configurar el entorno de forma manual, las instrucciones se enumeran a continuación.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Windows Security doesn't like one of the files in the Chromium source code (see

## Compilando

See [Build Instructions: GN](build-instructions-gn.md)
Ver [Build Instructions: GN](build-instructions-gn.md)

## Arquitectura 32bit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Si usted tiene bloqueos o problemas en Electron que cree que no son causados ​
* **.lldbinit**: Crear o editar `~/.lldbinit` para permitir que el código de Chromium sea correctamente mapeado de fuentes.

```text
command script import ~/electron/src/tools/lldb/lldbinit.py
# p. ej.: [' ~/electron/src/tools/lldb ']
script sys. Path [: 0] = ['<... path/to/electron/src/tools/lldb>']
script import lldbinit
```

## A y depuración Electron
Expand Down Expand Up @@ -87,7 +89,7 @@ Process 25244 stopped
122 return badge_count_;
```
**NOTE:** If you don't see source code when you think you should, you may not have added the `~/.lldbinit` file above.
**NOTA:** Si no ves el código fuente cuando crees que deberías, es posible que no hayas añadido el archivo `~/.lldbinit` anterior.
Para finalizar la depuración en este punto, corra `continuar proceso`. También puede continuar hasta cierta linea es tocada en este hilo (`hilo hasta 100`). Este comando correrá el hilo en la estructura actual hasta que alcance la linea 100 en este, o se detiene si deja la estructura en la que se encuentra.
Expand Down
8 changes: 4 additions & 4 deletions content/es-ES/docs/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Método de entrada del editor. Un programa que permite a los usuarios introducir

### IDL

Interface description language. Escribe firmas de funciones y tipos de datos en un formato que se puede utilizar para generar interfaces en Java, C++, JavaScript, etc.
Lenguaje de descripción de interfaz. Escribe firmas de funciones y tipos de datos en un formato que se puede utilizar para generar interfaces en Java, C++, JavaScript, etc.

### IPC

Expand Down Expand Up @@ -108,7 +108,7 @@ Véase también: [proceso principal](#main-process), [proceso de renderizado](#r

### proceso de renderizado

El renderer process es una ventana de navegador en tu aplicación. Unlike the main process, there can be multiple of these and each is run in a separate process. They can also be hidden.
El renderer process es una ventana de navegador en tu aplicación. Unlike the main process, there can be multiple of these and each is run in a separate process. También pueden ocultarse.

Véase también: [proceso](#process), [proceso principal](#main-process)

Expand All @@ -132,11 +132,11 @@ Como Node, Electron se centra en tener un pequeño conjunto de APIs que proporci

### V8

V8 is Google's open source JavaScript engine. It is written in C++ and is used in Google Chrome. V8 can run standalone, or can be embedded into any C++ application.
V8 es el motor JavaScript de código abierto de Google. Está escrito en C++ y es usado en Google Chrome. V8 puede ejecutarse de independiente o puede incrustarse en cualquier aplicación de C++.

Electrón forma V8 como parte de Chromium y luego apunta el Nodo ese V8 cuando lo está formando.

V8's version numbers always correspond to those of Google Chrome. Chrome 59 includes V8 5.9, Chrome 58 includes V8 5.8, etc.
Los números de versión V8's siempre se corresponden con los de Google Chrome. Chrome 59 incluye V8 5.9, Chrome 58 incluye V8 5.8, etc.

- [v8.dev](https://v8.dev/)
- [nodejs.org/api/v8.html](https://nodejs.org/api/v8.html)
Expand Down
6 changes: 3 additions & 3 deletions content/es-ES/docs/tutorial/code-signing.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const { systemPreferences } = require('electron')
const microphone = systemPreferences.askForMediaAccess('microphone')
```

Your app may crash. See the Resource Access section in [Hardened Runtime](https://developer.apple.com/documentation/security/hardened_runtime) for more information and entitlements you may need.
Puede que tu aplicación falle. See the Resource Access section in [Hardened Runtime](https://developer.apple.com/documentation/security/hardened_runtime) for more information and entitlements you may need.

## `Electron-builder`

Expand Down Expand Up @@ -143,7 +143,7 @@ Up until Electron 12, the `com.apple.security.cs.allow-unsigned-executable-memor

## Mac App Store

See the [Mac App Store Guide][].
Ver la [Mac App Store Guide][].

# Firmando compilaciones Windows

Expand All @@ -166,7 +166,7 @@ Hay una serie de herramientas para firmar su aplicación empaquetada:

## Windows Store

See the [Windows Store Guide][].
Ver la [Windows Store Guide][].

[Apple Developer Program]: https://developer.apple.com/programs/
[`electron-builder`]: https://github.com/electron-userland/electron-builder
Expand Down
4 changes: 2 additions & 2 deletions content/es-ES/docs/tutorial/context-isolation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Context Isolation
# Aislamiento del contexto

## What is it?
## ¿Qué es?

Context Isolation is a feature that ensures that both your `preload` scripts and Electron's internal logic run in a separate context to the website you load in a [`webContents`](../api/web-contents.md). This is important for security purposes as it helps prevent the website from accessing Electron internals or the powerful APIs your preload script has access to.

Expand Down
2 changes: 1 addition & 1 deletion content/es-ES/docs/tutorial/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If your app has its own dark mode, you should toggle it on and off in sync with

Si quieres cambiar manualmente entre los modos light/dark, puedes hacerlo configurando el modo deseado en la propiedad [themeSource](../api/native-theme.md#nativethemethemesource) del módulo `nativeTheme`. This property's value will be propagated to your Renderer process. Any CSS rules related to `prefers-color-scheme` will be updated accordingly.

## macOS settings
## configuraciones macOS

En macOS 10.14 Mojave, Apple introdujo un nuevo modo oscuro [para todo el sistema][system-wide-dark-mode] en sus ordenadores macOS. If your Electron app has a dark mode, you can make it follow the system-wide dark mode setting using [the `nativeTheme` api](../api/native-theme.md).

Expand Down
6 changes: 3 additions & 3 deletions content/es-ES/docs/tutorial/debugging-vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ $ code electron-quick-start
}
```

#### 3. Debugging
#### 3. Depuración

Set some breakpoints in `main.js`, and start debugging in the [Debug View](https://code.visualstudio.com/docs/editor/debugging). You should be able to hit the breakpoints.

Aquí hay un proyecto preconfigurado que puede descargar y depurar directamente en VSCode: https://github.com/octref/vscode-electron-debug/tree/master/electron-quick-start

## Debugging the Electron codebase
## Depurando el código base de Electron

If you want to build Electron from source and modify the native Electron codebase, this section will help you in testing your modifications.

Expand Down Expand Up @@ -94,6 +94,6 @@ $ code electron-quick-start
* `your-directory-name`: If you modified this during your build process from the default, this will be whatever you specified.
* The `args` array string `"your-electron-project-path"` should be the absolute path to either the directory or `main.js` file of the Electron project you are using for testing. In this example, it should be your path to `electron-quick-start`.

#### 3. Debugging
#### 3. Depuración

Set some breakpoints in the .cc files of your choosing in the native Electron C++ code, and start debugging in the [Debug View](https://code.visualstudio.com/docs/editor/debugging).
Loading

0 comments on commit 72cba72

Please sign in to comment.