Use the Import-NAVApplicationObjectLanguage cmdlet to import a language into the Business Central application objects.
For example, if you have exported multilanguage files in the Business Central Development Environment, or by using the Export-NAVApplicationObjectLanguage cmdlet, you can import the strings into another version of the same application objects.
This example imports the ESP language into the Business Central application object that is specified in the -Source parameter, TAB14.txt.
The strings are imported from the text files in the ALL-ESP.txt file, and the result of the command is a text file in the RESULT folder, TAB14.txt, that includes captions in Spanish.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Aliases:
cf
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Destination
Specifies the text file or folder where you want the result of the import to be put.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
3
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Encoding
Specifies the encoding for the exported file.
Valid values are Unicode, UTF7, UTF8, ASCII, UTF32, BigEndianUnicode, Default, and OEM.
The default value is OEM, which is the default encoding for the Business Central Development Environment.
Skips confirmation prompts when the cmdlet is run.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-LanguageId
Specifies the language or list of languages that you want to import, such as "DEU".
If you do not set this parameter, all available languages are imported.
Parameter properties
Type:
String[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
4
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-LanguagePath
Specifies the text file or files or folder with text files that contain the language-specific strings.
The text files must have been exported from Business Central in the development environment or by using the Export-NAVApplicationObjectLanguage cmdlet.
Parameter properties
Type:
String[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
PSPath, Language
Parameter sets
(All)
Position:
2
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-PassThru
Specifies if you want to return an object for each application object and language ID with their language text values.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Source
Specifies the text file or folder that contains the Business Central application objects that you want to import a language into.
The cmdlet does not modify these text files.
Parameter properties
Type:
String[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
1
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
True
Value from remaining arguments:
False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.