Livemesh Support

Support forum for WordPress Themes and Plugins by LiveMesh

Skip to content
  • Support Forums
  • Knowledge Base – FAQ
  • Register for Support
  • Login
  • Password Reset

Livemesh Posts Carousel in Sidebar output post date (time stamp)

Support Forums for LiveMesh Themes & Plugins › Forums › SiteOrigin Widgets Support › Livemesh Posts Carousel in Sidebar output post date (time stamp)

Tagged: Livemesh Posts Carousel, post date, published, time stamp, translation

  • This topic has 4 replies, 3 voices, and was last updated 3 years, 5 months ago by Palmtreepalmtree.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 1, 2017 at 2:23 pm #27184
    Palmtreepalmtree
    Participant

    Hello,

    I’m using Livemesh SiteOrigin Widgets Pro and in Sidebar widget I use “livemesh Posts Carousel”. I have ticked the “Display post date info below the post item?” option on. In the HTML view I can see “slick-slide” as a class name. The post date format currently seems like “M d, Y” and “l, F, Y, g:i a” and I have created language file to translate to Japanese (livemesh-siteorigin-widgets-pro > languages > ja.po) Both of the time stamp translation are set to output something like Y年n月j日 but they have been never reflected inside the widget… I assumed it the string is located inside “includes/helper-functions.php” and `function lsow_entry_published($format = null) {

    if (empty($format))
    $format = esc_html__(“M d, Y”, ‘livemesh-so-widgets’);

    $published = ‘<span class=”published”><abbr title=”‘ . sprintf(get_the_time(esc_html__(‘l, F, Y, g:i a’, ‘livemesh-so-widgets’))) . ‘”>’ . sprintf(get_the_time($format)) . ‘</abbr></span>’;

    return $published;

    $link = ‘<span class=”published”>’ . ‘<a href=”‘ . get_day_link(get_the_time(esc_html__(‘Y’, ‘livemesh-so-widgets’)), get_the_time(esc_html__(‘m’, ‘livemesh-so-widgets’)), get_the_time(esc_html__(‘d’, ‘livemesh-so-widgets’))) . ‘” title=”‘ . sprintf(get_the_time(esc_html__(‘l, F, Y, g:i a’, ‘livemesh-so-widgets’))) . ‘”>’ . ‘<span class=”updated”>’ . get_the_time($format) . ‘</span>’ . ‘</a></span>’;

    return $link;
    }`
    Correct?

    In the theme or other plugin, I use PO edit to do this and usually works. Could you tell me why this doesn’t work?
    I have deactivate the plugin and also restarted database etc but still….

    Could you help me?

    Attachments:

    You must be logged in to access attached files.

    August 4, 2017 at 9:45 am #27214
    RaghavendraRaghavendra
    Moderator

    You just helped us uncovering a bug in our code. Can you pls unzip the attached languages folder contents in your installation and checking if translation works? Basically you need to rename your translation file into livemesh-so-widgets-ja.po and check if that resolves the issue. We had missed the prefix livemesh-so-widgets and hence the translations were not happening.

    I verified that the translation is indeed working for the format string you mention above.

    Attachments:

    You must be logged in to access attached files.

    August 7, 2017 at 3:56 pm #27231
    Palmtreepalmtree
    Participant

    Hi Meteorite,
    Thank you for your response!
    I am very happy that this can be resolved. Now could you kindly tell me which language folder it should be referred to?
    Is it theme language folder or plugin (if plugin, please tell me exact location). For both theme and plugin, I couldn’t find the same name livemesh-so-widget po etc. I thought I should overwrite existing…

    Cheers:D

    August 8, 2017 at 4:53 am #27238
    VeenaVeena
    Moderator

    You need to change plugin languages folder.
    Pls unzip the above attached languages folder and put all the files in your plugins folder and update .

    August 8, 2017 at 12:35 pm #27249
    Palmtreepalmtree
    Participant

    Thank you for your support! It worked! Fantastic:DDD

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Livemesh Posts Carousel in Sidebar output post date (time stamp)’ is closed to new replies.

Our Themes

Tags

  • agile
  • appdev
  • austin
  • blog
  • contact form
  • css
  • demo
  • error
  • extinct
  • font
  • fonts
  • footer
  • gallery
  • header
  • home page
  • icons
  • images
  • install
  • installation
  • invent
  • lightbox
  • logo
  • menu
  • mobile
  • navigation
  • page sections
  • peak
  • portfolio
  • primary menu
  • responsive
  • revolution slider
  • setup
  • shortcode
  • shortcodes
  • sidebar
  • slider
  • social icons
  • testimonials
  • theme
  • update
  • video
  • visual composer
  • widget
  • widgets
  • woocommerce
Proudly powered by WordPress