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:
@@ -9,6 +9,7 @@ var subsMimes = [
|
||||
'application/x-subrip',
|
||||
'text/x-ssa',
|
||||
];
|
||||
var timeColon = '∶';
|
||||
|
||||
var settings = new Gio.Settings({
|
||||
schema_id: appId,
|
||||
@@ -161,8 +162,8 @@ function getFormattedTime(time, showHours)
|
||||
time -= minutes * 60;
|
||||
const seconds = ('0' + Math.floor(time)).slice(-2);
|
||||
|
||||
const parsed = (hours) ? `${hours}∶` : '';
|
||||
return parsed + `${minutes}∶${seconds}`;
|
||||
const parsed = (hours) ? `${hours}${timeColon}` : '';
|
||||
return parsed + `${minutes}${timeColon}${seconds}`;
|
||||
}
|
||||
|
||||
function parsePlaylistFiles(filesArray)
|
||||
|
Reference in New Issue
Block a user