Forums / Setting Up Categories, Products, Attributes / Category Name - only four letters showed?

Category Name - only four letters showed?

Locked

Views: 3,802

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
29 Mar 2008, 7:26 PM
#1
urbanlife avatar

urbanlife

New Zenner

Join Date:
Mar 2008
Posts:
2
Plugin Contributions:
0

Category Name - only four letters showed?

Hi there,

I have installed zen cart and three additional language packages (Bulgarian, German and Russian):smile:. As I tryed to translate the name of one Category in Cyrrilic, only the first 4 letters are showed, the rest is cut:dontgetit, while the description of the categorie works pretty well. The names of categories written in latin letters work.
I tryed to change other names, like color options for some products, but there I have the same problem - only 4 letters in Cytillic.

Where go the other Letters:blink:?

Thanks!
Martin

29 Mar 2008, 7:37 PM
#2
urbanlife avatar

urbanlife

New Zenner

Join Date:
Mar 2008
Posts:
2
Plugin Contributions:
0

Re: Category Name - only four letters showed?

Hi there,

I have installed zen cart and three additional language packages (Bulgarian, German and Russian):smile:. As I tryed to translate the name of one Category in Cyrrilic, only the first 4 letters are showed:dontgetit, the rest is cut, while the description of the categorie works pretty well. The names of categories written in latin letters work.
I tryed to change other names, like color options for some products, but there I have the same problem - only 4 letters in Cytillic.

Where go the other Letters:blink:?

Thanks!
Martin

13 Apr 2008, 5:33 AM
#3
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

Hello there, i have been thru all this in the pas week, the problem is mostly in encodings.
here what i have done since my store is brand new, and still is not released.
i converted all of tables in database in utf8_general_ci
then got Uni2Me.exe (encoding convertor) and converted all Bulgarian files in utf-8,
in /includes/languages/XXXXXX.php where XXXXXX stands for names you using (I use Englsih, Russian, Bulgarian and Turkish) find the line wirh CHARSET definition and replace windows-1251 with utf-8 for bg and ru
and in english Iso-8859-1 to utf-8.
then in you have to add 2 lines in
/includes/classes/db/mysql/query_factory.php

//@TODO error class required to virtualise & centralise all error reporting/logging/debugging
    $this->database = $zf_database;
    if (!function_exists('mysql_connect')) die ('Call to undefined function: mysql_connect().  Please install the MySQL Connector for PHP');
    if ($zf_pconnect != 'false') {
      $this->link = @mysql_connect($zf_host, $zf_user, $zf_password, true);
    } else {
    // pconnect disabled ... leaving it as "connect" here instead of "pconnect"
      $this->link = @mysql_connect($zf_host, $zf_user, $zf_password, true);
    }
    if ($this->link) {
      if (@mysql_select_db($zf_database, $this->link)) {
       [I][B] mysql_query("SET NAMES UTF8;");
        $this->db_connected = true;[/B][/I]
        return true;
      } else {
        $this->set_error(mysql_errno(),mysql_error(), $zp_real);
        return false;
      }
    } else {
      $this->set_error(mysql_errno(),mysql_error(), $zp_real);
      return false;
    }
  }
```Then, (asuming u got translation for version 1.3.0 from official website download directory) u should get WinMerge and compare all files in /includes/language/XXXXX directory one by one (trust me i know what i am writing)
basicaly ... most problems will be in Bulgarian.php, meta_tags.php, login.php and index.php (at least those were my problems).
another thing u should reconsider .... use Notepad++ for editing, and if one file is not marked as ANSI as UTF-8 get other file wich have that encoding, and copy - paste content then save as. That might look lame for experts... but it works at least for me.
if u get blank pages.... well i did that: got english.php then replaced every translated statement, keep in mind if u think to do that to copy ONLY text inside and not ' (dunno the name of that symbol)
if some definitions are missing, i could recomend u to add them to the files so people see english text instead of NAME_OF_THE_SHOP

from now on, your newly added product should be fine (old ones will be a mess)
u might need to do same thing for adimn area too, cuz some files have to display its contents in Bulgarian.


 OR

 u can just simply walk thru database and increase every VARCHAR variable to 255 ;) wich is simplest solution but.... u might not like results.

I hope that helps.
Thanks in beers :P

Lazy_666
The One & Only
http://www.nani-na.biz

4 Jul 2008, 4:42 PM
#4
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

I try too understand what you wrote but i cannot figure it out .

I downloaded uni2me and find the file russian.php in /includes/languages/russian.php
Do i start a conversion without changing the mentioned
line wirh CHARSET definition and replace windows-1251 with utf-8 for bg and ru
and in english Iso-8859-1 to utf-8.
Or do i change the file and then choose utf * and convert then

5 Jul 2008, 3:27 AM
#5
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

changing ISO-XXX thingie with UTF8 is NOT for conversion purposes but for the site.
So, when Zen-Cart read that file, it puts UTF-8 in CHARSET variable, then when it comes to generating the web pages for visitor, ZC just puts value of CHARSET in page, and then fill the page.

Those steps should help u resolve your problems.

Open file in Notepad++ (available at sourceforge.net), then do:
Format -> Convert to UTF8 without BOM (in lower right corner there SHOULD appear "ANSI as UTF8")
Save (you may skip this step)
replace ISOXXXX with UTF8
Save
Upload.

that should do the trick.

If u don't replace ISOXXX then the site will look "funny" at least, but u can experiment a little. :)

If u have more problems, post here, i will try to help.

Lazy_666
The One & Only
http://www.nani-na.biz

12 Jul 2008, 3:39 PM
#6
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

I done what you wrote except the iso part I ddo not understand witch part that is but
Is that replace the windows-1251 line in charset
But what i se are strange things
РљР°С‚РµРіРѕС this is what shows now the Category header, but the translation of other text on main page seems to be correct
It is weird al the text is shown correctly only in the Category is wil show wrong

13 Jul 2008, 12:46 PM
#7
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

Have you tried, to add new content? or you just observe old added content in categories?

that might offend you, but as I said...

from now on, your newly added product should be fine (old ones will be a mess)

Lazy_666
The One & Only
http://www.nani-na.biz

15 Jul 2008, 4:53 PM
#8
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

I had not done that but as i said it was the category header not the content of the category.
replace ISOXXXX with UTF8 and in what file do i change this

15 Jul 2008, 7:50 PM
#9
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

Tried every solution described at this forum but the problem remain,
I can hardley believe that there is no solution for this problem.
Al the other translation are good so far as I can see the problem only occurs at the Category.
In the product section this problem doesn't excist

Han

16 Jul 2008, 5:19 AM
#10
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

give me link to the site and upload here your /includes/languages/bulgaria.php

Lazy_666
The One & Only
http://www.nani-na.biz

16 Jul 2008, 1:49 PM
#11
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

I am still in beat fase so ithe russian files are on localhost

16 Jul 2008, 8:36 PM
#12
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

hlubach:

I am still in beat fase so ithe russian files are on localhost
well... as a matter of fact Russian and Bulgarian are really close so no matter wich language u upload...
/includes/languages/russian.php or /includes/bulgarian.php
they both use same encoding (or almost)

Actually i am pretty drunk, but tomorrow i will read what i have posted :) and if u have uploaded files i will check them out...

Cheers (nazdrave, nazdorovie)

Lazy_666
The One & Only
http://www.nani-na.biz

23 Jul 2008, 3:37 PM
#13
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

I have download Notepad ++ and understand that i have to convert files .
Which file must be converted.
Admin/includes/languages/russian.php
Admin/includes/languages/russian/*.php

includes/languages/russian.php
Admin/includes/languages/russian/*.php
And i think al other file into these directories with ext php

Han Lubach

24 Jul 2008, 7:59 AM
#14
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

The whole /includes/languages/russian directory. Every single file. Made it ANSI as UTF-8, make corrections to query_factory.php
remake your categories (i hope u talking about new shop, otherwise this help is almost useless for you) and it SHOULD be working.

Lazy_666
The One & Only
http://www.nani-na.biz

27 Jul 2008, 3:13 PM
#15
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

lazy_666:

The whole /includes/languages/russian directory. Every single file. Made it ANSI as UTF-8, make corrections to query_factory.php
remake your categories (i hope u talking about new shop, otherwise this help is almost useless for you) and it SHOULD be working.

I have converted the includes/language/russian/. file by file
then changed the query_factory file .
But then the whole template was corrupted
So now i gonna start alover again.
Just install Zencart on Xampp in the sub dir d:\xampp/htdocs/kwytka
After that i run localhost/kwytka/admin and run the install file.
After that make the two config files cmod etc eand delete the zc instal files
Then to thwe admin section.
So far no problems then i made a new category So this is a clean installed version no language files no nwe template or other modules.
In this case i type the russin font into the name part and save it the go to catalog online and what do i see yes Тюпь instead off Тюльпаны

27 Jul 2008, 10:38 PM
#16
lazy_666 avatar

lazy_666

New Zenner

Join Date:
Apr 2008
Posts:
55
Plugin Contributions:
0

Re: Category Name - only four letters showed?

post here russian.php located in /includes/languages. post is as ZIP, or change its extension, so forum dont mess with it.
if u dont have webhosting... try 000webhost.com, so i can see your shop... u can mail me admin pass for that 000webhosting thing, so i can see what u have done so far..

Problem is, i am alittle busy these days, and i think i am starting to forget install steps si i want to see problematic website so i can test it. If you feel uncomfortable passing such info on forum.. contact me via PM

Lazy_666
The One & Only
http://www.nani-na.biz

28 Jul 2008, 1:28 PM
#17
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

I have webhosting but on that are the old webpages located, so on the PC at home i am trying to create a shop
So that is on localhost i do not know if you can read the localhost it runs under Xampp.
Is I wrote the problem occurs also under a new installation without any language file at all

But thanks for your attention
Han or иван

28 Jul 2008, 1:30 PM
#18
hlubach avatar

hlubach

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

Re: Category Name - only four letters showed?

Lazy 666
the website is located at https://www.kwytka.com that site i am trying to rebuild to a shop

Han