Comments (9)
Hi Steve,
Can you add here what you tried and what the response was?
For the first issue:
The configuration name is not settable. From the documentation:
The configuration settings are stored in the file appsettings.json, in the user's roaming app settings folder, typically C:\Users\AppData\Roaming\Document Translation You may edit the file by hand, using a text editor of your choice.
For the second issue:
The tool uses the OS information about whether the given location is a file or a folder. If a folder is given, the tool will translate files in that folder, and will not recurse into subfolders. Does this explain the behavior you are seeing?
from documenttranslation.
from documenttranslation.
Hi Steve,
There is a real bug here: the message ERROR: Missing or invalid credentials. Use the 'config set' command to set values.
shows up when the source folder is empty. There is most likely nothing wrong with your credentials.
Use the command doctr config test
to get a hint whether your credentials are valid and accepted by the service.
It is by current design that the tool does not recurse through subfolders.
The following shows the translation of a set of files in a folder with one file being untranslatable.
Followed by the translation attempt of an empty folder.
I will treat this issue in the sense of:
Translation of an empty folder causes an erroneous error message about invalid or missing credentials
Let me know as a new "issue" if recursing through subfolders is essential for you. I am happy to add this as a feature.
from documenttranslation.
from documenttranslation.
You tried to translate a OneDrive folder. Can it be that the source files were not physically present on the drive yet? Explorer needs to show the green circle checkmark for the file(s) in question. I am not sure the tool would invoke OneDrive's just in time download.
I am quite sure that the target folder doesn't matter, as long as you have write permission to it.
from documenttranslation.
App fails to translate a OneDrive folder even when the files are locally present.
@skaschimer, for now please copy content to a non-OneDrive folder before starting translation.
My suspicion is that the OS reported folder attributes for a OneDrive folder are different than what the app is looking for.
I'll close this issue and carry the two new issues 106 and 107 forward.
from documenttranslation.
The failure to translate OneDrive folders was a stupid mistake in the logic for checking the file attributes, and a simple and safe fix.
from documenttranslation.
@skaschimer Closing this, pursuing the two issues in #106 and #107.
from documenttranslation.
Both the issues raised here are now fixed in code. Wait for the updated binaries or compile from current code.
from documenttranslation.
Related Issues (20)
- Unable to translate OneDrive folder HOT 1
- Azure Translator Service Keys are not working within the tool HOT 26
- Issue with Microsoft Translator tool HOT 5
- Unable to test successfully HOT 6
- DITA XML format HOT 9
- Custom Translate does not work for document translation but text translation HOT 3
- Unable to use application behind corporate proxy HOT 3
- HttpRequestException InnerException can be null HOT 3
- Central deployment of appsettings.json in locked-down clients HOT 1
- Make the proxy settings settable via command line (CLI)
- json files compatibility HOT 2
- Unable to locate DocumentTranslation Privacy Policy HOT 4
- Set KeyVaultURI via command line switch at install? HOT 1
- Add a link to relevant privacy documentation HOT 1
- The agent is killed while testing HOT 14
- json file not working
- Web interface with .Net 6 MAUI roadmap?
- Documents never finish translating when Target folder is a network drive
- Need the translated version editable HOT 3
- Is it safe enough to use it in a company and prevent information leakage? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documenttranslation.