Changeset 1662 in ExiteCMS


Ignore:
Timestamp:
08/21/08 18:33:54 (3 years ago)
Author:
hverton
Message:

fixed not generating the proper locale files when creating a language pack for locales other then the current locale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ExiteCMS/translations/php-files/modules/translations/admin.php

    r1474 r1662  
    278278                        } 
    279279                    } 
    280                     fwrite($handle, "?>"); 
     280                    fwrite($handle, "?".">"); 
    281281                    fclose($handle); 
    282282                } else { 
     
    398398                fclose($handle); 
    399399                // make sure the setup and global cache files are up to date as well. They are required for the setup  
    400                 locale_load("main.setup"); 
    401                 locale_load("main.global"); 
     400                locale_load("main.setup", $data['locale_code']); 
     401                locale_load("main.global", $data['locale_code']); 
    402402            } else { 
    403403                $message .= sprintf($locale['916'], PATH_ADMIN."tools/language_pack_".$data['locale_name'].".php"); 
Note: See TracChangeset for help on using the changeset viewer.