Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-06-26 08:57:58

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,021
Website

Feedback to: Textpattern CMS 4.7.1 Released

Please provide any feedback here related to Textpattern 4.7.1 Released.

We appreciate all feedback. Please check the issue queue before raising a problem.

Offline

#2 2018-06-26 09:06:00

gaekwad
Member
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 2,227

Re: Feedback to: Textpattern CMS 4.7.1 Released

If you want to give 4.7.1 a spin in relative safety, the demo site is up-to-date:

www.textpattern.co/demo

Offline

#3 2018-06-26 11:24:54

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,678
Website

Re: Feedback to: Textpattern CMS 4.7.1 Released

Updated from 4.7 without any visible problems yet


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#4 2018-07-13 00:30:21

testdeputy
Member
Registered: 2011-05-29
Posts: 27

Re: Feedback to: Textpattern CMS 4.7.1 Released

function safe_strftime is no longer valid with 4th parameter “nl-nl”, should be “nl”

Offline

#5 2018-07-13 14:25:23

gaekwad
Member
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 2,227

Re: Feedback to: Textpattern CMS 4.7.1 Released

testdeputy wrote #313005:

function safe_strftime is no longer valid with 4th parameter “nl-nl”, should be “nl”

Is this appearing as an error? If so, where and when?

Offline

#6 2018-07-13 16:18:28

testdeputy
Member
Registered: 2011-05-29
Posts: 27

Re: Feedback to: Textpattern CMS 4.7.1 Released

gaekwad wrote #313020:

Is this appearing as an error? If so, where and when?

some custom code between <txp:php> and </txp:php> tags
//variables
$month <varies between 1 and 12>
$year <varies between 2009 and current year>

//this worked OK before upgrade to 4.7.1 (Txp 4.6.2)
$period=safe_strftime(“%B %Y”,strtotime($month.’/2/’.$year),0,“nl-nl”);
resulted in month (full, in dutch) year
//after 4.7.1 upgrade results in month (full english) year

//below works OK after upgrade
$period=safe_strftime(“%B %Y”,strtotime($month.’/2/’.$year),0,“nl”);
OR
$period=safe_strftime(“%B %Y”,strtotime($month.’/2/’.$year),0,“nl_NL”);

possible cause?
file: textpattern/vendors/Textpattern/L10n/Locale.php
missing entry in protected $locales = array( ‘nl-nl’ => array(‘nl_NL.UTF-8’, ‘nl_NL.ISO_8859-1’, ‘Dutch_Netherlands.1252’, ‘nl_NL’, ‘dut’, ‘nla’, ‘nl’, ‘nld’, ‘dutch’),
);

Last edited by testdeputy (2018-07-13 21:11:59)

Offline

#7 2018-07-14 14:50:52

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,312
Website

Re: Feedback to: Textpattern CMS 4.7.1 Released

testdeputy wrote #313023:

missing entry in protected $locales = array( ‘nl-nl’...

Not so much missing as the fact we don’t pre-process the locales names through validLocale() first to translate them from the full names to the short names when we do setLocale(). Maybe we should. Anyone have an opinion on this?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB