add "%s" mismatch check

This commit is contained in:
Glenn Maynard
2006-04-05 05:26:31 +00:00
parent 2040a81562
commit fa01aef5f5
+2 -2
View File
@@ -471,10 +471,10 @@ void LanguagesDlg::OnBnClickedCheckLanguage()
if( sCurrentLanguage.empty() )
continue;
/* Check &FOO;, %{foo}. Some mismatches here are normal, particularly in
/* Check &FOO;, %{foo}, %-1.2f, %. Some mismatches here are normal, particularly in
* languages with substantially different word order rules than English. */
{
RString sRegex = "(&[A-Za-z]+;|%{[A-Za-z]+}|%)";
RString sRegex = "(&[A-Za-z]+;|%{[A-Za-z]+}|%[+-]?[0-9]*.?[0-9]*[sidf]|%)";
vector<RString> asMatchesBase;
GetAllMatches( sRegex, sBaseLanguage, asMatchesBase );