[totem/wip/hadess/devel-app-name] main: Allow translation of development branch app name
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/devel-app-name] main: Allow translation of development branch app name
- Date: Thu, 3 Feb 2022 15:34:09 +0000 (UTC)
commit e6a594ebc8f5b6f3db0c4ae1d75fce2e2e7059b0
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 3 16:31:12 2022 +0100
main: Allow translation of development branch app name
Rather than using an icon, use a string that can be translated as the
app name.
"Preview" will the suffix for that app name until we agree on a common
name in https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/155
flatpak/org.gnome.Totem.Devel.json | 1 -
meson.build | 3 +--
src/totem.c | 4 ++++
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/flatpak/org.gnome.Totem.Devel.json b/flatpak/org.gnome.Totem.Devel.json
index f0d528cae..b6231dccb 100644
--- a/flatpak/org.gnome.Totem.Devel.json
+++ b/flatpak/org.gnome.Totem.Devel.json
@@ -5,7 +5,6 @@
"sdk": "org.gnome.Sdk",
"command": "totem",
"tags": ["nightly"],
- "desktop-file-name-suffix": " ☢️",
"finish-args": [
/* X11 + XShm access */
"--share=ipc", "--socket=fallback-x11",
diff --git a/meson.build b/meson.build
index 802b51fd5..bc74b86e7 100644
--- a/meson.build
+++ b/meson.build
@@ -43,10 +43,8 @@ cc = meson.get_compiler('c')
if get_option('profile') == 'development'
profile = '.Devel'
- name_suffix = ' ☢️'
else
profile = ''
- name_suffix = ''
endif
application_id = 'org.gnome.Totem@0@'.format(profile)
@@ -70,6 +68,7 @@ set_defines = [
foreach define: set_defines
config_h.set_quoted(define[0], define[1])
endforeach
+config_h.set10('DEVELOPMENT_VERSION', get_option('profile') == 'development')
# Compiler flags
common_flags = [
diff --git a/src/totem.c b/src/totem.c
index 3ea46b7c3..efb9aa8cb 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -70,7 +70,11 @@ main (int argc, char **argv)
#endif
g_set_prgname ("totem");
+#ifndef DEVELOPMENT_VERSION
g_set_application_name (_("Videos"));
+#else
+ g_set_application_name (_("Videos Preview"));
+#endif
gtk_window_set_default_icon_name (APPLICATION_ID);
g_setenv("PULSE_PROP_media.role", "video", TRUE);
g_setenv("PULSE_PROP_application.icon_name", APPLICATION_ID, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]