OnConvertLanguageCodeToDeviceLanguageCode
Use this event to
Customize the suggested "Device Language Code" on the "Mobile languages" setup page.
Description
When setting up Mobile Language (7/10), the system automatically suggests Device Language Codes. E.g. Adding DEA (Austrian) will set Mobile Language Code to "DE" (German).
Using this event, you may implement changes to this behavior or add support for new languages, you yourself have translated.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Language", 'OnConvertLanguageCodeToDeviceLanguageCode', '', true, true)]
local procedure OnConvertLanguageCodeToDeviceLanguageCode(_LanguageCode: Code[10]; var _DeviceLanguageCode: Code[20]; var _IsHandled: Boolean)
begin
end;
Example
- Use device language code 'EN' for Malaysian
- Add a custom device language code 'TH' for Thai
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Language", 'OnConvertLanguageCodeToDeviceLanguageCode', '', true, true)]
local procedure MyOnConvertLanguageCodeToDeviceLanguageCode(_LanguageCode: Code[10]; var _DeviceLanguageCode: Code[20]; var _IsHandled: Boolean)
begin
// Malaysian
if _LanguageCode = 'MSL' then begin
_DeviceLanguageCode := 'EN'; // Use English language pack from standard mobile wms
_IsHandled := true;
end;
// Thai
if _LanguageCode = 'THA' then begin
_DeviceLanguageCode := 'TH'; // Use a device language pack that is not in standard, but is created by partner
_IsHandled := true;
end;
end;
See also:
Filter by label
There are no items with the selected labels at this time.
Version History
Version | Changes |
---|---|
MOB5.27 | Introduced |