unfoldingWord / gateway-translate

A tool for editing and translating text in USFM markup
MIT License
2 stars 3 forks source link

Upload USFM file shows no indication that a file has been added to be uploaded #159

Closed elsylambert closed 11 months ago

elsylambert commented 1 year ago

Upload USFM file shows no indication that a file has been added to be uploaded

mandolyte commented 1 year ago

@elsylambert how does this sound...

After the user selects a file, change the button text from "Add" to "Add myfile.usfm" to show the file name that user selected.

danielklapp commented 1 year ago

@mandolyte in gateway-translale I know in order to upload USFM file in open book dialog I must have a downloaded USFM file on my computer. Not sure where the best place is to download a USFM file to test with?

mandolyte commented 1 year ago

@danielklapp you can go to DCS; for example:

https://git.door43.org/Es-419_gl/es-419_glt/src/branch/master/08-RUT.usfm

Then click the "raw" button and it will show the usfm on the screen. Just select all of it and paste it into a text editor and save it somewhere.

There are other ways but this is probably the most general method.

danielklapp commented 1 year ago

The button does indicate that the user added a USFM file to be uploaded.

Screenshot 2023-04-19 at 12 05 01 PM

Looks good, tested with v0.9.2 build 1cb91f9 QA.

elsylambert commented 1 year ago

In v0.9.2 build 1cb91f9 QA, now it shows the USFM filename that can be uploaded/has been uploaded, but it does not clear the box after that particular USFM is added.

Screenshot 2023-04-20 at 8 57 23 AM
elsylambert commented 1 year ago

@mandolyte Can the USFM filename be cleared after its added?