Development

Changeset 8008

You must first sign up to be able to contribute.

Changeset 8008

Show
Ignore:
Timestamp:
03/20/08 22:59:11 (1 year ago)
Author:
dwhittle
Message:

1.1: fixed issue with file based i18n sources

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/i18n/sfMessageSource_File.class.php

    r6807 r8008  
    3333  /** 
    3434   * Separator between culture name and source. 
    35    * @var string  
     35   * @var string 
    3636   */ 
    3737  protected $dataSeparator = '.'; 
     
    8686   * 
    8787   * @param string catalogue name 
    88    * @return array list of all variants for this catalogue.  
     88   * @return array list of all variants for this catalogue. 
    8989   */ 
    9090  public function getCatalogueList($catalogue) 
     
    117117   * 
    118118   * @param string a particular catalogue. 
    119    * @return array a list of catalogues.  
     119   * @return array a list of catalogues. 
    120120   * @see getCatalogueList() 
    121121   */ 
     
    143143   * E.g. array('messages', 'en_AU') 
    144144   * 
    145    * @return array list of catalogues  
     145   * @return array list of catalogues 
    146146   * @see getCatalogues() 
    147147   */ 
     
    156156   * E.g. array('messages', 'en_AU') 
    157157   * 
    158    * @return array list of catalogues  
     158   * @return array list of catalogues 
    159159   */ 
    160160  protected function getCatalogues($dir = null, $variant = null) 
    161161  { 
    162     $dir = $dir ? $dir : $this->source
     162    $dir = $dir ? $dir : $this->getSource($variant)
    163163    $files = scandir($dir); 
    164164 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.