Results 1 to 2 of 2

Thread: Localized strings server side - is this possible - with libcod or without?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ... connecting
    Join Date
    Nov 2021
    Posts
    5
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Localized strings server side - is this possible - with libcod or without?

    I was wondering why localized strings are hard coded into client side files. For example I would like to change a text and I change that one only in a server gsc file. Can this lead to problems? Or what is the use of a client side localized string file?

    Thank you very much!

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    this is done for the convenience of localizing the game for different languages

    strings in .gsc are general purpose strings for developers. Localize*.iwd files decode these lines into messages like "PLAYER_CONNECT" (from .gsc) to "Player connected!"(from localize .str file).
    if string from .gsc not find reference in .str from lozalize*.iwd - just a used that string.

    You can make self languages-system in .gsc without localized strings and libcod.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Posting Permissions

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