Ignore:
Timestamp:
Oct 29, 2009, 8:23:43 PM (14 years ago)
Author:
ronosman
Message:

Bug 1219 fixed : property values must be language independant.

File:
1 edited

Legend:

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

    r4138 r4152  
    275275        [
    276276            {
    277                 label => gettext("Photo caption :"),
    278                 value => sub { $self->imagelist->current_image->site_name(@_) },
     277                label          => gettext("Photo caption :"),
     278                value          => sub { $self->imagelist->current_image->site_name(@_) },
     279                frame_callback => sub { $self->imageviewer->Refresh() },
    279280            },
    280281            {
     
    367368                value   => sub { $self->imagelist->default_photo_name(@_) },
    368369                choice  => [
    369                                   gettext('None'),
    370                                   gettext('File name'),
    371                                   gettext('File path and name'),
    372                                   gettext('Prefix'),
    373                                   gettext('Prefix + rank number'),
    374                                   gettext('Rank number + prefix'),
    375                                   gettext('Prefix + create date chrono'),
    376                                   gettext('Create date chrono + prefix'),
    377                               ],
     370                               map { gettext $_ } @{wxTheApp->default_photo_names}
     371                           ],
     372                pre_process => sub { my ( $value ) = @_; wxTheApp->eng_default_photo_names->{$value} },
    378373            },
    379374            {
     
    515510                label     => gettext("Color :"),
    516511                type      => 'Choice',
    517                 value   => sub { $self->imagelist->watermark_color(@_) },
    518                 choice  => [
    519                                   gettext("White"),
    520                                   gettext("Black"),
    521                            ],
     512                value     => sub { $self->imagelist->watermark_color(@_) },
     513                choice    => [
     514                               map { gettext $_ } @{wxTheApp->colors}
     515                             ],
     516                pre_process => sub { my ( $value ) = @_; wxTheApp->eng_colors->{$value} },
    522517            },           
    523518            {
     
    526521                value   => sub { $self->imagelist->watermark_position(@_) },
    527522                choice  => [
    528                                   gettext("Top"),
    529                                   gettext("Top left"),
    530                                   gettext("Top right"),
    531                                   gettext("Bottom"),
    532                                   gettext("Bottom left"),
    533                                   gettext("Bottom right"),
    534                                   gettext("Center"),
    535                                   gettext("Left"),
    536                                   gettext("Right"),
     523                               map { gettext $_ } @{wxTheApp->positions}
    537524                           ],
     525                pre_process => sub { my ( $value ) = @_; wxTheApp->eng_positions->{$value} },
    538526            },
    539527            {
     
    686674                parentwnd       => $self,
    687675                properties      => $self->piwigo_properties,
    688                 frame_callbacks => [
    689                                           sub {
    690                                               $self->imageviewer->Refresh();
    691                                           },
    692                                    ],
    693676            }
    694677        )
     
    699682            {
    700683                parentwnd       => $self,
    701                 frame_callbacks => [],
    702684                properties      => $self->exif_properties,
    703685            }
     
    711693                parentwnd       => $self,
    712694                properties      => $self->general_settings,
    713                 frame_callbacks => [],
    714695            }
    715696        )
     
    721702                parentwnd       => $self,
    722703                properties      => $self->resized_settings,
    723                 frame_callbacks => [],
    724704
    725705            }
     
    732712                parentwnd       => $self,
    733713                properties      => $self->thumbnail_settings,
    734                 frame_callbacks => [],
    735714
    736715            }
     
    742721                parentwnd       => $self,
    743722                properties      => $self->preview_settings,
    744                 frame_callbacks => [],
    745723
    746724            }
     
    753731                parentwnd       => $self,
    754732                properties      => $self->advanced_settings,
    755                 frame_callbacks => [],
    756733
    757734            }
     
    764741                parentwnd   => $self,
    765742                properties  => $self->watermark_settings,
    766                 frame_callbacks => [],
    767743            }
    768744        )
Note: See TracChangeset for help on using the changeset viewer.