Closed (won't fix)
Project:
Facebook Pixel
Version:
2.x-dev
Component:
Code (General)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2022 at 16:27 UTC
Updated:
5 Dec 2022 at 19:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
glauberjs commentedComment #3
glauberjs commentedComment #4
glauberjs commentedComment #5
glauberjs commentedComment #6
glauberjs commentedComment #7
glauberjs commentedComment #8
glauberjs commentedComment #9
glauberjs commentedApply path for fix error:
Warning: foreach() argument must be of type array|object, null given in Drupal\config_translation\Form\ConfigTranslationFormBase->submitForm() (line 201 of core/modules/config_translation/src/Form/ConfigTranslationFormBase.php).Comment #10
grevil commentedComment #11
grevil commentedWhat exact part of the config do you need to translate?
The facebook_id as well as the visibility settings should NEVER be translated, as adding translation to these configs will lead to broken functionality / broken path variables. All privacy settings texts are translatable, so this also shouldn't be a problem.
Comment #12
anybodyAgree with @Grevil and changing
stringtotextwould also be wrong. Should instead belabelthen, but makes no sense to translate these technical values.Setting won't fix until good reasons are given. I can't see any yet.
Comment #13
anybodyBTW please take the time to create a proper issue summary. This is a mess.
Comment #14
glauberjs commentedIn the context of the project I work on, the translation is carried out for a country in question, so for each country, it has a different facebook id, which is why I had to change it to text.
Comment #15
anybodyThanks for the feedback @glauberjs. I still don't think this is a proper reason for "translation" for technical settings. Core and other modules also don't do this.
Perhaps this: https://www.drupal.org/project/config_override is what you want or you need custom code for such overrides.
Also see https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-...
I don't think we will ever commit / merge this. I hope you can understand the reasons.
Comment #16
glauberjs commentedThanks Anybody!!