User Language

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

Moderators: Forum Moderators, Developers

Post Reply
Choicerer
Posts: 220
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).
Creator of Choicerer's Map Randomizer - http://bit.ly/2GNcnuv Better Odds - http://bit.ly/2HP41ln
The Better Names Mod - http://bit.ly/2ICIGwz Architecture Mod - http://bit.ly/2JjbNsN
Curse of Satan Claus - http://bit.ly/2pq6MSg The Trolling Mod - http://bit.ly/2GbpAiO
and the Mushroom Isar.

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

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: 220
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.
Creator of Choicerer's Map Randomizer - http://bit.ly/2GNcnuv Better Odds - http://bit.ly/2HP41ln
The Better Names Mod - http://bit.ly/2ICIGwz Architecture Mod - http://bit.ly/2JjbNsN
Curse of Satan Claus - http://bit.ly/2pq6MSg The Trolling Mod - http://bit.ly/2GbpAiO
and the Mushroom Isar.

Post Reply