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:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user