RegEx QM Criteria for Software Localization
File extensions
Checks the consistent use of file extensions like *.exe. The criterion considers all file extensions containing the component *., i.e. *.exe as well as other extensions like *.RESOURCE.
Option | Details |
Condition | Report if source matches, but target has fewer matches |
Error description | A file extension from the source text is missing |
Source regex | \*\.([a-z0-9]{1,}|[A-Z0-9]{1,})\b Activate the Case-sensitive option |
Target regex | \*\.([a-z0-9]{1,}|[A-Z0-9]{1,})\b Activate the Case-sensitive option |
Hotkeys
Makes sure that hotkeys (e.g. Alt&F for opening the File menu) are duly used in dialogs and menus and that they are not used in more than one way.
Option | Details |
Condition | Report if source matches, but target has a different number of matches |
Error description | A hotkey indicator from the source text has been set incorrectly |
Source regex | &(?=[A-z0-9]+) |
Target regex | &(?=[A-z0-9]+) |
Windows string placeholders
Checks the correctness of printf placeholders such as %d or %s.
Option | Details |
Condition | Report if source matches, but target has a different number of matches |
Error description | Number of string placeholders does not match |
Source regex | %[ 0#+-]?(\d+(\.\d+)?)?[hljztL]{0,2}\*?[diuoxXfFeEgGaAcspn%] Activate the Case-sensitive option |
Target regex | %[ 0#+-]?(\d+(\.\d+)?)?[hljztL]{0,2}\*?[diuoxXfFeEgGaAcspn%] Activate the Case-sensitive option |
.NET string placeholders
Checks the correctness of printf placeholders like {0}, {1}, {2}, etc.
Option | Details |
Condition | Report if source matches, but target has a different number of matches |
Error description | Number of string placeholders does not match |
Source regex | \{\d{1,3}(:[a-z0-9#%‰]+(([ ]+|[:;.,_\\-])[A-z0-9#%‰]+)*)?\} Activate the Case-sensitive option |
Target regex | \{\d{1,3}(:[a-z0-9#%‰]+(([ ]+|[:;.,_\\-])[A-z0-9#%‰]+)*)?\} Activate the Case-sensitive option |
Tab stops
Checks the consistent use of the \t character in string tables.
Option | Details |
Condition | Report if source matches, but target has a different number of matches |
Error description | Number of \t characters does not match |
Source regex | \\t Activate the Case-sensitive option |
Target regex | \\t Activate the Case-sensitive option |
Line breaks
Checks the consistent use of the \n character in string tables.
Option | Details |
Condition | Report if source matches, but target has a different number of matches |
Error description | Number of \n characters does not match |
Source regex | \\n Activate the Case-sensitive option |
Target regex | \\n Activate the Case-sensitive option |
Additional Information