diff options
Diffstat (limited to 'linden/indra/newview/llpreviewtexture.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewtexture.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llpreviewtexture.cpp b/linden/indra/newview/llpreviewtexture.cpp index fe94fa4..0a204dc 100644 --- a/linden/indra/newview/llpreviewtexture.cpp +++ b/linden/indra/newview/llpreviewtexture.cpp | |||
@@ -240,7 +240,8 @@ void LLPreviewTexture::draw() | |||
240 | 240 | ||
241 | if( mLoadingFullImage ) | 241 | if( mLoadingFullImage ) |
242 | { | 242 | { |
243 | LLFontGL::sSansSerif->renderUTF8("Receiving:", 0, | 243 | // *TODO: Translate |
244 | LLFontGL::sSansSerif->renderUTF8(std::string("Receiving:"), 0, | ||
244 | interior.mLeft + 4, | 245 | interior.mLeft + 4, |
245 | interior.mBottom + 4, | 246 | interior.mBottom + 4, |
246 | LLColor4::white, LLFontGL::LEFT, LLFontGL::BOTTOM, | 247 | LLColor4::white, LLFontGL::LEFT, LLFontGL::BOTTOM, |
@@ -276,7 +277,8 @@ void LLPreviewTexture::draw() | |||
276 | else | 277 | else |
277 | if( !mSavedFileTimer.hasExpired() ) | 278 | if( !mSavedFileTimer.hasExpired() ) |
278 | { | 279 | { |
279 | LLFontGL::sSansSerif->renderUTF8("File Saved", 0, | 280 | // *TODO: Translate |
281 | LLFontGL::sSansSerif->renderUTF8(std::string("File Saved"), 0, | ||
280 | interior.mLeft + 4, | 282 | interior.mLeft + 4, |
281 | interior.mBottom + 4, | 283 | interior.mBottom + 4, |
282 | LLColor4::white, LLFontGL::LEFT, LLFontGL::BOTTOM, | 284 | LLColor4::white, LLFontGL::LEFT, LLFontGL::BOTTOM, |
@@ -309,9 +311,7 @@ void LLPreviewTexture::saveAs() | |||
309 | mLoadingFullImage = TRUE; | 311 | mLoadingFullImage = TRUE; |
310 | getWindow()->incBusyCount(); | 312 | getWindow()->incBusyCount(); |
311 | mImage->setLoadedCallback( LLPreviewTexture::onFileLoadedForSave, | 313 | mImage->setLoadedCallback( LLPreviewTexture::onFileLoadedForSave, |
312 | 0, | 314 | 0, TRUE, FALSE, new LLUUID( mItemUUID ) ); |
313 | TRUE, | ||
314 | new LLUUID( mItemUUID ) ); | ||
315 | } | 315 | } |
316 | } | 316 | } |
317 | 317 | ||
@@ -349,13 +349,13 @@ void LLPreviewTexture::onFileLoadedForSave(BOOL success, | |||
349 | LLPointer<LLImageTGA> image_tga = new LLImageTGA; | 349 | LLPointer<LLImageTGA> image_tga = new LLImageTGA; |
350 | if( !image_tga->encode( src ) ) | 350 | if( !image_tga->encode( src ) ) |
351 | { | 351 | { |
352 | LLStringBase<char>::format_map_t args; | 352 | LLStringUtil::format_map_t args; |
353 | args["[FILE]"] = self->mSaveFileName; | 353 | args["[FILE]"] = self->mSaveFileName; |
354 | gViewerWindow->alertXml("CannotEncodeFile", args); | 354 | gViewerWindow->alertXml("CannotEncodeFile", args); |
355 | } | 355 | } |
356 | else if( !image_tga->save( self->mSaveFileName ) ) | 356 | else if( !image_tga->save( self->mSaveFileName ) ) |
357 | { | 357 | { |
358 | LLStringBase<char>::format_map_t args; | 358 | LLStringUtil::format_map_t args; |
359 | args["[FILE]"] = self->mSaveFileName; | 359 | args["[FILE]"] = self->mSaveFileName; |
360 | gViewerWindow->alertXml("CannotWriteFile", args); | 360 | gViewerWindow->alertXml("CannotWriteFile", args); |
361 | } | 361 | } |