forum.coppermine-gallery.net
Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Makc666 on November 27, 2005, 12:29:48 am
-
Gallery Configuration - Coppermine Photo Gallery 1.4.2 (stable)
Language & Charset settings
Character encoding
There is choice --> Cyrillic (koi8-r)
There is no choice for --> Cyrillic (windows-1251)
You can see attached screenshot...
P.S. Fresh install!!!
-
Or. I found it. Forgot about my old post here:
http://forum.coppermine-gallery.net/index.php?topic=19587.0
There is no line:
'Cyrillic' => 'windows-1251',
in file: admin.php
$charsets = array('Default (not recommended)' => 'language file',
'Arabic' => 'iso-8859-6',
'Baltic' => 'iso-8859-4',
'Central European' => 'iso-8859-2',
'Chinese Simplified' => 'euc-cn',
'Chinese Traditional' => 'big5',
'Cyrillic' => 'koi8-r',
'Greek' => 'iso-8859-7',
'Hebrew' => 'iso-8859-8-i',
'Icelandic' => 'x-mac-icelandic',
'Japanese' => 'euc-jp',
'Korean' => 'euc-kr',
'Maltese' => 'iso-8859-3',
'Thai' => 'windows-874 ',
'Turkish' => 'iso-8859-9',
'Unicode (recommended)' => 'utf-8',
'Vietnamese' => 'windows-1258',
'Western' => 'iso-8859-1'
);
In charsetmgr.php there is code for this one (windows-1251):
$charsets = array(//'Default' => 'language file',
'Arabic' => 'iso-8859-6',
'Baltic' => 'iso-8859-4',
'Central European' => 'iso-8859-2',
'Chinese Simplified' => 'euc-cn',
'Chinese Traditional' => 'big5',
'Cyrillic (windows-1251)' => 'windows-1251',
'Cyrillic (koi8-r)' => 'koi8-r',
'Greek' => 'iso-8859-7',
'Hebrew' => 'iso-8859-8-i',
'Icelandic' => 'x-mac-icelandic',
'Japanese' => 'euc-jp',
'Korean' => 'euc-kr',
'Maltese' => 'iso-8859-3',
'Thai' => 'windows-874',
'Turkish' => 'iso-8859-9',
'Unicode' => 'utf-8',
'Vietnamese' => 'windows-1258',
'Western' => 'iso-8859-1'
);
-
But you can't add like this in admin.php
'Cyrillic' => 'windows-1251',
'Cyrillic' => 'koi8-r',
As it will not work and these two lines have the same name between '' tags ('Cyrillic').
So you have to add like this one:
'Cyrillic windows' => 'windows-1251',
'Cyrillic koi8' => 'koi8-r',
So the final "good" code will look like:
$charsets = array('Default (not recommended)' => 'language file',
'Arabic' => 'iso-8859-6',
'Baltic' => 'iso-8859-4',
'Central European' => 'iso-8859-2',
'Chinese Simplified' => 'euc-cn',
'Chinese Traditional' => 'big5',
'Cyrillic windows' => 'windows-1251',
'Cyrillic koi8' => 'koi8-r',
'Greek' => 'iso-8859-7',
'Hebrew' => 'iso-8859-8-i',
'Icelandic' => 'x-mac-icelandic',
'Japanese' => 'euc-jp',
'Korean' => 'euc-kr',
'Maltese' => 'iso-8859-3',
'Thai' => 'windows-874 ',
'Turkish' => 'iso-8859-9',
'Unicode (recommended)' => 'utf-8',
'Vietnamese' => 'windows-1258',
'Western' => 'iso-8859-1'
);
Here a fixed screenshot:
-
why not use unicode?
-
why not use unicode?
Because here in Russian we like to use Cyrillic windows-1251.
I posted not enough information about this BUG, so it can be fixed?
-
not a bug. The dev team has decided that we'll use unicode exclusively. The other encodings will vanish soon. This is not a matter of personal preferences or taste imo.
-
I have the same problem & found the solution (very boring). I saved on my computer lang.php in windows1251, then rewrite translation & upload the file to the server. It works perfect. But now I' m still using unicode - 2 much 2 translate. But I'll do it anyway -because of few but awfull mistakes in Russian - like До свидание (goodbye) is absolutely wrong...
-
your reply is not relevant, you're free to convert the utf-8 file to something else. Phrases that are translated wrongly (in your opinion) are not related to this at all. Repyling to a thread on the bugs board that is marked as "invalid" is not a clever move. Locking thread now (it's sad that we're forced to do this - I wish people respected board rules).