Jump to content
McKay Development

CEconItem market_hash_name name how to get other languange


Recommended Posts

I want to get the other language of these items' market_hash_name 

I have tried to set TradeOfferManager's language property, but it doesnt work.

So can you give one way to make it..

I think need to set manager.createOffer("xxxxx&language=schinese")  like this?

Very appreciate.

Link to comment
Share on other sites

Okay.

So the market_hash_name which i want to convet to other language..

I think i got a way ,but it not easy.

eg.

Just like dota2 items "The International 2016 HUD"

I need to make request  "http://steamcommunity.com/market/listings/570/The%20International%202016%20HUD?l=schinese"

Then get its chinese name..

Its there a better way ?

Thx for your reply~  :)

Link to comment
Share on other sites

I solved this..

I used a robot to look up other accounts inventories.

But when I make offer manager.createOffer("xxxx")

after loadPartnerInventory function .

The items names are not localized..

Then I look up the code .

I found the code in "steamcommunity/index.js"

 

this._setCookie(Request.cookie('Steam_Language=english'));
 
I changed this to "this._setCookie(Request.cookie('Steam_Language=schinese'));"
 
It worked ..
Before I changed code... I have tried to set language property in TradeOfferManager constructor.. It not worked ..
 
Really appreciate for  Dr.Mckay's working~
Edited by JackSovr
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...