當前設置Magento的(1.7)指定路徑translate.csv
我有以下模板佈局的multiplie語言的網站:
/frontend/base
/frontend/english
/frontend/portuguese
/frontend/ ...
所以每個網站都有一個單獨的一組模板文件/前端/ [現場] /模板
我使用URL代碼的網站之間進行切換,例如,
http://mysite/en/..., http://mysite/pt/...
我有在每個站點,例如翻譯文件,
/frontend/portuguese/[root category]/locale/pt_PT/translate.csv
,並使用在一個.phtml文件$this->__()
。
這一切工作正常。
我想這樣
我希望所有網站使用/frontend/base
模板文件,使用$this->__()
。
我遇到的問題是,文件從/frontend/base
模板拉沒有找到正確的translate.csv文件。
因此,例如,如何在網站以葡萄牙語運行時指定/frontend/base
模板文件應使用/locale/pt_PT/translate.csv
文件?
我認爲你沒有正確地更新區域設置配置選項或商店明智或不設置店面id葡萄牙語前面當userr來自葡萄牙語,你是否根據用戶位置自動swtiching存儲,如果是這樣檢查商店ID? –