The pain of unused labels is felt when you start translating your application to support the global versions. As we were porting our application to German we were seeing every possible way to speed up the translation work, one of it was to avoid translating unused labels. So we tried a few tools that helps us identify this but unfortunately nothing turned helpful. We then resorted to invent our own strategy
….
I’m just reposting what my
colleague had already posted on his blog with little more detail and a few additions …
*This job works only if your cross reference is updated*
01 | static void FindUnUsedLabels() |
16 | labelId = "@IFC" + int2str(i); |
20 | select recid from names |
21 | where names.Name == labelid |
23 | where names.RecId == ref .xRefNameRecId; |
25 | labelString = SysLabel::labelId2String(labelId); |
30 | labelString != labelId) |
32 | info(strfmt( "%1 - %2\n" , labelId, SysLabel::labelId2String(labelId))); |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.