Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Check if files have been deleted #26

Open
ckab74 opened this issue Nov 13, 2019 · 4 comments
Open

Feature Request: Check if files have been deleted #26

ckab74 opened this issue Nov 13, 2019 · 4 comments

Comments

@ckab74
Copy link

ckab74 commented Nov 13, 2019

A request from our localization department.
It would be great if the Translation Package Builder could check if files have been deleted since the last milestone was created.

@raducoravu
Copy link
Contributor

Christina, thanks for adding the issue, can you tell me the current behavior of the builder when the file gets deleted? And what you want the behavior to be.

@ckab74
Copy link
Author

ckab74 commented Nov 15, 2019

Hi Radu,
Current behavior: when a file gets deleted, the ditamap in which the file was originally linked is changed accordingly. The TPB treats this file correctly and marks it as changed. But, for example, an author wouldn't know which file that is when the file has been deleted several weeks ago. So an author would have to diff the original ditamap and the latest one to see which files are no longer available - an extra step that would have to be done for all languages. If no diff is done, the deleted files stay in the language folders forever.
I could imagine that at least the report that is generated during the "Create modified files package" step could show a list of files that have been removed from a ditamap. Not sure if this is feasible, but if the authors could get a list of deleted files, they would have a better overview of what needs to be changed in the folders with translated files.
Not sure if the Apply Packages function could handle the deleted files when the translated files are copied to the translation folders.
I hope I've made myself clear enough.

@raducoravu
Copy link
Contributor

Yes, it's clear, we'll try to improve the generated HTML report.
One more thing, if you right click a DITA Map root element in the DITA Maps manager view there is a "Find Unreferenced Resources" action which can be run on the translated DITA Maps to find the topics and other resources (images for example) which are not used.

@ckab74
Copy link
Author

ckab74 commented Nov 19, 2019

Thanks, that would be great.
Yes, we know that function and think it's very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants