How-to: Translate using Mobile Messages
- Johannes Sebastian Nielsen
- Maria Jose Avila
Description
Create multilingual customizations using Mobile Messages.
Use cases
- Modify existing translations
- Support multiple languages with your customization
Behavior on the device
The field "Language Code" on Mobile Users, determines what Mobile Messages are used.
Mobile Messages can also added by code as we will do in this example below.
Editing Mobile Messages manually
You can always manually from the Web Client, see Edit Mobile Messages.
Edit Default Main Menu
You can modify the existing Main menu, by creating specific mobile message that will overwrite the default.
MainMenuReceive
MainMenuPutAway
MainMenuPick
MainMenuCount
MainMenuPhysInvtRecording
MainMenuRegisterItemImage
MainMenuUnplannedCount
MainMenuProduction
MainMenuAssembly
MainMenuBulkMove
MainMenuUnplannedMove
MainMenuBinContent
MainMenuLocateItem
MainMenuPostShipment
MainMenuSubstituteItems
MainMenuItemCrossReference
MainMenuAdjustQuantity
MainMenuPrintLabel
MainMenuPrintLabel
MainMenuItemDimensions
MainMenuToteShipping
MainMenuPacking
MainMenuLPContent
MainMenuSettings
LicensePlate_Update_Pos
Editing Mobile Messages using code
Step 1 - Adding mobile messages
Using event OnAddMessages.
- Adding a Mobile Message and translations for English and Danish
- The _LanguageCode corresponds to Mobile Language
Step 2 - Using the mobile message as "label" for a header step on posting picks
Using event OnPostPickOrder_OnAddStepsToAnyHeader.
- Changing the "label" on Signature Step to use the new mobile message.
- See also Step Configuration Matrix
Step 3 - Trigger "OnAddMessages"-event
With the above event subscribers active, go to Business Central
- Open the Mobile Language-page
- Select the language
- Select action "Mobile Message"
- Select action "Create Messages"
- Repeat step 1-4 for each language, in this case ENU and DAN
Alternatively, you can write an Installation Codeunit that uses Codeunit "MOB WMS Language" to create the message in Step 1.
See also
-
Page:OnAddMessages — Add new custom messages (translations) or modify existing messages. Mobile Messages
-
Page:How-to: Translate using Mobile Messages — Create multilingual customizations using Mobile Messages.
Before
After
English
Danish