0
Welcome Guest! Login
0 items Join Now

Display Garbage Characters

  • Display Garbage Characters

    Posted 9 years 7 months ago
    • I have tried to change the message into Chinese inside the file rokmage-categoryview.phtml but it displays garbage in frontend. Can you advise how to do?
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • Magento handles translations by default using a translate.csv file, so you should never edit the template files. Search the Magento Connect store for a Chinese language pack. After installing that, you can add any additional translations for our extensions.

      All of our custom text is included with the theme in the following location, but is only relevant if your locale is set to English (US):

      /app/design/frontend/THEME/default/locale/en_US/translate.csv

      If your locale is set (for example) to GB, then rename the en_US folder to en_GB:

      /app/design/frontend/THEME/default/locale/en_GB/translate.csv

      You can add translations to this using the same format as seen in the file, for example:

      "Original Text","Translated Text"

      Be sure to use a simple text editor like notepad, as complex programs such as Excel sometimes add extra characters and can introduce errors.
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • I am using Graffito for Magento 1.7 version. But I can't find the following directory and file

      /app/design/frontend/graffito/default/locale/en_US/translate.csv

      Then, I still create as follows

      /app/design/frontend/graffito/default/locale/zh_TW/translate.csv

      But failed. Please advise
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • The translate.csv file was accidentally left out of the 1.7 initial release, and added in the update that followed. I've attached the file you are missing.

      This attachment is hidden for guests. Please log in or register to see it.


      So long as your store's locale is set to "zh_TW" then it should work. Be sure to clear the Magento cache after making changes.
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • I have already added the following 2 files into the corresponding directory but still doesn't take any effect. Can you advise what I can do next?


      app/design/frontend/graffito/locale/en_US/translate.csv

      app/design/frontend/graffito/locale/zh_TW/translate.csv
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • Is it having no effect, or showing garbled text?
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • No effect. These two files cannot change any anything.
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • And is your locale definitely set to Chinese (Taiwan):

      This image is hidden for guests.
      Please log in or register to see it.


      ...and have you disabled your cache, re-indexed and made sure compilation is disabled?
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.
  • Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • This message contains only secure information that is visible to Sam Mahoney, moderators and administrators
    • Sam Mahoney's Avatar
    • Sam Mahoney
    • Preeminent Rocketeer
    • Posts: 7420
    • Thanks: 222

    Re: Display Garbage Characters

    Posted 9 years 7 months ago
    • Can you please post your translate.csv file here also? You'll need to zip it first.
    • STEP 1 IN MAGENTO DEVELOPMENT - DISABLE YOUR CACHE OR YOU WON'T SEE ANY CHANGES.
      Use the new "secure" tab when replying for privately sharing links.
      Check the "Useful Snippets" post for tips.

Time to create page: 0.046 seconds