Skip to content

Commit 047f0c4

Browse files
authored
Add Widevine version as built-in (#208)
* Add Widevine version as built-in Rather than leaving Widevine information out of the information pane, we should display it as 'built-in'. * Fix docstrings (#239) * Improve description 'Built into Android'
1 parent c92860b commit 047f0c4

File tree

13 files changed

+80
-30
lines changed

13 files changed

+80
-30
lines changed

lib/inputstreamhelper/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,17 +1061,19 @@ def info_dialog(self):
10611061
text += ' - ' + localize(30812, version=self._inputstream_version(), state=istream_state) + '\n'
10621062
text += '\n'
10631063

1064-
if system_os() != 'Android':
1065-
text += localize(30820) + '\n' # Widevine information
1064+
text += ' - ' + localize(30820) + '\n' # Widevine information
1065+
if system_os() == 'Android':
1066+
text += ' - ' + localize(30821) + '\n'
1067+
else:
10661068
from datetime import datetime
10671069
wv_updated = datetime.fromtimestamp(float(get_setting('last_update'))).strftime("%Y-%m-%d %H:%M") if get_setting('last_update') else 'Never'
1068-
text += ' - ' + localize(30821, version=self._get_lib_version(self._widevine_path()), date=wv_updated) + '\n'
1069-
text += ' - ' + localize(30822, path=self._ia_cdm_path()) + '\n'
1070+
text += ' - ' + localize(30822, version=self._get_lib_version(self._widevine_path()), date=wv_updated) + '\n'
1071+
text += ' - ' + localize(30823, path=self._ia_cdm_path()) + '\n'
10701072

10711073
if self._arch() in ('arm', 'arm64'): # Chrome OS version
1072-
text += ' - ' + localize(30823, version=get_setting('chromeos_version')) + '\n'
1074+
text += ' - ' + localize(30824, version=get_setting('chromeos_version')) + '\n'
10731075

1074-
text += '\n'
1076+
text += '\n'
10751077

10761078
text += localize(30830, url=config.ISSUE_URL) # Report issues
10771079

resources/language/resource.language.de_de/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Widevine Informationen[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr ""
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Widevine Version: [B]{version}[/B] [COLOR gray](zuletzt aktualisiert am [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Widevine CDM Pfad: [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Chrome OS Version: [B]{version}[/B]"
273277

resources/language/resource.language.el_gr/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Πληροφορίες Widevine[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr ""
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Έκδοση Widevina: [B]{version}[/B] [COLOR gray](τελευταία ενημερωση [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Διαδρομη CDM του Widevine: [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Έκδοση του Chrome OS: [B]{version}[/B]"
273277

resources/language/resource.language.en_gb/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,18 @@ msgid "[B]Widevine information[/B]"
268268
msgstr ""
269269

270270
msgctxt "#30821"
271-
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
271+
msgid "Widevine version: [B]Built into Android[/B]"
272272
msgstr ""
273273

274274
msgctxt "#30822"
275-
msgid "Widevine CDM path: [B]{path}[/B]"
275+
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
276276
msgstr ""
277277

278278
msgctxt "#30823"
279+
msgid "Widevine CDM path: [B]{path}[/B]"
280+
msgstr ""
281+
282+
msgctxt "#30824"
279283
msgid "Chrome OS version: [B]{version}[/B]"
280284
msgstr ""
281285

resources/language/resource.language.fr_fr/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Information Widevine[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr ""
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Version Widevine : [B]{version}[/B] [COLOR gray](mise à jour le [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Emplacement de Widevine CDM : [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Version de ChromeOS : [B]{version}[/B]"
273277

resources/language/resource.language.hr_hr/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,18 @@ msgid "[B]Widevine information[/B]"
268268
msgstr "[B]Widevine informacije[/B]"
269269

270270
msgctxt "#30821"
271+
msgid "Widevine version: [B]Built into Android[/B]"
272+
msgstr ""
273+
274+
msgctxt "#30822"
271275
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
272276
msgstr "Widevine verzija: [B]{version}[/B] [COLOR gray](zadnja nadogradnja [B]{date}[/B])[/COLOR]"
273277

274-
msgctxt "#30822"
278+
msgctxt "#30823"
275279
msgid "Widevine CDM path: [B]{path}[/B]"
276280
msgstr "Widevine CDM mapa: [B]{path}[/B]"
277281

278-
msgctxt "#30823"
282+
msgctxt "#30824"
279283
msgid "Chrome OS version: [B]{version}[/B]"
280284
msgstr "Chrome OS verzija: [B]{version}[/B]"
281285

resources/language/resource.language.hu_hu/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,18 @@ msgid "[B]Widevine information[/B]"
268268
msgstr "[B]Widevine információ[/B]"
269269

270270
msgctxt "#30821"
271+
msgid "Widevine version: [B]Built into Android[/B]"
272+
msgstr ""
273+
274+
msgctxt "#30822"
271275
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
272276
msgstr "Widevine verzió: [B]{version}[/B] [COLOR gray](utolsó frissítés [B]{date}[/B])[/COLOR]"
273277

274-
msgctxt "#30822"
278+
msgctxt "#30823"
275279
msgid "Widevine CDM path: [B]{path}[/B]"
276280
msgstr "Widevine CDM elérési út: [B]{path}[/B]"
277281

278-
msgctxt "#30823"
282+
msgctxt "#30824"
279283
msgid "Chrome OS version: [B]{version}[/B]"
280284
msgstr "Chrome OS verzió: [B]{version}[/B]"
281285

resources/language/resource.language.it_it/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Widevine info[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr ""
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Widevine: [B]{version}[/B] [COLOR gray](aggiornato il [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Widevine CDM: [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Chrome OS: [B]{version}[/B]"
273277

resources/language/resource.language.ja_JP/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,18 @@ msgid "[B]Widevine information[/B]"
268268
msgstr "[B]Widevine情報[/B]"
269269

270270
msgctxt "#30821"
271+
msgid "Widevine version: [B]Built into Android[/B]"
272+
msgstr ""
273+
274+
msgctxt "#30822"
271275
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
272276
msgstr "Widevineバージョン:[B]{version}[/B] [COLOR gray](直近更新日[B]{date}[/B])[/COLOR]"
273277

274-
msgctxt "#30822"
278+
msgctxt "#30823"
275279
msgid "Widevine CDM path: [B]{path}[/B]"
276280
msgstr "Widevine CDM パス: [B]{path}[/B]"
277281

278-
msgctxt "#30823"
282+
msgctxt "#30824"
279283
msgid "Chrome OS version: [B]{version}[/B]"
280284
msgstr "Chrome OS バージョン: [B]{version}[/B]"
281285

resources/language/resource.language.ko_KR/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,14 +268,18 @@ msgid "[B]Widevine information[/B]"
268268
msgstr "[B]Widevine 정보[/B]"
269269

270270
msgctxt "#30821"
271+
msgid "Widevine version: [B]Built into Android[/B]"
272+
msgstr ""
273+
274+
msgctxt "#30822"
271275
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
272276
msgstr "Widevine 버전: [B]{version}[/B] [COLOR gray]([B]{date}[/B]에 마지막으로 업데이트)[/COLOR]"
273277

274-
msgctxt "#30822"
278+
msgctxt "#30823"
275279
msgid "Widevine CDM path: [B]{path}[/B]"
276280
msgstr "Widevine CDM 경로: [B]{path}[/B]"
277281

278-
msgctxt "#30823"
282+
msgctxt "#30824"
279283
msgid "Chrome OS version: [B]{version}[/B]"
280284
msgstr "Chrome OS 버전: [B]{version}[/B]"
281285

resources/language/resource.language.nl_nl/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Informatie over Widevine[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr "Widevine versie: [B]Ingebouwd in Android[/B]"
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Widevine versie: [B]{version}[/B] [COLOR gray](voor het laatst geüpdatet op [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Widevine CDM pad: [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Chrome OS versie: [B]{version}[/B]"
273277

resources/language/resource.language.ru_ru/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Информация о Widevine[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr ""
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Версия Widevine: [B]{version}[/B] [COLOR gray](последнее обновление [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Путь к Widevine CDM: [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Версия Chrome OS: [B]{version}[/B]"
273277

resources/language/resource.language.sv_se/strings.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,18 @@ msgid "[B]Widevine information[/B]"
260260
msgstr "[B]Widevine-information[/B]"
261261

262262
msgctxt "#30821"
263+
msgid "Widevine version: [B]Built into Android[/B]"
264+
msgstr ""
265+
266+
msgctxt "#30822"
263267
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
264268
msgstr "Widevine-version: [B]{version}[/B] [COLOR gray](senast uppdaterad [B]{date}[/B])[/COLOR]"
265269

266-
msgctxt "#30822"
270+
msgctxt "#30823"
267271
msgid "Widevine CDM path: [B]{path}[/B]"
268272
msgstr "Widevine CDM-sökväg: [B]{path}[/B]"
269273

270-
msgctxt "#30823"
274+
msgctxt "#30824"
271275
msgid "Chrome OS version: [B]{version}[/B]"
272276
msgstr "Chrome OS-version: [B]{version}[/B]"
273277

0 commit comments

Comments
 (0)