Changeset 5021 for trunk/upgrade.php


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/upgrade.php

    r5014 r5021  
    195195$template->assign(array(
    196196  'RELEASE' => PHPWG_VERSION,
    197   'L_UPGRADE_HELP' => sprintf(l10n('install_help'), PHPWG_URL.'/forum'),
     197  'L_UPGRADE_HELP' => sprintf(l10n('Need help ? Ask your question on <a href=\"%s\">Piwigo message board</a>.'), PHPWG_URL.'/forum'),
    198198  )
    199199);
     
    279279      {
    280280        array_push($page['infos'],
    281           l10n('in include/config_database.inc.php, before ?>, insert:') . '
    282 <p><textarea rows="4" cols="40">'.implode("\r\n" , $mysql_changes).'</textarea></p>'
    283           );
     281                   l10n_args('in <i>%s</i>, before <b>?></b>, insert:',
     282                             'include/config_database.inc.php') .
     283                   '<p><textarea rows="4" cols="40">' .
     284                   implode("\r\n" , $mysql_changes).'</textarea></p>'
     285                   );
    284286      }
    285287    }
     
    315317
    316318    array_push($page['infos'],
    317       l10n('perform a maintenance check')
     319      l10n('Perform a maintenance check in [Administration>Specials>Maintenance] if you encounter any problem.')
    318320      );
    319321
Note: See TracChangeset for help on using the changeset viewer.