Test-NAVApplicationObjectLanguage

Test-NAVApplicationObjectLanguage

Tests captions in Microsoft Dynamics NAV application objects to test to validate if they have translated strings for the specified languages.

Syntax

Parameter Set: Default
Test-NAVApplicationObjectLanguage [-Source] <String[]> [-LanguageId] <String[]> [-PassThru] [ <CommonParameters>]

Detailed Description

Use the Test-NAVApplicationObjectLanguage cmdlet to validate captions in Microsoft Dynamics NAV application objects. The cmdlet tests all multilanguage strings to verify if the objects have translated strings for the specified languages.

Parameters

-LanguageId<String[]>

Specifies the language or list of languages that you want to test for, such as "DEU". If you do not set this parameter, all available languages are tested.

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Specifies if you want to return a collection of objects that describe the missing translations.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Source<String[]>

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

Aliases

PSPath

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

This example tests the application object in the TAB14.txt file for captions in Spanish. If nothing is returned, the object has captions in ESP. If one or more captions in ESP are missing, a technical error is shown.

PS C:\> Test-NAVApplicationObjectLanguage –Source TAB14.TXT -LanguageId ESP

-------------------------- EXAMPLE 2 --------------------------

Description

-----------

This example tests the application objects in the RESULT folder for captions in Danish. If nothing is returned, the object has captions in DAN. If one or more captions in DAN are missing, a technical error is shown.

PS C:\> Test-NAVApplicationObjectLanguage –Source .\RESULT\*.TXT -LanguageId DAN

-------------------------- EXAMPLE 3 --------------------------

Description

-----------

This example tests the application object in the TAB14.txt file for captions in Spanish. If nothing is returned, the object has captions in ESP. If one or more captions in ESP are missing, an error is shown with the text that you specified.

PS C:\>    Test-NAVApplicationObjectLanguage –Source TAB14.TXT -LanguageId ESP -ErrorAction Stop

}

catch

{

    Write-Host "One or more translations are missing for the ESP language." -ForegroundColor Yellow

}