{"id":1285886,"date":"2017-05-18T15:05:57","date_gmt":"2017-05-18T22:05:57","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/"},"modified":"2017-05-22T11:31:04","modified_gmt":"2017-05-22T18:31:04","slug":"translating-the-wp-time_format","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/","title":{"rendered":"Translating the WP time_format"},"content":{"rendered":"<p>Is there any way I can change time time_format depending on the language? I want to use a 24 hour clock for French, so instead of g:i A, I would use G:i.<\/p>\n<p>I&#8217;m using WPML, and using String Translations I found two tribe entries relating to this:<\/p>\n<p>domain: tribe-events-calendar-pro<br \/>\nstring: M j, Y @ G:i<\/p>\n<p>domain: the-events-calendar<br \/>\nM j, Y @ G:i<\/p>\n<p>However, it doesn&#8217;t look like these are being used, and they are already the &#8220;G&#8221; format anyways, which I guess isn&#8217;t being used.<\/p>\n<p>I did notice that tribe uses the get_option(&#8220;time_format&#8221;) under general settings. But unfortunately I don&#8217;t think WPML allows for me to change these for two different languages. If I change the language to French and update the options, it just overrides the English as well.<\/p>\n<p>Any ideas?<\/p>\n","protected":false},"template":"","class_list":["post-1285886","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Translating the WP time_format -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Translating the WP time_format -\" \/>\n<meta property=\"og:description\" content=\"Is there any way I can change time time_format depending on the language? I want to use a 24 hour clock for French, so instead of g:i A, I would use G:i. I&#8217;m using WPML, and using String Translations I found two tribe entries relating to this: domain: tribe-events-calendar-pro string: M j, Y @ G:i [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-22T18:31:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/\",\"name\":\"Translating the WP time_format -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-05-18T22:05:57+00:00\",\"dateModified\":\"2017-05-22T18:31:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Translating the WP time_format\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Translating the WP time_format -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/","og_locale":"en_US","og_type":"article","og_title":"Translating the WP time_format -","og_description":"Is there any way I can change time time_format depending on the language? I want to use a 24 hour clock for French, so instead of g:i A, I would use G:i. I&#8217;m using WPML, and using String Translations I found two tribe entries relating to this: domain: tribe-events-calendar-pro string: M j, Y @ G:i [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/","article_modified_time":"2017-05-22T18:31:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/","name":"Translating the WP time_format -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-05-18T22:05:57+00:00","dateModified":"2017-05-22T18:31:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translating-the-wp-time_format\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Translating the WP time_format"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1285886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1285886\/revisions"}],"predecessor-version":[{"id":1287219,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1285886\/revisions\/1287219"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1285886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}