Kaydet (Commit) df7d14e4 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS setup12b (1.4.6); FILE MERGED

2003/06/18 07:35:29 dv 1.4.6.2: RESYNC: (1.4-1.5); FILE MERGED
2003/06/18 06:19:03 tra 1.4.6.1: #110274#hack for partially merged lng files, where some strings have a particular language and others don't
üst d40deaa0
...@@ -613,6 +613,21 @@ inline void FileAppendRcFooter(std::ostream& os, std::istream& is) ...@@ -613,6 +613,21 @@ inline void FileAppendRcFooter(std::ostream& os, std::istream& is)
FileAppendFile(os, is); FileAppendFile(os, is);
} }
//###########################################
bool is_placeholder(const std::string& str)
{
return ((str.length() > 1) &&
('%' == str[0]) &&
('%' == str[str.length() - 1]));
}
//###########################################
void std_string_to_winrc_string(std::string& str)
{
str = OUStringToWinResourceString(
rtl::OUString::createFromAscii(str.c_str()));
}
//------------------------------------------- //-------------------------------------------
/** Iterate all languages in the substitutor, /** Iterate all languages in the substitutor,
replace the all placeholder and append the replace the all placeholder and append the
...@@ -648,6 +663,15 @@ void InflateRcTemplateAndAppendToFile( ...@@ -648,6 +663,15 @@ void InflateRcTemplateAndAppendToFile(
std::string token; std::string token;
iss >> token; iss >> token;
substitutor.Substitute(token); substitutor.Substitute(token);
// #110274# HACK for partially merged
// *.lng files where some strings have
// a particular language that others
// don't have in order to keep the
// build
if (is_placeholder(token))
std_string_to_winrc_string(token);
line += token; line += token;
line += " "; line += " ";
} }
......
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