Commit 8e47b4bc authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 736034 - [PATCH] Cleanup redundant if/else branch in src/translator_vi.h

parent 4afe0883
...@@ -749,8 +749,7 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0 ...@@ -749,8 +749,7 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0
/*! This is put at the bottom of a class documentation page and is /*! This is put at the bottom of a class documentation page and is
* followed by a list of files that were used to generate the page. * followed by a list of files that were used to generate the page.
*/ */
virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType, virtual QCString trGeneratedFromFiles(ClassDef::CompoundType compType,bool)
bool single)
{ // here s is one of " Class", " Struct" or " Union" { // here s is one of " Class", " Struct" or " Union"
// single is true implies a single file // single is true implies a single file
QCString result=(QCString)"Thông tin cho "; QCString result=(QCString)"Thông tin cho ";
...@@ -766,7 +765,7 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0 ...@@ -766,7 +765,7 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0
default: break; default: break;
} }
result+=" được biên soạn từ các file sau đây"; result+=" được biên soạn từ các file sau đây";
if (single) result+=":"; else result+=":"; result+=":";
return result; return result;
} }
...@@ -1501,10 +1500,9 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0 ...@@ -1501,10 +1500,9 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0
/*! This returns the word directory with or without starting capital /*! This returns the word directory with or without starting capital
* (\a first_capital) and in sigular or plural form (\a singular). * (\a first_capital) and in sigular or plural form (\a singular).
*/ */
virtual QCString trDir(bool first_capital, bool singular) virtual QCString trDir(bool first_capital, bool)
{ {
QCString result((first_capital ? "Thư mục" : "thư mục")); QCString result((first_capital ? "Thư mục" : "thư mục"));
if (singular) result+=""; else result+="";
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment