From c65993236e0f0328e7c7a8f306024cdf9721bf70 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Fri, 27 Jul 2012 11:34:30 +0000 Subject: lang files translation system for timeline page --- en/timeline/index.php | 116 ++++++++++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 51 deletions(-) (limited to 'en/timeline') diff --git a/en/timeline/index.php b/en/timeline/index.php index fb0fb9c22..8e80c4b6b 100644 --- a/en/timeline/index.php +++ b/en/timeline/index.php @@ -2,42 +2,14 @@ define('HLANG', true); require '../../langs.php'; - -$_t = array( - 'page_h1' => 'Mageia Timeline', - 'page_title' => 'Mageia Timeline', -); - -$events = array( - '2010' => array( - 'September' => array( - 'Mageia starts as a fork of Mandriva Linux.', - 'Mageia.Org is registered in Paris, France.' - ), - 'End of year' => array( - 'With an incredible response, first donations and discussions abound.', - 'Project gets structured, governance takes slowly shape (first board, teams).' - ) - ), - '2011' => array( - 'January' => 'Build system is ready to run for the first alpha ISOs.', - 'February' => 'First General Assembly during FOSDEM in Brussels, Belgium.', - 'June' => 'Mageia 1 is released.', - ), - '2012' => array( - 'February' => 'Second General Assembly during FOSDEM in Brussels, Belgium.', - 'May' => array( - 'Mageia 2 is released.', - ) - ) -); +_lang_load($locale, 'timeline'); ?> - <?php _e('page_title')?> + <?php _e('Mageia Timeline')?> + -

+

-
    $dates): - $li = array(); - $dates = array_reverse($dates, true); - foreach ($dates as $dt => $ev) { - if (!is_array($ev)) - $ev = array($ev); - - $s = array(); - foreach ($ev as $evit) { - $s[] = sprintf('
  • %s
  • ', $evit); - } - $li[] = sprintf('
  • %s

      %s
  • ', $dt, implode($s)); - } - echo sprintf('
  • %s

      %s
  • ', $year, implode($li)); - - endforeach; - ?>
- +
    +
  • +

    2012

    +
      +
    • +

      +
        +
      • Mageia 2 is released.')?>
      • +
      +
    • +
    • +

      +
        +
      • +
      +
    • +
    +
  • +
  • +

    2011

    +
      +
    • +

      +
        +
      • Mageia 1 is released.')?>
      • +
      +
    • +
    • +

      +
        +
      • +
      +
    • +
    • +

      +
        +
      • +
      +
    • +
    +
  • +
  • +

    2010

    +
      +
    • +

      +
        +
      • +
      • +
      +
    • +
    • +

      +
        +
      • fork of Mandriva Linux.')?>
      • +
      • +
      +
    • +
    +
  • +
-- cgit v1.2.1