applications/dashboard/models/class.localemodel.php
public static function WriteDefinitions($fp, $Definitions) {
      // Write the definitions.
      uksort($Definitions, 'strcasecmp');
      $LastC = '';
      foreach ($Definitions as $Key => $Value) {
         // Add a blank line between letters of the alphabet.
         if (isset($Key[0]) && strcasecmp($LastC, $Key[0]) != 0) {
            fwrite($fp, "\n");
            $LastC = $Key[0];
         }

         $Str = '$Definition['.var_export($Key, TRUE).'] = '.var_export($Value, TRUE).";\n";
         fwrite($fp, $Str);
      }
   }
public static function WriteDefinitions($fp, $Definitions) {
      // Write the definitions.
      uksort($Definitions, 'strcasecmp');
      $LastC = '';
      foreach ($Definitions as $Key => $Value) {
         // Add a blank line between letters of the alphabet.
         if (isset($Key[0]) && strcasecmp($LastC, $Key[0]) != 0) {
            fwrite($fp, "\n");
            $LastC = $Key[0];
         }

         $Str = '$Definition['.var_export($Key, TRUE).'] = '.var_export($Value, TRUE).";\n";
         fwrite($fp, $Str);
      }
   }
public static function WriteDefinitions ( $ fp , $ Definitions ) { // Write the definitions. uksort ( $ Definitions , 'strcasecmp' ) ; $ LastC = '' ; foreach ( $ Definitions as $ Key => $ Value ) { // Add a blank line between letters of the alphabet. if ( isset ( $ Key [ 0 ] ) && strcasecmp ( $ LastC , $ Key [ 0 ] ) != 0 ) { fwrite ( $ fp , "\n" ) ; $ LastC = $ Key [ 0 ] ; } $ Str = '$Definition[' . var_export ( $ Key , TRUE ) . '] = ' . var_export ( $ Value , TRUE ) . ";\n" ; fwrite ( $ fp , $ Str ) ; } }
Write a locale's definitions to a file.

@param resource $fp The file to write to.
@param array $Definitions The definitions to write.
Write a locale s definitions to a file .