Skip to content

Commit 0598bd4

Browse files
Merge pull request #2768 from doc4d/l10n_main
New Crowdin updates
2 parents 14ba759 + dd3c773 commit 0598bd4

File tree

626 files changed

+13810
-1561
lines changed

Some content is hidden

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

626 files changed

+13810
-1561
lines changed

i18n/es/code.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,13 +545,13 @@
545545
"message": "Notas del lanzamiento"
546546
},
547547
"homepage.sections.textensions.4D-Progress-url": {
548-
"message": "https://doc.4d.com/4Dv20R8/4D/20-R8/4D-Progress.100-7476284.en.html"
548+
"message": "https://doc.4d.com/4Dv20R9/4D/20-R9/4D-Progress.100-7545461.en.html"
549549
},
550550
"homepage.sections.textensions.4D-SVG-Component-url": {
551-
"message": "https://doc.4d.com/4Dv20R8/4D/20-R8/4D-SVG-Component.100-7477155.en.html"
551+
"message": "https://doc.4d.com/4Dv20R9/4D/20-R9/4D-SVG-Component.100-7546332.en.html"
552552
},
553553
"homepage.sections.textensions.4D-Widgets-url": {
554-
"message": "https://doc.4d.com/4Dv20R8/4D/20-R8/4D-Widgets.100-7477804.en.html"
554+
"message": "https://doc.4d.com/4Dv20R9/4D/20-R9/4D-Widgets.100-7546981.en.html"
555555
},
556556
"homepage.sections.mobile-applications.4D-for-iOS-Archive-url": {
557557
"message": "https://developer.4d.com/4d-for-ios/docs/en/overview.html"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ Diferente de Si *startFrom* < 0, se considera el desplazamiento desde el final d
17981798

17991799
> Esta función no modifica la colección original.
18001800
1801-
La función `.max()` <!-- REF #collection.max().Summary -->devuelve el elemento con el valor más alto de la colección<! - END REF --> (el último elemento de la colección, ya que sería ordenado en orden ascendente usando el [`.sort()`](#sort) función).
1801+
La función `.max()` <!-- REF #collection.max().Summary -->devuelve el elemento con el valor más alto de la colección <!-- END REF --> (el último elemento de la colección, ya que sería ordenado en orden ascendente usando el [`.sort()`](#sort) función).
18021802

18031803
Lanzamiento
18041804

i18n/es/docusaurus-plugin-content-docs/current/Debugging/debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Para mostrar el tipo de parámetro, marque la opción **Mostrar tipos** en el me
294294

295295
Después de desplegar la lista de parámetros, puede arrastrar y soltar los parámetros y los resultados de las funciones en el [Custom Watch Pane](#custom-watch-pane).
296296

297-
También puede utilizar el comando [Call chain](../commands-legacy/call-chain.md) para recuperar la cadena de llamadas por programación.
297+
También puede utilizar el comando [Call chain](../commands/call-chain.md) para recuperar la cadena de llamadas por programación.
298298

299299
## Panel de vigilancia personalizado
300300

i18n/es/docusaurus-plugin-content-docs/current/Extensions/overview.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ title: Extensiones
99

1010
4D incluye por defecto un conjunto de componentes 4D integrados, que puede ver en el tema **Métodos componentes** de la página Métodos del Explorador. Todos estos componentes también se pueden encontrar en el [repositorio github 4D](https://github.com/4d).
1111

12-
| Componente | Descripción | Principales funcionalidades |
13-
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
14-
| [4D Labels](https://github.com/4d/4D-Labels) | Componente interno necesario para la creación de plantillas de etiquetas | |
15-
| [4D NetKit](https://developer.4d.com/4D-NetKit) | Conjunto de herramientas para conectarse a las API de terceros | `OAuth2Provider` class, `New OAuth2 provider`, `OAuth2ProviderObject.getToken()` |
16-
| [4D Progress](https://github.com/4d/4D-Progress) | Abrir una o varias barras de progreso en la misma ventana | `Progress New`, `Progress SET ON STOP METHOD`, `Progress SET PROGRESS`, ... |
17-
| [4D SVG](https://github.com/4d/4D-SVG) | Crear y manipular objetos gráficos svg comunes | `SVGTool_Display_viewer`, métodos múltiples `SVG_` |
18-
| [4D ViewPro](ViewPro/getting-started.md) | Funciones de hoja de cálculo en sus formularios | Ver la [documentación 4D View Pro](ViewPro/getting-started.md) |
19-
| [4D Widgets](https://github.com/4d/4D-Widgets) | Gestione los widgets DatePicker, TimePicker, SearchPicker 4D | `DatePicker calendar`, `DateEntry area`, `TimeEntry`, `SearchPicker SET HELP TEXT`, ... |
20-
| [Interfaz 4D WritePro](https://github.com/4d/4D-WritePro-Interface) | Gestione las paletas [4D Write Pro](https://doc.4d.com/4Dv20/4D/20/4D-Write-Pro-Reference.100-6229455.en.html) y [el asistente de tablas](../WritePro/writeprointerface.md#table-wizard) | `WP PictureSettings`, `WP ShowTabPages`, `WP SwitchToolbar`, `WP UpdateWidget` |
12+
| Componente | Descripción | Principales funcionalidades |
13+
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
14+
| [4D AiIKit](https://github.com/4d/4D-AIKit) | Set of classes to connect to third-party OpenAI APIs | `OpenAIChat`, `OpenAIImage`... |
15+
| [4D Labels](https://github.com/4d/4D-Labels) | Componente interno necesario para la creación de plantillas de etiquetas | |
16+
| [4D NetKit](https://developer.4d.com/4D-NetKit) | Set of web service tools to connect to third-party APIs | `OAuth2Provider` class, `New OAuth2 provider`, `OAuth2ProviderObject.getToken()` |
17+
| [4D Progress](https://github.com/4d/4D-Progress) | Abrir una o varias barras de progreso en la misma ventana | `Progress New`, `Progress SET ON STOP METHOD`, `Progress SET PROGRESS`, ... |
18+
| [4D SVG](https://github.com/4d/4D-SVG) | Crear y manipular objetos gráficos svg comunes | `SVGTool_Display_viewer`, métodos múltiples `SVG_` |
19+
| [4D ViewPro](ViewPro/getting-started.md) | Funciones de hoja de cálculo en sus formularios | Ver la [documentación 4D View Pro](ViewPro/getting-started.md) |
20+
| [4D Widgets](https://github.com/4d/4D-Widgets) | Gestione los widgets DatePicker, TimePicker, SearchPicker 4D | `DatePicker calendar`, `DateEntry area`, `TimeEntry`, `SearchPicker SET HELP TEXT`, ... |
21+
| [Interfaz 4D WritePro](https://github.com/4d/4D-WritePro-Interface) | Manage [4D Write Pro palettes](https://doc.4d.com/4Dv20R9/4D/20-R9/Entry-areas.300-7543821.en.html and [table wizard](../WritePro/writeprointerface.md#table-wizard) | `WP PictureSettings`, `WP ShowTabPages`, `WP SwitchToolbar`, `WP UpdateWidget` |
2122

2223
## Componentes de terceros
2324

i18n/es/docusaurus-plugin-content-docs/current/FormObjects/webArea_overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ $4d.HelloWorld();
5151
5252
### Controlling $4d Access
5353

54-
With [`WA SET CONTEXT OBJECT`](../commands/wa-set-context-object.md), developers can control what can be available through `$4d` from a Web Area. Using this command you define a **context object** that declares for example 4D methods through formulas and class instances.
54+
With [`WA SET CONTEXT`](../commands/wa-set-context.md), developers can control what can be available through `$4d` from a Web Area. Using this command you define a **context object** that declares for example 4D methods through formulas and class instances.
5555

56-
To check the currently defined context, use [`WA Get context object`](../commands/wa-get-context-object.md).
56+
To check the currently defined context, use [`WA Get context`](../commands/wa-get-context.md).
5757

58-
For more information, please refer to [`WA SET CONTEXT OBJECT`](../commands/wa-set-context-object.md).
58+
For more information, please refer to [`WA SET CONTEXT`](../commands/wa-set-context.md).
5959

6060
### Calling 4D Methods from JavaScript
6161

i18n/es/docusaurus-plugin-content-docs/current/ORDA/ordaClasses.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,18 @@ El catálogo *City* siguiente está expuesto en un datastore remoto (vista parci
138138
La clase `City` ofrece una API:
139139

140140
```4d
141-
// clase cs.City
141+
// cs.City class
142142
143143
Class extends DataClass
144144
145-
Function getCityName()
146-
var $1; $zipcode : Integer
145+
Function getCityName($zipcode : Integer) -> $cityName : Text
147146
var $zip : 4D.Entity
148-
var $0 : Text
149147
150-
$zipcode:=$1
151148
$zip:=ds.ZipCode.get($zipcode)
152-
$0:=""
149+
$cityName:=""
153150
154151
If ($zip#Null)
155-
$0:=$zip.city.name
152+
$cityName:=$zip.city.name
156153
End if
157154
```
158155

i18n/es/docusaurus-plugin-content-docs/current/REST/ClassFunctions.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -494,21 +494,17 @@ Cuerpo de la petición:
494494
En este ejemplo, asociamos una escuela existente a una entidad Students. La clase `StudentsEntity` tiene una API:
495495

496496
```
497-
// Clase StudentsEntity
497+
// StudentsEntity class
498498
499499
Class extends Entity
500500
501-
exposed Function putToSchool()
502-
var $1, $school , $0, $status : Object
501+
exposed Function putToSchool($school : Object) -> $status : Object
503502
504-
//$1 es una entidad Schools
505-
$school:=$1
506-
//Asocia la entidad relacionada school a la entidad actual Students
503+
//$school is a Schools entity
504+
//Associate the related entity school to the current Students entity
507505
This.school:=$school
508506
509507
$status:=This.save()
510-
511-
$0:=$status
512508
```
513509

514510
You run this request, called on a Students entity : **POST** `http://127.0.0.1:8044/rest/Students(1)/putToSchool` Body of the request:
@@ -540,18 +536,12 @@ En la clase de Dataclass `Students`, la función `setFinalExam()` actualiza una
540536
541537
Class extends DataClass
542538
543-
exposed Function setFinalExam()
544-
539+
exposed Function setFinalExam($es : Object ; $examResult : Text) -> $keys : Collection
545540
546-
var $1, $es, $student, $status : Object
547-
var $2, $examResult : Text
548541
549-
var $keys, $0 : Collection
542+
var $student, $status : Object
550543
551-
//Entity selection
552-
$es:=$1
553-
554-
$examResult:=$2
544+
//$es is an Entity selection
555545
556546
$keys:=New collection()
557547
@@ -563,8 +553,6 @@ exposed Function setFinalExam()
563553
$keys.push($student.ID)
564554
End if
565555
End for each
566-
567-
$0:=$keys
568556
```
569557

570558
Un conjunto de entidades se crea primero con esta petición:

i18n/es/docusaurus-plugin-content-docs/current/ViewPro/commands/vp-get-workbook-options.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ title: VP Get workbook options
1111

1212
<!-- REF #_method_.VP Get workbook options.Params -->
1313

14-
| Parámetros | Tipo | | Descripción | |
15-
| ---------- | ------ | --------------------------- | ----------------------------------------------------- | ---------------- |
16-
| vpAreaName | Text | -> | Nombre de objeto formulario área 4D View Pro | |
17-
| Resultado | Object | <- | Objeto que contiene las opciones del libro de trabajo | <!-- END REF --> |
14+
| Parámetros | Tipo | | Descripción |
15+
| ---------- | ------ | --------------------------- | ----------------------------------------------------- |
16+
| vpAreaName | Text | -> | Nombre de objeto formulario área 4D View Pro |
17+
| Resultado | Object | <- | Objeto que contiene las opciones del libro de trabajo | <!-- END REF -->
1818

1919
## Descripción
2020

21-
`VP Get workbook options`<!-- REF #_method_.Get workbook options.Summary -->devuelve un objeto que contiene todas las opciones del libro de trabajo en vpAreaName -->
21+
`VP Get workbook options`<!-- REF #_method_.Get workbook options.Summary -->devuelve un objeto que contiene todas las opciones del libro de trabajo en vpAreaName <!-- END REF -->
2222

2323
En *vpAreaName*, pase el nombre del área 4D View Pro.
2424

@@ -36,4 +36,4 @@ $workbookOptions:=VP Get workbook options("ViewProArea")
3636

3737
## Ver también
3838

39-
[VP SET WORKBOOK OPTIONS](vp-set-workbook-options.md)
39+
[VP SET WORKBOOK OPTIONS](vp-set-workbook-options.md)
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
id: openai
3+
title: OpenAI
4+
---
5+
6+
# OpenAI
7+
8+
The `OpenAI` class provides a client for accessing various OpenAI API resources. It includes properties for managing API configurations and methods for performing HTTP requests to the OpenAI endpoints.
9+
10+
## Configuration Properties
11+
12+
| Property Name | Tipo | Descripción | Opcional |
13+
| -------------- | ---- | ---------------------------------------------------------------------------- | ------------- |
14+
| `apiKey` | Text | Your [OpenAI API Key](https://platform.openai.com/api-keys). | No for OpenAI |
15+
| `baseURL` | Text | Base URL for OpenAI API requests. ||
16+
| `organization` | Text | Your OpenAI Organization ID. ||
17+
| `project` | Text | Your OpenAI Project ID. ||
18+
19+
### Additional HTTP properties
20+
21+
| Property Name | Tipo | Descripción |
22+
| --------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
23+
| `timeout` | Real | Time in seconds before timeout occurs. |
24+
| `maxRetries` | Real | Maximum number of retry attempts in case of failure. |
25+
| `httpAgent` | [4D.HTTPAgent](https://developer.4d.com/docs/API/HTTPAgentClass) | HTTP agent used for making requests. |
26+
| `customHeaders` | Real | Custom headers to be included in the HTTP requests. |
27+
28+
### Class constructor
29+
30+
Create an instance of the OpenAI client class.
31+
32+
| Argument Name | Tipo | Descripción |
33+
| ------------- | -------------- | ----------------------------------------------------------------------------------------------- |
34+
| *apiKey* | Text or Object | apiKey if Text as first argument and the second can be an Object of parameters. |
35+
36+
#### API key
37+
38+
```4d
39+
// as text
40+
var $client:=cs.AIKit.OpenAI.new("your api key")
41+
// as object
42+
var $client:=cs.AIKit.OpenAI.new({apiKey: "your api key"})
43+
```
44+
45+
#### Server URL
46+
47+
For a [compatible provider](../compatible-openai.md) API, you can configure the server URL.
48+
49+
```4d
50+
var $client:=cs.AIKit.OpenAI.new({apiKey: "your api key"; baseURL: "https://server.ai"})
51+
```
52+
53+
or after creating an instance
54+
55+
```4d
56+
$client.baseURL:="https://server.ai"
57+
```
58+
59+
## API resources
60+
61+
The API provides access to multiple resources that allow seamless interaction with OpenAI's services. Each resource is encapsulated within a dedicated API class, offering a structured and intuitive way to interact with different functionalities.
62+
63+
| Property Name | Tipo | Descripción |
64+
| ------------- | ----------------------------------------------- | ---------------------------------------------- |
65+
| `models` | [OpenAIModelsAPI](OpenAIModelsAPI.md) | Access to the Models API. |
66+
| `chat` | [OpenAIChatAPI](OpenAIChatAPI.md) | Access to the Chat API. |
67+
| `images` | [OpenAIImagesAPI](OpenAIImagesAPI.md) | Access to the Images API. |
68+
| `moderations` | [OpenAIModerationsAPI](OpenAIModerationsAPI.md) | Access to the Moderations API. |
69+
70+
### Example Usage
71+
72+
```4d
73+
$client.chat.completions.create(...)
74+
$client.images.generate(...)
75+
$client.model.lists(...)
76+
```

0 commit comments

Comments
 (0)