Results 1 to 2 of 2

Thread: Language Packs?

  1. #1

    Language Packs?

    Hello,

    I hope I'm not over-stepping here but I just noticed this. In PHP I develop selected languages that are just included files parsed by a language abbreviation, i.e. en = English. Since you don't actually install anything to run procon could you make a directory of language files and you could then just allow people to select their language (by file name). People could simply translate to any language they like.

    Example:

    define("AP_2", 'Compensation Start Date');
    define("AP_2", 'Compensacion Fecha de inicio');

    This way you use AP_2 in the code and it will translate to whatever is in the single quotes. You could use any file to tie in the AP_2 translations. You could do a simple drop down to select the file name in the directory. No one would have to spend their time translating for others. They could do it themselves and maybe share them with the rest.

    Just a thought

  2. #2
    Super Moderator
    Join Date
    Jul 2010
    Location
    Very North Darwin
    Posts
    1,599
    Language files in procon\Localization

    ///////////////////////////////////
    // File information displayed in Options window.
    ///////////////////////////////////
    file.Language=English (Australian)
    file.flag=au
    file.author=Geoff 'Phogue' Green
    file.authorwebsite=http://www.phogue.net

    // ISO 3166-1 alpha-2 - Found at http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
    // Will likely be the same as file.flag
    file.countrycode=au


    ///////////////////////////////////
    // Global - Used in multiple areas of the interface.
    ///////////////////////////////////
    codes replaced ----> with
    global.cancel=Cancel
    global.close=Close

    global.Seconds.Singular=Second

    etc

    So language es file
    file.countrycode=es
    ///////////////////////////////////
    // Global - Used in multiple areas of the interface.
    ///////////////////////////////////
    global.cancel=Cancelar
    global.close=Cerrar

    global.Seconds.Singular=Segundo
    global.Seconds.Plural=Segundos
    Game nick Volo_Mortis
    https://forum.myrcon.com/showthread....-Procon-Manual
    Read the manual ?

    Like procon forum https://www.patreon.com/myrcon/overview DONATE

 

 

Posting Permissions

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