User Language

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

Moderator: Forum Moderators

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

User Language

Post by Choicerer »

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
Forum Moderator
Posts: 2934
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: User Language

Post by Ravana »

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 »

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