• Resolved sphakka

    (@sphakka)


    It looks like the Kijkwijzer extension lacks (basic: EN, FR, …) translations for its alt text. Irrespective of site’s language settings, the text is always Dutch. Is it a bug? Otherwise, could anybody please provide the English translation and where to put it? I’ll then contribute other translations (FR, IT).

    https://wordpress.org/plugins/theatre/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeroen Schmit

    (@slimndap)

    Hi!

    The Kijkwijzer extension is in Dutch because it is the Motion picture rating system of The Netherlands.

    France is using a totally different system:
    http://rating-system.wikia.com/wiki/French_Movie_Rating_System

    The Kijkwijzer is however fully translatable. You can find the English texts here:
    http://www.kijkwijzer.nl/english

    If you’d like to provide a French translation, I would be more than happy to include it in the extension.

    Jeroen

    Thread Starter sphakka

    (@sphakka)

    Thanks for the quick feedback!

    The Kijkwijzer extension is in Dutch because it is the Motion picture rating system of The Netherlands.

    I know, but the icons are awesome 😉

    Indeed, I’m in Switzerland which uses Germany’s FSK plus some adjustments. So I’d just need an extra “18” icon, which I can make myself: which font did you use?

    Plugin Author Jeroen Schmit

    (@slimndap)

    I didn’t use a font. I used the SVGs that you can also find on Wikipedia.
    You can find the icons inside the assets folder of the extension.

    Thread Starter sphakka

    (@sphakka)

    I see, thanks!

    BTW, is there a way to show icons on production pages (without manually adding shortcodes)? Maybe I’m missing something, but I don’t see any template for productions…

    Plugin Author Jeroen Schmit

    (@slimndap)

    If you want to create a template for productions, you need to create a new single-wp_theatre_prod.php template file inside your theme folder.

    You can then show the Kijkwijzer icons inside the new template using this code:

    $production = new WPT_Production();
    echo $production->custom( 'kijkwijzer', array( 'html' => true ) );
    Thread Starter sphakka

    (@sphakka)

    Here me back after some hacking (pretty new to WP dev).

    Actually putting the Kijkwijzer in an upstream theme template prevents proper integration with the production’s contents — it can only be shown before or after the whole production content.

    Thus, I implemented it inside the Kijkwijzer plugin itself via a filter hooked to the wpt_production_page_content(). Since I was at it, also added admin options to toggle the display (for now in a fixed place) and to use German/Swiss FSK icon variants.

    Finally, I refactored a bit the code to handle translations.

    Jeroen, if you’re interested, I can provide offline the code and extra icons.

    Plugin Author Jeroen Schmit

    (@slimndap)

    I would love to see what you did. Can you send the code to jeroen@slimndap.com.

    I’m planning on releasing extensions for many more rating systems in different countries. So far, I released extensions for the US, UK and NL.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘kijkwijzer alt text translations’ is closed to new replies.