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 7 years, 6 months ago by
palmtree.
-
AuthorPosts
-
August 1, 2017 at 2:23 pm #27184
palmtree
ParticipantHello,
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?
August 4, 2017 at 9:45 am #27214Raghavendra
ModeratorYou 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.
August 7, 2017 at 3:56 pm #27231palmtree
ParticipantHi 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 #27238Veena
ModeratorYou 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 #27249palmtree
ParticipantThank you for your support! It worked! Fantastic:DDD
-
AuthorPosts
- The topic ‘Livemesh Posts Carousel in Sidebar output post date (time stamp)’ is closed to new replies.