Support » Plugin: Tweeple » Languages

Viewing 1 replies (of 1 total)
  • Plugin Author Jason

    (@themeblvd)

    Hello,

    I’m looking at the search API now, and it does appear you can query the Tweets by language.

    https://dev.twitter.com/docs/api/1.1/get/search/tweets

    However, I am trying to keep the plugin’s options as lite as possible, and so I’m not sure something like this would be necessary. Wouldn’t, in most cases, your search terms or hashtag being in a certain language bring back results in that language?

    I don’t personally do anything outside of English and so I am genuinely asking. Maybe the world outside of English in regards to Twitter is much more cumbersome?

    But assuming the search API on Twitter’s dev site is correct, you could filter all of Tweeple query’ing from Twitter like this from your theme’s functions.php or your own plugin something like this:

    function my_tweeple_request_params( $params ){
    	$params['lang'] = 'en'; // Your ISO lang code
    	return $params;
    }
    add_filter( 'tweeple_request_params', 'my_tweeple_request_params' );

    https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

Viewing 1 replies (of 1 total)
  • The topic ‘Languages’ is closed to new replies.