From 7e22d6132881b712ca1e87957185044ae4f81d55 Mon Sep 17 00:00:00 2001 From: lean Date: Mon, 6 Apr 2020 15:16:51 +0800 Subject: [PATCH] luci-app-music-remote-center: add zh-cn and fix path settings --- .../luci-app-music-remote-center/Makefile | 2 +- .../po/zh-cn/forked-daapd.po | 51 +++++-------------- .../root/etc/init.d/forked-daapd | 4 +- 3 files changed, 17 insertions(+), 40 deletions(-) diff --git a/package/lean/luci-app-music-remote-center/Makefile b/package/lean/luci-app-music-remote-center/Makefile index a0b835910237f3..e99a3161de3806 100644 --- a/package/lean/luci-app-music-remote-center/Makefile +++ b/package/lean/luci-app-music-remote-center/Makefile @@ -10,7 +10,7 @@ LUCI_TITLE:=Luci for Music Remote Center LUCI_DEPENDS:=+alsa-utils +forked-daapd LUCI_PKGARCH:=all PKG_VERSION:=1 -PKG_RELEASE:=1 +PKG_RELEASE:=3 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/package/lean/luci-app-music-remote-center/po/zh-cn/forked-daapd.po b/package/lean/luci-app-music-remote-center/po/zh-cn/forked-daapd.po index 973fa31ca0f5f2..58309d554ed561 100644 --- a/package/lean/luci-app-music-remote-center/po/zh-cn/forked-daapd.po +++ b/package/lean/luci-app-music-remote-center/po/zh-cn/forked-daapd.po @@ -13,47 +13,24 @@ msgstr "" "X-Generator: Poedit 1.8.1\n" "X-Poedit-SourceCharset: UTF-8\n" -msgid "AirPlay 2 Receiver" -msgstr "AirPlay 2 音频接收器" +msgid "Music Remote Center" +msgstr "PCHiFi 数字转盘遥控" -msgid "Respawn" -msgstr "进程守护" +msgid "Open Web Interface" +msgstr "打开 Web 管理界面" -msgid "Apple AirPlay 2 Receiver" -msgstr "Apple AirPlay 2 无损音频接收服务器" +msgid "Music Remote Center is a DAAP (iTunes Remote), MPD (Music Player Daemon) and RSP (Roku) media server." +msgstr "PCHiFi 数字转盘遥控是一个基于 DAAP (iTunes Remote), MPD (Music Player Daemon) 和 RSP (Roku) media server 的服务器端播放器
后端输出支持 路由器本机声卡输出 /Airplay/ Chromecast" -msgid "Apple AirPlay 2 Receiver is a simple AirPlay server implementation" -msgstr "Apple AirPlay 2 是一个强大易用的无损音频服务器( iOS/MacOSX 原生支持)" +msgid "Database File Path" +msgstr "数据库文件路径" -msgid "Airport Name" -msgstr "音频接收器名称" +msgid "Music Directorie Path" +msgstr "音频文件文件夹路径" -msgid "Password Auth" -msgstr "开启密码认证" +msgid "Readme" +msgstr "使用须知" -msgid "Interpolation" -msgstr "音频重采样" +msgid "About iOS Remote Pairing:
1. Open the web interface
2. Start iPhone Remote APP, go to Settings, Add Library
3. Enter the pair code in the web interface" +msgstr "关于 iOS 设备匹配:
1. 先打开 Web 管理界面,在 Setting 里面找到 Remotes & Outputs
2. 安装 iTunes 遥控器, 点击 手动连接,获取匹配码
3. 在 Remote Pairing 输入刚才获取的匹配码即可" -msgid "Internal Basic Resampler" -msgstr "内置" - -msgid "High quality SoX Resampler" -msgstr "高质量 SoX 采样器(需要强力的CPU)" - -msgid "Alsa Output Device" -msgstr "音频输出设备" - -msgid "Alsa Mixer Control Name" -msgstr "硬件音量控制器名称" - -msgid "1st Soundcard" -msgstr "第 1 张声卡" - -msgid "2nd Soundcard" -msgstr "第 2 张声卡" - -msgid "Alsa Output Rate" -msgstr "音频输出采样率" - -msgid "Alsa Buffer Length" -msgstr "音频缓冲区长度" diff --git a/package/lean/luci-app-music-remote-center/root/etc/init.d/forked-daapd b/package/lean/luci-app-music-remote-center/root/etc/init.d/forked-daapd index 1c8d75d62611aa..980ad7976f08e8 100755 --- a/package/lean/luci-app-music-remote-center/root/etc/init.d/forked-daapd +++ b/package/lean/luci-app-music-remote-center/root/etc/init.d/forked-daapd @@ -22,7 +22,7 @@ gen_config_file() { cat <<-EOF >/var/etc/forked-daapd.conf general { uid = "root" - db_path = "/opt/forked-daapd-songs3.db" + db_path = "$(uci_get_by_type forked-daapd db_path)" logfile = "/var/log/forked-daapd.log" loglevel = log ipv6 = no @@ -59,6 +59,6 @@ stop() { restart() { stop - sleep 2 + sleep 3 start }