localization testing, formatting strings xxxxx
we perplexing feeling during optimizing the localization testing.
our qa organisation idea special mode force strings resources wholly contained x. already api take loadstring, mfc doing it, doing should vital hurdle.
my doubt solve formatting issues?
examples -
cstring str ;
str . loadstring ( ids_mystring ) ;
where ids_mystring "hello world", should relapse "xxxxx xxxxx"
where ids_mystring "hello\nworld", should relapse "xxxxx\nxxxxx"
where ids_mystring "hello%dworld", should relapse "xxxxx%dxxxxx"
where ids_mystring "hello%.2fworld", should relapse "xxxxx%.2fxxxxx"
where ids_mystring "hello%%world", should relapse "xxxxx%%xxxxx"
so outline twine should work used printf format statement, should honour evade characters.
so pristine formula question, c++/mfc,
cstring convertstringtoxxxx ( const cstring& asource )
{
cstring lresult = asource ;
// insert your formula here
relapse lresult ;
}
i know finished controlling collection .rc files, nonetheless wish build english, following run -
application -l10ntest
Comments
Post a Comment