Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2011
    Posts
    12
    Plugin Contributions
    0

    Default Using spanish_language_pack... only the English product-description is saved?

    Using (spanish_language_pack_utf_1-4) and the latest zencart...

    And using the admin in English, I enter a product name and description in English and Spanish, go to preview, everything looks good. I hit update and only the English is saved.

    This must be a simple problem as I can not find anything in the forum.

    Please, can someone tell me what I should try?

    Thanks

    Alvin

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,840
    Plugin Contributions
    31

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    check out the support thread for the spanish language pack,
    http://www.zen-cart.com/forum/showthread.php?t=153401

    post 67 sounds like your problem.

  3. #3
    Join Date
    Jan 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    Hello torvista

    Thanks for the response....

    I looked over the tables and they all look fine:
    products_description.language_id has only entry for english (1)

    categories_description.language_id has both entries per language for categories_id (2, spanish 1, english) nothing missing in categories_name, only thing is I did not enter anything in categories_description for ether language (if that matters).

    In this case what do you think I should try?

    Alvin

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,840
    Plugin Contributions
    31

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    I looked over the tables and they all look fine:
    products_description.language_id has only entry for english (1)
    That is not fine, If there is no field for the spanish description, then it cannot be saved, exactly your problem.

    Why it is missing is something someone else will have to explain.

    If you create a new product, can you save in both languages?

  5. #5
    Join Date
    Jan 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    Quote Originally Posted by torvista View Post
    If you create a new product, can you save in both languages?
    Good point.

    All my products are imported from an erp system.

    I just entered a test product and it went in just fine, shows in both languages. No problem.

    All my products are imported in English, and then I go edit and add the Spanish Products Name: and Products Description:, (that was the plan anyway) but when I hit the update button it drops the Spanish.

    With these tests it shows that a product imported only has one row in products_description table, but products entered through admin have two rows entered, even if you do not enter any Spanish info...

    So looks like what I need is to get that extra row entered in the products_description table.

    Is this the only table where this happens?

    Please let me know,

    Thanks

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,840
    Plugin Contributions
    31

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    Is this the only table where this happens?
    I don't know.

    When I want to know what happens in the db when I do something, I export the db to a sql file, then do the change, export again, then compare the two exports with Beyond Compare to see the differences.

    What erp are you importing from?

  7. #7
    Join Date
    Jan 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    What erp are you importing from?
    Phreedom release candidate three phreesoft.com

    And I did the text diff on the two sql files, looks like that is the only table that gets the multiple row entries for multi language...

    I will now look at getting the import script modified.

    Thanks for the help

    AM

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    Your problem is caused by your import process.
    If you were to use the Zen Cart admin screens to enter your products, you wouldn't have that problem.

    You'll need to make sure that a record is created in the products_description table for EACH language anytime you import products from an external source. Otherwise the admin pages won't have anything to update, and thus the changes won't be saved.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Using spanish_language_pack... only the English product-description is saved?

    Hi. I initially imported all products into my site with Easy Populate Advanced, once I read that it would import both Spanish and English descriptions and data. Everything seemed to import nicely. The Spanish descriptions were all readable and correct on the website, which was in UTF-8.

    However, although the product particulars did appear in Admin, the description would have only a few words, if any.

    I am at a point where I am updating descriptions in products and categories. I just tried to update a product description in Spanish, and it did update correctly, except that it continues to not show the UTF-8 accented characters correctly and behaves like it is reading them in ANSI in Admin. However, the accents are displayed correctly on the site.

    When I copy the updated description translation into the Spanish description window for categories, all but the first few words will disappear from the Spanish description window when the category description is saved, and the description which was previously fine on the Spanish version of the site will then only consist of the stray text remaining in the Admin Spanish description window.

    I believe at one point if I saved the admin product screen, everything would need to be re-entered to see the product details in the product description, but this is no longer occurring based on my one test today.

    The workaround is to go to the MySQL database and copy the translation directly into the database table entitled categories_description.

    The real description will then show up in the admin screen, but with non-UTF-8 collation characters; for example: eléctrico. However, the description showing in the website will contain the correct rendition of the Spanish accents.

    If someone needs the steps to make the changes in the MySQL database, I will be happy to post them.

    Maybe someone knows what I have forgotten to change to make the accented characters appear correctly in the Admin description screens.

    Notageek

 

 

Similar Threads

  1. v150 Scandinavian characters not being saved on product description
    By Arsi in forum General Questions
    Replies: 4
    Last Post: 9 Feb 2014, 07:53 PM
  2. v150 Getting an image to popup (using javascript) in the Product Description
    By Stizzed in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Mar 2012, 10:06 PM
  3. using a variable in the product description for a popup
    By torvista in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 17 Apr 2010, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg