1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 23:33:50 +02:00

Add some Right-To-Left language workarounds.

MixerBoard, LyricsWindow, Screenshot and most effects are now LTR in RTL locales.
Also added a pref so this can be overridden.  As RTL affects window creation, the language choice and this preference may only fully take effect after a restart of Audacity.
This commit is contained in:
James Crook
2018-08-10 15:35:06 +01:00
parent c95532012a
commit 7f96f85676
6 changed files with 21 additions and 0 deletions

View File

@@ -229,4 +229,15 @@ void QuitAudacity();
// pointer like std::unique_ptr or std::shared_ptr.
#define safenew new
// Right to left languages fail in many wx3 dialogs with missing buttons.
// The workaround is to use LTR in those dialogs.
#ifndef __WXMAC__
#define RTL_WORKAROUND( pWnd ) \
if ( gPrefs->Read( "/GUI/RtlWorkaround", true) ) \
pWnd->SetLayoutDirection(wxLayout_LeftToRight);
#else
#define RTL_WORKAROUND( pWnd )
#endif
#endif // __AUDACITY_H__