Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alex Lende

    (@ajlende)

    I wonder if there is any way to customize the CSS of the date field

    You can add custom CSS either through your theme’s customization or with a plugin like Blocks CSS or Simple Custom CSS. The selectors for the date field are .event__time, .event__label, and .event__date-select.

    and to translate the when and where

    Translations for all labels and placeholders of the block can be added through Translate WordPress. This will also make the translations available to others using the block.

    Hi Alex
    Concerning the CSS that works great thanks
    Translate WordPress i added in the French there this two words, but they don’t appear on the site. I use loco translate on my site but in this plugin i get only 4 strings in the profile in the directory i have 18. I wonder why the 18 do not show up in loco translate. Last thing i miss is to get the date for two days so if its an event that is two days long to show from to to, how can i get this? This event card is exactly what i need and simple not like all the calendar plugins, just miss a few things to use it. I think events for more than one day will be really useful also for others Thanks

    Plugin Author Alex Lende

    (@ajlende)

    > Translate WordPress i added in the French there this two words, but they don’t appear on the site.

    When using Translate WordPress, since the translations are available for everybody, the translations have to be approved by one of the Translation Editors. I haven’t gone through the process myself, yet, but you may be able to ask on the #polyglots channel in Slack to have one of the Translation Editors approve your translations.

    > I use loco translate on my site but in this plugin i get only 4 strings in the profile in the directory i have 18.

    I haven’t used the Loco Translate plugin before, but it seems to rely on POT files for translations being generated. JavaScript block plugins like this one use a JSON translation file so I don’t know if it will work, but I’ll try out generating the POT and JSON file and let you know the results.

    Plugin Author Alex Lende

    (@ajlende)

    I generated the POT file on the development version of the plugin which can be downloaded from the advanced tab.

    Loco Translate seemed to recognize the file, but I didn’t see translations loaded when I added some. It could be that I just don’t know how to use Loco Translate properly, but I found an issue on Loco Translate that could be the cause of translations not loading. There was a suggestion provided for how to produce the JSON file required that you may be able to try. Otherwise, waiting for someone in #polyglots may be the best we can do.

    Last thing i miss is to get the date for two days so if its an event that is two days long to show from to to, how can i get this?

    Sorry I forgot to answer this earlier. There have been other requests around date options, so it’s likely that features like date ranges will be added in the future. I don’t have a timeline for when those will be implemented, so in the meantime, the best option is to just describe that the event will last multiple days in the description. Which I understand isn’t a very satisfying answer, but is the best that can be done for now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translating when and where fields’ is closed to new replies.