开发者

Translate custom module admin panel in magento backend

开发者 https://www.devze.com 2023-02-03 18:18 出处:网络
Greetings! I am trying to create a module 开发者_如何学Gofor a client that can be translated into many languages. I have created CSV files to translate the frontend, but I cannot find a way to transl

Greetings!

I am trying to create a module 开发者_如何学Gofor a client that can be translated into many languages. I have created CSV files to translate the frontend, but I cannot find a way to translate my options in the configuration page of the backend. I assume it has something to do with my system.xml file but I cannot find a solution. Anyone have any ideas, it would be greatly appreciated!

Thanks in advance


All that you need is to write in your custom module configuration file (config.xml):

<config>
    <adminhtml>
        <translate>
            <modules>
                <Custom_Module>
                    <files>
                        <default>Custom_Module.csv</default>
                    </files>
                </Custom_Module>
            </modules>
        </translate>
    </adminhtml>
</config>

And locate your Custom_Module.csv into app/locale/lang_code/ folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消