Skip to content

Commit cddbd7c

Browse files
authored
New Crowdin updates (#302)
1 parent 7af0442 commit cddbd7c

31 files changed

Lines changed: 706 additions & 706 deletions

content/features/code-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The Code Actions below will appear with teal green dots under the first two char
121121
| DR011 | [Rewrite using ISBLANK](xref:DR011) | Instead of comparing an expression with [`BLANK()`](https://dax.guide/BLANK), use the [`ISBLANK`](https://dax.guide/ISBLANK) function. Example:<br>`IF([Sales] = BLANK(), [Budget], [Sales])` -> `IF(ISBLANK([Sales], [Budget], [Sales])` |
122122
| DR012 | [Remove unnecessary BLANK](xref:DR012) | Some DAX functions, such as [`IF`](https://dax.guide/IF) and [`SWITCH`](https://dax.guide/SWITCH) already return `BLANK()` when the condition is false, so there is no need to explicitly specify `BLANK()`. Example:<br>`IF(a > b, a, BLANK())` -> `IF(a > b, a)` |
123123
| DR013 | [Simplify negated logic](xref:DR013) | When a logical expression is negated, it is often more readable to rewrite the expression using the negated operator. Example:<br>`NOT(a = b)` -> `a <> b` |
124-
| DR014 | [Simplify using IN](xref:DR014) | Rewrite compound predicates (equality comparisons of the same expression that are combined using [`OR`](https://dax.guide/OR) or [`||`](https://dax.guide/op/or/)) with the [`IN`](https://dax.guide/IN) operator. Example:<br>`a = 1 || a = 2 || a = 100` -> `a IN { 1, 2, 100 }` |
124+
| DR014 | [Simplify using IN](xref:DR014) | Rewrite compound predicates (equality comparisons of the same expression that are combined using [`OR`](https://dax.guide/OR) or [`\|\|`](https://dax.guide/op/or/)) with the [`IN`](https://dax.guide/IN) operator. Example:<br>`a = 1 \|\| a = 2 \|\| a = 100` -> `a IN { 1, 2, 100 }` |
125125

126126
### Rewrites
127127

localizedContent/es/content/features/CSharpScripts/Advanced/script-create-and-replace-M-parameter.md

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,69 +26,69 @@ Si quieres reemplazar una cadena en las particiones M del modelo (por ejemplo, l
2626
### Crear un nuevo parámetro M y agregarlo a las particiones M existentes
2727

2828
```csharp
29-
// Este script crea un nuevo parámetro M como una 'expresión compartida'.
30-
// También buscará el valor predeterminado en todas las particiones M y lo reemplazará por el nombre del objeto del parámetro.
29+
// This script creates a new M Parameter as a 'Shared Expression'.
30+
// It will also find the default value in all M partitions and replace them with the parameter object name.
3131
//#r "System.Drawing"
3232
3333
using System.Drawing;
3434
using System.Text.RegularExpressions;
3535
using System.Windows.Forms;
3636

37-
// Ocultar el control giratorio de 'Running Macro'
37+
// Hide the 'Running Macro' spinbox
3838
ScriptHelper.WaitFormVisible = false;
3939

40-
// Inicializar variables
40+
// Initialize variables
4141
string _ParameterName = "New Parameter";
4242
string _ParameterValue = "ParameterValue";
4343

44-
// Cuadro de diálogo de WinForms para obtener el nombre/valor del parámetro
44+
// WinForms prompt to get Parameter Name / Value input
4545
using (Form prompt = new Form())
4646
{
4747
Font formFont = new Font("Segoe UI", 11);
4848

49-
// Configuración del cuadro de diálogo
49+
// Prompt config
5050
prompt.AutoSize = true;
5151
prompt.MinimumSize = new Size(380, 120);
52-
prompt.Text = "Crear nuevo parámetro M";
52+
prompt.Text = "Create New M Parameter";
5353
prompt.StartPosition = FormStartPosition.CenterScreen;
5454

55-
// Buscar: etiqueta
56-
Label parameterNameLabel = new Label() { Text = "Escribe el nombre:" };
55+
// Find: label
56+
Label parameterNameLabel = new Label() { Text = "Enter Name:" };
5757
parameterNameLabel.Location = new Point(20, 20);
5858
parameterNameLabel.AutoSize = true;
5959
parameterNameLabel.Font = formFont;
6060

61-
// Cuadro de texto para introducir el texto de la subcadena
61+
// Textbox for inputing the substring text
6262
TextBox parameterNameBox = new TextBox();
6363
parameterNameBox.Width = 200;
6464
parameterNameBox.Location = new Point(parameterNameLabel.Location.X + parameterNameLabel.Width + 20, parameterNameLabel.Location.Y - 4);
6565
parameterNameBox.SelectedText = "New Parameter";
6666
parameterNameBox.Font = formFont;
6767

68-
// Reemplazar: etiqueta
69-
Label parameterValueLabel = new Label() { Text = "Escribe el valor:" };
68+
// Replace: label
69+
Label parameterValueLabel = new Label() { Text = "Enter Value:" };
7070
parameterValueLabel.Location = new Point(parameterNameLabel.Location.X, parameterNameLabel.Location.Y + parameterNameLabel.Height + 20);
7171
parameterValueLabel.AutoSize = true;
7272
parameterValueLabel.Font = formFont;
7373

74-
// Cuadro de texto para introducir el texto de la subcadena
74+
// Textbox for inputting the substring text
7575
TextBox parameterValueBox = new TextBox() { Left = parameterValueLabel.Right + 20, Top = parameterValueLabel.Location.Y - 4, Width = parameterNameBox.Width };
7676
parameterValueBox.SelectedText = "Parameter Value";
7777
parameterValueBox.Font = formFont;
7878

79-
// Botón Aceptar
80-
Button okButton = new Button() { Text = "Crear", Left = 20, Width = 75, Top = parameterValueBox.Location.Y + parameterValueBox.Height + 20 };
79+
// OK Button
80+
Button okButton = new Button() { Text = "Create", Left = 20, Width = 75, Top = parameterValueBox.Location.Y + parameterValueBox.Height + 20 };
8181
okButton.MinimumSize = new Size(75, 25);
8282
okButton.AutoSize = true;
8383
okButton.Font = formFont;
8484

85-
// Botón Cancelar
86-
Button cancelButton = new Button() { Text = "Cancelar", Left = okButton.Location.X + okButton.Width + 10, Top = okButton.Location.Y };
85+
// Cancel Button
86+
Button cancelButton = new Button() { Text = "Cancel", Left = okButton.Location.X + okButton.Width + 10, Top = okButton.Location.Y };
8787
cancelButton.MinimumSize = new Size(75, 25);
8888
cancelButton.AutoSize = true;
8989
cancelButton.Font = formFont;
9090

91-
// Acciones de los botones
91+
// Button actions
9292
okButton.Click += (sender, e) => { _ParameterName = parameterNameBox.Text; _ParameterValue = parameterValueBox.Text; prompt.DialogResult = DialogResult.OK; };
9393
cancelButton.Click += (sender, e) => { prompt.DialogResult = DialogResult.Cancel; };
9494

@@ -102,11 +102,11 @@ using (Form prompt = new Form())
102102
prompt.Controls.Add(okButton);
103103
prompt.Controls.Add(cancelButton);
104104

105-
// El usuario hizo clic en Aceptar, así que se ejecuta la lógica de buscar y reemplazar
105+
// The user clicked OK, so perform the find-and-replace logic
106106
if (prompt.ShowDialog() == DialogResult.OK)
107107
{
108108

109-
// Crea el parámetro
109+
// Creates the parameter
110110
Model.AddExpression(
111111
_ParameterName,
112112
@"
@@ -120,21 +120,21 @@ using (Form prompt = new Form())
120120
);
121121

122122

123-
// Informa al usuario de que el parámetro se creó correctamente
123+
// Informs the user that the parameter was successfully created
124124
Info (
125-
"Se creó correctamente un nuevo parámetro: " + @"""" +
125+
"Successfully created a new parameter: " + @"""" +
126126
_ParameterName + @"""" +
127-
"\nValor predeterminado: " + @"""" +
127+
"\nDefault value: " + @"""" +
128128
_ParameterValue + @"""");
129129

130130

131-
// Busca el valor predeterminado del parámetro en las particiones M y lo reemplaza por el nombre del parámetro
131+
// Finds the parameter default value in M Partitions & replaces with the parameter name
132132
string _Find = @"""" + _ParameterValue + @"""";
133133
string _Replace = @"#""" + _ParameterName + @"""";
134134

135135
int _NrMPartitions = 0;
136136
int _NrReplacements = 0;
137-
var _ReplacementsList = new List<string>();
137+
var _ReplacementsList = new List<0>();
138138

139139
foreach ( var _Tables in Model.Tables )
140140
{
@@ -146,43 +146,43 @@ using (Form prompt = new Form())
146146
{
147147
_p.Expression = _p.Expression.Replace( _Find, _Replace );
148148

149-
// Lleva el control de qué particiones M se reemplazaron (y cuántas)
149+
// Tracks which M partitions were replaced (and how many)
150150
_NrReplacements = _NrReplacements + 1;
151151
_ReplacementsList.Add( _p.Name );
152152
}
153153

154-
// Cuenta el total de particiones M
154+
// Counts the total # M Partitions
155155
_NrMPartitions = _NrMPartitions + 1;
156156
}
157157
}
158158
}
159159

160160

161-
// Crea una lista con viñetas de todas las particiones M que se reemplazaron
161+
// Makes a bulleted list of all the M partitions that were replaced
162162
string _ReplacedPartitions = "" + String.Join("\n", _ReplacementsList );
163163

164164

165-
// Informa
166-
// - Si la búsqueda y el reemplazo se realizaron correctamente
167-
// - Cuántas particiones M se reemplazaron
168-
// - En qué particiones M se aplicó la búsqueda y el reemplazo
165+
// Informs
166+
// - Whether the Find & Replace was successful
167+
// - How many M partitions were replaced
168+
// - Which M partitions had the Find & Replace done
169169
Info (
170-
"Se reemplazó correctamente\n\n " +
170+
"Successfully replaced\n\n " +
171171
_Find +
172-
"\n\n por: \n\n" +
172+
"\n\n with: \n\n" +
173173
_Replace +
174-
"\n\n en " +
174+
"\n\n in " +
175175
Convert.ToString(_NrReplacements) +
176-
" de " +
176+
" of " +
177177
Convert.ToString(_NrMPartitions) +
178-
" particiones M:\n" +
178+
" M Partitions:\n" +
179179
_ReplacedPartitions
180180
);
181181

182182
}
183183
else
184184
{
185-
Error ( "Entrada cancelada. El script finalizó sin cambios.");
185+
Error ( "Cancelled input! Ended script without changes.");
186186
}
187187
}
188188
```
@@ -199,6 +199,5 @@ Luego buscará el valor predeterminado en todas las particiones M y lo reemplaza
199199
</figure>
200200

201201
<figure style="padding-top: 15px;">
202-
<img class="noscale" src="~/content/assets/images/Cscripts/script-create-parameter-auto-replace.png" alt="Data Security Create Role" style="width: 550px;"/><figcaption style="font-size: 12px; padding-top: 10px; padding-bottom: 15px; padding-left: 75px; padding-right: 75px; color:#00766e"><strong>Figura 2:</strong> Cuadro de diálogo de confirmación que muestra que se ha creado el parámetro y que la subcadena de valor correspondiente se ha reemplazado en todas las expresiones de las particiones M. Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption>
203-
Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption>
202+
<img class="noscale" src="~/content/assets/images/Cscripts/script-create-parameter-auto-replace.png" alt="Data Security Create Role" style="width: 550px;"/><figcaption style="font-size: 12px; padding-top: 10px; padding-bottom: 15px; padding-left: 75px; padding-right: 75px; color:#00766e"><strong>Figura 2:</strong> Cuadro de diálogo de confirmación que muestra que se ha creado el parámetro y que la subcadena de valor correspondiente se ha reemplazado en todas las expresiones de las particiones M. Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption> Para parámetros de otros tipos, ajusta el código C# según corresponda.</figcaption>
204203
</figure>

localizedContent/es/content/features/CSharpScripts/Advanced/script-implement-incremental-refresh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Para usar el script, selecciona la columna de fecha de la tabla para la que quie
2525
> Asegúrate de comprobar que se ha hecho correctamente.
2626
>
2727
> Si tienes muchos pasos, asegúrate de mover este paso a un punto en el que pueda plegarse hasta la fuente de datos.
28-
> Asegúrate de ajustar todas las \\`#"Step References" en Power Query
28+
> Asegúrate de ajustar todas las \`#"Step References" en Power Query
2929
3030
> [!NOTE]
3131
> Este script usa la entrada del usuario para generar la política de actualización.

localizedContent/es/content/features/CSharpScripts/csharp-script-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: Morten Lønskov
55
updated: 2023-02-23
66
---
77

8-
# Biblioteca de scripts de C\\#
8+
# Biblioteca de scripts de C\#
99

1010
![Biblioteca de scripts de C#](~/content/assets/images/Cscripts/script-library-header.png)
1111

0 commit comments

Comments
 (0)