Ticket #7229: gif-another-localization-update.patch
File gif-another-localization-update.patch, 2.0 KB (added by , 14 years ago) |
---|
-
src/add-ons/translators/gif/GIFTranslator.cpp
49 49 status_t GetBitmap(BPositionIO *in, BBitmap **out); 50 50 51 51 /* Required data */ 52 char translatorName[] = "GIF images"; 53 char translatorInfo[] = "GIF image translator v1.4"; 52 BString str1(B_TRANSLATE("GIF images")); 53 BString str2(B_TRANSLATE("GIF image translator v1.4")); 54 char translatorName[255]; 55 char translatorInfo[255]; 54 56 int32 translatorVersion = 0x140; 55 57 56 58 translation_format inputFormats[] = { … … 69 71 { 0 } 70 72 }; 71 73 72 73 74 /* Build a pretty view for DataTranslations */ 74 75 status_t 75 76 MakeConfig(BMessage *ioExtension, BView **outView, BRect *outExtent) … … 240 241 : BApplication("application/x-vnd.Haiku-GIFTranslator") 241 242 { 242 243 BRect rect(100, 100, 339, 339); 244 memset(translatorName, 0x00, 255); 245 memset(translatorInfo, 0x00, 255); 246 if (str1.Length() <= 255) 247 strncpy(translatorName, str1.String(), str1.Length()); 248 if (str2.Length() <= 255) 249 strncpy(translatorInfo, str2.String(), str2.Length()); 250 243 251 gifwindow = new GIFWindow(rect, B_TRANSLATE("GIF Settings")); 244 252 gifwindow->Show(); 245 253 } -
src/add-ons/translators/gif/GIFWindow.cpp
16 16 #include "GIFWindow.h" 17 17 #include "GIFView.h" 18 18 #include <Application.h> 19 #include <Catalog.h> 19 20 #include <GroupLayout.h> 20 21 22 #undef B_TRANSLATE_CONTEXT 23 #define B_TRANSLATE_CONTEXT "GIF Window" 24 21 25 GIFWindow::GIFWindow(BRect rect, const char *name) : 22 26 BWindow(rect, name, B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE 23 27 | B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE) { 24 28 SetLayout(new BGroupLayout(B_HORIZONTAL)); 25 gifview = new GIFView( "GIFView");29 gifview = new GIFView(B_TRANSLATE("GIFView")); 26 30 AddChild(gifview); 27 31 } 28 32