Jump to content
Sign in to follow this  
ricktendo

[Tutorial] INF Part-2 "[Strings]"

Recommended Posts

[strings]

The "Strings" section is generally the last section in the INF file, a string key defined in this section may be used anywhere in the INF file that the corresponding string would be used. Using a strings key requires that it be enclosed in percent signs (%)

[Strings]
strings-key=value

strings-key

A unique name consisting of letters and digits.

value

A string consisting of letters, digits, or other printable characters. It should be enclosed in double-quotation marks if the corresponding strings key is used in a type of item that requires double quotation marks.

The Strings section makes translation of strings for international markets easier by placing all strings that can be displayed at the user interface when the INF file is used in a single section of the INF file. Strings keys should be used whenever possible.

Here is an example of what Strings are used for

Somewhere in the INF file you may find something like %String0%. To find out what that will get translated/expanded to simply look under the [strings] section and you will find the answer

[Strings]
String0="My Application";<- This is %String0%
String1="My Application Readme File"

Part-3

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...