Addon Not Getting Translation From .po File

I have build an addon where my PO file is stored on below location.

var>langs>en>addons>ADDON_NAME.po

and i am using some veriable from a file which is store at below location.

design>backend>templates>addons>ADDON_NAME>views>VIEW_NAME>manage.tpl

but when I install addon the language variable doesn't work, I tried searching them from admin panel of cs cart but there also not working.

please help me why it happening?

Hello

Are you sure you have the correct file structure?
Did no message appear during installation?
Show these language file.
Best regards
Robert

Hello

Are you sure you have the correct file structure?
Did no message appear during installation?
Show these language file.
Best regards
Robert

hi file location is correct but if there some issue with my code please check as below.

msgid ""
msgstr "Project-Id-Version: tygh\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language-Team: English\n"
"Language: en_US"

msgctxt “Addons::name::admin_tools”
msgid “Admin tools”
msgstr “Admin tools”

msgctxt “Languages::admin_tools”
msgid “Admin tools”
msgstr “Admin tools”

msgctxt “Languages::admin_tools”
msgid “admin tools”
msgstr “Admin tools”

msgctxt “Languages::searchquery”
msgid “searchquery”
msgstr “Search keyword”

msgctxt “Languages::totalsearches”
msgid “totalsearches”
msgstr “Total searches”

did i put something wrong?

For example, addon name is also stored in the .po file. Do you see addon name after installation is completed

Hello

msgid ""
msgstr "Project-Id-Version: tygh"
"Content-Type: text/plain; charset=UTF-8\n"
"Language-Team: English\n"
"Language: en_US"

msgctxt "Addons::name::admin_tools"
msgid "Name Admin tools"
msgstr "Admin tools"

msgctxt "Addons::description::admin_tools"

msgid "Description Admin tools"
msgstr "Description"

msgctxt "Languages::admin_tools_1"
msgid "admin_tools_1"
msgstr "Admin tools"

msgctxt "Languages::admin_tools_2"
msgid "admin_tools_2"
msgstr "Admin tools"

msgctxt "Languages::
admin_tools_searchquery"

msgid "admin_tools_searchquery"
msgstr "Search keyword"

msgctxt "Languages::
admin_tools_totalsearches"

msgid "admin_tools_totalsearches"
msgstr "Total searches"

And after instalation try serach this language variables.

Best regards

Robert

Hello

msgid ""
msgstr "Project-Id-Version: tygh"
"Content-Type: text/plain; charset=UTF-8\n"
"Language-Team: English\n"
"Language: en_US"

msgctxt "Addons::name::admin_tools"
msgid "Name Admin tools"
msgstr "Admin tools"

msgctxt "Addons::description::admin_tools"

msgid "Description Admin tools"
msgstr "Description"

msgctxt "Languages::admin_tools_1"
msgid "admin_tools_1"
msgstr "Admin tools"

msgctxt "Languages::admin_tools_2"
msgid "admin_tools_2"
msgstr "Admin tools"

msgctxt "Languages::
admin_tools_searchquery"

msgid "admin_tools_searchquery"
msgstr "Search keyword"

msgctxt "Languages::
admin_tools_totalsearches"

msgid "admin_tools_totalsearches"
msgstr "Total searches"

And after instalation try serach this language variables.

Best regards

Robert

Robert,

I dont know what is the problem I have used above code but its still not displaying in translations.

below is the file on which i want to translate one variable.

use Tygh\Registry;

$schema[‘central’][‘website’][‘items’][‘admin_tools_1’] = array(
‘attrs’ => array(
‘class’=>‘is-addon’
),
‘href’ => ‘admin_tools.manage’,
‘position’ => 00,
‘alt’ => ‘admin_tools.manage’,
);

return $schema;

I want to translate admin_tools1 in 3rd line.

I am also sharing my addon.xml file maybe some problem with that file please guide me.



	admin_tools
	Admin Tools Codesbar
	Admin tools multipurpose
	1.1.4
	104500
    en
	active

is something i am missing or wrong?

Hello

Please try change addon scheme on 3.0

Best regards

Robert

Hello

Please try change addon scheme on 3.0

Best regards

Robert

Dear.

Still not working.

I am so confused what is wrong.

Hello

Have you uninstalled the addon and reinstalled?

Attach the package with your addon here. We'll check her out.

Best regards

Robert

So what about addon name and description? Do you see correct or missed value?

Is the language that your browser is using by default 'en'? If not, it may be trying to utilize a different language.

Be sure to clear your cache after changes to the PO file. I believe it is only reloaded upon installation of the addon.

Also check your php error_log file for any possible permissions issues and/or parsing errors.

I have build an addon where my PO file is stored on below location.

var>langs>en>addons>ADDON_NAME.po

and i am using some veriable from a file which is store at below location.

design>backend>templates>addons>ADDON_NAME>views>VIEW_NAME>manage.tpl

but when I install addon the language variable doesn't work, I tried searching them from admin panel of cs cart but there also not working.

please help me why it happening?

you can add a ticket regarding this issue over here. will try to give you a better solution for this problem.

and don't worry it will be totally free of cost.

you can add a ticket regarding this issue over here. will try to give you a better solution for this problem.

and don't worry it will be totally free of cost.

I already sent and waiting your response.

I already sent and waiting your response.

hopefully you have got your solutions and your issue get resolved..Happy to Help