<?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: Date function in foreign language</title>
		<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language</link>
		<description>Gravity Support Forums Topic: Date function in foreign language</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:21:49 +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/date-function-in-foreign-language" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-65510</link>
			<pubDate>Tue, 10 Jul 2012 08:54:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">65510@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like the date picker is in Spanish to me?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://minus.com/mKLHehiMk/&#34; rel=&#34;nofollow&#34;&#62;http://minus.com/mKLHehiMk/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Niall O Laoghaire on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-65317</link>
			<pubDate>Mon, 09 Jul 2012 07:57:10 +0000</pubDate>
			<dc:creator>Niall O Laoghaire</dc:creator>
			<guid isPermaLink="false">65317@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi&#60;br /&#62;
I'm having the exact same problem except I'm changing the date picker to 'es', I followed the instructions but the picker is stubbornly staying in English&#60;br /&#62;
&#60;a href=&#34;http://aprendeenirlanda.com/testform/&#34; rel=&#34;nofollow&#34;&#62;http://aprendeenirlanda.com/testform/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks Niall
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60972</link>
			<pubDate>Thu, 31 May 2012 10:41:28 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60972@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My e-mail is &#60;a href=&#34;mailto:peralty@rocketgenius.com&#34;&#62;peralty@rocketgenius.com&#60;/a&#62;. Please link to this forum thread in your message. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ilmedia on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60971</link>
			<pubDate>Thu, 31 May 2012 10:39:30 +0000</pubDate>
			<dc:creator>ilmedia</dc:creator>
			<guid isPermaLink="false">60971@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi again,&#60;/p&#62;
&#60;p&#62;the site is not public yet but I can send you the login credentials by PM or email. How do I send you a PM or what is your email? &#60;/p&#62;
&#60;p&#62;Regards&#60;/p&#62;
&#60;p&#62;Dale
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60949</link>
			<pubDate>Thu, 31 May 2012 09:29:11 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you link to your form for me?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ilmedia on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60913</link>
			<pubDate>Thu, 31 May 2012 02:13:32 +0000</pubDate>
			<dc:creator>ilmedia</dc:creator>
			<guid isPermaLink="false">60913@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi again,&#60;/p&#62;
&#60;p&#62;I am sorry but I cannot make it work.&#60;/p&#62;
&#60;p&#62;I placed the file jquery.ui.datepicker-sv.js in mydomain.com/wp-content/plugins/gravityforms/js/&#60;/p&#62;
&#60;p&#62;Then I added the following code to functions.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_enqueue_scripts&#38;quot;, &#38;quot;enqueue_custom_script&#38;quot;, 10, 2);
function enqueue_custom_script($form, $is_ajax){
    if($is_ajax){
        wp_enqueue_script(&#38;quot;custom_script&#38;quot;, &#38;quot;http://www.mydomain.com/wp-content/plugins/gravityforms/js/jquery.ui.datepicker-sv.js&#38;quot;);
    }
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;No result.&#60;/p&#62;
&#60;p&#62;Then I added the second code to header.php file of the the Genesis framework from Studiopress.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
 WARNING: This file is part of the core Genesis framework. DO NOT edit
 this file under any circumstances. Please do all modifications
 in the form of a child theme.
 */

/**
 * Handles the header structure.
 *
 * This file is a core Genesis file and should not be edited.
 *
 * @category Genesis
 * @package  Templates
 * @author   StudioPress
 * @license  &#60;a href=&#34;http://www.opensource.org/licenses/gpl-license.php&#34; rel=&#34;nofollow&#34;&#62;http://www.opensource.org/licenses/gpl-license.php&#60;/a&#62; GPL v2.0 (or later)
 * @link     &#60;a href=&#34;http://www.studiopress.com/themes/genesis&#34; rel=&#34;nofollow&#34;&#62;http://www.studiopress.com/themes/genesis&#60;/a&#62;
 */

do_action( &#38;#39;genesis_doctype&#38;#39; );
do_action( &#38;#39;genesis_title&#38;#39; );
do_action( &#38;#39;genesis_meta&#38;#39; );

wp_head(); /** we need this for plugins **/
?&#38;gt;

&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
    jQuery(document).ready(function($) {

        $.datepicker.setDefaults($.datepicker.regional[&#38;quot;sv&#38;quot;]);

    });
&#38;lt;/script&#38;gt;

&#38;lt;/head&#38;gt;
&#38;lt;body &#38;lt;?php body_class(); ?&#38;gt;&#38;gt;
&#38;lt;?php
do_action( &#38;#39;genesis_before&#38;#39; );
?&#38;gt;
&#38;lt;div id=&#38;quot;wrap&#38;quot;&#38;gt;
&#38;lt;?php
do_action( &#38;#39;genesis_before_header&#38;#39; );
do_action( &#38;#39;genesis_header&#38;#39; );
do_action( &#38;#39;genesis_after_header&#38;#39; );

echo &#38;#39;&#38;lt;div id=&#38;quot;inner&#38;quot;&#38;gt;&#38;#39;;
genesis_structural_wrap( &#38;#39;inner&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But still the dates show up in the English language.&#60;/p&#62;
&#60;p&#62;As I have mentioned before - my knowledge of working with scripts is really limited and obviously I do something completely wrong here. So further help is appreciated. &#60;/p&#62;
&#60;p&#62;Regards&#60;/p&#62;
&#60;p&#62;Dale
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60768</link>
			<pubDate>Wed, 30 May 2012 10:04:31 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60768@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Upload the script to your website and grab the path for it. &#60;/p&#62;
&#60;p&#62;Put the following in your functions.php file for your theme:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts&#60;/a&#62;&#60;br /&#62;
Making sure the JS file you point at is the jquery.ui.datepicker-sv.js&#60;/p&#62;
&#60;p&#62;This should make it so all your date pickers use the Swedish language file.&#60;/p&#62;
&#60;p&#62;If not, then look at this:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Put the following JS code in your head (or header.php) file:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$.datepicker.setDefaults($.datepicker.regional[&#38;quot;sv&#38;quot;]);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>ilmedia on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60759</link>
			<pubDate>Wed, 30 May 2012 09:34:58 +0000</pubDate>
			<dc:creator>ilmedia</dc:creator>
			<guid isPermaLink="false">60759@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;thanks for the link. Unfortunately I have no knowledge of jQeury and do not know where to start. &#60;/p&#62;
&#60;p&#62;The dates should be translated into the Swedish languge and I think I have found the right file here:&#60;br /&#62;
&#60;a href=&#34;http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/jquery.ui.datepicker-sv.js&#34; rel=&#34;nofollow&#34;&#62;http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/jquery.ui.datepicker-sv.js&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then I have found two files that seem to be of interest:&#60;br /&#62;
ui.datepicker.js&#60;br /&#62;
datepicker.js&#60;/p&#62;
&#60;p&#62;The instructions tell me the following:&#60;br /&#62;
&#34;The desired localization file should be included after the main datepicker code.&#34;&#60;/p&#62;
&#60;p&#62;And here I am completely lost. I suppose it is the code I have refered to above but where exaclty should I include it? I have no idea where the 'main datepicker code' is.&#60;/p&#62;
&#60;p&#62;Thus, all help appreciated. &#60;/p&#62;
&#60;p&#62;Thanks in advance&#60;/p&#62;
&#60;p&#62;Dale
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60745</link>
			<pubDate>Wed, 30 May 2012 09:05:35 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have a look at the localization information related to this: &#60;a href=&#34;http://jqueryui.com/demos/datepicker/&#34; rel=&#34;nofollow&#34;&#62;http://jqueryui.com/demos/datepicker/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ilmedia on "Date function in foreign language"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-function-in-foreign-language#post-60719</link>
			<pubDate>Wed, 30 May 2012 06:26:48 +0000</pubDate>
			<dc:creator>ilmedia</dc:creator>
			<guid isPermaLink="false">60719@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am using the date picker and accordingly a calender pops up with dates and weekdays. However, the site is non-english so I would like to &#34;translate&#34; the weekdays (SU, MO, TU etc). &#60;/p&#62;
&#60;p&#62;I tried to translate the GF files but as I understand the date function origins from some javascript so that did not work. &#60;/p&#62;
&#60;p&#62;How do I do this?&#60;/p&#62;
&#60;p&#62;Regards&#60;/p&#62;
&#60;p&#62;Dale
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
