Integrator for Notes
DocsSupport RequestWebsite
  • Integrator for Notes
  • Introduction (Slideshows)
  • Installation
    • Language translation support
    • ActiveX settings in IE
    • Release History
  • How to
    • How to apply multilingual support
    • How to avoid the appearance of the prompt when leaving the page
    • How to attach more than 10 files to a Notes document
    • How to create Template database
    • How to install SWING Integrator ActiveX controls using the Active Directory (MSI package)
    • How to map fields from parent/other document
    • How to open existing document without prompt
    • How to place a watermark in a PDF document
    • How to rename attachments
    • How to sign PDF document
    • How to transfer Lotus Notes data to a MS Word header or footer
    • [Deprecated] - Avoid the appearance of the prompt when leaving the page
  • Error messages
    • "SwDocumentLib - SW_OpenMSWord 55-9999" message
    • "[40] - Unauthorized user. Please contact your database manager" message
    • "SwOpenOfficeLib - Sw_GetCurrentOODoc 9:91" error message
    • 4120 bad parameter
    • [Web] - 500 Internal server error
    • Error in loading DLL when PDF conversion starts
    • Lotus Notes crash when inserting SwAttachments subform in the 6.5.4
    • New line character appears as a square box
    • Object library invalid or contains references to object definitions that could not be found (After M
  • FAQ
  • Support
    • Support Request
    • Premium Export Services
Powered by GitBook
On this page
  • Description
  • Solution

Was this helpful?

  1. How to

How to apply multilingual support

Description

Let's say you want to have English and Norwegian messages versions.

Solution

If you need multilingual support, you should modify “SW_IntOfficeMsg” function in the “SwIntfOfficeMsg” library.

Basically, we are using this function in our code to get all the messages defined in the "(Declarations)" section.

Here is an example on how to enable multilingual support.

  • In the “SwIntOfficeMsg” library (or anywhere else, where appropriate) create a global variable named, say, SwLanguage

  • This variable could be set to either "EN" or "NO"

  • Now, in the “SwIntOfficeMsg” library "(Declarations)" section rename all the constants to SW_IntOfficeMsgEN1,2, etc. and create new ones, named SW_IntOfficeMsgNO1,2, etc.

  • The next step would be to modify SW_IntOfficeMsg function. You will have something like this:

Function SW_IntOfficeMsg (MsgNo As Integer) As String
Select Case MsgNo
Case 1
    If SwLanguage = "EN" Then
        SW_IntOfficeMsg = SW_IntOfficeMsgEN1
    Else
        SW_IntOfficeMsg = SW_IntOfficeMsgNO1
    End If
Case 2
    If SwLanguage = "EN" Then
        SW_IntOfficeMsg = SW_IntOfficeMsgEN2
    Else
        SW_IntOfficeMsg = SW_IntOfficeMsgNO2
    End If
PreviousHow toNextHow to avoid the appearance of the prompt when leaving the page

Last updated 3 years ago

Was this helpful?