Use this event to
Excerpt |
---|
Customize default values for Device Language Codes to be used when entering setup at the Mobile Language page. |
...
[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
// [Example] : Suggest device language code 'EN' for Malaysian, and a new custom device language 'FRTH' for any french language 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 Use english language pack from standard mobile wms
_IsHandled := true;
end;
// Any french language Thai
if CopyStr(_LanguageCode, 1, 2) _LanguageCode = 'FRTHA' then begin
_DeviceLanguageCode := 'FRTH'; // Use some french device language pack (not in standard mobile wms, could be developed by a partner) Use a device language pack that is not in standard mobile wms, but is developed and deployed by customers partner
_IsHandled := true;
end;
end;
See also:
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
...