diff --git a/src/view/page/AphrontPageView.php b/src/view/page/AphrontPageView.php index d64c3b8e9b..c16c6758a1 100644 --- a/src/view/page/AphrontPageView.php +++ b/src/view/page/AphrontPageView.php @@ -65,9 +65,16 @@ abstract class AphrontPageView extends AphrontView { $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( ''. - ''. + ''. '
'. ''. '