Added call to get_lang() for (X)HTML lang tags

svn path=/trunk/; revision=936
This commit is contained in:
Curtis Gedak 2008-10-16 19:59:30 +00:00
parent 6a28b6810a
commit 0f88eeaec5
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-10-16 Curtis Gedak <gedakc@gmail.com> 2008-10-16 Curtis Gedak <gedakc@gmail.com>
* src/Dialog_Progress.cc: Added call to get_lang() for lang tags
* include/Utils.h, * include/Utils.h,
src/Utils.cc: Created function get_lang() src/Utils.cc: Created function get_lang()

View File

@ -346,7 +346,8 @@ void Dialog_Progress::on_save()
{ {
//Write out proper HTML start //Write out proper HTML start
out << "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" << std::endl out << "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" << std::endl
<< "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>" << std::endl << "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='" << Utils::get_lang() << "'"
<< " lang='" << Utils::get_lang() << "'>" << std::endl
<< "<head>" << std::endl << "<head>" << std::endl
<< "<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />" << std::endl << "<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />" << std::endl
<< "<title>GParted Details</title>" << std::endl << "<title>GParted Details</title>" << std::endl