CodeCop Warning AA0074
TextConst and Label variable names should have an approved suffix.
Description
TextConst and Label variable names should have a suffix (an approved three-letter suffix: Msg, Tok, Err, Qst, Lbl, Txt) describing usage.
Remarks
Three-letter suffix | Meaning |
---|---|
Msg | Message |
Tok | Token |
Err | Error |
Qst | StrMenu or Confirm |
Lbl | Label, Caption |
Txt | Text |
Note
The Tok
suffix is generally used for short tokens such as "GET", "PUT", "HTTPS" etc. Furthermore, the variable name should align with the label itself, for example, GetTok
, PutTok
and HttpsTok
. In general, these tokens should have the Locked = true;
set so that they're not translated.
Example
// Label suffixed with Tok for Token
GetTok: Label 'GET', Locked = true;
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru