Files
NFLmusic/nflmusic/ifm_json.py
NFL_jiancx 47f329ba17 style(nflmusic): 在设置界面将"主题"文本后添加冒号
- 在 ifm_json.py 文件中的 UI 语言设置部分,将"主题"文本从"Theme"改为"Theme:"
- 同时在中文语言设置中,将"主题"改为"主题:"
- 这个修改统一了设置界面各项配置文本的格式,使其更加一致和规范
2025-02-05 20:38:55 +08:00

286 lines
18 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

usercache = {
"language": "简体中文",
"theme": "sandstone",
"path": "./music",
"br": {
"QQ": "HQ高音质",
"KUWO": "高品音质",
"KUGOU": "HQ音质",
"WANGYIYUN": "较高"
},
"choice": "KUGOU",
"auto_update": True,
"playing_mode": 0,
"auto_play": False
}
api_data = {
"QQ": ["https://api.xingzhige.com/API/QQmusicVIP",
{
"SQ无损音质": 11,
"臻品2.0": 10,
"HQ高音质": 9,
"标准音质": 7,
"有损音质": 3
}
],
"KUWO": ["https://oiapi.net/API/Kuwo",
{
"无损音质": 1,
"高品音质": 2,
"标准音质": 3
}
],
"KUGOU": ["https://api.xingzhige.com/API/Kugou_GN_new",
{
"SQ音质": 3,
"HQ音质": 2,
"标准音质": 1
}
],
"WANGYIYUN": ["https://oiapi.net/API/Music_163/",
{
"标准": 1,
"较高": 2,
"极高": 3,
"无损": 4,
"Hi-Res": 5,
"高清环绕声": 6,
"沉浸环绕声": 7,
"超清母带": 8
}
]
}
class Language:
zh_cn = {
"frame.song_list": "歌曲列表",
"frame.download": "下载音乐",
"frame.playing_settings": "歌曲设置",
"frame.treasure_chest": "百宝箱",
"frame.about": "关于",
"frame.update_log": "_version_更新日志",
"frame.base_settings": "基本设置",
"frame.thanks": "鸣谢",
"frame.version_list": "版本列表",
"menu.homepage": "首页",
"menu.settings": "设置",
"menu.about": "关于",
"menu.versions": "开发版本",
"mbox.title.search_fail": "搜索失败",
"mbox.title.delete": "删除",
"mbox.title.delete_fail": "删除失败(▼ヘ▼#)",
"mbox.title.play_fail": "播放失败(▼ヘ▼#)",
"mbox.title.network_connection_fail": "联网失败(╥╯^╰╥)",
"mbox.title.save_settings": "保存设置",
"mbox.title.position_not_exist": "无效的目录",
"mbox.title.restart": "提示",
"mbox.title.joke_warning": "安全警告√(─皿─)√",
"mbox.title.joke_fail": "你的电脑可能会爆炸!",
"mbox.title.joke0": "窗口",
"mbox.title.update_reminding": "更新提示 - v_version_",
"mbox.title.update_start": "更新 - v_version_",
"mbox.title.update_fail": "更新失败(〒︿〒)",
"mbox.title.download_web": "即将进入下载页面",
"mbox.title.copy_pwd": "密码提示",
"mbox.text.search_fail": "没有搜索到你想要的结果~(╯°Д°)╯︵┻━┻",
"mbox.text.delete": "确定删除这首歌曲吗?",
"mbox.text.delete_fail_no_target": "请先选择你要删除的歌吧(•́へ•́╬)",
"mbox.text.delete_fail_no_permission": "源文件正在使用或无权限ヽ(#`Д´)ノ",
"mbox.text.delete_fail_not_found": "源文件不存在(╯°Д°)╯",
"mbox.text.play_fail_no_target": "请先选择你要听的歌吧(•́へ•́╬)",
"mbox.text.play_fail_not_found": "源文件不存在或暂时无法播放ヽ(#`Д´)ノ",
"mbox.text.play_fail_unrecognized_format": "文件_file_已损坏或该格式不支持o(╥﹏╥)o",
"mbox.text.network_connection_fail": "服务器连接失败╮(╯﹏╰)╭\n请检查网络设置或稍后再试吧~",
"mbox.text.save_settings": "是否保存设置?",
"mbox.text.position_not_exist": "当前目录不存在,请重新设置吧┓(;´_)┏",
"mbox.text.restart": "更改设置后需要重新启动程序!",
"mbox.text.joke_warning": "NFLmusic不会受责任于任何千万别点按钮,确定继续吗?",
"mbox.text.joke_fail": "别了NFL_jiancx十分害怕把你的电脑卡炸",
"mbox.text.joke0": "这是一个窗口",
"mbox.text.update_reminding": "检测到新版本,是否更新?\n\n_update_",
"mbox.text.update_latest": "当前已是最新版本(。◕ˇ∀ˇ◕)",
"mbox.text.update_fail": "请检查网络状况或稍后再试吧╮(╯﹏╰)╭",
"mbox.text.update_start_auto": "检测到新版本,即将为您更新!\n\n_update_",
"mbox.text.download_web": "是否进入_url_",
"mbox.text.copy_pwd": "文件密码:_pwd_已帮您复制到剪贴板",
"ui.download.text.song_name": "歌名:",
"ui.download.text.sound_quality": "音质:",
"ui.download.text.file_exists": "下载失败(悲已存在名为_filename_的文件...",
"ui.download.text.download_lyrics_success": "已补充下载该歌曲的歌词!",
"ui.download.text.download_success": "_singer_的_music_下载成功~",
"ui.download.text.download_fail_no_keys": "请先输入歌名再下载吧!!!∑(゚Д゚ノ)",
"ui.download.text.download_fail_no_choice": "请先选择歌曲再下载吧!!!∑(゚Д゚ノ)",
"ui.download.text.download_fail_no_permission": "暂无权限哦罒ω罒!!!请尝试更改下载目录\n或重启程序吧",
"ui.download.text.download_fail_no_network": "连接服务器失败 (>_<)!!! 请检查网络或稍后再试吧",
"ui.download.text.download_fail_file_not_found": "下载目录不存在哦!罒ω罒!!!∑(゚Д゚ノ)",
"ui.download.text.search_fail_not_found": "抱歉暂无版权哦 (*_*)!!! 切换音质再试试吧",
"ui.download.button.search": "搜索",
"ui.download.entry.song_name": "输入你想搜的...( ̄▽ ̄)/",
"ui.download.treeview.song": "歌名",
"ui.download.treeview.artist": "歌手",
"ui.download.treeview.album": "专辑",
"ui.settings.text.theme": "主题:",
"ui.settings.text.download_source": "下载源:",
"ui.settings.text.download_position": "下载目录:",
"ui.settings.text.auto_update": "自动更新:",
"ui.settings.text.language": "语言:",
"ui.settings.button.check_update": "检测更新",
"ui.settings.check_button.auto_update": "勾选后将会自动更新程序新版本",
"ui.settings.button.auto_play": "自动播放:",
"ui.settings.check_button.auto_play": "勾选后将会自动播放下一首歌",
"ui.about.text.information": "应用版本:_version_\n函数编写:NFL_jiancx\nGUI设计:AetherialCrane\n源码维护:NFL_jiancx\n问题测试与修复:AetherialCrane\n所属工作室:NFL工作室\n歌曲来源QQ,酷我,酷狗,网易云音乐\n请勿将从NFLmusic中下载的\n音频文件用于商业或盈利\n\n本应用遵循CC BY-NC-ND协议\n允许公开与传播,侵权必究!",
"ui.about.text.announcement": "公告:_announcement_",
"ui.about.text.starting_poem": [
"站在珠穆朗玛峰之巅,你未曾见过的——那最遥远的距离,并非光年之外, 而是网络未连接!",
"月亮下的对白,单纯的像小孩,你有好几次问我那是什么?这就是——没联网~",
"这个世界是什么模样?连接了网络才能揭晓~",
"原来连接了网络才能淹没了脆弱,你发誓更勇敢一生与梦相拥!",
"奔跑吧,骄傲的少年。年轻的心里面,是未联网的信念!",
"“网络是人类进步的阶梯”——NFL_jiancx",
"未知的读者,你好,当你看到这封信时,网络或许已经不在了...",
"互联网真是全世界最便捷的东西,可惜呀可惜,你没有...",
"如果你不想联网的话把NFLmusic作为一个播放器也可以~"
],
"ui.about.button.do_not_click": "千万别点",
"ui.playing.text.time_format": "正在播放_music_ %n/%a",
"ui.thanks.text.music_url": "音乐直链:",
"ui.thanks.text.random_poem": "随机诗句:",
"ui.thanks.text.file_store": "文件托管:",
"ui.thanks.text.bug_fix": "问题修复:",
"ui.thanks.text.sponsorship": "赞助我们:",
"ui.thanks.button.music_url": "OI API",
"ui.thanks.button.random_poem": "码云Gitee",
"ui.thanks.button.file_store": "南凤云盘",
"ui.thanks.button.bug_fix": "白鹤云中AetherialCrane",
"ui.thanks.button.sponsorship": "爱发电Afdian",
"ui.versions.text.current_version": "当前版本:_version_\nNFLmusic一路走来——\n从最初的“下载工具”到现在“功能兼备的APP”\n路上见证了无数风雨,见证了音乐界的兴衰...\nNFLmusic今后也会不断维护与开发并尽可能的提高用户体验~\n(在版本列表中,你可以选择双击版本编号以查看该版本的更新日志,右击列表以返回全版本日志)",
"ui.versions.treeview.version": "版本号",
"ui.versions.treeview.upload_time": "发布时间",
"ui.versions.treeview.update_brief": "更新简要",
"ui.update.text.download_update": "下载更新程序:",
"ui.update.text.download_app": "下载新版本:",
"ui.ads.jump_url": "访问广告主网站",
"ui.ads.close": "_time_秒后自动关闭广告"
}
#########################################################
en_us = {
"frame.song_list": "Song List",
"frame.download": "Download",
"frame.playing_settings": "Player Settings",
"frame.treasure_chest": "Treasure Chest",
"frame.about": "About",
"frame.update_log": "_version_Update Logs",
"frame.base_settings": "Settings",
"frame.thanks": "Thanks",
"frame.version_list": "Version List",
"menu.homepage": "Homepage",
"menu.settings": "Settings",
"menu.about": "About",
"menu.versions": "Version List",
"mbox.title.search_fail": "Search Failingly",
"mbox.title.delete": "Delete",
"mbox.title.delete_fail": "Delete Failingly(▼ヘ▼#)",
"mbox.title.play_fail": "Play Failingly(▼ヘ▼#)",
"mbox.title.network_connection_fail": "Network Error(╥╯^╰╥)",
"mbox.title.save_settings": "Save",
"mbox.title.position_not_exist": "Invalid Path",
"mbox.title.restart": "Tips",
"mbox.title.joke_warning": "Safety Warning!√(─皿─)√",
"mbox.title.joke_fail": "Your computer will explode!",
"mbox.title.joke0": "Window",
"mbox.title.update_reminding": "Update Reminding - v_version_",
"mbox.title.update_start": "Update - v_version_",
"mbox.title.update_fail": "Update Failed(〒︿〒)",
"mbox.title.download_web": "Approaching Download Page",
"mbox.title.copy_pwd": "Password Prompt",
"mbox.text.search_fail": "We couldn't find the results you were looking for(╯°Д°)╯︵┻━┻",
"mbox.text.delete": "Are you sure to delete this song?",
"mbox.text.delete_fail_no_target": "Please select the song you want to delete first(•́へ•́╬)",
"mbox.text.delete_fail_no_permission": "The source file is in use or does not have permissionヽ(#`Д´)ノ",
"mbox.text.delete_fail_not_found": "The source file does not exist(╯°Д°)╯",
"mbox.text.play_fail_no_target": "Please choose the song you want to listen to first(•́へ•́╬)",
"mbox.text.play_fail_not_found": "The source file does not exist or cannot be played temporarilyヽ(#`Д´)ノ",
"mbox.text.play_fail_unrecognized_format": "file _file_ is damaged or the format is not supported o(╥﹏╥)o",
"mbox.text.network_connection_fail": "Server connection failed╮(╯﹏╰)╭\nPlease check your network settings or try again later~",
"mbox.text.save_settings": "Do you want to save the settings?",
"mbox.text.position_not_exist": "The current directory does not exist, please reset it┓(;´_)┏",
"mbox.text.restart": "After changing the settings, the program needs to be restarted!",
"mbox.text.joke_warning": "NFLmusic will not take responsibility for the 'Do not click' button, are you sure to continue?",
"mbox.text.joke_fail": "Goodbye, NFL_jiancx is very afraid of blowing up your computer card",
"mbox.text.joke0": "This is a window",
"mbox.text.update_reminding": "Detected a new version, would you like to update it?\n\n_update_",
"mbox.text.update_latest": "The current version is already the latest version(。◕ˇ∀ˇ◕)",
"mbox.text.update_fail": "Please check the network status or try again later╮(╯﹏╰)╭",
"mbox.text.update_start_auto": "We have detected a new version and will update it for you soon!\n\n_update_",
"mbox.text.download_web": "Do you want to enter_url_?",
"mbox.text.copy_pwd": "File password:_pwd_, I have copied it to the clipboard for you!",
"ui.download.text.song_name": "Song Title:",
"ui.download.text.sound_quality": "Song Quality:",
"ui.download.text.file_exists": "Download failed (sadly, there is already a file named '_filename_'...",
"ui.download.text.download_lyrics_success": "The lyrics of the song have been added and downloaded!",
"ui.download.text.download_success": "_singer_'s_music_download successful~",
"ui.download.text.download_fail_no_keys": "Please enter the song name before downloading!!!∑(゚Д゚ノ)",
"ui.download.text.download_fail_no_choice": "Please select a song before downloading!!!∑(゚Д゚ノ)",
"ui.download.text.download_fail_no_permission": "No permission at the moment罒ω罒!!!Please try changing the download directory \nor restarting the program",
"ui.download.text.download_fail_no_network": "Failed to connect to server (>_<)!!! Please check the network or try again later",
"ui.download.text.download_fail_file_not_found": "The download directory does not exist!罒ω罒!!!∑(゚Д゚ノ)",
"ui.download.text.search_fail_not_found": "Sorry, there is currently no copyright available (* _ *)!!! Switch the sound quality and try again",
"ui.download.button.search": "search",
"ui.download.entry.song_name": "Enter what you want to search for...( ̄▽ ̄)/",
"ui.download.treeview.song": "Song Title",
"ui.download.treeview.artist": "Singer",
"ui.download.treeview.album": "Album",
"ui.settings.text.theme": "Theme:",
"ui.settings.text.download_source": "Download Source:",
"ui.settings.text.download_position": "Download Catalog:",
"ui.settings.text.auto_update": "Automatic Update:",
"ui.settings.text.language": "language:",
"ui.settings.button.check_update": "Detect Updates",
"ui.settings.check_button.auto_update": "Once checked, the program will automatically update to a new version",
"ui.settings.button.auto_play": "Automatic Play:",
"ui.settings.check_button.auto_play": "Once checked, the next song will automatically play",
"ui.about.text.information": "Application Version:_version_\nFunction Writing:NFL_jiancx\nGUI Design:AetherialCrane\nSource code Maintenance:NFL_jiancx\nProblem testing and Repair:AetherialCrane\nBelonging Studio:NFL Studios\nThe song originates from QQ,Kuwo,Kugou,Netease_Cloud music\nDo not use audio files downloaded from\nNFLmusic for commercial or profit purposes\n\nThis application follows the CC BY-NC-ND protocol\nPublic disclosure and dissemination are allowed, and infringement will be prosecuted!",
"ui.about.text.announcement": "Announcement:_announcement_",
"ui.about.text.starting_poem": [
"Standing at the top of Mount Everest, the farthest distance you have never seen - not light years away, but an unconnected network!",
"The dialogue under the moon, pure like a child, you have asked me several times what it is? This is - no internet connection~",
"What does this world look like? Only when connected to the network can it be revealed~",
"It turns out that only by connecting to the internet can we drown out vulnerability. You swear to be braver and embrace your dreams for the rest of your life!",
"Run, proud young man. In the hearts of young people, there are beliefs that are not connected to the internet!",
"'The internet is the ladder of human progress' - NFL_jiancx",
"Hello unknown reader, by the time you read this letter, the internet may no longer be available...",
"The Internet is the most convenient thing in the world. It's a pity that you don't have...",
"If you don't want to connect to the internet, NFLmusic can also be used as a player~"
],
"ui.about.button.do_not_click": "do not click",
"ui.playing.text.time_format": "Playing _music_ %n/%a",
"ui.thanks.text.music_url": "Music Direct Link:",
"ui.thanks.text.random_poem": "Random Verses:",
"ui.thanks.text.file_store": "File Hosting:",
"ui.thanks.text.bug_fix": "Problem Fix:",
"ui.thanks.text.sponsorship": "Sponsor Us:",
"ui.thanks.button.music_url": "OI API",
"ui.thanks.button.random_poem": "Code Cloud Gitee",
"ui.thanks.button.file_store": "Nanfect Cloud Drive",
"ui.thanks.button.bug_fix": "白鹤云中AetherialCrane",
"ui.thanks.button.sponsorship": "爱发电Afdian",
"ui.versions.text.current_version": "Current Version:_version_\nNFLmusic have walked all the way——\nFrom the initial 'download tool' to the current 'multi-functional app'\nWitnessed countless storms on the road, witnessed the rise and fall of the music industry\nNFLmusic will continue to maintain and develop in the future, and strive to improve user experience as much as possible~\n(In the version list, you can choose to double-click the version number to view the update logs for that version, or right-click the list to return the full version logs)",
"ui.versions.treeview.version": "Version Number",
"ui.versions.treeview.upload_time": "Release Time",
"ui.versions.treeview.update_brief": "Update Brief",
"ui.update.text.download_update": "Download the update program:",
"ui.update.text.download_app": "Download the new version:",
"ui.ads.jump_url": "Visit the advertiser's website",
"ui.ads.close": "Automatically close ads after _time_ seconds"
}