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
Translation for the key is missing (#download/#error) #1714
Comments
Sometimes it's hard to keep up with the UI changes of the pdf.js team... I guess that's what happened here, too. Although this particular error is a bit surprising. |
@stephanrauh my assumption is that these show up because the |
Exactly. I assume so, too, without having looked into my source code yet. The interesting question is: these strings used to be there. Why did they vanish? Usually, that's because Mozilla modified their HTML code without telling me. I'm just happy there are kind developers like you making me aware of these things! |
@stephanrauh Gotta love when things like that happen. At least this like my other issue is relatively minor. Speaking of, annotationLayerRendered works great btw, fixes an issue I also had when using pageRendered that wouldn't fire a second time for subsequent pages... so any style changes made only ever applied to the first page. But my assumption is that that wasn't exactly a bug and since annotationLayerRendered fixes the problem, not an issue. |
I was just wondering if my comment sounded patronizing. Your reaction indicates it doesn't - but in any case, patronizing isn't something I do. At least I try hard not do so - but nobody's perfect! I'd like to invite you to help me because I'm drowning in new tickets. In this particular case, this amounts to digging into the history of this file: As it turns out, the "download" button has been renamed recently: So that's what I've got to do - I need to follow the renaming. That's nasty, because I consider that a breaking change, requiring me to increase to the next major version number. Oops - I wanted to invite you to help me, but trying to provide you with some pointers I couldn't avoid finding the root cause myself. :) But maybe next time? Best regards, |
@stephanrauh not patronizing at all, if I ever knew what to look into for any bugs I'd be happy to help. Though I'm glad it seemed to only take you a short while to figure out the exact problem. Domain knowledge does that sometimes. |
@stephanrauh in regards to the previous issue #559, what should be done in the case that a 404 is returned when trying to get locale.properties? (this happens to be the case for a non-local environment). |
Well, that's something that should never happen. It sounds like a configuration mistake. If you don't want to load But that doesn't seem to be what you're describing. My best guess is the BTW, if all of your users prefer the English language, they're probably happy with the default. Granted, the console is full of error messages, but you can suppress these messages using a custom |
Thanks, I'll need to dig around the pipeline and figure out what's up and/or ask around on the project. All the warnings actually slows down the pdf loading by a noticeable amount. |
Ah it is built, it's just dumped into a storage account, so I likely need to figure out the right path maybe? |
I'm trying to reproduce your issue, but it doesn't happen on my showcase. As far as I can see, the download button has been renamed in pdf.js 3.5, so it's not an issue in the stable version yet. My best guess is you've really messed up your locale folder. What's your progress? Can you already confirm or deny that? In any case, it's always a good idea to double-check this kind of problems by creating a new sandbox project ( |
To answer your question: yes, I guess you're right. :) |
The locale.properties 404 issue got resolved, they had to add .properties file type as mimeMap in web.config for the app service. They are going to make sure it happens on all deployments. https://stackoverflow.com/questions/51634425/can-not-find-locale-properties-file-from-pdf-js |
Oh. I didn't expect that, but sure, it makes sense. I'm glad you've managed to find the bug! |
@stephanrauh oh uhhh this didn't fix the original bug, this was just the 404 issue I was having. So the download and error translations is still a problem, unless you have worked on that. |
I'm not sure. I didn't do anything consciously, but it's possible the magic of my build script fixed the problem. I can't reproduce the issue. Does it still happen on your machine with the latest version? |
Still have the issue on 16.2.8 |
Just in case you wonder why I'm not as responsive as I used to be: I was busy preparing a talk at a conference. |
Hi Kory, what's the current state of the art? Is the bug still there? If it is, I need your help because it doesn't happen on my machine. What happens if you create a fresh new project using
|
I'm closing the ticket now because I can't reproduce it. If you send me a reproducer, I'll happily re-open it. |
Describe the bug
Similar to this previous issue #559
However this only warnings for
#download
&#error
Most functionality is turned off, which explains why other translation warnings don't show up. Note that the downloadButton is turned off.
Also locale.properties appears to load correctly
Version info
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: