Page 1 of 1

DatePicker in phoenix 1.0.9.1

Posted: Mon Apr 29, 2024 8:24 am
by Richard H.
Good day,

I would need some help with the DatePicker in phoenix 1.0.9.1
I tired of searching after this folder and files and to not find them!

My problen is as following:
In the cart index, [New Products For April] >> Finnish it is [Uudet tuotteet huhtikuuta] and this has the wrong ending.
Ending with huhtikuu[ta] makes NO sense at all, it need to be huhtikuu[ssa]

Please would someone let me know in what folder I can find the Datepicker for finnish language in Version PhoenixCart 1.0.9.1 to change this little miss-spelling.

Re: Date Text in phoenix 1.0.9.1

Posted: Mon Apr 29, 2024 8:55 am
by burt
Datepicker is not involved.

/includes/languages/english/modules/content/index/cm_i_card_products.php

Code: Select all

const MODULE_CONTENT_CARD_PRODUCTS_HEADING     = 'Our Latest Products';
You would need to repeat this in your dutch language;
/includes/languages/suomi/modules/content/index/cm_i_card_products.php

Note that since 1.0.8.21 the "for {Month}" piece of text is removed entirely in the index module.
And a "view all" link added.

https://github.com/CE-PhoenixCart/Phoen ... 372a78dcbb

Re: DatePicker in phoenix 1.0.9.1

Posted: Mon Apr 29, 2024 9:02 am
by ecartz
Richard H. wrote: Mon Apr 29, 2024 8:24 am Please would someone let me know in what folder I can find the Datepicker for finnish language in Version PhoenixCart 1.0.9.1 to change this little miss-spelling.
While I agree with Burt that this is obsolete now, the literal answer is that the month name is provided by strftime (soon to be obsolete too, already deprecated). You'd have to recompile PHP to change it.

Re: DatePicker in phoenix 1.0.9.1

Posted: Mon Apr 29, 2024 9:42 am
by Richard H.
Hello BURT,

Don't change the ending! Still showing huhtikuuta instead of huhtikuussa

Thank you enyway

Re: DatePicker in phoenix 1.0.9.1

Posted: Mon Apr 29, 2024 11:49 am
by burt
This text is not part of Phoenix, it is part of the strftime function in PHP as explained by ecartz in the post above yours. We cannot control what the PHP people do in their codebase, which is why the "for {month}" is gone from Phoenix 1.0.8.21 onwards, as the Phoenix code is something we can control.