turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

POTGenerator keeping old references around #335

Closed ajbeaven closed 7 years ago

ajbeaven commented 7 years ago

I'm finding that there are a few entries that stick around in my generated .pot file that I want to remove as they are no longer used in my project. I have searched the project to ensure these phrases aren't used in the source code. I've tried manually clearing entries in the .pot and .po files and deleted the backup files but alas, each time the .pot file is generated, the entries reappear.

Is there some sort of cache that is used here that I can clear to get rid of these unwanted entries? I'm at a loss as to how the POTGenerator is even finding these phrases.

ajbeaven commented 7 years ago

Ahh, found it. After turning off i18n.DisableReferences, the reference included in the file directed me to an old file that was sitting in the solution's folder. These didn't show up in my VS search as it wasn't included in any project file.

I wonder if .POTGenerator should only look for files that are part of the solution, but that's probably for a another day.