<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Wrong display date format in french (maybe other languages as well?) - Bug Reports				            </title>
            <link>https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 19 Aug 2026 17:40:17 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Wrong display date format in french (maybe other languages as well?)</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/#post-2887</link>
                        <pubDate>Thu, 16 Jul 2020 11:05:40 +0000</pubDate>
                        <description><![CDATA[Hi @taron
Thanks for the swift answer !
Indeed it was really simple to solve... too much maybe :)
I didn&#039;t found it before and while browsing all the options... My apologizes for that.
H...]]></description>
                        <content:encoded><![CDATA[<p>Hi @taron</p>
<p>Thanks for the swift answer !</p>
<p>Indeed it was really simple to solve... too much maybe :)</p>
<p>I didn't found it before and while browsing all the options... My apologizes for that.</p>
<p>Have a nice day :)</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Scubadoo7800</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/#post-2887</guid>
                    </item>
				                    <item>
                        <title>RE: Wrong display date format in french (maybe other languages as well?)</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/#post-2884</link>
                        <pubDate>Thu, 16 Jul 2020 08:40:42 +0000</pubDate>
                        <description><![CDATA[Hi @scubadoo7800,
Please remove all the customizations you&#039;ve made, thennavigate to Dashboard &gt; wpDiscuz &gt; Settings &gt; General tab and find the &quot;Structure of Human Readable Date For...]]></description>
                        <content:encoded><![CDATA[<p>Hi <span>@scubadoo7800,</span></p>
<p>Please remove all the customizations you've made, then<br />navigate to Dashboard &gt; wpDiscuz &gt; Settings &gt; General tab and find the "Structure of Human Readable Date Format" option. You can configure the date format with this option.</p>
<p><br />More information here:<br /><a href="https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/general-settings/#structure-of-human-readable-date-format" target="true">https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/general-settings/#structure-of-human-readable-date-format</a></p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Taron</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/#post-2884</guid>
                    </item>
				                    <item>
                        <title>Wrong display date format in french (maybe other languages as well?)</title>
                        <link>https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/#post-2880</link>
                        <pubDate>Wed, 15 Jul 2020 21:07:06 +0000</pubDate>
                        <description><![CDATA[Hi guys,
First of all thanks for this awesome plugin. I&#039;m implementing it since yesterday but I&#039;m really enjoying it already.
Anyway I would like to report a bug in the display date format...]]></description>
                        <content:encoded><![CDATA[<p>Hi guys,</p>
<p>First of all thanks for this awesome plugin. I'm implementing it since yesterday but I'm really enjoying it already.</p>
<p>Anyway I would like to report a bug in the display date format.</p>
<p>On French websites the date isn't displayed in the right format (maybe same issue for sites running with other languages?)</p>
<p>In English we write "2 weeks ago" &gt; this is OK.</p>
<p>But in french we cannot say "2 semaines il y a" &gt; this is wrong. We should say "il y a 2 semaines".</p>
<p>So the translated phrase "wc_ago_text" must come before the date value.</p>
<p>I've found a workaround by updating 3 lines in the dateDiff function in file"utils/class.WpdiscuzHelper.php"</p>
<p>Line 100 :</p>
<p>-- Removed --      $text = "";</p>
<p>++ Added ++       $text = get_locale() == "fr_FR" ? esc_html($this-&gt;options-&gt;phrases) . " " : ""; </p>
<p>Line 127 :</p>
<p>-- Removed --       $replace[] = esc_html($this-&gt;options-&gt;phrases);</p>
<p>++ Added ++        $replace[] = get_locale() == "fr_FR" ? "" : esc_html($this-&gt;options-&gt;phrases);</p>
<p>Line 128 :</p>
<p>-- Removed --       $text = str_replace($search, $replace, $this-&gt;options-&gt;general);<br />++ Added ++        $text .= str_replace($search, $replace, $this-&gt;options-&gt;general);</p>
<p> </p>
<p>It does the job fine as of now but of course it will be scrapped at the next plugin update :-(</p>
<p>Would it be possible to tackle this translation issue in one of the next plugin updates ?</p>
<p>Maybe by creating an "exception array" for all the languages where "wc_ago_text" must come upfront ?</p>
<p>Thanks for reading and keep up the good job !</p>
<p>Best regards,</p>
<p>Fabrice.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/bug-reports/">Bug Reports</category>                        <dc:creator>Scubadoo7800</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/bug-reports/wrong-display-date-format-in-french-maybe-other-languages-as-well/#post-2880</guid>
                    </item>
							        </channel>
        </rss>
		