• cmaperezalvarez

    (@cmaperezalvarez)


    First of all, thank you for this excellent plugin. I find it very useful and it meets my expectations perfectly.

    However, I have a problem: I can’t seem to set fixed dimensions for the container that displays the book. With values ​​like those shown in the examples, the container doesn’t fit in the remaining space on my webpage, which makes reading the book very difficult. I’ve tried various height and max-height values, without success.

    Would it be possible to set fixed, non-dynamic dimensions for the container?

    I’m using WordPress 6.9.4 + Divi 5.

    By the way, I’d like to translate the plugin into Spanish.

    Thank you for your help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Francesco Martini

    (@wrcisco)

    Hi, thank you for you kind words.

    If by “fixed, non-dynamic dimensions” you mean pixels, you surely can, with width="NNNpx" and height="NNNpx" . Otherwise, you can use any valid CSS value: if you have a container to fill, you can set both width and height to 100%, or you can use viewport units or more complex calculations with calc. Not knowing the exact layout of your page, I’m not sure what would work best for you.

    About the translation, that’s great! Give me a little time to set up the project and I’ll get back to you.

    Thread Starter cmaperezalvarez

    (@cmaperezalvarez)

    Hi,
    Thank you very much for your answer.
    Issue solved. it was about syntax:
    style=”height:400px” doesn’t work for me. It’s the way I used to for CSS styling.
    However, height=”400px” works fine.
    Furthermore, viewport units are more flexible to set height and witdh.
    Regarding the translation, send me the necessary material whenever you can, no problem.

    Plugin Author Francesco Martini

    (@wrcisco)

    Hi, sorry for the delay, I uploaded a new minor version of the plugin to allow user contributed translations on the WordPress platform: you should be able to go on https://translate.wordpress.org/projects/wp-plugins/simple-ebook-viewer/ and begin contributing a translation for one of the spanish locales. Let me know if you need anything, thanks!

    Thread Starter cmaperezalvarez

    (@cmaperezalvarez)

    Hi,

    Thank you for your work updating the plugin. I’m already working on the translation. I hope it lives up to the quality of the plugin.

    Thread Starter cmaperezalvarez

    (@cmaperezalvarez)

    Hi,

    I’ve finally finished translating the plugin. It wasn’t difficult, but the reviewers were very picky about some expressions, which is why it took longer than I would have liked. I hope we can see the plugin in Spanish soon.

    Once again, thank you for your work.

    Plugin Author Francesco Martini

    (@wrcisco)

    Hi, thank you!

    I think I’ll need to release another new version of the plugin in order to display the new translation, as it is currently using an embedded italian translation and it can’t handle both local translations and those on the online platform at the same time.

    I’m trying to get the italian translation approved on the platform as well, but if it isn’t unlocked by the start of next week, I’ll go ahead and release the new plugin’s version regardless.

    Plugin Author Francesco Martini

    (@wrcisco)

    I released yesterday the version 1.1.0 of the plugin, which works with both italian and spanish translations. I’m not sure how long it takes for a WordPress instance to install the new language pack; to test it, I downloaded the updated zip file from https://translate.wordpress.org/projects/wp-plugins/simple-ebook-viewer/language-packs/ and copied the files inside wp-content/languages/plugins.

    Thread Starter cmaperezalvarez

    (@cmaperezalvarez)

    I copied the four files to the language-packs folder, but it didn’t work, and the plugin is still appearing in English. Just in case, I deleted them so as not to interfere with the update, which I assume will be automatic, by WordPress.

    So, I guess I’ll have to wait. I’ll let you know when I finally see the plugin in Spanish. In the meantime, thanks for the update work.

    Plugin Author Francesco Martini

    (@wrcisco)

    Both the plugin and the language pack were updated to the version 1.1.0 (the language pack should contain the json file simple-ebook-viewer-es_ES-8ea62ac67c59323d2f8a1367744dc934.json)?

    If I try the plugin here I see the spanish translation as expected.

    Thread Starter cmaperezalvarez

    (@cmaperezalvarez)

    That’s strange. I’ve been comparing the .mo files (which I think is the important one) and the .po file in the languages ​​folder. The wp-content/plugins/simple-ebook-viewer/languages/simple-ebook-viewer-it_IT files have all the sentences translated (they’re 14 KB and 19 KB respectively), while the simple-ebook-viewer-es_ES files are much smaller (6 KB and 7 KB) and only contain some of the translations. Do we have to wait for the languages ​​folder to be automatically completed and updated?

    I’m not in a big hurry. Maybe it’s just a matter of waiting.

    Plugin Author Francesco Martini

    (@wrcisco)

    I think that the .po and .mo files from the translation platform contain only the translations of the strings in the php files (mainly for the admin panel), while I redacted manually the .po file for the italian translation embedded in the plugin and it contains all the translatable strings. The file that contains the majority of translations for the viewer in the frontend is the .json one (and for it to work, it’s important that the hash in the filename is 8ea62ac67c59323d2f8a1367744dc934).

    I don’t know what to expect in terms of timing, I hope it gets sorted out soon.

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.