Results 1 to 2 of 2

Thread: Error while creating custom language files

  1. #1
    log_cigo's Avatar
    log_cigo is offline Member
    Join Date
    Oct 2009
    Posts
    14

    Default Error while creating custom language files

    Hi all,

    I've created a new custom module.
    It works on my Sugar 5.2.0k application.

    So I tried to make an auto-installable archive.
    Unfortunatelly, installation stopped to 71% and gives me this error :

    PHP Code:
    Warningdir(D:_Serveurwwwsugarlabocacheuploadupgradestemp40.tmp/language/C1G0_Recherche/en_us.C1G0_Recherche.php) [function.dir]: failed to open dirNo error in D:_Serveurwwwsugarlaboincludedir_inc.php  on line 56

    Fatal error
    Call to a member function read() on a non-object in D:_Serveurwwwsugarlaboincludedir_inc.php on line 57 
    In fact, the module loader seems to create a folder named "en_us.C1G0_Recherche.php" instead of creating a file in "custom/Extension/modules/CIGO_Recherche/Ext/Language"...

    Why ?

    Here is my manifest.php :

    PHP Code:
    <?php

    $manifest 
    = array(
      
    'acceptable_sugar_versions' => array(
        
    'regex_matches' => array(
          
    => "4.5.*",
          
    => "5.2.*",
        )
      ),
      
    'acceptable_sugar_flavors' => array(
        
    => 'CE',
        
    => 'PRO',
        
    => 'ENT',
      ),
      
    'name'              => 'My name',
      
    'description'       => 'My description',
      
    'author'            => 'Log',
      
    'published_date'    => '2010-06-21',
      
    'version'           => '0.1',
      
    'type'              => 'module',
      
    'icon'              => '',
      
    'is_uninstallable'  => true
    );

    $installdefs = array(
      
    'id' => 'C1G0_Recherche',
      
    'copy' => array(
        array(
          
    'from'      => '<basepath>/modules/C1G0_Recherche',
          
    'to'        => 'custom/modules/C1G0_Recherche',
        ),
        array(
          
    'from'      => '<basepath>/modules/Administration',
          
    'to'        => 'custom/modules/Administration',
        )    
      ),
      
    'language' => array(
        
    // English
        
    array(
          
    'from'      => '<basepath>/language/C1G0_Recherche/en_us.C1G0_Recherche.php',
          
    'to_module' => 'C1G0_Recherche',
          
    'language'  => 'en_us',
        ),
        array(
          
    'from'      => '<basepath>/language/Administration/en_us.C1G0_Recherche.php',
          
    'to_module' => 'Administration',
          
    'language'  => 'en_us',
        ),
        

        
    // French
        
    array(
          
    'from' => '<basepath>/language/C1G0_Recherche/fr_FR.C1G0_Recherche.php',
          
    'to_module' => 'C1G0_Recherche',
          
    'language' => 'fr_FR',
        ),
        array(
          
    'from' => '<basepath>/language/Administration/fr_FR.C1G0_Recherche.php',
          
    'to_module' => 'Administration',
          
    'language' => 'fr_FR',
        ),
      ),

      
    // Administration section
      
    'administration' => array(
        array(
          
    'from' => '<basepath>/Administration/CigoAdminTools.php',
        ),
      ),
    );
    Regards,
    Logane BAUER
    CIGO SAS
    10 grand rue 68280 Logelheim (France)
    http://www.cigo-developpement.fr

  2. #2
    log_cigo's Avatar
    log_cigo is offline Member
    Join Date
    Oct 2009
    Posts
    14

    Default Re: Error while creating custom language files

    I've found the reason !

    Files name in my manifest.php, and files name in my archive were different...
    If files name doesn't match, it can't works... of course !
    Logane BAUER
    CIGO SAS
    10 grand rue 68280 Logelheim (France)
    http://www.cigo-developpement.fr

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. error creating custom report
    By elvinjoe in forum Developer Help
    Replies: 5
    Last Post: 2008-08-11, 07:01 PM
  2. New constants in 4.2.1a language files
    By Markku in forum Translators
    Replies: 16
    Last Post: 2006-07-19, 06:33 PM
  3. migrating custom fields does not creating language files
    By rbemrose in forum General Discussion
    Replies: 2
    Last Post: 2005-11-25, 04:56 PM
  4. Replies: 4
    Last Post: 2005-06-17, 08:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •