How to add locale translations support in wx application?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
apoorv569
Super wx Problem Solver
Super wx Problem Solver
Posts: 426
Joined: Tue Oct 20, 2020 3:35 pm

How to add locale translations support in wx application?

Post by apoorv569 »

I found in some posts that you can use macros like wxT() _T() _(), like _("Some text"). But this alone does nothing, what else do I need, to add support for translations?
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: How to add locale translations support in wx application?

Post by PB »

Did you read the manual?
https://docs.wxwidgets.org/trunk/overview_i18n.html

Make sure to not confuse your macros, i.e., use only _() and when needed the last four ones from here: https://docs.wxwidgets.org/trunk/group_ ... tring.html
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to add locale translations support in wx application?

Post by ONEEYEMAN »

Hi,
Also check the internat sample that comes with wxWidgets.

Thank you.
Post Reply