coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: Aurel Klatik on August 02, 2025, 08:53:14 PM

Title: Date format corrupt after upgrading to CPG 1.6
Post by: Aurel Klatik on August 02, 2025, 08:53:14 PM
I have upgraded from CPG 1.5 to 1.6 and found the date format changed everywhere and displays like this:
%06. %922 %2025

Language is set Slovak
Character set is Unicode (utf-8)
I have not found where date format setting might be.
Any hint much appreciated.

Title: Re: Date format corrupt after upgrading to CPG 1.6
Post by: 406man on August 03, 2025, 06:04:50 PM
Date formats changed with version 1.6.
The way dates and times are displayed is defined in the language files. It seems that the language files for Slovak and many other languages have not been updated to suit the change.
The file that needs to be changed is slovak.php in the lang folder. Around lines 43 to 52 are the various definitions.

Definitions in the new format can be found in english.php

Hopefully you can use them to figure out what they need to be in the Slovak language. Use something like Windows Notepad to make the change. I use the free pspad editor which is excellent.

When you've finished perhaps you could attach the finished version of slovak.php here so the developers can add it to the next release.
Title: Re: Date format corrupt after upgrading to CPG 1.6
Post by: Aurel Klatik on August 03, 2025, 09:03:44 PM
thank you
I have updated lang/Slovak.php
it works with local date formats
use as is or edit lines 43 thru 50 as required