<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Fix for localizations that use . and , differently</title>
		<link>https://legacy.forums.gravityhelp.com/topic/fix-for-localizations-that-use-and-differently</link>
		<description>Gravity Support Forums Topic: Fix for localizations that use . and , differently</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:27:13 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/fix-for-localizations-that-use-and-differently" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Fix for localizations that use . and , differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fix-for-localizations-that-use-and-differently#post-58570</link>
			<pubDate>Thu, 10 May 2012 12:33:53 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">58570@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok. I have a dev version with the changes. If you want to give it a try, email me to &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62; and I will send it your way.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Fix for localizations that use . and , differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fix-for-localizations-that-use-and-differently#post-58560</link>
			<pubDate>Thu, 10 May 2012 11:54:12 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">58560@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks!&#60;br /&#62;
I'm not 100% sure, that it is the only change to get rid of any and all bugs regarding running wp in a localized environement. But this change Gets rid of all the apparent bugs regarding fields longer than the varchar in non-en_us localizations. I will let you know if we find others.&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;/p&#62;
&#60;p&#62;-Steph
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Fix for localizations that use . and , differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fix-for-localizations-that-use-and-differently#post-58553</link>
			<pubDate>Thu, 10 May 2012 11:42:23 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">58553@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't have a problem making this change, but I think changing the number localization on the server will create other problems as well. Are you sure this is the only change needed?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Fix for localizations that use . and , differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fix-for-localizations-that-use-and-differently#post-58458</link>
			<pubDate>Wed, 09 May 2012 23:21:21 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">58458@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When using French Canadian Localization on the server. The floats will be converted from 1.1 to 1,1 in the SQL (the %f) and will mess up the query to get the detail_long.&#60;br /&#62;
Changing line 2305 of forms_model.php from:&#60;/p&#62;
&#60;p&#62;WHERE lead_id=%d AND field_number BETWEEN %f AND %f&#34;, $lead[&#34;id&#34;], $field_number - 0.001, $field_number + 0.001);&#60;/p&#62;
&#60;p&#62;to this one  where the double gets interpreted in PHP and then passed as a string in SQL, you get the same level of security just at a different layer.&#60;/p&#62;
&#60;p&#62;WHERE lead_id=%d AND field_number BETWEEN %s AND %s&#34;, $lead[&#34;id&#34;], doubleval($field_number - 0.001),doubleval($field_number + 0.001));&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
