@@ -55,7 +55,7 @@ Import-LocalizedData -BindingVariable "Messages"
5555```
5656
5757If the command is included in the Archives.ps1 script in the ` C:\Test ` directory, and the value of
58- the ` $PsUICulture ` automatic variable is zh-CN, ` Import-LocalizedData ` imports the ` Archives.psd1 `
58+ the ` $PSUICulture ` automatic variable is zh-CN, ` Import-LocalizedData ` imports the ` Archives.psd1 `
5959file in the ` C:\test\zh-CN ` directory into the ` $Messages ` variable.
6060
6161### Example 2: Import localized data strings
@@ -160,13 +160,13 @@ command that converts the contents of the DATA section to a hashtable and stores
160160
161161The script also includes an ` Import-LocalizedData ` command, which imports a hashtable of translated
162162text strings from the TestScript.psd1 file in the subdirectory specified by the value of the
163- ` $PsUICulture ` variable. If the command finds the ` .psd1 ` file, it saves the translated strings from
163+ ` $PSUICulture ` variable. If the command finds the ` .psd1 ` file, it saves the translated strings from
164164the file in the value of the same ` $UserMessages ` variable, overwriting the hashtable saved by the
165165DATA section logic.
166166
167167The third command displays the first message in the ` $UserMessages ` variable.
168168
169- If the ` Import-LocalizedData ` command finds a ` .psd1 ` file for the ` $PsUICulture ` language, the
169+ If the ` Import-LocalizedData ` command finds a ` .psd1 ` file for the ` $PSUICulture ` language, the
170170value of the ` $UserMessages ` variable contains the translated text strings. If the command fails for
171171any reason, the command displays the default text strings defined in the DATA section of the script.
172172
@@ -301,14 +301,14 @@ Accept wildcard characters: False
301301
302302# ## -UICulture
303303
304- Specifies an alternate UI culture. The default is the value of the `$PsUICulture ` automatic
304+ Specifies an alternate UI culture. The default is the value of the `$PSUICulture ` automatic
305305variable. Enter a UI culture in `<language>-<region>` format, such as `en-US`, `de-DE`, or `ar-SA`.
306306
307307The value of the **UICulture** parameter determines the language-specific subdirectory (within the
308308base directory) from which `Import-LocalizedData` gets the `.psd1` file for the script.
309309
310310The cmdlet searches for a subdirectory with the same name as the value of the **UICulture**
311- parameter or the `$PsUICulture ` automatic variable, such as `de-DE` or `ar-SA`. If it can't find the
311+ parameter or the `$PSUICulture ` automatic variable, such as `de-DE` or `ar-SA`. If it can't find the
312312directory, or the directory doesn't contain a `.psd1` file for the script, it searches for a
313313subdirectory with the name of the language code, such as de or ar. If it can't find the subdirectory
314314or `.psd1` file, the command fails and the data is displayed in the default language specified in
@@ -363,7 +363,7 @@ parameter.
363363
364364 ` Import-LocalizedData` begins the search in the directory where the script file is located (or the
365365 value of the **BaseDirectory** parameter). It then searches within the base directory for a
366- subdirectory with the same name as the value of the `$PsUICulture ` variable (or the value of the
366+ subdirectory with the same name as the value of the `$PSUICulture ` variable (or the value of the
367367 **UICulture** parameter), such as `de-DE` or `ar-SA`. Then, it searches in that subdirectory for a
368368 ` .psd1` file with the same name as the script (or the value of the **FileName** parameter).
369369
0 commit comments