Forum: Official UlaunchELF Forums - Discussion for the most unofficial build of launchELF!


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Problem with the language file.
  

Results 1 to 3 of 3
  1. #1 Problem with the language file. 
    deadoverlord is offline Registered User
    Join Date
    Feb 2009
    Posts
    23
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Excuse me if my english fail!

    Ok, i'm trying to use an pt-BR language file with my uLaunchELF 4.38. I don't whant to select the language file, i want to launch the program already with the language file applied. But it is not working. To test it i just toke the original lang.h file from the sourcecode and modified the line LANG_FILE = from the LAUNCHELF.CNF to LANG_FILE = lang.h.

    Then i put the following files in my pendrive:

    Code:
    boot.elf
    LAUNCHELF.CNF
    lang.h
    I did the procedures to run the boot.elf file from my pendrive and the following message appears:

    Code:
    LNG loading failed with error_id==2 and test==0
    The latest string index (possibly invalid) was 0
    This was a failure to open the file:
    "lang.h"
    Use either OK or CANCEL to continue (no diff)
    OK              CANCEL
    If i press OK or CANCEL the uLaunchELF will run normally in english.
    First what i did wrong? How i can make it work? And what is the use of the OK or CANCEL choice if they do the same as it says (no diff)
    Reply With Quote  

  2. #2  
    Berion's Avatar
    Berion is offline Starszy gracz
    Join Date
    Dec 2005
    Location
    Poland
    Posts
    730
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    37
    Likes Received
    97
    You have two methods.

    First: just replace your english lang.h by yours, and compile the program.
    Second: place i.e pt-BR.lng on your pendrive, choose this file in configurator and save changes.
    Reply With Quote  

  3. #3  
    dlanor is offline Member
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    10,107
    Downloads
    5
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    2 Thread(s)
    Likes Given
    0
    Likes Received
    126
    Quote Originally Posted by deadoverlord View Post
    Excuse me if my english fail!

    Ok, i'm trying to use an pt-BR language file with my uLaunchELF 4.38. I don't whant to select the language file, i want to launch the program already with the language file applied. But it is not working. To test it i just toke the original lang.h file from the sourcecode and modified the line LANG_FILE = from the LAUNCHELF.CNF to LANG_FILE = lang.h.

    Then i put the following files in my pendrive:

    Code:
    boot.elf
    LAUNCHELF.CNF
    lang.h
    I did the procedures to run the boot.elf file from my pendrive and the following message appears:

    Code:
    LNG loading failed with error_id==2 and test==0
    The latest string index (possibly invalid) was 0
    This was a failure to open the file:
    "lang.h"
    Use either OK or CANCEL to continue (no diff)
    OK              CANCEL
    If i press OK or CANCEL the uLaunchELF will run normally in english.
    First what i did wrong?
    You specified an incomplete path string for the language file.

    Such a path string must include a device/drive specifier as well as the normal folder names and path/folder separators, in addition to the file name itself. Additionally, you can also choose to use the pseudo-drive specifier "uLE:" to signify a search in three standard locations, these being:

    1: The same folder that the uLE elf was launched from.
    2: "mc0:/SYS-CONF/"
    3: "mc1:/SYS-CONF/"

    How i can make it work?
    Here is a practical example of how this may be used:

    I sometimes use a swedish language file made by 'taonaut' and named 'Svenska_taonaut.lng', and this is stored inside the same folder as the uLE elf which is to use it. So for this case I use the following variable definition:

    LANG_FILE = uLE:/Svenska_taonaut.lng

    The main benefit of using the pseudo-drive designation "uLE:/" is that the CNF does not need to be modified if moving the folder containing this instance of uLE to some other medium or subfolder, as the path will automatically relate to the current elf location.

    That is probably what you intended when you used no drive specifier at all, but such relative path strings are not valid in any PS2 file operations (unlike those of a PC).

    And what is the use of the OK or CANCEL choice if they do the same as it says (no diff)
    Several different error messages requiring a user response to continue use a common subfunction (int ynDialog(const char *message)) so as to save code space. It would be wasteful to add yet another similar function just because this particular case does not need to react differently depending on what the user response is. (This is needed for other cases where this subfunction is used.)

    Best regards: dlanor
    Reply With Quote  

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