Import-NAVApplicationObjectLanguage

Imports strings in the specified language into text files that contain Microsoft Dynamics NAV application objects.

Syntax

Import-NAVApplicationObjectLanguage
      [-Source] <String[]>
      [-LanguagePath] <String[]>
      [-Destination] <String>
      [[-LanguageId] <String[]>]
      [-Encoding <FileEncoding>]
      [-PassThru]
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Use the Import-NAVApplicationObjectLanguage cmdlet to import a language into the Microsoft Dynamics NAV application objects. For example, if you have exported multilanguage files in the Microsoft Dynamics NAV Development Environment, or by using the Export-NAVApplicationObjectLanguage cmdlet, you can import the strings into another version of the same application objects.

Examples

EXAMPLE 1

PS C:\>Import-NAVApplicationObjectLanguage -Source .\TAB14.TXT -LanguageId "ESP" -LanguagePath .\ALL-ESP.TXT -Destination .\RESULT\

This example imports the ESP language into the Microsoft Dynamics NAV 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.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Destination

Specifies the text file or folder where you want the result of the import to be put.

Type:String
Position:3
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters: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 Microsoft Dynamics NAV Development Environment.

Type:FileEncoding
Accepted values:OEM, Unicode, UTF7, UTF8, UTF32, ASCII, BigEndianUnicode, Default
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Skips confirmation prompts when the cmdlet is run.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters: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.

Type:String[]
Position:4
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters: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 Microsoft Dynamics NAV in the development environment or by using the Export-NAVApplicationObjectLanguage cmdlet.

Type:String[]
Aliases:PSPath, Language
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Specifies if you want to return an object for each application object and language ID with their language text values.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Source

Specifies the text file or folder that contains the Microsoft Dynamics NAV application objects that you want to import a language into. The cmdlet does not modify these text files.

Type:String[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False