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 ++++++++++++++++++++++++++-------------------- fr/timeline | 1 + langs/en/timeline.en.lang | 65 ++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 51 deletions(-) create mode 120000 fr/timeline create mode 100644 langs/en/timeline.en.lang 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.')?>
      • +
      • +
      +
    • +
    +
  • +
diff --git a/fr/timeline b/fr/timeline new file mode 120000 index 000000000..ec12db8ce --- /dev/null +++ b/fr/timeline @@ -0,0 +1 @@ +../en/timeline \ No newline at end of file diff --git a/langs/en/timeline.en.lang b/langs/en/timeline.en.lang new file mode 100644 index 000000000..17a7f75f7 --- /dev/null +++ b/langs/en/timeline.en.lang @@ -0,0 +1,65 @@ +# Generated by pa2lang.php on 2012-07-27T13:24:02+02:00 +# from /SVN/web/www/trunk/en/timeline/locales.php $_t +;Mageia Timeline +Mageia Timeline + + +;September +September + + +;Mageia starts as a fork of Mandriva Linux. +Mageia starts as a fork of Mandriva Linux. + + +;Mageia.Org is registered in Paris, France. +Mageia.Org is registered in Paris, France. + + +;End of year +End of year + + +;With an incredible response, first donations and discussions abound. +With an incredible response, first donations and discussions abound. + + +;Project gets structured, governance takes slowly shape (first board, teams). +Project gets structured, governance takes slowly shape (first board, teams). + + +;January +January + + +;Build system is ready to run for the first alpha ISOs. +Build system is ready to run for the first alpha ISOs. + + +;February +February + + +;First General Assembly during FOSDEM in Brussels, Belgium. +First General Assembly during FOSDEM in Brussels, Belgium. + + +;June +June + + +;Mageia 1 is released. +Mageia 1 is released. + + +;Second General Assembly during FOSDEM in Brussels, Belgium. +Second General Assembly during FOSDEM in Brussels, Belgium. + + +;May +May + + +;Mageia 2 is released. +Mageia 2 is released. + -- cgit v1.2.1