13 Commits
0.5.0 ... 0.5.2

Author SHA1 Message Date
Rafał Dzięgiel
23bb253ca2 0.5.2 2022-06-24 10:05:02 +02:00
Rafał Dzięgiel
2343e84a41 plugin: Use set_static_metadata in class init
Use static version of this function, so our static strings will not be copied
2022-06-06 21:04:17 +02:00
Rafał Dzięgiel
c288223321 Merge pull request #278 from Rafostar/flatpak-gvfs
flatpak: Add missing GVFS access permissions
2022-06-06 20:48:53 +02:00
Rafał Dzięgiel
2ba6645462 flatpak-nightly: Add missing GVFS access permissions
Needed to make GVFS mounted filesystems work with GVFS 1.48+.
See: https://docs.flatpak.org/en/latest/sandbox-permissions.html#gvfs-access
2022-06-06 09:32:12 +02:00
Rafał Dzięgiel
adcbb5d827 flatpak: Add missing GVFS access permissions
Needed to make GVFS mounted filesystems work with GVFS 1.48+.
See: https://docs.flatpak.org/en/latest/sandbox-permissions.html#gvfs-access
2022-06-06 09:31:55 +02:00
Rafał Dzięgiel
9885a2f424 Merge pull request #275 from Rafostar/smart-colon
Use U+003A colon character on RTL languages
2022-06-03 16:17:27 +02:00
Rafał Dzięgiel
66b2d8c7de plugin: Also use min GL version when auto selecting context
When we prefer GLES, make sure its no lower then 3.1 version, so it can color convert 10bit videos,
otherwise core GL 3.2 that GTK4 normally defaults to takes precedence.

With auto behavior we should select the best one, both performance and support wise.
Otherwise user can request one or another with GST_GL_API env that works best
with his specific HW.
2022-06-03 14:36:34 +02:00
Rafał Dzięgiel
2c5d65d0b3 flatpak: Sync with Flathub 2022-06-02 14:08:17 +02:00
Rafał Dzięgiel
e37f2a0a30 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.
2022-06-01 17:09:39 +02:00
Rafał Dzięgiel
387bc7a2f3 Update LINGUAS file 2022-06-01 16:44:05 +02:00
Rafał Dzięgiel
495a59a07a New Crowdin updates (#274)
* New translations com.github.rafostar.Clapper.pot (Hebrew)
2022-06-01 16:41:59 +02:00
Rafał Dzięgiel
e5723cd25a 0.5.1 2022-05-29 14:17:25 +02:00
Rafostar
e7808df7cc plugin: paintable: Fix widget size calculations on non-100% display scaling
Unlike legacy sink that used GLArea, GdkPaintable snapshots without pre-multiplying
sizes with scale factor. Remove scaling multiply of our widget dimensions,
so both video and widget width/height will be calculated correctly.

This fixes both image and black borders displaying issues on displays with
non-100% scaling applied.
2022-05-29 10:19:48 +02:00
17 changed files with 175 additions and 184 deletions

View File

@@ -48,6 +48,27 @@
</screenshot>
</screenshots>
<releases>
<release version="0.5.2" date="2022-06-24">
<description>
<p>Fixes:</p>
<ul>
<li>Fix time labels display on RTL languages</li>
<li>Improved GL/GLES context automatic selection</li>
</ul>
<p>New translations:</p>
<ul>
<li>Hebrew</li>
</ul>
</description>
</release>
<release version="0.5.1" date="2022-05-29">
<description>
<p>
A quick hotfix release. Fixes problems with new video sink on displays with non-100% scaling applied.
See 0.5.0 version release notes for full recent changelog.
</p>
</description>
</release>
<release version="0.5.0" date="2022-05-28">
<description>
<p>Changes:</p>

View File

@@ -376,11 +376,8 @@ gst_clapper_paintable_snapshot (GdkPaintable *paintable,
gint widget_width = 0, widget_height = 0;
if ((widget = g_weak_ref_get (&self->widget))) {
gint scale_factor;
scale_factor = gtk_widget_get_scale_factor (widget);
widget_width = gtk_widget_get_width (widget) * scale_factor;
widget_height = gtk_widget_get_height (widget) * scale_factor;
widget_width = gtk_widget_get_width (widget);
widget_height = gtk_widget_get_height (widget);
g_object_unref (widget);
}

View File

@@ -890,7 +890,7 @@ gst_clapper_sink_class_init (GstClapperSinkClass *klass)
gstvideosink_class->set_info = gst_clapper_sink_set_info;
gstvideosink_class->show_frame = gst_clapper_sink_show_frame;
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Clapper video sink",
"Sink/Video", "A GTK4 video sink used by Clapper media player",
"Rafał Dzięgiel <rafostar.github@gmail.com>");

View File

@@ -452,14 +452,19 @@ gst_clapper_gl_base_importer_add_allocation_metas (GstClapperImporter *importer,
}
static gboolean
_realize_gdk_context_with_api (GdkGLContext *gdk_context, GdkGLAPI api)
_realize_gdk_context_with_api (GdkGLContext *gdk_context, GdkGLAPI api, gint maj, gint min)
{
GError *error = NULL;
gboolean success;
gdk_gl_context_set_allowed_apis (gdk_context, api);
gdk_gl_context_set_required_version (gdk_context, maj, min);
GST_DEBUG ("Trying to realize %s context, min ver: %i.%i",
(api & GDK_GL_API_GL) ? "GL" : "GLES", maj, min);
if (!(success = gdk_gl_context_realize (gdk_context, &error))) {
GST_WARNING ("Could not realize Gdk context with %s: %s",
GST_DEBUG ("Could not realize Gdk context with %s: %s",
(api & GDK_GL_API_GL) ? "GL" : "GLES", error->message);
g_clear_error (&error);
}
@@ -486,7 +491,7 @@ gst_clapper_gl_base_importer_gdk_context_realize (GstClapperGLBaseImporter *self
: GDK_GL_API_GL | GDK_GL_API_GLES;
/* With requested by user API, we either use it or give up */
return _realize_gdk_context_with_api (gdk_context, preferred_api);
return _realize_gdk_context_with_api (gdk_context, preferred_api, 0, 0);
}
gdk_display = gdk_gl_context_get_display (gdk_context);
@@ -519,13 +524,24 @@ gst_clapper_gl_base_importer_gdk_context_realize (GstClapperGLBaseImporter *self
#endif
#endif
if (!(success = _realize_gdk_context_with_api (gdk_context, preferred_api))) {
/* Continue with GLES only if it should have "GL_EXT_texture_norm16"
* extension, as we need it to handle P010_10LE, etc. */
if ((preferred_api == GDK_GL_API_GLES)
&& _realize_gdk_context_with_api (gdk_context, GDK_GL_API_GLES, 3, 1))
return TRUE;
/* If not using GLES 3.1, try with core GL 3.2 that GTK4 defaults to */
if (_realize_gdk_context_with_api (gdk_context, GDK_GL_API_GL, 3, 2))
return TRUE;
/* Try with what we normally prefer first, otherwise use fallback */
if (!(success = _realize_gdk_context_with_api (gdk_context, preferred_api, 0, 0))) {
GdkGLAPI fallback_api;
fallback_api = (GDK_GL_API_GL | GDK_GL_API_GLES);
fallback_api &= ~preferred_api;
success = _realize_gdk_context_with_api (gdk_context, fallback_api);
success = _realize_gdk_context_with_api (gdk_context, fallback_api, 0, 0);
}
return success;

View File

@@ -1,5 +1,5 @@
project('com.github.rafostar.Clapper', 'c', 'cpp',
version: '0.5.0',
version: '0.5.2',
meson_version: '>= 0.50.0',
license: 'GPL-3.0-or-later',
default_options: [

View File

@@ -18,10 +18,11 @@
"--device=all",
"--filesystem=xdg-run/pipewire-0:ro",
"--filesystem=xdg-videos",
"--filesystem=xdg-run/gvfsd",
"--own-name=org.mpris.MediaPlayer2.Clapper",
"--talk-name=org.gtk.vfs.*",
"--talk-name=org.gnome.Shell",
"--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0",
"--env=GST_VAAPI_ALL_DRIVERS=1"
"--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-nightly/bin:/usr/lib/sdk/llvm13/bin",

View File

@@ -14,10 +14,11 @@
"--device=all",
"--filesystem=xdg-run/pipewire-0:ro",
"--filesystem=xdg-videos",
"--filesystem=xdg-run/gvfsd",
"--own-name=org.mpris.MediaPlayer2.Clapper",
"--talk-name=org.gtk.vfs.*",
"--talk-name=org.gnome.Shell",
"--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0",
"--env=GST_VAAPI_ALL_DRIVERS=1"
"--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0"
],
"modules": [
"flathub/shared-modules/gudev/gudev.json",
@@ -33,12 +34,15 @@
"flathub/lib/ffmpeg.json",
"flathub/lib/uchardet.json",
"flathub/gstreamer-1.0/gstreamer.json",
"testing/gtk4.json",
"testing/libadwaita.json",
"flathub/lib/gtk4.json",
"flathub/lib/libadwaita.json",
"testing/gtuber.json",
{
"name": "clapper",
"buildsystem": "meson",
"config-opts": [
"-Dc_args=\"-DHAVE_GST_PATCHES=1\""
],
"sources": [
{
"type": "dir",

View File

@@ -1,33 +0,0 @@
{
"name": "gtk",
"buildsystem": "meson",
"build-options": {
"build-args": [
"--share=network"
]
},
"config-opts": [
"--buildtype=release",
"-Dwin32-backend=false",
"-Dmacos-backend=false",
"-Dmedia-ffmpeg=disabled",
"-Dprint-cups=disabled",
"-Dintrospection=enabled",
"-Ddemos=false",
"-Dbuild-examples=false",
"-Dbuild-tests=false"
],
"cleanup": [
"/bin/gtk4-builder-tool",
"/bin/gtk4-encode-symbolic-svg"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gtk.git",
"tag": "4.6.4",
"commit": "1e6bad6c4f412dc0eb7b2f508cb4465929a04303"
}
]
}

View File

@@ -1,21 +0,0 @@
{
"name": "libadwaita",
"buildsystem": "meson",
"config-opts": [
"--buildtype=release",
"--wrap-mode=nofallback",
"-Dintrospection=enabled",
"-Dvapi=false",
"-Dgtk_doc=false",
"-Dtests=false",
"-Dexamples=false"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/libadwaita.git",
"tag": "1.1.1",
"commit": "5ec9f624b23bf78b29dd708e77ccdfcee0a9867a"
}
]
}

View File

@@ -1 +1 @@
ar ca cs de es eu fr hu it ja nl pl pt pt_BR ru sv tr zh_CN
ar ca cs de es eu fr he hu it ja nl pl pt pt_BR ru sv tr zh_CN

208
po/he.po
View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: clapper\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-26 18:41+0200\n"
"PO-Revision-Date: 2022-05-26 16:50\n"
"PO-Revision-Date: 2022-06-01 08:42\n"
"Last-Translator: \n"
"Language-Team: Hebrew\n"
"Language: he_IL\n"
@@ -19,420 +19,420 @@ msgstr ""
#: ui/clapper.ui:6
msgid "Open Files…"
msgstr ""
msgstr "פתיחת קבצים…"
#: ui/clapper.ui:10
msgid "Open URI…"
msgstr ""
msgstr "פתיחת כתובת…"
#: ui/clapper.ui:16 ui/preferences-window.ui:4
msgid "Preferences"
msgstr ""
msgstr "העדפות"
#: ui/clapper.ui:20
msgid "Shortcuts"
msgstr ""
msgstr "צירופי מקשים"
#: ui/clapper.ui:26
msgid "About Clapper"
msgstr ""
msgstr "על אודות Clapper"
#: ui/elapsed-time-button.ui:27
msgid "Speed"
msgstr ""
msgstr "מהירות"
#: ui/elapsed-time-button.ui:41 ui/preferences-window.ui:82
msgid "Normal"
msgstr ""
msgstr "רגילה"
#: ui/help-overlay.ui:10 ui/preferences-window.ui:11
msgid "General"
msgstr ""
msgstr "כללי"
#: ui/help-overlay.ui:13
msgid "Show shortcuts"
msgstr ""
msgstr "הצגת צירופי מקשים"
#: ui/help-overlay.ui:19
msgid "Toggle fullscreen"
msgstr ""
msgstr "שינוי מצב מסך מלא"
#: ui/help-overlay.ui:20
msgid "Double tap | Double click"
msgstr ""
msgstr "נגיעה כפולה | לחיצה כפולה"
#: ui/help-overlay.ui:26
msgid "Leave fullscreen"
msgstr ""
msgstr "יציאה ממסך מלא"
#: ui/help-overlay.ui:32
msgid "Reveal OSD (fullscreen only)"
msgstr ""
msgstr "הצגת מידע וכפתורים (מסך מלא בלבד)"
#: ui/help-overlay.ui:33
msgid "Tap"
msgstr ""
msgstr "נגיעה"
#: ui/help-overlay.ui:39
msgid "Quit"
msgstr ""
msgstr "יציאה"
#: ui/help-overlay.ui:47
msgid "Media"
msgstr ""
msgstr "מדיה"
#: ui/help-overlay.ui:50
msgid "Open files"
msgstr ""
msgstr "פתיחת קבצים"
#: ui/help-overlay.ui:56 src/dialogs.js:137
msgid "Open URI"
msgstr ""
msgstr "פתיחת כתובת"
#: ui/help-overlay.ui:64
msgid "Playlist"
msgstr ""
msgstr "רשימת השמעה"
#: ui/help-overlay.ui:67
msgid "Next item"
msgstr ""
msgstr "פריט הבא"
#: ui/help-overlay.ui:68
msgid "Double tap (right side)"
msgstr ""
msgstr "נגיעה כפולה (צד ימין)"
#: ui/help-overlay.ui:74
msgid "Previous item"
msgstr ""
msgstr "פריט קודם"
#: ui/help-overlay.ui:75
msgid "Double tap (left side)"
msgstr ""
msgstr "נגיעה כפולה (צד שמאל)"
#: ui/help-overlay.ui:81
msgid "Change repeat mode"
msgstr ""
msgstr "שינוי מצב חזרה"
#: ui/help-overlay.ui:87
msgid "Export to file"
msgstr ""
msgstr "ייצוא לקובץ"
#: ui/help-overlay.ui:95 ui/preferences-window.ui:118
msgid "Playback"
msgstr ""
msgstr "השמעה"
#: ui/help-overlay.ui:98
msgid "Toggle play"
msgstr ""
msgstr "הפעלה/השהיה"
#: ui/help-overlay.ui:99
msgid "Long press | Right click"
msgstr ""
msgstr "לחיצה ארוכה | לחצן ימני"
#: ui/help-overlay.ui:105
msgid "Seek forward"
msgstr ""
msgstr "דילוג קדימה"
#: ui/help-overlay.ui:106
msgid "Swipe right | Scroll right"
msgstr ""
msgstr "החלקה ימינה | גלילה ימינה"
#: ui/help-overlay.ui:112
msgid "Seek backward"
msgstr ""
msgstr "דילוג לאחור"
#: ui/help-overlay.ui:113
msgid "Swipe left | Scroll left"
msgstr ""
msgstr "החלקה שמאלה | גלילה שמאלה"
#: ui/help-overlay.ui:119
msgid "Volume up"
msgstr ""
msgstr "הגברת עצמת השמע"
#: ui/help-overlay.ui:120
msgid "Swipe up | Scroll up"
msgstr ""
msgstr "החלקה למעלה | גלילה למעלה"
#: ui/help-overlay.ui:126
msgid "Volume down"
msgstr ""
msgstr "הנמכת עצמת השמע"
#: ui/help-overlay.ui:127
msgid "Swipe down | Scroll down"
msgstr ""
msgstr "החלקה למעלה | גלילה למעלה"
#: ui/help-overlay.ui:133
msgid "Toggle mute"
msgstr ""
msgstr "השתקה/ביטול השתקה"
#: ui/help-overlay.ui:139
msgid "Next chapter"
msgstr ""
msgstr "פרק הבא"
#: ui/help-overlay.ui:145
msgid "Previous chapter"
msgstr ""
msgstr "פרק קודם"
#: ui/preferences-plugin-ranking-subpage.ui:11
msgid "Decoders"
msgstr ""
msgstr "מפענחים"
#: ui/preferences-plugin-ranking-subpage.ui:18
msgid "Return to the preferences"
msgstr ""
msgstr "חזרה להגדרות"
#: ui/preferences-window.ui:15
msgid "Behavior"
msgstr ""
msgstr "התנהגות"
#: ui/preferences-window.ui:18
msgid "Auto fullscreen"
msgstr ""
msgstr "מסך מלא אוטומטי"
#: ui/preferences-window.ui:19
msgid "Enter fullscreen when playlist is replaced except floating mode"
msgstr ""
msgstr "כניסה למצב מסך מלא עם החלפת רשימת השמעה מלבד במצב ציפה"
#: ui/preferences-window.ui:25
msgid "Ask to resume recent media"
msgstr ""
msgstr "לשאול אם להפעיל מחדש את המדיה האחרונה"
#: ui/preferences-window.ui:31
msgid "Float on all workspaces"
msgstr ""
msgstr "ציפה בכל מרחבי העבודה"
#: ui/preferences-window.ui:32
msgid "This option only works on GNOME"
msgstr ""
msgstr "אפשרות זו פועלת רק ב־GNOME"
#: ui/preferences-window.ui:38
msgid "After playback"
msgstr ""
msgstr "בסיום צפייה"
#: ui/preferences-window.ui:43
msgid "Do nothing"
msgstr ""
msgstr "לא לעשות דבר"
#: ui/preferences-window.ui:44
msgid "Freeze last frame"
msgstr ""
msgstr "הקפאת התמונה האחרונה"
#: ui/preferences-window.ui:45
msgid "Close the app"
msgstr ""
msgstr "סגירת היישום"
#: ui/preferences-window.ui:55
msgid "Volume"
msgstr ""
msgstr "עצמת שמע"
#: ui/preferences-window.ui:58
msgid "Custom initial value"
msgstr ""
msgstr "התאמת ערך התחלתי"
#: ui/preferences-window.ui:59
msgid "Set custom volume at startup instead of restoring it"
msgstr ""
msgstr "הגדרת עצמת השמע עם ההפעלה במקום שחזור"
#: ui/preferences-window.ui:63
msgid "Volume percentage"
msgstr ""
msgstr "עצמת שמע באחוזים"
#: ui/preferences-window.ui:74
msgid "Seeking"
msgstr ""
msgstr "דילוג"
#: ui/preferences-window.ui:77
msgid "Mode"
msgstr ""
msgstr "מצב"
#: ui/preferences-window.ui:83
msgid "Accurate"
msgstr ""
msgstr "מדויק"
#: ui/preferences-window.ui:84
msgid "Fast"
msgstr ""
msgstr "מהיר"
#: ui/preferences-window.ui:92
msgid "Unit"
msgstr ""
msgstr "יחידה"
#: ui/preferences-window.ui:97
msgid "Second"
msgstr ""
msgstr "שניה"
#: ui/preferences-window.ui:98
msgid "Minute"
msgstr ""
msgstr "דקה"
#: ui/preferences-window.ui:99
msgid "Percentage"
msgstr ""
msgstr "אחוז"
#: ui/preferences-window.ui:107
msgid "Value"
msgstr ""
msgstr "ערך"
#: ui/preferences-window.ui:122
msgid "Audio"
msgstr ""
msgstr "שמע"
#: ui/preferences-window.ui:125
msgid "Offset in milliseconds"
msgstr ""
msgstr "היסט במילי־שניות"
#: ui/preferences-window.ui:132
msgid "Only native audio formats"
msgstr ""
msgstr "תבניות שמע רגילות בלבד"
#: ui/preferences-window.ui:140
msgid "Subtitles"
msgstr ""
msgstr "כתוביות"
#: ui/preferences-window.ui:143
msgid "Default font"
msgstr ""
msgstr "גופן ברירת מחדל"
#: ui/preferences-window.ui:153
msgid "Network"
msgstr ""
msgstr "רשת"
#: ui/preferences-window.ui:157
msgid "Client"
msgstr ""
msgstr "לקוח"
#: ui/preferences-window.ui:160
msgid "Progressive download buffering"
msgstr ""
msgstr "שימוש בחוצץ הורדה"
#: ui/preferences-window.ui:168
msgid "Server"
msgstr ""
msgstr "שרת"
#: ui/preferences-window.ui:171
msgid "Control player remotely"
msgstr ""
msgstr "שליטה בנגן מרחוק"
#: ui/preferences-window.ui:175
msgid "Listening port"
msgstr ""
msgstr "פתחת האזנה"
#: ui/preferences-window.ui:188
msgid "Tweaks"
msgstr ""
msgstr "התאמות"
#: ui/preferences-window.ui:192
msgid "Appearance"
msgstr ""
msgstr "מראה"
#: ui/preferences-window.ui:195
msgid "Dark theme"
msgstr ""
msgstr "מראה כהה"
#: ui/preferences-window.ui:201
msgid "Render window shadows"
msgstr ""
msgstr "עיבוד צל לחלון"
#: ui/preferences-window.ui:202
msgid "Disable to increase performance when windowed"
msgstr ""
msgstr "השבתה לצמצום צריכת החלונות"
#: ui/preferences-window.ui:213
msgid "Plugin ranking"
msgstr ""
msgstr "דרגות תוספים"
#: ui/preferences-window.ui:214
msgid "Alter default ranks of GStreamer plugins"
msgstr ""
msgstr "שינוי דירוג ברירת המחדל של תוספי GStreamer"
#: ui/preferences-window.ui:219
msgid "Use playbin3"
msgstr ""
msgstr "שימוש ב־playbin3"
#: ui/preferences-window.ui:220 ui/preferences-window.ui:229
msgid "Requires player restart"
msgstr ""
msgstr "דורש הפעלה מחדש של הנגן"
#: ui/preferences-window.ui:222 ui/preferences-window.ui:231
msgid "Experimental"
msgstr ""
msgstr "ניסיוני"
#: ui/preferences-window.ui:228
msgid "Use PipeWire for audio output"
msgstr ""
msgstr "שימוש ב־PipeWire לפלט השמע"
#: src/buttons.js:201
#, javascript-format
msgid "Decoder: %s"
msgstr ""
msgstr "מפענח: %s"
#: src/dialogs.js:152
msgid "Enter or drop URI here"
msgstr ""
msgstr "יש להזין או להשליך כתובת לכאן"
#: src/dialogs.js:157
msgid "Cancel"
msgstr ""
msgstr "ביטול"
#: src/dialogs.js:158
msgid "Open"
msgstr ""
msgstr "פתיחה"
#: src/dialogs.js:226
msgid "Title"
msgstr ""
msgstr "כותרת"
#: src/dialogs.js:227
msgid "Completed"
msgstr ""
msgstr "הושלם"
#: src/dialogs.js:235
msgid "Resume playback?"
msgstr ""
msgstr "להמשיך בצפייה?"
#: src/dialogs.js:289
#, javascript-format
msgid "GTK version: %s"
msgstr ""
msgstr "גרסת GTK: %s"
#: src/dialogs.js:290
#, javascript-format
msgid "Adwaita version: %s"
msgstr ""
msgstr "גרסת Adwaita: %s"
#: src/dialogs.js:291
#, javascript-format
msgid "GStreamer version: %s"
msgstr ""
msgstr "גרסת GStreamer: %s"
#: src/dialogs.js:292
#, javascript-format
msgid "GJS version: %s"
msgstr ""
msgstr "גרסת GJS: %s"
#: src/dialogs.js:300
msgid "A GNOME media player powered by GStreamer"
msgstr ""
msgstr "נגן מדיה עבור GNOME המופעל על ידי GStreamer"
#. TRANSLATORS: Put your name(s) here for credits or leave untranslated
#: src/dialogs.js:305
msgid "translator-credits"
msgstr ""
msgstr "יוסף אור בוצ׳קו <yoseforb@gnome.org>"
#: src/revealers.js:170
#, javascript-format
msgid "Ends at: %s"
msgstr ""
msgstr "שעת סיום: %s"
#: src/widget.js:226 src/widget.js:235 src/widget.js:241 src/widget.js:247
msgid "Undetermined"
msgstr ""
msgstr "לא מוגדר"
#: src/widget.js:242
msgid "Channels"
msgstr ""
msgstr "ערוצים"
#: src/widget.js:260
msgid "Disabled"
msgstr ""
msgstr "מושבת"

View File

@@ -165,7 +165,7 @@ class ClapperElapsedTimeButton extends PopoverButtonBase
setInitialState()
{
this.label = '00000000';
this.label = `00${Misc.timeColon}0000${Misc.timeColon}00`;
}
setFullscreenMode(isFullscreen, isMobileMonitor)

2
src/controls.js vendored
View File

@@ -27,7 +27,7 @@ class ClapperControls extends Gtk.Box
this.isMobile = false;
this.showHours = false;
this.durationFormatted = '0000';
this.durationFormatted = `00${Misc.timeColon}00`;
this.revealersArr = [];
this.chapters = null;

View File

@@ -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);

View File

@@ -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)

View File

@@ -59,8 +59,8 @@ class ClapperRevealerTop extends CustomRevealer
const initTime = GLib.DateTime.new_now_local().format('%X');
this.timeFormat = (initTime.length > 8)
? '%I%M %p'
: '%H%M';
? `%I${Misc.timeColon}%M %p`
: `%H${Misc.timeColon}%M`;
this.mediaTitle = new Gtk.Label({
ellipsize: Pango.EllipsizeMode.END,