Shortecode, translation

Home Forums Calendar Products Events Calendar PRO Shortecode, translation

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1178507
    Nicolo’ Orlandi
    Participant

    Hello, If I put in a page the shortcodes for the events of a category, when there are no events, an english sentence appears “There are no upcoming eventi at this time.” How can I translate this sentence in italian? Can you suggest me what to modify and how? Or can you upgrade the right translation in italian? The sentence should be “Non ci sono al momento eventi in programma”.

    Then a quick second question: can you show me the exact shortcode for more than one category?

    Thanks!

    #1178894
    Geoff B.
    Member

    Good evening Nicolo’ and welcome to the Events Calendar Support forum!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    How can I translate this sentence in italian?

    Provided that you have the latest language file and that it is updated, you should be able to see this sentence in Italian.

    As it turns out, some of our language files were not fully updated in our latest release.

    You can find the language files under the /lang/ folder of both our free and Pro plugins.

    From there you can:

    1. Download the complete /lang/ folder on your computer
    2. Using the free Poedit software, open the .pot file found and save it immediately.
    3. Close the .pot file
    4. Using the free Poedit software, open the Italian language file (.po)
    5. Using the Catalog > Update from pot file  option, update that file
    6. Look for the “There are no upcoming” string and fix any translation
    7. Save the .po file
    8. Upload the modified .po and .mo italian files back on your site
    9. Repeat the process for the Pro plugin

    can you show me the exact shortcode for more than one category?

    Currently our full calendar shortcodes do not fully support categories (but we are working on it very hard). So there is no shortcode available for that yet, but stay tuned.

    However, our pro widget shortcodes do support multiple categories.
    You can read about that here: https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1178981
    Nicolo’ Orlandi
    Participant

    Hello and thanks for support.

    About my 2 questions

    1) isn’t there a more simple way to do it? I am not a programmer, and for me it is difficult. Can’t you put the translation and upgrade the plugin? Otherwise, I would try to follow your solution, even if for me it’s a bit difficult 🙂

    2) Maybe I did not explain well. I mean, how to post a shortcode like the one here, with more than one category.

    Tell me if this example is correct, or if I have something to change. Here I’d like to show 2 category and a limit of total 3 events:

    [tribe_events_list category=”category1″, “category2″ limit=”3”]

    is this correct?

    #1179379
    Geoff B.
    Member

    Good afternoon Nicolo’,

    Thank you for writing back.

    1) isn’t there a more simple way to do it?

    Actually, not really. But normally you should not have to worry about that.
    The language files should always be up to date (which is something we are working at fixing).

    In the meantime, here is a copy of the most up to date files in Italian: italian

    You can simply upload them to the /wp-content/languages/plugins folder

    I believe the string is translated correctly in that update.

    2) Maybe I did not explain well. I mean, how to post a shortcode like the one here, with more than one category.

    Thank you for clarifying that.

    The correct syntax for that shorcode would be [tribe_events_list categories=”category1, category2″ limit=”3”]

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1180424
    Nicolo’ Orlandi
    Participant

    Well, something doesn’t work

    I used this:

    [tribe_events_list categories=”category1, category2″ limit=”3”]

    I have one event for category1 and one for category2. In this case, in the page is shown just the event of category1. If I invert cat1 and cat2, like this:

    [tribe_events_list categories=”category2, category1″ limit=”3”]

    in this case in the page there is only the event of category 2. I mean: it shows only the event of the first of the 2 categories.

    Why?

    #1181185
    Geoff B.
    Member

    Good evening Nicolo’,

    The issue is caused by the type of quotation marks you are using.

    They absolutely have to be straight : ”

    Other quotation marks will not work, such as : ” (which is what you have in the example above).

    The correct string should be

    [tribe_events_list categories=”category2, category1″ limit=”3″]

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1184402
    Nicolo’ Orlandi
    Participant

    Hello, I resolved the question number 2, correcting the shortcode. That’s ok.

    ABout question number 1, I uploaded the italian language, but this didn’t help.

    With the shortcode, if there are no events, it says is in english “There are no upcoming eventi at this time.” Only the word EVENTI is italians. A correct translation should be “Non ci sono eventi in programma”.

    How can I fix it?

    #1184686
    Geoff B.
    Member

    Good evening Nicolo’,

    I am glad you managed to fix the shortcode issue.

    I am sorry to hear that all the translations are not kicking in for Italian.

    As a first troubleshooting step, could you please provide us with your complete system information in a private reply using the instructions found in the following link?

    https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    That will help me establish what the cause of the issue is.

    Have a good week-end,

    Geoff B.

    #1184850
    Nicolo’ Orlandi
    Participant

    This reply is private.

    #1185354
    Geoff B.
    Member

    Good afternoon Nicolo’,

    Thank you for the system info.
    I did some more digging and I have found the cause of the issue.

    What is going on is that this specific string comes from the Events Calendar Pro language files.
    After checking the Italian language files tribe-events-calendar-pro-it_IT.po and tribe-events-calendar-pro-it_IT.mo more carefully, it appears that this specific string has not been translated for Pro yet (even thought it has for the Events Calendar free).

    If you simply add the translation in that file, it works. Here’s a copy of it where the string has been translated: italian

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1195852
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Shortecode, translation’ is closed to new replies.