Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
fb_likebox.js uses en_EN as fixed language parameter for js.src.
Site admins need to be able to configure this if the sites language is other than English.
Related issue #2499463: Invalid App Id patch #9 makes fb_likebox.js file configurable.
Comment | File | Size | Author |
---|---|---|---|
#7 | fb_likebox-language_configurable-2511928-3.patch | 6.51 KB | silkogelman |
#6 | fb_likebox-language_configurable-2511928.patch | 6.39 KB | drozas |
#5 | fb_likebox.zip | 3.85 KB | Huelfe |
#1 | drupal-facebook-page-plugin-language-configurable.png | 30 KB | silkogelman |
Comments
Comment #1
silkogelman CreditAttribution: silkogelman commentedP.S.
I'm happy to create a patch for this when a final version of #2499463: Invalid App Id is committed.
I made a proof of concept already, so a patch is not that much work for me (or anyone else for that matter).
Comment #2
silkogelman CreditAttribution: silkogelman commentedFacebooks official documentation about this:
https://developers.facebook.com/docs/plugins/page-plugin#settings
Comment #3
baekelandt CreditAttribution: baekelandt as a volunteer commentedHello Silkogelman, I committed the final version of #2499463: Invalid App Id are you still willing to provide a patch for the language issue (and for #2512556: Allow all page plugin settings to be configurable by user if you have enough time)? I don't think I'll have enough time to create one myself.
Comment #4
silkogelman CreditAttribution: silkogelman commentedI am, I'll post patches for both issues next week.
Comment #5
Huelfe CreditAttribution: Huelfe commentedIn the zip file are the changes to choose a different language. Sorry for not creating a patch file, but for some reasons i had no time for it. I hope it will help! :)
Comment #6
drozas CreditAttribution: drozas as a volunteer commentedThanks @Huelfe,
I have created a patch based on the .zip file that you submitted. Could you please verify that all the changes you suggested are included?
Thanks!
Comment #7
silkogelman CreditAttribution: silkogelman as a volunteer commentedTested and updated the patch a bit: the code from #5 works, but there was an array structure mistake in the patch from #6.
This updated patch should do the trick.
P.S.
Sorry for not letting you guys know I did not find the time to create a patch earlier as I described in #4.
I created a patch for #2512556: Allow all page plugin settings to be configurable by user but at that moment I didn't have the time for creating a patch for the current issue.
Comment #8
Huelfe CreditAttribution: Huelfe commentedThe patch from #7 looks good. Maybe the language array should be translatable?
Comment #9
silkogelman CreditAttribution: silkogelman as a volunteer commentedI like the idea, and I'm happy to update the patch with t() wrappers.
And would it be nice if the list was ordered alphabetically?
It makes it easier for people to find their language.
Another bonus feature could be to create a select box that says 'autoselect users language' to enable an autoselect option that detects the users language.
That may be input for another issue though :)
Comment #10
Huelfe CreditAttribution: Huelfe commentedAutoselect users language is a interesting feature! But you're right, this is another issue.
I agree with you. An alphabetically sorted array makes much more sense. Just make sure to sort the translated strings and not the default ones. :)
Comment #11
silkogelman CreditAttribution: silkogelman as a volunteer commentedTo have the current issue available for end-users as quickly as possible I suggest we test & commit the patch from #7 asap.
I created new issues for the other ideas:
#2541836: Translatable languages list
#2541840: Order the language list alphabetically
#2541844: Autoselect user language
Comment #12
szecsodimlaszlo CreditAttribution: szecsodimlaszlo commentedI can confirm that the patch from #7 is working.
Thank you.
Comment #14
baekelandt CreditAttribution: baekelandt as a volunteer commentedCommitted patch #7 and placed t() functions around the languages as suggested in #8 and #9 (see issue #2541836: Translatable languages list )
Comment #15
baekelandt CreditAttribution: baekelandt as a volunteer commented