Giter Site home page Giter Site logo

Comments (9)

chriswendt1 avatar chriswendt1 commented on July 22, 2024

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.

skaschimer avatar skaschimer commented on July 22, 2024

from documenttranslation.

chriswendt1 avatar chriswendt1 commented on July 22, 2024

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.

Screenshot 2022-11-21 120501

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.

skaschimer avatar skaschimer commented on July 22, 2024

from documenttranslation.

chriswendt1 avatar chriswendt1 commented on July 22, 2024

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.

chriswendt1 avatar chriswendt1 commented on July 22, 2024

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.

chriswendt1 avatar chriswendt1 commented on July 22, 2024

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.

chriswendt1 avatar chriswendt1 commented on July 22, 2024

@skaschimer Closing this, pursuing the two issues in #106 and #107.

from documenttranslation.

chriswendt1 avatar chriswendt1 commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.