{"action":"closed","issue":{"url":"https://api.github.com/repos/herrvigg/qtranslate-x/issues/87","repository_url":"https://api.github.com/repos/herrvigg/qtranslate-x","labels_url":"https://api.github.com/repos/herrvigg/qtranslate-x/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/herrvigg/qtranslate-x/issues/87/comments","events_url":"https://api.github.com/repos/herrvigg/qtranslate-x/issues/87/events","html_url":"https://github.com/herrvigg/qtranslate-x/issues/87","id":334694122,"node_id":"MDU6SXNzdWUzMzQ2OTQxMjI=","number":87,"title":"Question: About qtranxf_use_language()","user":{"login":"herrvigg","id":19155375,"node_id":"MDQ6VXNlcjE5MTU1Mzc1","avatar_url":"https://avatars2.githubusercontent.com/u/19155375?v=4","gravatar_id":"","url":"https://api.github.com/users/herrvigg","html_url":"https://github.com/herrvigg","followers_url":"https://api.github.com/users/herrvigg/followers","following_url":"https://api.github.com/users/herrvigg/following{/other_user}","gists_url":"https://api.github.com/users/herrvigg/gists{/gist_id}","starred_url":"https://api.github.com/users/herrvigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herrvigg/subscriptions","organizations_url":"https://api.github.com/users/herrvigg/orgs","repos_url":"https://api.github.com/users/herrvigg/repos","events_url":"https://api.github.com/users/herrvigg/events{/privacy}","received_events_url":"https://api.github.com/users/herrvigg/received_events","type":"User","site_admin":false},"labels":[{"id":971679229,"node_id":"MDU6TGFiZWw5NzE2NzkyMjk=","url":"https://api.github.com/repos/herrvigg/qtranslate-x/labels/import","name":"import","color":"ededed","default":false},{"id":971666669,"node_id":"MDU6TGFiZWw5NzE2NjY2Njk=","url":"https://api.github.com/repos/herrvigg/qtranslate-x/labels/question","name":"question","color":"d876e3","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-21T23:28:19Z","updated_at":"2018-06-21T23:28:28Z","closed_at":"2018-06-21T23:28:28Z","author_association":"OWNER","body":"<a href=\"https://github.com/resting\"><img src=\"https://avatars2.githubusercontent.com/u/350530?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [resting](https://github.com/resting)**\n_Thursday Mar 19, 2015 at 08:12 GMT_\n_Originally opened as https://github.com/qTranslate-Team/qtranslate-x/issues/87_\n\n----\n\nI'm curious why the `$show_available` option is set to `true` for this [line](https://github.com/qTranslate-Team/qtranslate-x/blob/3.2.7/qtranslate_frontend.php#L294)?\n\n```\ncase 'post_content': $post->$key = qtranxf_use_language($lang, $txt, true); break;\n```\n\nWas trying to get WP to display the content under the default language if the one requested is empty. But  it doesn't, and shows a line of message instead. I think it means to say that only English is available or something.\n\nAnyway, I found that that's because `$show_available` is `true`, hence [this expression](https://github.com/qTranslate-Team/qtranslate-x/blob/3.2.7/qtranslate_core.php#L1346) isn't `true`.\n\nSetting `$show_available` to `false` works, but I'm not sure about the implications.\n\n"}}
{"actor":{"display_login":"herrvigg"}}