conecta6 Posted August 9, 2016 Share Posted August 9, 2016 Hi, i have translated so many string with override, but i dont know exactly how can y translate in this code THE OPTIONS $additionaldomainfields[".es"][] = array("Name" => "ID Form Type", "LangVar" => "estldidformtype", "Type" => "dropdown", "Options" => "Other Identification,Tax Identification Number,Tax Identification Code,Foreigner Identification Number", "Default" => "Other Identification",); and in this THE ARRAY AND DEFAULT $additionaldomainfields[".es"][] = array( "Name" => "Legal Form", "LangVar" => "estldlegalform", "Type" => "dropdown", "Options" => implode( ',', array( '1|Individuo', '39|Grupo de interés económico', '47|Asociación', '59|Asociación Deportiva', ) ), "Default" => "1|Individuo", ); ¿Any idea how can i call to this elements? thanks 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 11, 2016 Share Posted August 11, 2016 Please provide where is this array coming from. I think you shouldn't translate array elements (its inputs), because it will break the functionallity. I suppose if you say from which file is this, we can suggest you to translate the labels, properly. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 11, 2016 Share Posted August 11, 2016 using language override, add the translation variables you will use: $_LANG['Individuo'] = "Individuo"; $_LANG['Grupo de interés económico'] = "Grupo de interés económico"; and modify the options array, so it will call the translation method like that: $additionaldomainfields[".es"][] = array( "Name" => "Legal Form", "LangVar" => "estldlegalform", "Type" => "dropdown", "Options" => implode( ',', array( '1|'.lang::trans('Individuo'), '39|'.lang::trans('Grupo de interés económico'), '47|Asociación', '59|Asociación Deportiva', ) ), "Default" => '1|'.lang::trans('Individuo'), ); simple and easy 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.