Validation Script plugin : check un-necessary files
We're doing validation after we integrated our files into
translatedfiles.netbeans.org, it's an approach for
post-integration. It would be nice
if we could provide validation of
pre-integration.
I'm trying to provide such validations to community folks so that they
can use before the integration. As you know, NetBeans is powerful IDE
and now it's easy to provide our specific feature e.g. validation as
plugin.
Overview
Validation 1 plugin is simply checking files under the target folders
and reporting un-necessary files, e.g.
- file without _<lang> extension
Bundle.properties
This file is considered as English file. So we should not integrate it.
Bundle_es_es.properties
It seems that Bundle_es.properties file is existing in OmegaT source
folder and an additional _es is added at file generation.
Online help files are existing under language specific folder e.g. /ja/
for Japanese, so these files are being ignored.
1. Download plugin
Download the above plugin and store it
to your local folder.
2. Install the plugin
The nbm file locally stored can be
installed into NetBeans. Invoke dialog by Tools > Plugins (for
NetBeans 6.0), Tools > Update Center (for NetBeans 5.x).
On NetBeans 6.0, click "Download" tab and "Add Plugins..." to add the
local file of
org-netbeans-translatedfiles-validation1.nbm
like below.
On NetBeans 5.x, choose "Install download files".
The name of plugin is listed like below. Please click "Install" button
to install.
3. Run the check
You need to prepare your target folders
in Projects, Files or Favorites window. Once the folder that contains
your localized files, right click to invoke context menu and select
Find Un-Necessary Files.
The results will be displayed on Output window.
In this case, these files do not have _<lang> extension so these
should be removed.
Validation page
After your integration, please pay
attention to the validation page.
NetBeans 5.5.1:
Please send you questions to dev@translatedfiles.netbeans.org.