Clean up tool maybe?
Hi Phil,
Working with your great tool over a longer period of time, our projects did change. Renaming/deleting files is not cleaned up by the tool. It will leave the mappings in the "mlp.xml" file and the resx files for each country will remain with same naming as well (rename destination will require rescan to work).
Real user story:
- CreateCustomer.aspx is created
- CreateCustomer_NEW.aspx is created to prepare a new UI and make it available for test for some customers
- CreateCustomer.aspx is renamed to CreateCustomer_OLD.aspx (and for a short period of time "OLD" will be available for customers not ready for the transition yet)
- CreateCustomer_NEW.aspx is renamed to CreateCustomer.aspx
The resx files is just waste of space and file count (takes more time to release). The mapping files on the other hand - they can mess up translations when above user story is executed. Let me elaborate.
Static text is converted into "LiteralResourceXXX" - The odds of having 2 LiteralResource with the same name in both "new" and "old" is almost 100% (e.g. LiteralResource1). The odds of "new" and "old" to have the same string of all colliting string IDs is minimal when the purpose of having 2 versions of the same page, was to change the contents. When I change my "NEW" to "current", it will use the mappings from "OLD".
I can imagine above wouldn't be an issue if I could either:
- Clean up the mappings file by clicking on an item in the "tool" menu
- Rescan and all mappings was cleaned up
Minor issues like removing multi-language from a file (ctrl+shift+space) and then renaming the file, will leave the record of the old filename to be ignored.. Adding a new file with the same filename (as the old filename) later, can make it difficult to understand why the file is not displaying (if you have the "hide ignored" filter activated).
----
My work around today (for any other users experiencing the same issues maybe), is to manually delete translation from files I want to rename or delete. So after deleting the file or renaming it, I go to App_LocalResources and delete the resx files. If I renamed the file, I go to the file and search for any resource id ( meta:resourcekey="\w*") and replace by empty string (). Then I search for LiteralResources (ID="LiteralResource) and replace with something different (ID="LitRes). This way I force the tool to generate new mappings.. But this is a (time consuming) hack.