mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
Use U+003A colon character on RTL languages
Unfortunately U+2236 seems to break time labels on RTL languages. Check text direction at startup and select best one that works.
This commit is contained in:
@@ -10,6 +10,7 @@ Debug.debug('imports');
|
||||
|
||||
const { GstClapper, Gtk, Adw } = imports.gi;
|
||||
const { App } = imports.src.app;
|
||||
const Misc = imports.src.misc;
|
||||
|
||||
function main(argv)
|
||||
{
|
||||
@@ -19,6 +20,10 @@ function main(argv)
|
||||
Gtk.init();
|
||||
Adw.init();
|
||||
|
||||
/* U+2236 seems to break RTL languages, use U+003A instead */
|
||||
if(Gtk.Widget.get_default_direction() === Gtk.TextDirection.RTL)
|
||||
Misc.timeColon = ':';
|
||||
|
||||
Debug.debug('initialized');
|
||||
|
||||
new App().run(argv);
|
||||
|
Reference in New Issue
Block a user