diff --git a/src/view/page/AphrontPageView.php b/src/view/page/AphrontPageView.php --- a/src/view/page/AphrontPageView.php +++ b/src/view/page/AphrontPageView.php @@ -65,9 +65,16 @@ $data_fragment = null; } + if ($this->hasViewer() && $this->getViewer()->isLoggedIn()) { + $html_lang = phutil_safe_html(' lang="'. + str_replace('_', '-', $this->getViewer()->getTranslation().'"')); + } else { + $html_lang = phutil_safe_html(' lang="en"'); + } + $response = hsprintf( ''. - ''. + ''. '
'. ''. '