Skip to content

Commit 5a95f00

Browse files
authored
New Crowdin updates (#2860)
* New translations webserverclass.md (French) * New translations command-index.md (French) * New translations webserverclass.md (French) * New translations webserverclass.md (French) * New translations webserverclass.md (Spanish) * New translations writeprointerface.md (Spanish) * New translations command-index.md (Spanish) * New translations webarea_overview.md (Spanish) * New translations compile-project.md (Spanish) * New translations dialog.md (Spanish) * New translations form.md (Spanish) * New translations http-request-handler.md (Spanish) * New translations wp-set-attributes.md (Spanish) * New translations wp-export-document.md (Spanish) * New translations wp-insert-break.md (Spanish) * New translations wp-export-variable.md (Spanish) * New translations outgoingmessageclass.md (Spanish) * New translations openaichatcompletionsapi.md (Spanish) * New translations openaichatcompletionslistparameters.md (Spanish) * New translations openaierror.md (Spanish) * New translations openaiimageparameters.md (Spanish) * New translations openaiimagesresult.md (Spanish) * New translations openaimessage.md (Spanish) * New translations openaimodel.md (Spanish) * New translations openairesult.md (Spanish) * New translations openaivisionhelper.md (Spanish) * New translations entityclass.md (Spanish) * New translations outgoingmessageclass.md (Spanish) * New translations webserverclass.md (Spanish) * New translations webarea_overview.md (Spanish) * New translations http-request-handler.md (Spanish) * New translations wp-export-document.md (Spanish) * New translations wp-export-variable.md (Spanish) * New translations wp-insert-break.md (Spanish) * New translations wp-set-attributes.md (Spanish) * New translations writeprointerface.md (Spanish) * New translations openaichatcompletionsapi.md (Spanish) * New translations openaichatcompletionslistparameters.md (Spanish) * New translations openaierror.md (Spanish) * New translations openaiimageparameters.md (Spanish) * New translations openaiimagesresult.md (Spanish) * New translations openaimessage.md (Spanish) * New translations openaimodel.md (Spanish) * New translations openairesult.md (Spanish) * New translations openaivisionhelper.md (Spanish) * New translations _imageutils.md (Spanish) * New translations dialog.md (Spanish) * New translations form.md (Spanish) * New translations listbox-get-property.md (Spanish) * New translations listbox-set-property.md (Spanish) * New translations orda-events.md (Spanish) * New translations vectorclass.md (Spanish) * New translations field-properties.md (Spanish) * New translations udpsocketclass.md (Spanish) * New translations entityclass.md (Spanish) * New translations outgoingmessageclass.md (Spanish) * New translations udpsocketclass.md (Spanish) * New translations vectorclass.md (Spanish) * New translations webserverclass.md (Spanish) * New translations field-properties.md (Spanish) * New translations formeditor.md (Spanish) * New translations webarea_overview.md (Spanish) * New translations orda-events.md (Spanish) * New translations configuring.md (Spanish) * New translations http-request-handler.md (Spanish) * New translations wp-export-document.md (Spanish) * New translations wp-export-variable.md (Spanish) * New translations wp-insert-break.md (Spanish) * New translations wp-set-attributes.md (Spanish) * New translations writeprointerface.md (Spanish) * New translations openaichatcompletionsapi.md (Spanish) * New translations openaichatcompletionslistparameters.md (Spanish) * New translations openaierror.md (Spanish) * New translations openaiimageparameters.md (Spanish) * New translations openaiimagesresult.md (Spanish) * New translations openaimessage.md (Spanish) * New translations openaimodel.md (Spanish) * New translations openairesult.md (Spanish) * New translations openaivisionhelper.md (Spanish) * New translations compile-project.md (Spanish) * New translations dialog.md (Spanish) * New translations form.md (Spanish) * New translations listbox-get-property.md (Spanish) * New translations listbox-set-property.md (Spanish) * New translations num.md (Spanish) * New translations trim-end.md (Spanish) * New translations trim-start.md (Spanish) * New translations trim.md (Spanish) * New translations string.md (Spanish) * New translations webserverclass.md (Japanese) * New translations command-index.md (Japanese) * New translations webserverclass.md (Japanese) * New translations webserverclass.md (Japanese) * New translations webserverclass.md (Portuguese, Brazilian) * New translations command-index.md (Portuguese, Brazilian) * New translations webserverclass.md (Portuguese, Brazilian) * New translations webserverclass.md (Portuguese, Brazilian)
1 parent 20ea5e2 commit 5a95f00

File tree

85 files changed

+196
-196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+196
-196
lines changed

i18n/es/docusaurus-plugin-content-docs/current/API/OutgoingMessageClass.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ id: OutgoingMessageClass
33
title: OutgoingMessage
44
---
55

6-
The `4D.OutgoingMessage` class allows you to build messages to be returned by your application functions in response to [REST requests](../REST/REST_requests.md). If the response is of type `4D.OutgoingMessage`, the REST server does not return an object but the object instance of the `OutgoingMessage` class.
6+
La clase `4D.OutgoingMessage` le permite construir mensajes para ser devueltos por las funciones de su aplicación en respuesta a las [peticiones REST](../REST/REST_requests.md). Si la respuesta es del tipo `4D.OutgoingMessage`, el servidor REST no devuelve un objeto, sino la instancia del objeto de la clase `OutgoingMessage`.
77

8-
Typically, this class can be used in custom [HTTP request handler functions](../WebServer/http-request-handler.md#function-configuration) or in functions declared with the [`onHTTPGet`](../ORDA/ordaClasses.md#onhttpget-keyword) keyword and designed to handle HTTP GET requests. Such requests are used, for example, to implement features such as download file, generate and download picture as well as receiving any content-type via a browser.
8+
Normalmente, esta clase puede ser usada en funciones personalizadas [HTTP request handler](../WebServer/http-request-handler.md#function-configuration) o en funciones declaradas con la palabra clave [`onHTTPGet`](../ORDA/ordaClasses.md#onhttpget-keyword) y diseñadas para manejar peticiones HTTP GET. Tales peticiones se utilizan, por ejemplo, para implementar funcionalidades como la descarga de archivos, generar y descargar imágenes así como recibir cualquier tipo de contenido a través de un navegador.
99

10-
An instance of this class is built on 4D Server and can be sent to the browser by the [4D REST Server](../REST/gettingStarted.md) only. This class allows to use other technologies than HTTP (e.g. mobile).
10+
Una instancia de esta clase se construye en 4D Server y puede ser enviada al navegador sólo por el [servidor REST 4D](../REST/gettingStarted.md). Esta clase permite utilizar otras tecnologías distintas de HTTP (por ejemplo, móvil).
1111

1212
<details><summary>Historia</summary>
1313

@@ -19,7 +19,7 @@ An instance of this class is built on 4D Server and can be sent to the browser b
1919

2020
### Ejemplo
2121

22-
En este ejemplo, una función `getFile()` es implementada en la [Datastore class](../ORDA/ordaClasses.md#datastore-class) y [puede ser llamada](../ORDA/ordaClasses.md#onhttpget-keyword) por una petición REST. The purpose is to return a **testFile.pdf** file as a response to the request:
22+
En este ejemplo, una función `getFile()` es implementada en la [Datastore class](../ORDA/ordaClasses.md#datastore-class) y [puede ser llamada](../ORDA/ordaClasses.md#onhttpget-keyword) por una petición REST. El objetivo es devolver un archivo **testFile.pdf** como respuesta a la petición:
2323

2424
```4d
2525
Class extends DataStoreImplementation
@@ -29,14 +29,14 @@ exposed onHTTPGet Function getFile() : 4D.OutgoingMessage
2929
var $result:=4D.OutgoingMessage.new()
3030
var $file:=File("/RESOURCES/testFile.pdf")
3131
32-
$result.setBody($file.getContent()) // This is binary content
32+
$result.setBody($file.getContent()) // Se trata de contenido binario
3333
$result.setHeader("Content-Type"; "application/pdf")
3434
return $result
3535
```
3636

3737
### Objeto OutgoingMessage
3838

39-
4D.OutgoingMessage objects provide the following properties and functions:
39+
Los objetos 4D.OutgoingMessage ofrecen las siguientes propiedades y funciones:
4040

4141
| |
4242
| -------------------------------------------------------------------------------------------------------------------------------------- |
@@ -61,7 +61,7 @@ Un objeto 4D.OutgoingMessage es un objeto [no compartible](../Concepts/shared.md
6161

6262
#### Descripción
6363

64-
La propiedad `.body` contiene <!-- REF #OutgoingMessageClass.body.Summary -->el cuerpo del mensaje saliente<!-- END REF -->. The following data types are supported in the `.body` property:
64+
La propiedad `.body` contiene <!-- REF #OutgoingMessageClass.body.Summary -->el cuerpo del mensaje saliente<!-- END REF -->. Los siguientes tipos de datos están soportados en la propiedad `.body`:
6565

6666
- text
6767
- blob
@@ -106,21 +106,21 @@ La propiedad `.headers` es de sólo lectura. Para definir un encabezado, use la
106106

107107
La función `.setBody()` <!-- REF #OutgoingMessageClass.setBody().Summary -->define el mensaje saliente *body*<!-- END REF -->.
108108

109-
The following data types are supported in the *body*:
109+
Los siguientes tipos de datos están soportados en el *body*:
110110

111111
- Text
112112
- Blob
113113
- Object
114114
- Imagen
115115

116-
When this function is used, the content-type header is automatically set depending on the *body* type:
116+
Cuando se utiliza esta función, el encabezado content-type se define automáticamente en función del tipo *body*:
117117

118118
- Content-Type:text/plain si el cuerpo es un Texto
119-
- Content-Type:application/octet-stream if body is a Blob
120-
- Content-Type:application/json if body is an Object
119+
- Content-Type:application/octet-stream si el body es un Blob
120+
- Content-Type:application/json si el body es un objeto
121121
- Content-Type:image/jpeg, image/gif... si el body es una imagen
122122

123-
If *body* is not of a supported value type, an error is returned.
123+
Si *body* no es de un tipo de valor soportado, se devuelve un error.
124124

125125
<!-- END REF -->
126126

@@ -141,13 +141,13 @@ If *body* is not of a supported value type, an error is returned.
141141

142142
#### Descripción
143143

144-
La función `.setHeader()` <!-- REF #OutgoingMessageClass.setHeader().Summary -->define lla llave *key* del encabezado del mensaje saliente con el *valuer* suministrado<!-- END REF -->. If both parameters are not Text values, an error is raised.
144+
La función `.setHeader()` <!-- REF #OutgoingMessageClass.setHeader().Summary -->define lla llave *key* del encabezado del mensaje saliente con el *valuer* suministrado<!-- END REF -->. Si ambos parámetros no son valores texto, se produce un error.
145145

146-
When returning a 4D.OutgoingMessage object instance, 4D automatically sets some headers (e.g. `Set-Cookie` with `WASID4D=...` and `4DSID__ProjectName_=....`).
146+
Al devolver una instancia del objeto 4D.OutgoingMessage, 4D define automáticamente algunos encabezados (por ejemplo, `Set-Cookie` con `WASID4D=...` y `4DSID__ProjectName_=....`).
147147

148148
:::note
149149

150-
Si define un *value* para la *key* el encabezado "Content-Type", asegúrese de llamar a esta función después de la llamada a [`setBody()`](#setbody), porque `setBody()` llena automáticamente este encabezado. For a list of "Content-Type" header values, please refer to the [`WEB SEND BLOB`](../commands-legacy/web-send-blob.md) documentation.
150+
Si define un *value* para la *key* el encabezado "Content-Type", asegúrese de llamar a esta función después de la llamada a [`setBody()`](#setbody), porque `setBody()` llena automáticamente este encabezado. Para obtener una lista de valores del encabezado "Content-Type", consulte la documentación de [`WEB SEND BLOB`](../commands-legacy/web-send-blob.md).
151151

152152
:::
153153

@@ -169,11 +169,11 @@ Si define un *value* para la *key* el encabezado "Content-Type", asegúrese de l
169169

170170
#### Descripción
171171

172-
La función `.setStatus()` <!-- REF #OutgoingMessageClass.setStatus().Summary -->establece la propiedad `status` con el *status*<!-- END REF -->.
172+
La función `.setStatus()` <!-- REF #OutgoingMessageClass.setStatus().Summary -->define la propiedad `status` con el *status*<!-- END REF -->.
173173

174-
If *status* is not an integer value, an error is raised.
174+
Si *status* no es un valor entero, se produce un error.
175175

176-
For a list of HTTP status codes, please refer the [HTTP status code list on Wikipedia](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes).
176+
Para obtener una lista de códigos de estado HTTP, consulte la [lista de códigos de estado HTTP en Wikipedia](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes).
177177

178178
<!-- END REF -->
179179

@@ -185,6 +185,6 @@ For a list of HTTP status codes, please refer the [HTTP status code list on Wiki
185185

186186
#### Descripción
187187

188-
La propiedad `.status` contiene <!-- REF #OutgoingMessageClass.status.Summary -->el estado actual del mensaje saliente<!-- END REF -->. This property can be set using the [`setStatus()`](setstatus) function.
188+
La propiedad `.status` contiene <!-- REF #OutgoingMessageClass.status.Summary -->el estado actual del mensaje saliente<!-- END REF -->. Esta propiedad puede definirse utilizando la función [`setStatus()`](setstatus).
189189

190190
<!-- END REF -->

i18n/es/docusaurus-plugin-content-docs/current/API/UDPSocketClass.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For debugging and monitoring, you can use the [4DTCPUDPLog.txt log file](../Debu
2727

2828
### Objeto UDPSocket
2929

30-
A UDPSocket object is immutable, non streamable.
30+
Un objeto UDPSocket no es modificable y no es streamable.
3131

3232
UDPSocket objects provide the following properties and functions:
3333

@@ -141,7 +141,7 @@ The `send()` function <!-- REF #UDPSocket.send().Summary -->sends *data* to the
141141

142142
*hostName* is the name or IP address of the server where the data will be sent.
143143

144-
*remotePort* is the number of the port to be connected to. If you pass 0, any available port will be used.
144+
*remotePort* is the number of the port to be connected to. Si pasa 0, se utilizará cualquier puerto disponible.
145145

146146
<!-- END REF -->
147147

0 commit comments

Comments
 (0)