User Language

Discussion of Lua and LuaWML support, development, and ideas.

Moderators: Forum Moderators, Developers

Post Reply
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

User Language

Post by Choicerer » June 14th, 2018, 11:37 am

I haven't really dabbled with Wesnoth's translation engine so I'm curious if there's any way to probe for a client's local language setting (this would be for theme_items).

User avatar
Ravana
Moderator
Posts: 1870
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: User Language

Post by Ravana » June 14th, 2018, 12:15 pm

You might be able to hardcode and match some strings. You can see some translated values, like from observers tooltip text. I dont think there is normal way to query language.

Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: User Language

Post by Choicerer » June 14th, 2018, 12:39 pm

Yeah, thanks, that's what I was going to do, anyway.

Post Reply