Re: Right-to-left languages support

Vadim Zeitlin <[email protected]> Tue, 6 May 2025 16:47:55 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Tue, 6 May 2025 07:52:10 +0200 Quentin Cosendey wrote:

QC> Given that Arabic is written from right to left, do I have to do 
QC> something special in the code to support that ?

 You need to set the locale correctly. Just using wxUILocale should work if
the system is using Arabic.

QC> I assume that everything should be more or less reversed on the screen ? 
QC> Texts aligned left should be aligned right ? Scrollbars should be on the 
QC> left instead of on the right ? etc.

 Yes.

QC> Does Windows and/or WXWidgets do all that automatically for me, or do I 
QC> need to handle it manually ? What should I do specifically ?

 It's supposed to be handled automatically, but there may be bugs because
this is not that well-tested. In fact, I'd be surprised if you don't run
into any bugs... But the only way to know for sure is to try it and wait
for your users bug reports!

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaBohGwAKCRAG6kHeT2we
hvcnAJ4zFkfc8EOqltr+p5TJ3SaoZcH4OwCfXkjkSS6iVbnwRKVRQoVmN8ZQGVw=
=yP/v
-----END PGP SIGNATURE-----