GExperts grep expression for source strings with string literals (for translation)

How can I find all the strings in the Delphi source code using a search for gexperts grep that contains a string literal instead of a resource string, except for strings marked as 'do not translate'?

Example:

this line should match

  ShowMessage('Fatal error! Save all data and restart the application');

this line should not match

  FieldByName('End Date').Clear; // do not translate

(In particular, the question is about GExpert, since it has a limited implementation of grep afaik)

+3
source share
1 answer

Regular expressions cannot be denied at all .

Since you want to cancel part of the search, this is getting closer, as I can get it within the RegEx bounds that GExpers Grep Search understands:

\'.*\'.*[^n][^o][^t][^ ][^t][^r][^a][^n][^s][^l][^a][^t][^e]$

: $, GExperts Grep Search .

blokhead , .

Visual Studio , GExperts Grep Search .

grep -v (reverse), ( ).

.

-

+2

All Articles