Ignore:
Timestamp:
Mar 2, 2010, 3:54:22 PM (14 years ago)
Author:
nikrou
Message:

Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals

Todo : managing plugins in the same way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_update.php

    r4367 r5021  
    5656$error_labels = array(
    5757  'PWG-UPDATE-1' => array(
    58     l10n('update_wrong_dirname_short'),
    59     l10n('update_wrong_dirname_info')
     58    l10n('wrong filename'),
     59    l10n('The name of directories and files must be composed of letters, numbers, \"-\", \"_\" or \".\"')
    6060    ),
    6161  'PWG-UPDATE-2' => array(
    62     l10n('update_missing_tn_short'),
    63     l10n('update_missing_tn_info').implode(',', $conf['picture_ext'])
     62    l10n('missing thumbnail'),
     63    l10n('a picture filetype requires a thumbnail. The thumbnail must be present in the sub-directory \"thumbnail\" of the category directory. The thumbnail filename must start with the configured thumbnail prefix and the extension must be among the following list :').implode(',', $conf['picture_ext'])
    6464    ),
    6565  'PWG-ERROR-NO-FS' => array(
    66     l10n('update_missing_file_or_dir'),
    67     l10n('update_missing_file_or_dir_info')
     66    l10n('File/directory read error'),
     67    l10n('The file or directory cannot be accessed (either it does not exist or the access is denied)')
    6868    ),
    6969  'PWG-ERROR-VERSION' => array(
    70     l10n('update_err_pwg_version_differs'),
    71     l10n('update_err_pwg_version_differs_info')
     70    l10n('Piwigo version differs on the remote site'),
     71    l10n('Version of create_listing_file.php on the remote site and Piwigo must be the same')
    7272    ),
    7373  'PWG-ERROR-NOLISTING' => array(
    74     l10n('update_err_remote_listing_not_found'),
    75     l10n('update_err_remote_listing_not_found_info')
     74    l10n('listing.xml file was not found'),
     75    l10n('listing.xml file was not found on the remote site. This file is generated by choosing the \"generate listing\" command in the Site manager')
    7676    )
    7777  );
     
    279279        array(
    280280          'path' => $fulldir,
    281           'info' => l10n('update_research_added')
     281          'info' => l10n('added')
    282282          )
    283283        );
     
    328328    unset($db_fulldirs[$fulldir]);
    329329    array_push($infos, array('path' => $fulldir,
    330                              'info' => l10n('update_research_deleted')));
     330                             'info' => l10n('deleted')));
    331331  }
    332332  if (count($to_delete) > 0)
     
    474474        array(
    475475          'path' => $insert['path'],
    476           'info' => l10n('update_research_added')
     476          'info' => l10n('added')
    477477          )
    478478        );
     
    515515    array_push($to_delete_elements, array_search($path, $db_elements));
    516516    array_push($infos, array('path' => $path,
    517                              'info' => l10n('update_research_deleted')));
     517                             'info' => l10n('deleted')));
    518518  }
    519519  if (count($to_delete_elements) > 0)
     
    829829if (isset($simulate) and $simulate)
    830830{
    831   $result_title.= l10n('update_simulation_title').' ';
     831  $result_title.= l10n('[Simulation]').' ';
    832832}
    833833
     
    844844    'SITE_URL'=>$site_url,
    845845    'U_SITE_MANAGER'=> get_root_url().'admin.php?page=site_manager',
    846     'L_RESULT_UPDATE'=>$result_title.l10n('update_part_research'),
    847     'L_RESULT_METADATA'=>$result_title.l10n('update_result_metadata'),
     846    'L_RESULT_UPDATE'=>$result_title.l10n('Search for new images in the directories'),
     847    'L_RESULT_METADATA'=>$result_title.l10n('Metadata synchronization results'),
    848848    'METADATA_LIST' => $used_metadata,
    849849    'U_HELP' => get_root_url().'popuphelp.php?page=synchronize',
Note: See TracChangeset for help on using the changeset viewer.