Ignore:
Timestamp:
Jan 8, 2010, 4:41:15 PM (14 years ago)
Author:
ronosman
Message:

Feature 1369 added : no longer use relative path to access resource and locale directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/wxFrameAUI.pm

    r4616 r4632  
    814814    my ( $self ) = @_;   
    815815
    816     my $file = sprintf(
    817         "../locale/%s/gs.html",
    818         wxTheApp->locale->GetCanonicalName
    819     );
     816    my $file = wxTheApp->locale_catalog_path('gs.html');
    820817
    821818    $self->htmlhome(
     
    10481045        }
    10491046        (
    1050           '../res/tree_pwg.png',
    1051           '../res/tree_folder.png',
     1047          wxTheApp->resource_path('tree_pwg.png'),
     1048          wxTheApp->resource_path('tree_folder.png'),
    10521049        )   
    10531050    ];
     
    11861183            "",
    11871184            "",
    1188             '../res/mnu_folder_new.png',
     1185            wxTheApp->resource_path('mnu_folder_new.png'),
    11891186        ],
    11901187        [
     
    11981195                wxTheApp->branding->{category},
    11991196            ),
    1200             '../res/mnu_folder_new.png',
     1197            wxTheApp->resource_path('mnu_folder_new.png'),
    12011198        ],
    12021199        [
     
    12071204                wxTheApp->branding->{category},
    12081205            ),
    1209             '../res/mnu_refresh.png',
     1206            wxTheApp->resource_path('mnu_refresh.png'),
    12101207        ],
    12111208        [
     
    12161213                wxTheApp->branding->{category},
    12171214            ),
    1218             '../res/mnu_expandall.png',
     1215            wxTheApp->resource_path('mnu_expandall.png'),
    12191216        ],
    12201217        [
     
    12251222                wxTheApp->branding->{category},
    12261223            ),
    1227             '../res/mnu_collapseall.png',
     1224            wxTheApp->resource_path('mnu_collapseall.png'),
    12281225        ],
    12291226    );
     
    12511248            "",
    12521249            "",
    1253             '../res/mnu_properties.png',
     1250            wxTheApp->resource_path('mnu_properties.png'),
    12541251        ],
    12551252        [
     
    12571254            gettext("Properties"),
    12581255            gettext("Modify photo properties"),
    1259             '../res/mnu_properties.png',
     1256            wxTheApp->resource_path('mnu_properties.png'),
    12601257        ],
    12611258        [
     
    12631260            gettext("Preview"),
    12641261            gettext("Display photo preview"),
    1265             '../res/mnu_preview.png',
     1262            wxTheApp->resource_path('mnu_preview.png'),
    12661263        ],
    12671264    );
     
    19571954            100,
    19581955            gettext("Getting started"),
    1959             '../res/tb_getting_started.png',
     1956            wxTheApp->resource_path('tb_getting_started.png'),
    19601957            wxBITMAP_TYPE_PNG,
    19611958            1,
    1962             '../res/tb_getting_started.png',
     1959            wxTheApp->resource_path('tb_getting_started.png'),
    19631960            gettext("Display getting started panel")
    19641961        ],
     
    19661963            101,
    19671964            gettext("Add photo to selection"),
    1968             '../res/tb_add.png',
     1965            wxTheApp->resource_path('tb_add.png'),
    19691966            wxBITMAP_TYPE_PNG,
    19701967            1,
    1971             '../res/tb_add.png',
     1968            wxTheApp->resource_path('tb_add.png'),
    19721969            gettext("Add photo to selection for resizing and uploading")
    19731970        ],
     
    19751972            102,
    19761973            gettext("Remove photo from selection"),
    1977             '../res/tb_remove.png',
     1974            wxTheApp->resource_path('tb_remove.png'),
    19781975            wxBITMAP_TYPE_PNG,
    19791976            1,
    1980             '../res/tb_remove.png',
     1977            wxTheApp->resource_path('tb_remove.png'),
    19811978            gettext("Remove photo from selection. Files are not deleted ")
    19821979        ],
     
    19841981            103,
    19851982            gettext("Upload to Piwigo"),
    1986             '../res/tb_upload.png',
     1983            wxTheApp->resource_path('tb_upload.png'),
    19871984            wxBITMAP_TYPE_PNG,
    19881985            wxTheApp->use_offline ? 0 : 1,
    1989             '../res/tb_upload.png',
     1986            wxTheApp->resource_path('tb_upload.png'),
    19901987            gettext("Upload photos to Piwigo.")
    19911988        ],
     
    19931990            104,
    19941991            gettext("Global settings"),
    1995             '../res/tb_settings.png',
     1992            wxTheApp->resource_path('tb_settings.png'),
    19961993            wxBITMAP_TYPE_PNG,
    19971994            0,
    1998             '../res/tb_settings.png',
     1995            wxTheApp->resource_path('tb_settings.png'),
    19991996            gettext("Change global settings.")
    20001997        ],
     
    20021999            105,
    20032000            gettext("Language choice"),
    2004             '../res/tb_i18n.png',
     2001            wxTheApp->resource_path('tb_i18n.png'),
    20052002            wxBITMAP_TYPE_PNG,
    20062003            1,
    2007             '../res/tb_i18n.png',
     2004            wxTheApp->resource_path('tb_i18n.png'),
    20082005            gettext("Language choice")
    20092006        ],
     
    21692166}
    21702167
     2168
    217121691;
Note: See TracChangeset for help on using the changeset viewer.