Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:tk:formats:msgsrc [2024/01/19 15:49] – created prokushev | en:docs:tk:formats:msgsrc [2026/05/28 06:23] (current) – [Component Identifier Line] prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Input Message File Format ===== | + | ====== Input Message File Format |
| - | The input message file is a standard ASCII file that contains | + | The input message file is a standard ASCII file containing |
| - | | + | * Comment lines |
| - | Component identifier line | + | |
| - | Component message lines | + | |
| - | Comment Lines | + | ===== Comment Lines ===== |
| - | Comment lines are allowed | + | Comments may appear |
| + | A comment line must begin with a semicolon ('' | ||
| - | In the Input Message File Example, the comment lines are | + | Example: |
| + | < | ||
| + | ; This is a sample of an input | ||
| + | ; message file for component DOS | ||
| + | ; starting with three comment lines. | ||
| + | </ | ||
| - | ; This is a sample of an input | + | ===== Component Identifier Line ===== |
| - | ; message file for component DOS | + | |
| - | ; starting with three comment lines. | + | |
| - | | + | |
| - | The component-identifier | + | A single |
| - | In the example, the component | + | In the example, the identifier is '' |
| - | Component-Message Lines | + | |
| - | Each component-message line consists of a message header and an ASCII text message. | + | ===== Component Message Lines ===== |
| - | The message header | + | Each message line consists of a **message header** followed by the ASCII text of the message. |
| - | A three-character component identifier | + | ==== Message Header ==== |
| - | A four-digit message number | + | |
| - | A single character specifying message type (E, H, I, P, W, ?) | + | |
| - | A colon (:) | + | |
| - | Followed by a blank space. | + | |
| - | The following | + | The header is composed of the following |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | W Warning | + | |
| - | ? no message | + | |
| - | Message numbers can start at any number, but messages must be numbered sequentially. If you do not use a message | + | **Format:** '' |
| - | The character % has a special meaning when used within the text of a message: | + | ==== Message Types ==== |
| - | %0 is placed at the end of a prompt (type P) to prevent DosGetMessage from executing a carriage return and line feed. This allows the user to be prompted for input on the same line as the message text. | + | ^ Code ^ Type ^ Meaning |
| + | | E | Error | Error message | ||
| + | | H | Help | Help text | | ||
| + | | I | Information | Informational message | ||
| + | | P | Prompt | ||
| + | | W | Warning | ||
| + | | ? | (unused) | ||
| - | Mike Note: The %0 can be used with any message type!!!! So here is how this works: The message file is scanned, | + | ==== Numbering |
| - | %1 - %9 are used to identify variable string insertion within | + | * Message numbers may start at any value, but **must appear in strictly ascending sequential order** in the file. |
| + | * When a particular number is not used, a placeholder entry is required. A placeholder consists of the full header with the type ''?'' | ||
| - | Component-Message | + | Example: '' |
| - | For example, DOS0100E: is DOS error message 100. For additional examples, see the Input Message | + | ===== Special Characters in the Message |
| + | The percent sign ('' | ||
| + | |||
| + | ==== Suppressing the Trailing Newline ('' | ||
| + | |||
| + | If the sequence '' | ||
| + | |||
| + | ==== Inserting Variable Strings ('' | ||
| + | |||
| + | Sequences '' | ||
| + | |||
| + | Example: the message '' | ||
| + | |||
| + | ===== Complete Input File Example ===== | ||
| + | |||
| + | < | ||
| + | ; This is a sample of an input | ||
| + | ; message file for component MAB | ||
| + | ; starting with three comment lines. | ||
| + | MAB | ||
| + | MAB0100E: File not found | ||
| + | MAB0101?: | ||
| + | MAB0102H: Usage: del [drive: | ||
| + | MAB0103?: | ||
| + | MAB0104I: %1 files copied | ||
| + | MAB0105W: Warning! All data will be destroyed! | ||
| + | MAB0106?: | ||
| + | MAB0107?: | ||
| + | MAB0108P: Do you wish to apply these patches (Y or N)? %0 | ||
| + | MAB0109E: Divide overflow | ||
| + | </ | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||




