1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Player Language

Discussion in 'Development' started by KYUMA, Jun 3, 2018.

  1. KYUMA

    KYUMA Silverfish

    Messages:
    16
    GitHub:
    Ky75
    Hello, I need to know Player Keyboard Lang when write in chat

    i think need to use TextPacket but i want more explain.
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    so you want to know what language user sent into chat is?
    or what language user uses
    or what?
     
  3. KYUMA

    KYUMA Silverfish

    Messages:
    16
    GitHub:
    Ky75
    i want to know what langauge user sent into chat :)
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It is impossible to know the playersp virtual keyboard software or settings in the software (e.g. SwiftKey or Gboard, English (US) or English (UK), etc.). You have to use a tool like Google Translate to guess the language the user is using.
     
    KYUMA likes this.
  5. SleepSpace9

    SleepSpace9 Slime

    Messages:
    78
    GitHub:
    sleepspace9
    Maybe it's enough for you to know which language the player set in his MC:BE client - then you can do player->getLocale() to get the corresponding language/country code.
     
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    probably not, i might have english local but i am perfectly fine to chat in chinese which will mess up everything

    also sometimes someone can speak in mixed languge
    for example:
    <insert english> <insert chinese translation of english>

    which will also mess your system up

    it might be easier for everyone if you show tell us your intention and what you are trying to do
     
    KYUMA, EdwardHamHam and SOFe like this.
  7. KYUMA

    KYUMA Silverfish

    Messages:
    16
    GitHub:
    Ky75
    Thanks Guys,
    I found another way to do what I want
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.