coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: sgtraf on July 17, 2007, 11:34:00 AM

Title: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: sgtraf on July 17, 2007, 11:34:00 AM
Hello  friends!
After  upgrade from  4.10 to 4.12   browser  displayed  error:

Parse error: syntax error, unexpected T_STRING in /home/gadz1/public_html/photo/lang/russian.php on line 66

I'm rename english.php to russian.php   for working my photo galery, but all words in gallery english.
How  made my gallery russian language without errors?
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Nibbler on July 17, 2007, 04:59:40 PM
Download the fixed version from here (http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.4.x/lang/russian.php).
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: sgtraf on July 18, 2007, 11:00:30 AM
thanks

Quote from: Nibbler on July 17, 2007, 04:59:40 PM
Download the fixed version from here (http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.4.x/lang/russian.php).
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: henry on October 24, 2007, 11:32:09 PM
Thanks for your response:

Quote from: Nibbler on July 17, 2007, 04:59:40 PM
Download the fixed version from here (http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.4.x/lang/russian.php).

Could you say a little more about applying the fix?  Is this a straight file substitution for the existing file in version 1.4.12, which is what my web hosting service installed automagically (via Fantastico)?   I guess it's

       ..<install-path>/lang/russian.php

that I'd be replacing, yes?

TIA,

Henry
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Sami on October 25, 2007, 11:10:22 AM
Yes
Don't use auto-installer , such as fantastico it's buggy and outdated
1.4.12 is XSS vulnerable , download 1.4.13 from above download link and install it your self
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: vovkas on November 25, 2007, 08:16:17 PM
Hello  :)
After upgrade Coppermine galery to 1.14.44 happened problem with russian text from databese (not language, i'm use fixed version langfile)

i'm tried change Default and Unicide (utf-8) but does not help :(

Look attach

Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Joachim Müller on November 26, 2007, 06:16:21 PM
Post a link to your gallery.

Quote from: vovkas on November 25, 2007, 08:16:17 PM
not language, i'm use fixed version langfile
You're using what? If you use a customized language file (another one than the language file that comes with coppermine), then seek support from the person who provides that file.
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: vovkas on November 26, 2007, 11:09:27 PM
Hi!
I am use that file -
Quote from: Nibbler on July 17, 2007, 04:59:40 PM
Download the fixed version from here (http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.4.x/lang/russian.php).
But problem with Russian text from MySQL Like - Russian filename, Russian category name or Russian comment.
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Joachim Müller on November 27, 2007, 07:14:13 AM
Quote from: GauGau on November 26, 2007, 06:16:21 PM
Post a link to your gallery.
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: vovkas on November 29, 2007, 09:41:11 PM
it version  for test  http://mgrt.msk.ru/foto2/index.php
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: vovkas on November 30, 2007, 07:23:50 AM
solution for Cyrillic 1251

coppermine\include\functions.inc.php:
After
$result = @mysql_connect($CONFIG['dbserver'], $CONFIG['dbuser'], $CONFIG['dbpass']);

Add
mysql_query("SET NAMES cp1251", $result);

And use russian.php in Cyrillic 1251

Info http://www.simplemachines.ru/index.php/topic,1267.msg8752.html#msg8752 (http://www.simplemachines.ru/index.php/topic,1267.msg8752.html#msg8752)
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Joachim Müller on November 30, 2007, 09:19:45 AM
That's nonsense - not related to this thread and simply not correct. Using a proprietary encoding (cp1251) instead of utf-8 is not recommended. Can't read the thread you refered to, as it is in Russian. The meta discussion about coppermine on the SMF board is not very relevant in my opinion. We (the coppermine dev team) consider the SMF project and their board to be a valid and usefull resource. However: the SMF staff is not an authority on coppermine-related issues.
The Russian language file in cpg1.4.12 contained a bug - it has been added last minute by the Russian translator before the release. It has been my mistake not to have review the last minute contribution before packaging cpg1.4.12, for which I have apologized. The broken Russian language file in cpg1.4.12 has been one of the reasons why cpg1.4.13 had to be released. Most recent stable release currently is cpg1.4.14, so this discussion about cpg1.4.12 simply is invalid. Nobody should install cpg1.4.12 any longer, so this entire discussion doesn't make sense.

I understand that you're trying to help others, but you draw false conclusions, so I'm posting this not for the sake to correct you, but as a reference for others with similar issues. Russian users: please don't let yourself get drawn into the false assumption that you should use proprietary encoding. Use unicode (aka utf-8) - it's the future.
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: vovkas on November 30, 2007, 11:33:17 AM
Quote from: GauGau on November 30, 2007, 09:19:45 AMUse unicode (aka utf-8) - it's the future.
Convert MySQL database cp1251 to utf-8 ?????
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Joachim Müller on November 30, 2007, 02:56:35 PM
If you store utf-8 encoded data in those tables: yes.
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: vovkas on November 30, 2007, 07:43:59 PM
Why ver.1.2.1 work correct on my server but 1.4.14 not?


[b]3.1.2 Upgrading from cpg1.1.x, cpg1.2.x or cpg1.3.x to version cpg1.4.x[/b]
First, make a backup (dump) of your database.
Backup your include/config.inc.php file, your anycontent.php file and your "albums" directory.
Unpack the archive
Except for the "albums" directory, upload all of the new files and directories making sure not to overwrite the include/config.inc.php file, your anycontent.php file or the albums directory.
Delete all leftover, outdated language files in the lang folder
If you have not already done so, create a folder called "edit" within your "albums" directory - this folder will be used by coppermine as a temporary folder, do not ftp-upload files there. Make sure the new "edit"-folder is CHMODed the same way your albums-directory is (755 or 777, depending on your server's config)
Run the file "update.php" in the coppermine directory once in your browser (e.g. http://yourdomain.tld/coppermine/update.php). This will update your coppermine install by making all necessary changes in the database.
If you have made a custom theme, apply the changes that were introduced in the themes structure to your custom-made theme - refer to the theme-upgrade guide.
You can not use language files from older versions of Coppermine as primary language (the language the admin will use) - make sure you only have the language files that come with this package inside of your lang folder (delete or rename all files from older versions within the lang folder).
If you need to use a language that hasn't been translated for cpg1.4.x, you can try using the language file from cpg1.3.x, however there are certain caveats:

nothing about cyrillic-1251 and utf8

may i upgrading my Gallery correctly?
Title: Re: Problem after upgrade from 4.10 to 4.12 with russian lang
Post by: Irinovna on March 06, 2008, 07:29:40 PM
i am having the  same problem with my users. And i also had the program come with the hosting. How should i Apply the Code? you provided to fix it? Should i just replace it?