Inno in multiple languages in Setup, use placeholder padding

Source: Internet
Author: User

As in:
[Custommessages] createdesktopicon=Create a Desktop iconnameandversion=%1 version%2

Normal to get information about fields in Custommessages, just use the Custommessage method to

var   s:string;begin  S:= custommessage ('createdesktopicon'); end;

The result of S is: Create a Desktop icon

However, the contents of the Nameandversion field are not fixed, but you want to be able to bind dynamically, you need to use the placeholder %1 and %2 , and dynamic binding, you also need to use the Fmtmessage method:

var   s:string;begin  S:= Fmtmessage (custommessage ('nameandversion'), [ ' My Program ' ' 1.0 ' ]); end;

The result of S is: My Program version 1.0

Bind my program and 1.0 to%1 and%2, respectively

Special Note: The second parameter of Fmtmessage () is the array type, so even if there is only one argument, it has to be in the form of an array [Element1, Element2]:

S: = Fmtmessage (Setupmessage (Msgnotonthisplatform), ['Windows']);



Inno in multiple languages in Setup, use placeholder padding

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.