Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:40:31+00:00 2026-06-05T16:40:31+00:00

I’m developing a custom module for my Magento installation (version 1.6.2.0). I registered a

  • 0

I’m developing a custom module for my Magento installation (version 1.6.2.0). I registered a translation file for the module in the config.xml and started to add German translations. The module adds some new behavior to the Magento back end.

While doing the translation I noticed a strange behavior of Magento. Certain words don’t get translated by Magento although a translation is provided in the module’s csv file.

When I change the key to a different value, the translation works as expected, so Magento seems to see and read the cvs file.

At the moment I notice this behavior for the keys “City” and “Store”.

Content of the csv file:

"City","Stadt"
"City1","Stadt"

I use the following line to translate the strings.

Mage::helper('mymodule')->__('City') // returns "City"

When I change the key to “City1” every thing works as expected.

  Mage::helper('mymodule')->__('City1') // returns "Stadt"

After this I searched the German translation csv files (provided by the German Magento Community) for a translation for the key “City” and found one in the “adminhtml module”.

  Mage::helper('adminhtml')->__('City') // returns "Stadt"

So this also works as expected.

I don’t know what I’m doing wrong. As I said the same behavior occurs for the string “Store”.

Any ideas on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:40:33+00:00Added an answer on June 5, 2026 at 4:40 pm

    Finally I solved the translation problem. The reason was a wrong configuration in the config.xml. I found it out by debugging the code where Magento reads in the translation files. When this happens there’s a parameter called scope which is read from one of the XML elements of the config.xml file.

    This element should normally have the name of the module, e.g. <MyCompany_MyModule>. In the tutorial I followed to configure the translation, this XML-element was named <translations> which was wrong.

    I guess that this might have been correct for an earlier version of Magento. What made it hard to find out was that the errors only occur for keys which were also defined in other modules’s translation files. Keys which were only defined in my translation file worked as expected.

    An correct configuration should look like this.

    <frontend>
       ...
        <translate>
            <modules>
                <MyCompany_MyModule>
                    <files>
                        <default>MyCompany_MyModule.csv</default>
                    </files>
                </MyCompany_MyModule>
            </modules>
        </translate>
      ...
    </frontend>
    <adminhtml>
      ...
        <translate>
            <modules>
                <MyCompany_MyModule>
                    <files>
                        <default>MyCompany_MyModule.csv</default>
                    </files>
                </MyCompany_MyModule>
            </modules>
        </translate>
        ...
     </adminhtml>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my XML file chapters tag has more chapter tag.i need to display chapters
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm parsing an XML file, the creators of it stuck in a bunch social
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.