Ticket #6075: InspectorLocalization.patch

File InspectorLocalization.patch, 19.4 KB (added by Karvjorm, 14 years ago)

An updated patch for Inspector localization.

  • src/tools/translation/inspector/ActiveTranslatorsWindow.cpp

     
    3333#include "ActiveTranslatorsWindow.h"
    3434#include "TranslatorItem.h"
    3535#include <Application.h>
     36#include <Catalog.h>
    3637#include <ScrollView.h>
     38#include <Locale.h>
    3739#include <Message.h>
    3840#include <String.h>
    3941#include <stdlib.h>
     
    4244#include <unistd.h>
    4345#include <sys/stat.h>
    4446
     47#define B_TRANSLATE_CONTEXT "ActiveTranslatorsWindow"
     48
     49
    4550ActiveTranslatorsWindow::ActiveTranslatorsWindow(BRect rect, const char *name,
    4651    BList *plist)
    4752    : BWindow(rect, name, B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE)
     
    5257    fpListView = new BOutlineListView(rctframe, "translators_list",
    5358        B_MULTIPLE_SELECTION_LIST);
    5459
    55     fpListView->AddItem(fpUserItem = new BStringItem("User Translators"));
     60    fpListView->AddItem(fpUserItem = new BStringItem(B_TRANSLATE("User Translators")));
    5661    fpUserItem->SetEnabled(false);
    57     fpListView->AddItem(fpSystemItem = new BStringItem("System Translators"));
     62    fpListView->AddItem(fpSystemItem = new BStringItem(B_TRANSLATE("System Translators")));
    5863    fpSystemItem->SetEnabled(false);
    5964    AddTranslatorsToList(plist, USER_TRANSLATOR, fpUserItem);
    6065    AddTranslatorsToList(plist, SYSTEM_TRANSLATOR, fpSystemItem);
  • src/tools/translation/inspector/InspectorApp.cpp

     
    3030// DEALINGS IN THE SOFTWARE.
    3131/*****************************************************************************/
    3232
     33#include "Constants.h"
    3334#include "InspectorApp.h"
    34 #include "Constants.h"
    3535#include "ImageWindow.h"
    3636#include "TranslatorItem.h"
    37 #include <Window.h>
     37
     38#include <Directory.h>
    3839#include <Message.h>
    3940#include <String.h>
    40 #include <Directory.h>
     41#include <Window.h>
    4142
     43#undef B_TRANSLATE_CONTEXT
     44#define B_TRANSLATE_CONTEXT "InspectorApp"
     45
     46
    4247InspectorApp::InspectorApp()
    4348    : BApplication(APP_SIG)
    4449{
    4550    fpActivesWin = NULL;
    4651    fpInfoWin = NULL;
    4752   
     53    be_locale->GetAppCatalog(&fAppCatalog);
     54   
    4855    AddToTranslatorsList("/system/add-ons/Translators",
    4956        SYSTEM_TRANSLATOR);
    5057    AddToTranslatorsList("/boot/home/config/add-ons/Translators",
     
    7986        case M_ACTIVE_TRANSLATORS_WINDOW:
    8087            if (!fpActivesWin)
    8188                fpActivesWin = new ActiveTranslatorsWindow(
    82                     BRect(625, 350, 800, 600), "Active Translators",
     89                    BRect(625, 350, 800, 600),
     90                    B_TRANSLATE("Active Translators"),
    8391                    GetTranslatorsList());
    8492            break;
    8593        case M_ACTIVE_TRANSLATORS_WINDOW_QUIT:
     
    8997        case M_INFO_WINDOW:
    9098            if (!fpInfoWin)
    9199                fpInfoWin = new InfoWindow(BRect(625, 50, 800, 300),
    92                     "Info Win", fbstrInfo.String());
     100                    B_TRANSLATE_COMMENT("Info Win",
     101                    "This is a quite narrow info window and title 'Info Win' "
     102                    "is therefore shortened."), fbstrInfo.String());
    93103            break;
    94104        case M_INFO_WINDOW_QUIT:
    95105            fpInfoWin = NULL;
     
    126136int main(int argc, char **argv)
    127137{
    128138    InspectorApp *papp = new InspectorApp();
     139   
    129140    papp->Run();
    130141   
    131142    delete papp;
  • src/tools/translation/inspector/ImageWindow.cpp

     
    3232#include "ImageWindow.h"
    3333#include "Constants.h"
    3434#include <Application.h>
     35#include <Catalog.h>
     36#include <Locale.h>
    3537#include <MenuBar.h>
    3638#include <MenuItem.h>
    3739#include <Menu.h>
    3840#include <ScrollView.h>
    3941#include <Alert.h>
    4042
     43#define B_TRANSLATE_CONTEXT "ImageWindow"
     44
     45
    4146ImageWindow::ImageWindow(BRect rect, const char *name)
    4247    : BWindow(rect, name, B_DOCUMENT_WINDOW, 0)
    4348{
     
    4550    BRect rctbar(0, 0, 100, 10);
    4651    BMenuBar *pbar = new BMenuBar(rctbar, "MenuBar");
    4752
    48     BMenu *pmnufile = new BMenu("File");
    49     BMenuItem *pitmopen = new BMenuItem("Open...",
     53    BMenu *pmnufile = new BMenu(B_TRANSLATE("File"));
     54    BMenuItem *pitmopen = new BMenuItem(B_TRANSLATE("Open..."),
    5055        new BMessage(M_OPEN_IMAGE), 'O', 0);
    5156
    52     BMenuItem *pitmsave = new BMenuItem("Save...",
     57    BMenuItem *pitmsave = new BMenuItem(B_TRANSLATE("Save..."),
    5358        new BMessage(M_SAVE_IMAGE), 'S', 0);
    5459
    55     BMenuItem *pitmquit = new BMenuItem("Quit",
     60    BMenuItem *pitmquit = new BMenuItem(B_TRANSLATE("Quit"),
    5661        new BMessage(B_QUIT_REQUESTED), 'Q', 0);
    5762
    5863    pmnufile->AddItem(pitmopen);
     
    6166    pmnufile->AddItem(pitmquit);
    6267    pbar->AddItem(pmnufile);
    6368
    64     BMenu *pmnuview = new BMenu("View");
    65     BMenuItem *pitmfirst = new BMenuItem("First Page",
     69    BMenu *pmnuview = new BMenu(B_TRANSLATE("View"));
     70    BMenuItem *pitmfirst = new BMenuItem(B_TRANSLATE("First Page"),
    6671        new BMessage(M_VIEW_FIRST_PAGE), 'F', 0);
    6772
    68     BMenuItem *pitmlast = new BMenuItem("Last Page",
     73    BMenuItem *pitmlast = new BMenuItem(B_TRANSLATE("Last Page"),
    6974        new BMessage(M_VIEW_LAST_PAGE), 'L', 0);
    7075
    71     BMenuItem *pitmnext = new BMenuItem("Next Page",
     76    BMenuItem *pitmnext = new BMenuItem(B_TRANSLATE("Next Page"),
    7277        new BMessage(M_VIEW_NEXT_PAGE), 'N', 0);
    7378
    74     BMenuItem *pitmprev = new BMenuItem("Previous Page",
     79    BMenuItem *pitmprev = new BMenuItem(B_TRANSLATE("Previous Page"),
    7580        new BMessage(M_VIEW_PREV_PAGE), 'P', 0);
    7681
    7782    pmnuview->AddItem(pitmfirst);
     
    8186    pbar->AddItem(pmnuview);
    8287
    8388
    84     BMenu *pmnuwindow = new BMenu("Window");
    85     BMenuItem *pitmactives = new BMenuItem("Active Translators",
     89    BMenu *pmnuwindow = new BMenu(B_TRANSLATE("Window"));
     90    BMenuItem *pitmactives = new BMenuItem(B_TRANSLATE("Active Translators"),
    8691        new BMessage(M_ACTIVE_TRANSLATORS_WINDOW), 'T', 0);
    8792    pitmactives->SetTarget(be_app);
    8893
    89     BMenuItem *pitminfo = new BMenuItem("Info",
     94    BMenuItem *pitminfo = new BMenuItem(B_TRANSLATE("Info"),
    9095        new BMessage(M_INFO_WINDOW), 'I', 0);
    9196    pitminfo->SetTarget(be_app);
    9297
     
    133138        case M_SAVE_IMAGE:
    134139            if (fpimageView->HasImage()) {
    135140                BAlert *palert = new BAlert(NULL,
    136                     "Save feature not implemented yet.", "Bummer");
     141                    B_TRANSLATE("Save feature not implemented yet."),
     142                    B_TRANSLATE("Bummer"));
    137143                palert->Go();
    138144            } else {
    139145                BAlert *palert = new BAlert(NULL,
    140                     "No image available to save.", "OK");
     146                    B_TRANSLATE("No image available to save."),
     147                    B_TRANSLATE("OK"));
    141148                palert->Go();
    142149            }
    143150            break;
  • src/tools/translation/inspector/InspectorApp.h

     
    3636#include "ActiveTranslatorsWindow.h"
    3737#include "InfoWindow.h"
    3838#include <Application.h>
     39#include <Catalog.h>
     40#include <Locale.h>
     41#include <List.h>
    3942#include <String.h>
    40 #include <List.h>
    4143
     44
    4245class InspectorApp : public BApplication {
    4346public:
    4447    InspectorApp();
     
    5457    BList flstTranslators;
    5558    ActiveTranslatorsWindow *fpActivesWin;
    5659    InfoWindow *fpInfoWin;
     60    BCatalog fAppCatalog;
    5761};
    5862
    5963#endif // #ifndef INSPECTORAPP_H
  • src/tools/translation/inspector/ImageView.cpp

     
    3737#include "InspectorApp.h"
    3838#include "TranslatorItem.h"
    3939#include <Application.h>
     40#include <Catalog.h>
    4041#include <Message.h>
     42#include <Locale.h>
    4143#include <List.h>
    4244#include <String.h>
    4345#include <TranslationUtils.h>
     
    5961#define BORDER_HEIGHT 16
    6062#define PEN_SIZE 1.0f
    6163
     64#define B_TRANSLATE_CONTEXT "ImageView"
     65
     66
    6267ImageView::ImageView(BRect rect, const char *name)
    6368    : BView(rect, name, B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS)
    6469{
     
    7176    SetPenSize(PEN_SIZE);
    7277}
    7378
     79
    7480ImageView::~ImageView()
    7581{
    7682    delete fpbitmap;
    7783    fpbitmap = NULL;
    7884}
    7985
     86
    8087void
    8188ImageView::AttachedToWindow()
    8289{
    8390    AdjustScrollBars();
    8491}
    8592
     93
    8694void
    8795ImageView::Draw(BRect rect)
    8896{
     
    98106    }
    99107}
    100108
     109
    101110void
    102111ImageView::ReDraw()
    103112{
    104113    Draw(Bounds());
    105114}
    106115
     116
    107117void
    108118ImageView::FrameResized(float width, float height)
    109119{
     
    113123        Invalidate();
    114124}
    115125
     126
    116127void
    117128ImageView::MouseDown(BPoint point)
    118129{
     
    139150    DragMessage(&msg, Bounds());
    140151}
    141152
     153
    142154void
    143155ImageView::MouseMoved(BPoint point, uint32 state, const BMessage *pmsg)
    144156{
    145157}
    146158
     159
    147160void
    148161ImageView::MouseUp(BPoint point)
    149162{
    150163}
    151164
     165
    152166void
    153167ImageView::MessageReceived(BMessage *pmsg)
    154168{
     
    163177    }
    164178}
    165179
     180
    166181void
    167182ImageView::SaveImageAtDropLocation(BMessage *pmsg)
    168183{
     
    189204
    190205    } catch (StatusNotOKException) {
    191206        BAlert *palert = new BAlert(NULL,
    192             "Sorry, unable to write the image file.", "OK");
     207            B_TRANSLATE("Sorry, unable to write the image file."),
     208            B_TRANSLATE("OK"));
    193209        palert->Go();
    194210    }
    195211   
    196212    stream.DetachBitmap(&fpbitmap);
    197213}
    198214
     215
    199216void
    200217ImageView::AdjustScrollBars()
    201218{
     
    227244    }
    228245}
    229246
     247
    230248struct ColorSpaceName {
    231249    color_space id;
    232250    const char *name;
    233251};
    234252#define COLORSPACENAME(id) {id, #id}
    235253
     254
    236255// convert colorspace numerical value to
    237256// a string value
    238257const char *
     
    293312            return kcolorspaces[i].name;
    294313    }
    295314
    296     return "Unknown";
     315    return B_TRANSLATE("Unknown");
    297316}
    298317
     318
    299319// return a string of the passed number formated
    300320// as a hexadecimal number in lowercase with a leading "0x"
    301321const char *
     
    307327    return str;
    308328}
    309329
     330
    310331// convert passed number to a string of 4 characters
    311332// and return that string
    312333const char *
     
    319340    return str;
    320341}
    321342
     343
    322344void
    323345dump_translation_formats(BString &bstr, const translation_format *pfmts,
    324346    int32 nfmts)
    325347{
     348    BString *str1 = NULL;
    326349    for (int i = 0; i < nfmts; i++) {
    327         bstr << "\nType: '" << char_format(pfmts[i].type) << "' (" <<
    328             hex_format(pfmts[i].type) << ")\n";
    329         bstr << "Group: '" << char_format(pfmts[i].group) << "' (" <<
    330             hex_format(pfmts[i].group) << ")\n";
    331         bstr << "Quality: " << pfmts[i].quality << "\n";
    332         bstr << "Capability: " << pfmts[i].capability << "\n";
    333         bstr << "MIME Type: " << pfmts[i].MIME << "\n";
    334         bstr << "Name: " << pfmts[i].name << "\n";
     350        BString string = B_TRANSLATE("\nType: '%1' (%2)\n"
     351            "Group: '%3' (%4)\n"
     352            "Quality: %5\n"
     353            "Capability: %6\n"
     354            "MIME Type: %7\n"
     355            "Name: %8\n");
     356        string.ReplaceFirst("%1", char_format(pfmts[i].type));
     357        string.ReplaceFirst("%2", hex_format(pfmts[i].type));
     358        string.ReplaceFirst("%3", char_format(pfmts[i].group));
     359        string.ReplaceFirst("%4", hex_format(pfmts[i].group));
     360        char str2[127] = { 0 };
     361        sprintf(str2, "%f", pfmts[i].quality);
     362        string.ReplaceFirst("%5", str2 );
     363        str2[0] = '\0';
     364        sprintf(str2, "%f", pfmts[i].capability);
     365        string.ReplaceFirst("%6",  str2 );
     366        string.ReplaceFirst("%7", pfmts[i].MIME);
     367        string.ReplaceFirst("%8", pfmts[i].name);
     368        if (i == 0)
     369            str1 = new BString(string);
     370        else
     371            str1->Append(string);
    335372    }
     373    bstr = str1->String();
    336374}
    337375
     376
    338377// Send information about the currently open image to the
    339378// BApplication object so it can send it to the InfoWindow
    340379void
     
    343382{
    344383    BMessage msg(M_INFO_WINDOW_TEXT);
    345384    BString bstr;
    346    
    347     // Bitmap Info
    348     bstr << "Image: " << path.Path() << "\n";
     385
     386    bstr = B_TRANSLATE("Image: %1\n"
     387        "Color Space: %2 (%3)\n"
     388        "Dimensions: %4 x %5\n"
     389        "Bytes per Row: %6\n"
     390        "Total Bytes: %7\n"
     391        "\nIdentify Info:\n"
     392        "ID String: %8\n"
     393        "MIME Type: %9\n"
     394        "Type: '%10' (%11)\n"
     395        "Translator ID: %12\n"
     396        "Group: '%13' (%14)\n"
     397        "Quality: %15\n"
     398        "Capability: %16\n"
     399        "\nExtension Info:\n");
     400    bstr.ReplaceFirst("%1", path.Path());
    349401    color_space cs = fpbitmap->ColorSpace();
    350     bstr << "Color Space: " << get_color_space_name(cs) << " (" <<
    351         hex_format(static_cast<uint32>(cs)) << ")\n";
    352     bstr << "Dimensions: " << fpbitmap->Bounds().IntegerWidth() + 1 << " x " <<
    353         fpbitmap->Bounds().IntegerHeight() + 1 << "\n";
    354     bstr << "Bytes per Row: " << fpbitmap->BytesPerRow() << "\n";
    355     bstr << "Total Bytes: " << fpbitmap->BitsLength() << "\n";
     402    bstr.ReplaceFirst("%2", get_color_space_name(cs));
     403    bstr.ReplaceFirst("%3", hex_format(static_cast<uint32>(cs)));
     404    char str2[127] = { 0 };
     405    sprintf(str2, "%ld", fpbitmap->Bounds().IntegerWidth() + 1);
     406    bstr.ReplaceFirst("%4", str2);
     407    str2[0] = '\0';
     408    sprintf(str2, "%ld", fpbitmap->Bounds().IntegerHeight() + 1);
     409    bstr.ReplaceFirst("%5", str2);
     410    str2[0] = '\0';
     411    sprintf(str2, "%ld", fpbitmap->BytesPerRow());
     412    bstr.ReplaceFirst("%6", str2);
     413    str2[0] = '\0';
     414    sprintf(str2, "%ld", fpbitmap->BitsLength());
     415    bstr.ReplaceFirst("%7", str2);
     416    bstr.ReplaceFirst("%8", tinfo.name);
     417    bstr.ReplaceFirst("%9", tinfo.MIME);
     418    bstr.ReplaceFirst("%10", char_format(tinfo.type));
     419    bstr.ReplaceFirst("%11", hex_format(tinfo.type));
     420    str2[0] = '\0';
     421    sprintf(str2, "%ld", tinfo.translator);
     422    bstr.ReplaceFirst("%12", str2);
     423    bstr.ReplaceFirst("%13", char_format(tinfo.group));
     424    bstr.ReplaceFirst("%14", hex_format(tinfo.group));
     425    str2[0] = '\0';
     426    sprintf(str2, "%f", tinfo.quality);
     427    bstr.ReplaceFirst("%15", str2);
     428    str2[0] = '\0';
     429    sprintf(str2, "%f", tinfo.capability);
     430    bstr.ReplaceFirst("%16", str2);
    356431   
    357     // Identify Info
    358     bstr << "\nIdentify Info:\n";
    359     bstr << "ID String: " << tinfo.name << "\n";
    360     bstr << "MIME Type: " << tinfo.MIME << "\n";
    361     bstr << "Type: '" << char_format(tinfo.type) << "' (" <<
    362         hex_format(tinfo.type) << ")\n";
    363     bstr << "Translator ID: " << tinfo.translator << "\n";
    364     bstr << "Group: '" << char_format(tinfo.group) << "' (" <<
    365         hex_format(tinfo.group) << ")\n";
    366     bstr << "Quality: " << tinfo.quality << "\n";
    367     bstr << "Capability: " << tinfo.capability << "\n";
    368    
    369     // Extension Info
    370     bstr << "\nExtension Info:\n";
    371432    int32 document_count = 0, document_index = 0;
    372     if (ioExtension.FindInt32("/documentCount", &document_count) == B_OK)
    373         bstr << "Number of Documents: " << document_count << "\n";
    374     if (ioExtension.FindInt32("/documentIndex", &document_index) == B_OK)
    375         bstr << "Selected Document: " << document_index << "\n";
    376    
    377433    // Translator Info
    378434    const char *tranname = NULL, *traninfo = NULL;
    379435    int32 tranversion = 0;
    380     if (proster->GetTranslatorInfo(tinfo.translator, &tranname, &traninfo,
    381         &tranversion) == B_OK) {
    382         bstr << "\nTranslator Used:\n";
    383         bstr << "Name: " << tranname << "\n";
    384         bstr << "Info: " << traninfo << "\n";
    385         bstr << "Version: " << tranversion << "\n";
     436
     437    if (ioExtension.FindInt32("/documentCount", &document_count) == B_OK) {
     438        BString str = B_TRANSLATE("Number of Documents: %1\n"
     439            "\nTranslator Used:\n"
     440            "Name: %2\n"
     441            "Info: %3\n"
     442            "Version: %4\n");
     443        char str2[127] = { 0 };
     444        sprintf(str2, "%ld", document_count);
     445        str.ReplaceFirst("%1", str2);
     446        str.ReplaceFirst("%2", tranname);
     447        str.ReplaceFirst("%3", traninfo);
     448        str2[0] = '\0';
     449        sprintf(str2, "%d", (int)tranversion);
     450        str.ReplaceFirst("%4", str2);
     451        bstr.Append(str.String());
    386452    }
    387        
     453    else
     454        if (ioExtension.FindInt32("/documentIndex", &document_index) == B_OK) {
     455            BString str = B_TRANSLATE("Selected Document: %1\n"
     456                "\nTranslator Used:\n"
     457                "Name: %2\n"
     458                "Info: %3\n"
     459                "Version: %4\n");
     460            char str2[127] = { 0 };
     461            sprintf(str2, "%ld", document_index);
     462            str.ReplaceFirst("%1", str2);
     463            str.ReplaceFirst("%2", tranname);
     464            str.ReplaceFirst("%3", traninfo);
     465            str2[0] = '\0';
     466            sprintf(str2, "%d", (int)tranversion);
     467            str.ReplaceFirst("%4", str2);
     468            bstr.Append(str.String());
     469        }
     470        else
     471            if (proster->GetTranslatorInfo(tinfo.translator, &tranname,
     472                &traninfo, &tranversion) == B_OK) {
     473                    BString str = B_TRANSLATE("\nTranslator Used:\n"
     474                        "Name: %1\n"
     475                        "Info: %2\n"
     476                        "Version: %3\n");
     477                    str.ReplaceFirst("%1", tranname);
     478                    str.ReplaceFirst("%2", traninfo);
     479                    char str2[127] = { 0 };
     480                    sprintf(str2, "%d", (int)tranversion);
     481                    str.ReplaceFirst("%3", str2);
     482                    bstr.Append(str.String());
     483            }
     484
    388485    // Translator Input / Output Formats
    389486    int32 nins = 0, nouts = 0;
    390487    const translation_format *pins = NULL, *pouts = NULL;
    391488    if (proster->GetInputFormats(tinfo.translator, &pins, &nins) == B_OK) {
    392         bstr << "\nInput Formats:";
     489        bstr << B_TRANSLATE("\nInput Formats:");
    393490        dump_translation_formats(bstr, pins, nins);
    394491        pins = NULL;
    395492    }
    396493    if (proster->GetOutputFormats(tinfo.translator, &pouts, &nouts) == B_OK) {
    397         bstr << "\nOutput Formats:";
     494        bstr << B_TRANSLATE("\nOutput Formats:");
    398495        dump_translation_formats(bstr, pouts, nouts);
    399496        pouts = NULL;
    400497    }
    401    
    402498    msg.AddString("text", bstr);
    403499    be_app->PostMessage(&msg);
    404500}
    405501
     502
    406503BTranslatorRoster *
    407504ImageView::SelectTranslatorRoster(BTranslatorRoster &roster)
    408505{
     
    430527        return &roster;
    431528}
    432529
     530
    433531void
    434532ImageView::SetImage(BMessage *pmsg)
    435533{
     
    454552        if (!proster)
    455553            // throw exception
    456554            chk = B_ERROR;
    457        
    458555        // determine what type the image is
    459556        translator_info tinfo;
    460557        BMessage ioExtension;
     
    494591                pwin->SetTitle(IMAGEWINDOW_TITLE);
    495592        } else
    496593            pwin->SetTitle(IMAGEWINDOW_TITLE);
    497            
    498594        UpdateInfoWindow(path, ioExtension, tinfo, proster);
    499        
     595
    500596        // Resize parent window and set size limits to
    501597        // reflect the size of the new bitmap
    502598        float width, height;
     
    504600        width = fpbitmap->Bounds().Width() + B_V_SCROLL_BAR_WIDTH + (BORDER_WIDTH * 2);
    505601        height = fpbitmap->Bounds().Height() +
    506602            pbar->Bounds().Height() + B_H_SCROLL_BAR_HEIGHT + (BORDER_HEIGHT * 2) + 1;
    507            
    508603        BScreen *pscreen = new BScreen(pwin);
    509604        BRect rctscreen = pscreen->Frame();
    510605        if (width > rctscreen.Width())
     
    514609        pwin->SetSizeLimits(B_V_SCROLL_BAR_WIDTH * 4, width,
    515610            pbar->Bounds().Height() + (B_H_SCROLL_BAR_HEIGHT * 4) + 1, height);
    516611        pwin->SetZoomLimits(width, height);
    517        
    518612        AdjustScrollBars();
    519        
     613
    520614        //pwin->Zoom();
    521615            // Perform all of the hard work of resizing the
    522616            // window while taking into account the size of
     
    531625
    532626    } catch (StatusNotOKException) {
    533627        BAlert *palert = new BAlert(NULL,
    534             "Sorry, unable to load the image.", "OK");
     628            B_TRANSLATE("Sorry, unable to load the image."),
     629            B_TRANSLATE("OK"));
    535630        palert->Go();
    536631    }
    537632}
    538633
     634
    539635void
    540636ImageView::FirstPage()
    541637{
     
    545641    }
    546642}
    547643
     644
    548645void
    549646ImageView::LastPage()
    550647{
     
    554651    }
    555652}
    556653
     654
    557655void
    558656ImageView::NextPage()
    559657{
     
    563661    }
    564662}
    565663
     664
    566665void
    567666ImageView::PrevPage()
    568667{
  • src/tools/translation/inspector/Jamfile

     
    1111    ImageWindow.cpp
    1212    InspectorApp.cpp ;
    1313
    14 LinkAgainst Inspector : be tracker translation $(TARGET_LIBSUPC++) ;
     14DoCatalogs Inspector :
     15    x.vnd.OBOS-Inspector
     16    :
     17    InspectorApp.cpp
     18    ImageWindow.cpp
     19    ImageView.cpp
     20    ActiveTranslatorsWindow.cpp
     21;
    1522
     23LinkAgainst Inspector : be tracker locale translation $(TARGET_LIBSUPC++) ;
     24