usercache = {
    "language": "简体中文",
    "theme": "sandstone",
    "path": "./music",
    "br": {
        "QQ": "HQ高音质",
        "KUWO": "高品音质",
        "WANGYIYUN": "极高音质",
        "KUGOU": "高品音质",
        "JUHE": "默认音质"
    },
    "choice": "QQ",
    "auto_update": True,
    "playing_mode": 0,
    "auto_play": False
}

api_data = {
    "QQ": ["https://sdkapi.hhlqilongzhu.cn/api/QQmusic/",
           {
               "SQ无损": 1,
               "HQ高音质": 2,
               "标准音质": 10
           }
          ],
    "KUWO": ["https://sdkapi.hhlqilongzhu.cn/api/dgMusic_kuwo/",
             {
                 "无损音质": 1,
                 "高品音质": 2
             }
            ],
    "WANGYIYUN": ["https://sdkapi.hhlqilongzhu.cn/api/dgMusic_wyy",
                  {
                      "标准音质": 1,
                      "极高音质": 2,
                      "无损音质": 3,
                      "Hi-Res音质": 4,
                      "高清环绕声" :5,
                      "沉浸环绕声": 6,
                      "超清母带": 7
                  }
                 ],
    "KUGOU": ["https://sdkapi.hhlqilongzhu.cn/api/dgMusic_kugou/",
             {
                 "高品音质": 1
             }
            ],
    "JUHE": ["https://sdkapi.hhlqilongzhu.cn/api/juhe_dgmusic/",
             {
                 "默认音质": 1
             }
            ]
}


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问题测试与修复:NFL_jiancx\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": "南凤githook",
        "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 Failed",
        "mbox.title.delete": "Delete",
        "mbox.title.delete_fail": "Delete Failed(▼ヘ▼#)",
        "mbox.title.play_fail": "Play Failed(▼ヘ▼#)",
        "mbox.title.network_connection_fail": "Network Error(╥╯^╰╥)",
        "mbox.title.save_settings": "Save Settings",
        "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": "No results found~(╯°Д°)╯︵┻━┻",
        "mbox.text.delete": "Sure to delete this song?",
        "mbox.text.delete_fail_no_target": "Select the song to delete first(•́へ•́╬)",
        "mbox.text.delete_fail_no_permission": "File in use or no permissionヽ(#`Д´)ﾉ",
        "mbox.text.delete_fail_not_found": "File does not exist(╯°Д°)╯",
        "mbox.text.play_fail_no_target": "Select the song to listen to first(•́へ•́╬)",
        "mbox.text.play_fail_not_found": "File does not exist or can't play temporarilyヽ(#`Д´)ﾉ",
        "mbox.text.play_fail_unrecognized_format": "File _file_ is damaged or unsupported o(╥﹏╥)o",
        "mbox.text.network_connection_fail": "Server connection failed╮(╯﹏╰）╭\nCheck network settings or try again later~",
        "mbox.text.save_settings": "Save settings?",
        "mbox.text.position_not_exist": "Directory does not exist, reset it┓(;´_｀)┏",
        "mbox.text.restart": "Restart after changing settings!",
        "mbox.text.joke_warning": "NFLmusic won't be responsible for the 'Do not click' button, continue?",
        "mbox.text.joke_fail": "Goodbye, NFL_jiancx is afraid of blowing up your computer",
        "mbox.text.joke0": "This is a window",
        "mbox.text.update_reminding": "New version detected, update?\n\n_update_",
        "mbox.text.update_latest": "Already the latest version(｡◕ˇ∀ˇ◕)",
        "mbox.text.update_fail": "Check network or try again later╮(╯﹏╰）╭",
        "mbox.text.update_start_auto": "New version detected, updating soon!\n\n_update_",
        "mbox.text.download_web": "Enter _url_?",
        "mbox.text.copy_pwd": "File password:_pwd_, copied to clipboard!",

        "ui.download.text.song_name": "Song Title:",
        "ui.download.text.sound_quality": "Song Quality:",
        "ui.download.text.file_exists": "Download failed, file '_filename_' exists...",
        "ui.download.text.download_lyrics_success": "Lyrics downloaded!",
        "ui.download.text.download_success": "_singer_'s _music_ downloaded~",
        "ui.download.text.download_fail_no_keys": "Enter song name before downloading!!!∑(ﾟДﾟノ)ノ",
        "ui.download.text.download_fail_no_choice": "Select a song before downloading!!!∑(ﾟДﾟノ)ノ",
        "ui.download.text.download_fail_no_permission": "No permission, change directory or restart program",
        "ui.download.text.download_fail_no_network": "Failed to connect to server (>_<)!!! Check network or try again",
        "ui.download.text.download_fail_file_not_found": "Download directory does not exist!罒ω罒!!!∑(ﾟДﾟノ)ノ",
        "ui.download.text.search_fail_not_found": "No copyright available, switch quality and try again",
        "ui.download.button.search": "Search",
        "ui.download.entry.song_name": "Enter search term...(￣▽￣)/",
        "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": "Auto Update:",
        "ui.settings.text.language": "Language:",
        "ui.settings.button.check_update": "Check Updates",
        "ui.settings.check_button.auto_update": "Auto update to new version",
        "ui.settings.button.auto_play": "Auto Play:",
        "ui.settings.check_button.auto_play": "Auto play next song",
        "ui.about.text.information": "App Version:_version_\nFunction Writing:NFL_jiancx\nGUI Design:AetherialCrane\nSource Code Maintenance:NFL_jiancx\nProblem Testing & Repair:NFL_jiancx\nStudio:NFL Studios\nSongs from QQ, Kuwo, Kugou, Netease Cloud Music\nDo not use downloaded files for commercial purposes\n\nFollows CC BY-NC-ND protocol\nPublic disclosure and dissemination allowed, infringement will be prosecuted!",
        "ui.about.text.announcement": "Announcement:_announcement_",
        "ui.about.text.starting_poem": [
            "At Everest, the farthest distance is not light years, but no internet!",
            "Under the moon, like a child, you asked what it is? It's - no internet~",
            "The world is revealed only when connected to the internet~",
            "Connecting to the internet drowns vulnerability. You swear to be braver and embrace dreams for life!",
            "Run, proud young man. In young hearts, 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, the internet may be gone...",
            "The internet is the most convenient thing, but you don't have...",
            "If you don't want to connect, 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": "Nanfect Githook",
        "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 has evolved from a 'download tool' to a 'multi-functional app'\nWitnessed storms and the rise and fall of the music industry\nNFLmusic will continue to maintain and improve user experience~\n(Double-click version number for update logs, right-click for full 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 update program:",
        "ui.update.text.download_app": "Download new version:",
        "ui.ads.jump_url": "Visit advertiser's website",
        "ui.ads.close": "Close ads after _time_ seconds"
    }
