x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Get language from steam

Hello,

As the title say, I would like to retrieve the language that the player can set on the properties page of a game. On the SteamWork API Documentation (https://partner.steamgames.com/documentation/languages) it is said that we can achieve this by calling "GetCurrentGameLanguage()" but I can't find this method anywhere.

Can anyone help me with that ?

Thanks,

Quentin

Product Version: UE 4.9
Tags:
more ▼

asked Feb 22 '16 at 02:38 PM in C++ Programming

avatar image

Atomik17
35 6 6 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi,

I had the same problem, I have not found any other solution than adding a function on "OnlineSubsystemSteam.h"

 FString FOnlineSubsystemSteam::GetSteamLanguage()
 {
     FString sLang= TEXT("english");    //Default
     ISteamApps* pSteamApps = SteamApps();
     if (pSteamApps )
     {
         sLang= FString(ANSI_TO_TCHAR(pSteamApps->GetCurrentGameLanguage()));
     }
     return sLang;
 }
more ▼

answered Mar 08 '16 at 02:16 PM

avatar image

leuh fahn
31 1 1 1

avatar image Paul Bonnef Oct 02 '18 at 05:24 PM

Hi! Can't get it working: ISteamApps is not declared and I don't see how to include the steam stuff...

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question