diff options
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r-- | chrome/renderer/render_view.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index c09bf32..7245df1 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -458,15 +458,10 @@ class RenderView : public RenderWidget, PageTranslator* page_translator() const { return page_translator_.get(); } - // Returns the ISO 639 language code of the current page (e.g. en, fr, zh). - // If ISO 639-1 code is not available for the language, ISO 639-2 3-letter code - // will be returned (e.g. kha for Khasi and und for undtermined). For traditional - // Chinse, 'zh-TW' will be returned while for simplified Chinse, 'zh' will be - // returned. - // TODO(jungshik): Make it return 'he' (the correct ISO 639 code for Hebrew) - // instead of the obsolete 'iw'. Perhaps, it's also better to return 'zh-Hans' - // (or 'zh-CN') for Simplified Chinese instead of 'zh' to be aligned with - // 'zh-TW' for Traditional Chinse. + // Returns the ISO 639 language code of the current page (e.g. en, fr). + // If ISO 639-1 code is not available for the language, ISO 639-2 3-letter + // code will be returned (e.g. fil for Filipino and und for undtermined). For + // traditional and simplified Chinse, 'zh-TW' and 'zh-CN' will be returned. std::string DetectLanguage(); #if defined(OS_MACOSX) |