From aac0bf19446db4751e497a4c494d17579bc9ea17 Mon Sep 17 00:00:00 2001 From: cuu Date: Sun, 2 Dec 2018 14:26:23 +0800 Subject: [PATCH] music play list ,translate bgpng --- Menu/GameShell/97_Music Player/music_lib_list_page.py | 3 ++- Menu/GameShell/97_Music Player/play_list_page.py | 3 ++- sys.py/langs/00_English.ini | 1 + sys.py/langs/03_简体中文.ini | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Menu/GameShell/97_Music Player/music_lib_list_page.py b/Menu/GameShell/97_Music Player/music_lib_list_page.py index dec0b0f..6760f77 100644 --- a/Menu/GameShell/97_Music Player/music_lib_list_page.py +++ b/Menu/GameShell/97_Music Player/music_lib_list_page.py @@ -16,6 +16,7 @@ from UI.multi_icon_item import MultiIconItem from UI.icon_pool import MyIconPool from UI.scroller import ListScroller from UI.skin_manager import MySkinManager +from UI.lang_manager import MyLangManager from list_item import ListItem @@ -184,7 +185,7 @@ class MusicLibListPage(Page): self._BGpng._ImgSurf = MyIconPool._Icons["empty"] self._BGpng._MyType = ICON_TYPES["STAT"] self._BGpng._Parent = self - self._BGpng.AddLabel("Please upload data over Wi-Fi", fonts["varela22"]) + self._BGpng.AddLabel(MyLangManager.Tr("Please upload data over Wi-Fi"), MyLangManager.TrFont("varela22")) self._BGpng.SetLableColor(MySkinManager.GiveColor('Disabled')) self._BGpng.Adjust(0,0,self._BGwidth,self._BGheight,0) diff --git a/Menu/GameShell/97_Music Player/play_list_page.py b/Menu/GameShell/97_Music Player/play_list_page.py index c40fe57..1a0ca9f 100644 --- a/Menu/GameShell/97_Music Player/play_list_page.py +++ b/Menu/GameShell/97_Music Player/play_list_page.py @@ -15,6 +15,7 @@ from UI.util_funcs import midRect from UI.keys_def import CurKeys from UI.icon_pool import MyIconPool from UI.skin_manager import MySkinManager +from UI.lang_manager import MyLangManager from UI.scroller import ListScroller @@ -183,7 +184,7 @@ class PlayListPage(Page): self._BGpng._ImgSurf = MyIconPool._Icons["heart"] self._BGpng._MyType = ICON_TYPES["STAT"] self._BGpng._Parent = self - self._BGpng.AddLabel("my favourites", fonts["varela18"]) + self._BGpng.AddLabel(MyLangManager.Tr("my favourites"), MyLangManager.TrFont("varela18")) self._BGpng.SetLableColor(MySkinManager.GiveColor('Disabled')) self._BGpng.Adjust(0,0,self._BGwidth,self._BGheight,0) diff --git a/sys.py/langs/00_English.ini b/sys.py/langs/00_English.ini index 28984c8..6d1da9c 100644 --- a/sys.py/langs/00_English.ini +++ b/sys.py/langs/00_English.ini @@ -101,3 +101,4 @@ Performance=Performance Confirm Power OFF?=Confirm Power OFF? Reboot=Reboot Shutdown=Shutdown +my favourites=my favourites diff --git a/sys.py/langs/03_简体中文.ini b/sys.py/langs/03_简体中文.ini index 33b2e76..bcc5f2a 100644 --- a/sys.py/langs/03_简体中文.ini +++ b/sys.py/langs/03_简体中文.ini @@ -102,3 +102,4 @@ Shutdown=关闭 Play List=播放列表 Music Library=乐库 Play/Pause=播放/暂停 +my favourites=我的收藏夹