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

Chrome does not download the file viewer.properties (localized l10n file) #6048

Closed
arielcarrera opened this issue May 25, 2015 · 3 comments
Closed

Comments

@arielcarrera
Copy link

When I open the demo or my custom implementation... I see in console:

thumbs is undefined.

l10n.js:901 #thumbs is undefined.
l10n.js:829 #thumbs_label is undefined.
l10n.js:901 #thumbs_label is undefined.
l10n.js:829 #outline is undefined.
l10n.js:901 #outline is undefined.
l10n.js:829 #outline_label is undefined.
l10n.js:901 #outline_label is undefined.
l10n.js:829 #attachments is undefined.
l10n.js:901 #attachments is undefined.
l10n.js:829 #attachments_label is undefined.
l10n.js:901 #attachments_label is undefined....
...

Chrome does not download the file viewer.properties
I tested it on FF and It works ok but in Chrome it doesn't work.

@Rob--W
Copy link
Member

Rob--W commented Jun 5, 2015

Can't reproduce. Could you share a link to a broken example?

pdfjsissue6048

@timvandermeij
Copy link
Contributor

Closing as incomplete until the information mentioned above is provided.

@aplanos
Copy link

aplanos commented Jun 19, 2015

I ran with the same and found the solution by adding a new import in the locale.properties file. When I was debugging I found that the locale variable in my browser was getting initialized with 'es' value. When I open the locale.properties file there were not a match for this value, so, i add it, referencing the es-es property file like this:

[es]
@import url(es-ES/viewer.properties)

This works for me.

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

No branches or pull requests

5 participants