Mercurial > libervia-desktop-kivy
comparison cagou/core/menu.py @ 467:3693c662fa88
core (menu): update "about" text following renaming
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Mar 2021 14:38:53 +0100 |
parents | 3c9ba4a694ef |
children | 203755bbe0fe |
comparison
equal
deleted
inserted
replaced
466:cd448b877d1d | 467:3693c662fa88 |
---|---|
35 from functools import partial | 35 from functools import partial |
36 import webbrowser | 36 import webbrowser |
37 | 37 |
38 log = logging.getLogger(__name__) | 38 log = logging.getLogger(__name__) |
39 | 39 |
40 ABOUT_TITLE = _("About {}".format(C.APP_NAME)) | 40 ABOUT_TITLE = _("About {}").format(C.APP_NAME) |
41 ABOUT_CONTENT = _("""[b]Cagou (Salut à Toi)[/b] | 41 ABOUT_CONTENT = _("""[b]{app_name} ({app_name_alt})[/b] |
42 | 42 |
43 [u]cagou version[/u]: | 43 [u]{app_name} version[/u]: |
44 {version} | 44 {version} |
45 | 45 |
46 [u]backend version[/u]: | 46 [u]backend version[/u]: |
47 {backend_version} | 47 {backend_version} |
48 | 48 |
49 Cagou is a libre communication tool based on libre standard XMPP. | 49 {app_name} is a libre communication tool based on libre standard XMPP. |
50 | 50 |
51 Cagou is part of the "Salut à Toi" project (desktop/mobile frontend) | 51 {app_name} is part of the "Libervia" project ({app_component} frontend) |
52 more informations at [color=5500ff][ref=website]salut-a-toi.org[/ref][/color] | 52 more informations at [color=5500ff][ref=website]salut-a-toi.org[/ref][/color] |
53 """) | 53 """) |
54 | 54 |
55 | 55 |
56 class AboutContent(Label): | 56 class AboutContent(Label): |
199 self.hide() | 199 self.hide() |
200 about = AboutPopup() | 200 about = AboutPopup() |
201 about.title = ABOUT_TITLE | 201 about.title = ABOUT_TITLE |
202 about.content = AboutContent( | 202 about.content = AboutContent( |
203 text=ABOUT_CONTENT.format( | 203 text=ABOUT_CONTENT.format( |
204 app_name = C.APP_NAME, | |
205 app_name_alt = C.APP_NAME_ALT, | |
206 app_component = C.APP_COMPONENT, | |
204 backend_version = G.host.backend_version, | 207 backend_version = G.host.backend_version, |
205 version=G.host.version), | 208 version=G.host.version |
209 ), | |
206 markup=True) | 210 markup=True) |
207 about.open() | 211 about.open() |
208 | 212 |
209 | 213 |
210 class TransferMenu(SideMenu): | 214 class TransferMenu(SideMenu): |