why wordpress facebook widget show only in russian? - facebook

from any country i am accessing the website i see the widget in Russian language
on link: website
the widget on the on the bottom is facebook widget.
anyone run into this same problem?

You are not the only one. There was a thread about his exact problem on the Wordpress Support site
The iframe src attribute on that site contain locale=uk_UA in the query string. If you have control of that, simply remove that field, and the widget locale will default to the user's browser setting.
Compare locale specified vs unspecified

Related

how to open widgets using flutter webview using widget link

i came here with a new scenario. i want to open a Widget using webview with additional params. i have the widget link whose format is like this.
https:// myweb.com/widgets/flights?data=
name=xxxx&cnic=xxxx&email=xxxx&mobile_no=xxxx&api_key=xxxx
i don't have any idea about such links. before this i have implemented many Webviews but this one is a stranger to me.
i want to send my details from my app's widget (miniApp) that will be handled from webserver side.

Liferay DXP 7.2 - Check if User is on a Content Page or a Widget Page

is there a way to check if the user is on a Widget Page or a Content Page? Maybe some kind of variable that describes the page type, I'm looking in to the documentation but can't get any useful info around it
I found out how to do it, using the themeDisplay Object as follows:
themeDisplay.getLayout().type

How can a GWT served html page have the lang attribute set?

As per GAR compliance, language has to be indicate with page.
Question 2.9. Is the content’s human language indicated in the markup?
E.g. for a page written in all one language, `<html lang="fr">`, or for a multi-lingual page, `<div lang="fr">`.
A GWT application indicates its supported locales list in in its gwt.xml, and the html page with the locale requested by the client gets served.
How can a GWT application have the lang attribute set in the html tag?
Our application is UI widget based, and therefore we don't have a host html page, but directly add the widget to the RootPanel().
Try this:
Document.get().getDocumentElement().setAttribute("lang",
LocaleInfo.getCurrentLocale().getLocaleName());

Facebook widget (by Milap Patel) how to translate the text?

im using the facebook widget for wordpress by: http://wordpress.org/extend/plugins/facebook-pagelike-widget/
on my blog, but I would like to translate or change the text that currently says "Find us on Facebook". Is that posible?
Ive search through the plugin folder and its files but im not experienced enough or its just not there. please help if posible.
In the plugin folder you can edit the file named fb.js on line 7:
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId="+appid;
Change en_US to the locale you want. The full list of available Facebook locales can be found here: https://www.facebook.com/translations/FacebookLocales.xml
The problem with doing this will be the locale will switch back to en_US if you install an update to the plugin. I would get your own embed code from Facebook (https://developers.facebook.com/docs/reference/plugins/like-box/) and paste it into your theme or a HTML widget for your sidebar.

Facebook "Like" button encoding

I've put like button on joomla site with cyrillic text:
http://womanew.kz/index.php/2011-10-22-01-42-12/2011-11-01-05-34-04/147-2011-11-07-06-22-02
When I push like button facebook's scraper incorrectly encodes the page.
Also I've created static test html page equal to this URL (http://womanew.kz/test.html), and it scrapes well.
All two pages have equal content, but the problem page is generated from Joomla PHP script.
Also I've noticed that scraper reencodes not full document (it keeps head block unchanged), please see its "See exactly what our scraper sees for your URL" debuging page on facebook.
What can I do to struggle this problem?
When I did this I use this manual and didn't have such problem. This is for Joomla website:
1.Go to the Facebook developer page here: http://developers.facebook.com/docs/reference/plugins/like-box
2.Enter the page number (found in your Facebook page URL) of your Facebook page.
3.If you don't have one, go to Facebook Create Page wizard and create a Brand >> Website page for your site.
4.Enter the height (typically 400 pixels) that you want for the Like widget
5.Click the Get Code button to generate the Facebook Code.
6.Open the Joomla Administrator on your site
7.Navigate to the Module Manager
8.Click the New button
9.Select Custom HTML
10.Paste the code into the HTML box (make sure the editor is turned off).
11.Give the module a name
12.Click the Hide Title radio button
13.Select the Module Position where you want the widget to appear
14.Click Save
Also, take a look at http://www.abolkog.com/portal/tutorials-how-to/100-how-to-add-a-facebook-like-box-to-your-joomla-site
Hope, it will help you!
I've found a bug in the site. One of joomla's modules was truncating UTF-8 strings in byte boundaries and this was created one-byte bug character in the page, after this character scraper starts using incorrect encoding.