This type of extension is called whenever the Beebox creates a translated file in the "out" directory of a project. This can be triggered manually from the Beebox UI or by an automatic operation. Some use cases:
...
- Add a class that extendst BeeboxTranslatedFileAction.
- Code the Process() method. It is called with full details per created translated file.
- Compile and install your dll.
...
Info | ||
---|---|---|
| ||
If you plan to rename translated files, make sure to always leave the original translated file unchanged. Instead, create a copy of the file and save it under a different name (and ideally in a different location to avoid conflicts). |
Configuration options
The sample implementation below copies and renames translated files according to a user configurable pattern: Each file is copied to out\_copy\... and the file name is prefixed with the target language code.
...
We also override the EnableByDefault property and return false. This means that this extension is disabled by default in all projects. The Beebox administrator can then enable it for those projects it shall be used. This is done in the project settings page.
Sample class
The Beebox extension below copies and renames translated files.
...