codeunitAL Developmentofficial - Microsoftderived - from the source, no model text

Codeunit 43 "Language"

System Application · System.Globalization

Across versions

  1. BC23present
  2. BC247 procedures added
  3. BC25unchanged
  4. BC261 procedures added
  5. BC271 procedures added
  6. BC281 events added
  7. BC29-30unchanged

Neighbourhood 75 connected objects and pages

Codeunit 1306 "Company Information Mgt." (event subscribers)Codeunit 54 "Language Impl." (calls, 23 links)Language Impl.Codeunit 1890 "Reminder Communication" (calls, 6 links)Reminder CommunicationCodeunit 7774 "Copilot Capability Impl" (calls, 5 links)Copilot Capability ImplCodeunit 9180 "Generic Chart Mgt" (calls, 5 links)Generic Chart MgtCodeunit 2515 "AppSource Product Manager" (calls, 4 links)Codeunit 4325 "Agent Setup Impl." (calls, 3 links)Agent Setup Impl.Codeunit 4615 "MailKit Client" (calls, 3 links)MailKit ClientCodeunit 53 "Translation Helper" (calls, 3 links)Translation HelperCodeunit 8712 "Telemetry Impl." (calls, 3 links)Telemetry Impl.Codeunit 1814 "Assisted Setup Subscribers" (calls, 2 links)Codeunit 1996 "Checklist Banner Impl." (calls, 2 links)Checklist Banner Impl.Codeunit 4302 "SOA Validation Function" (calls, 2 links)Codeunit 4356 "Custom Agent Import" (calls, 2 links)Custom Agent ImportCodeunit 4400 "SOA Setup" (calls, 2 links)SOA SetupCodeunit 4598 "SOA Instructions" (calls, 2 links)SOA InstructionsCodeunit 46927 "BC14 Reminder Text Migrator" (calls, 2 links)Codeunit 7201 "CDS Integration Impl." (calls, 2 links)CDS Integration Impl.Codeunit 9011 "Azure AD Graph User Impl." (calls, 2 links)Report 1304 "Standard Sales - Quote" (calls, 2 links)Standard Sales - QuoteTable 472 "Job Queue Entry" (calls, 2 links)Table 9 "Country/Region" (calls, 2 links)Codeunit 10 "Type Helper" (calls)Codeunit 1180 "Data Privacy Mgmt" (calls)Codeunit 1392 "Monitor Sensitive Field" (calls)Codeunit 1485 "Rolecenter Selector Mgt." (calls)Codeunit 1681 "Email Logging Management" (calls)Codeunit 1797 "Data Migration Facade Helper" (calls)Codeunit 1800 "Assisted Company Setup" (calls)Codeunit 1806 "Excel Data Migrator" (calls)Codeunit 1878 "Guided Experience Subscribers" (calls)Codeunit 1991 "Guided Experience Impl." (calls)Codeunit 2011 "Entity Text AOAI Settings" (calls)Codeunit 20117 "AMC Bank Assisted Mgt." (calls)Codeunit 2027 "Image Analyzer Ext. Mgt." (calls)Codeunit 20366 "Tax Engine Assisted Setup" (calls)Codeunit 2518 "AppSrc Product Deps. Provider" (calls)Codeunit 392 "Reminder-Make" (calls)Codeunit 40 "LogInManagement" (calls)Codeunit 4701 "VAT Group Helper Functions" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

System Application · System.Globalization · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Access Public
SingleInstance true

Events published

  • OnGetUserLanguageCode(var UserLanguageCode: Code[10]; var Handled: Boolean) (integration): Integration event, emitted from . Subscribe to this event to change the default behavior by changing the provided parameter(s).
  • OnGetLanguageIdOrDefault(var DefaultLanguageCode: Code[10]) + BC28 (integration): Integration event, emitted from . Subscribe to this event to change the default behavior by changing the provided parameter(s).

Procedures

  • GetUserLanguageCode(): Code[10]: Gets the current user’s language code. The function emits the event. To change the language code returned from this function, subscribe for this event and change the passed language code.
  • GetUserLanguageTag(): Text[80] + BC27: Gets the current user’s language tag.
  • GetLanguageIdOrDefault(LanguageCode: Code[10]): Integer: Gets the language ID based on its code. Or defaults to the current user language.
  • GetFormatRegionOrDefault(FormatRegion: Text[80]): Text[80]: Returns format region for a given language. If format region is provided it itself will be returned. If format region is empty the region is taken from UserSessionSettings. If no valid tag is found, the default ‘en-US’ tag is returned.
  • GetLanguageId(LanguageCode: Code[10]): Integer: Gets the language ID based on its code.
  • SetOverrideLanguageId(LanguageId: Integer) + BC24 + BC24: Overrides the language ID returned by the GetLanguageIdOrDefault function.
  • SetOverrideLanguageId(LanguageId: Integer; ResetOverride: Boolean) + BC24 + BC24: Overrides the language ID returned by the GetLanguageIdOrDefault function.
  • SetOverrideFormatRegion(FormatRegion: Text[80]) + BC24 + BC24: Overrides the format region returned by the GetFormatRegionOrDefault function.
  • SetOverrideFormatRegion(FormatRegion: Text[80]; ResetOverride: Boolean) + BC24 + BC24: Overrides the format region returned by the GetFormatRegionOrDefault function.
  • GetLanguageCode(LanguageId: Integer): Code[10]: Gets the code for a language based on its ID.
  • GetWindowsLanguageName(LanguageCode: Code[10]): Text: Gets the name of a language based on the language code.
  • GetWindowsLanguageName(LanguageId: Integer): Text: Gets the name of a windows language based on its ID.
  • GetApplicationLanguages(var TempLanguage: Record "Windows Language" temporary): Gets all available languages in the application.
  • GetDefaultApplicationLanguageId(): Integer: Gets the default application language ID.
  • ToDefaultLanguage(ValueVariant: Variant): Text: Formats the provided value in default language.
  • ValidateApplicationLanguageId(LanguageId: Integer): Checks whether the provided language is a valid application language. If it isn’t, the function displays an error.
  • ValidateWindowsLanguageId(LanguageId: Integer): Checks whether the provided language exists. If it doesn’t, the function displays an error.
  • LookupApplicationLanguageId(var LanguageId: Integer): Opens a list of the languages that are available for the application so that the user can choose a language.
  • LookupWindowsLanguageId(var LanguageId: Integer): Opens a list of languages that are available for the Windows version.
  • LookupLanguageCode(var LanguageCode: Code[10]): Opens a list of the languages that are available for the application so that the user can choose a language.
  • GetParentLanguageId(LanguageId: Integer): Integer: Gets the parent language ID based on Windows Culture Info.
  • SetPreferredLanguageID(UserSecID: Guid; NewLanguageID: Integer): Sets the preferred language for the provided user.
  • GetTwoLetterISOLanguageName(LanguageID: Integer): Text[2] + BC24: Retrieves the two-letter ISO language name for the specified language ID.
  • GetLanguageIdFromCultureName(CultureName: Text): Integer + BC24: Retrieves the language ID for the specified culture name.
  • GetCultureName(LanguageID: Integer): Text + BC24: Retrieves the culture name for the specified language ID.
  • GetCurrentCultureName(): Text + BC26: Retrieves the current culture name for the session.

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

  • Codeunit 54 “Language Impl.” (21 calls: GetApplicationLanguages → GetApplicationLanguages, GetCultureName → GetCultureName, GetCurrentCultureName → GetCurrentCultureName, …)

Called by

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Language"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources