We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 5879 - Check for and remove unused keys
Check for and remove unused keys
Status: NEW
Product: OJS
Classification: Unclassified
Component: Localization
PC Mac OS X 10.6
: P5 normal
Assigned To: PKP Support
Depends on:
  Show dependency treegraph
Reported: 2010-09-02 20:37 PDT by James MacGregor
Modified: 2012-09-21 16:00 PDT (History)
1 user (show)

See Also:
Version Reported In:
Also Affects: OCS 2.3.4, OMP 1.0


Note You need to log in before you can comment on or make changes to this bug.
Description James MacGregor 2010-09-02 20:37:56 PDT
Courtesy of http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=6496&p=25057#p25074. There should be a way to check for and delete en_US locale keys that aren't used in the system. This should probably be done before any translation effort, to minimize work.
Comment 1 Alec Smecher 2010-09-17 15:58:57 PDT
There used to be a shell script for this in tools/ but it was removed because it was pretty inaccurate -- it wouldn't be possible to comprehensively do this because some locale keys are built programmatically, but it might be good to dredge up the old tool and see what it says. However, deferring to the next release. We also need to consider that a lot of locale keys are in the PKP library, so e.g. the Harvester will come up with a lot of keys in lib-pkp that aren't used but are still needed for other apps.