M. NASRI
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Localization with 7.5.2 versionThis is not the question. Yes, the translation domain is indeed cutheme and the translations are well defined. But the function __() is not working here, my question is WHY. It is working well here https://collegeuniversel.ca/en/studying-in-montreal/ where I use CF7 version 5.6.4.
The same project (in dev mode) is hosted here : http://cu.dev.xweb.ma/en/studying-in-montreal/ with CF7 version 5.7.2.
You will notice from the latest page that both the dynamic selects are not translated; the countries and the selected programs.
The only different thing between the two project is the version of CF7. When I update CF7 to the current version (5.7.2), the dynamic selects show options in the original default language (French in my case), as though the WP function __() is not working.
I hope that it is now clearer.
Forum: Plugins
In reply to: [Contact Form 7] Localization with 7.5.2 versionadd_filter('wpcf7_form_tag_data_option', function($data, $options, $args) { $data = []; foreach ($options as $option) { if ($option === 'parcours') { $data = []; $data[] = __("Programme choisi", "cutheme"); $data = get_parcours_with_programmes($data); }The line : __(“Programme choisi”, “cutheme”); is not getting the translated text when I move to the new version of CF7. It is currently working well, my form shows ‘Selected programs’. But as soon as I update the plugin, the same form shows : ‘Programme choisi’.
Forum: Plugins
In reply to: [Contact Form 7] Localization with 7.5.2 versionHere is what I have :
<div class="row"> <div class="col-md-12">[select* programmechoisi class:form-select class:form-control first_as_label data:parcours] </div> </div>Forum: Plugins
In reply to: [Contact Form 7] Localization with 7.5.2 versionHere it is: http://cu.dev.xweb.ma/
Thanks.
Ok, thank you very much.
Wish you a nice day.
Hi,
So if I understood correctly, I’d better provide a standard theme rather than a child one if I wants users to easily customizing it (which is often the case).
Regarding my initial query (the most important one), my question was not about how to create templates but whether I must coding them from scratch (listing page, search form, article content, etc.) or I can reuse an existing code such as twentyseventeen theme (as an example).
Is my question clear ?
Hello,
Thank you t-p for your prompt reply, I already checked the theme handbook, I do follow the guidlines it provides for the development of my theme, but I did not found an answer to my question inside.
Thank you RossMitchell, your answer is more useful to me, but if I want develop new themes for sale, is it a good idea to provide only child themes? or rather whole themes?
Thank you in advance.