Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
makeding committed Sep 27, 2024
1 parent bda8f17 commit eb97d68
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 32 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@ name: Build package for luci-app-fleth

on:
push:
tags:
- '*'
branches:
- master
- test-ci
jobs:
build:
name: Generic build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Fetch luci-app-fleth code
uses: actions/checkout@v4
with:
path: 'huggy/luci-app-fleth'
- uses: actions/checkout@v4
- name: Fetch po2lmo code
uses: actions/checkout@v4
with:
repository: 'openwrt-dev/po2lmo'
ref: 'db656750ab032f3056d329c5e727a10af9ba15dd'
path: 'huggy/luci-app-fleth/po2lmo'
- name: 'Make po2lmo'
- name: 'Make po2lmo binary'
run: 'cd $GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo && make'
- name: 'Manual convert i18n file'
- name: 'Manual convert i18n(lmo) file'
run: |
mkdir -p $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n
$GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo/src/po2lmo $GITHUB_WORKSPACE/huggy/luci-app-fleth/po/ja/fleth.po $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n/fleth.ja.lmo
$GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo/src/po2lmo $GITHUB_WORKSPACE/huggy/luci-app-fleth/po/zh_Hans/fleth.po $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n/fleth.zh_Hans.lmo
$GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo/src/po2lmo $GITHUB_WORKSPACE/huggy/luci-app-fleth/po/zh_Hant/fleth.po $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n/fleth.zh_Hant.lmo
- name: Build
uses: openwrt/gh-action-sdk@main
Expand All @@ -34,4 +41,11 @@ jobs:
NO_REFRESH_CHECK: true
- uses: actions/upload-artifact@v4
with:
path: bin/packages/x86_64/huggy/
path: bin/packages/x86_64/huggy/
- name: 'Remove i18n ipk'
run: rm -fr $GITHUB_WORKSPACE/bin/packages/x86_64/huggy/luci-app-fleth*git*.ipk
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: bin/packages/x86_64/huggy/
2 changes: 1 addition & 1 deletion po/ja/fleth.po
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ msgid "Available ports"
msgstr "利用可能なポート"

msgid "Auto Configure tunnel Interface"
msgstr "トンネルインターフェースをの自動的に設定"
msgstr "トンネル インターフェースをの自動的に設定"

msgid "Auto Add IPv6 PD in IPv6 Interface"
msgstr "IPv6 インターフェースに IPv6 PD を自動的に追加"
Expand Down
52 changes: 26 additions & 26 deletions po/en/fleth.po → po/zh_Hans/fleth.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,79 @@ msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"

msgid "Flet'h Configuration"
msgstr "Flet'h Configuration"
msgstr "Flet'h 配置"

msgid "Flet'h is a helper that can configure your IPv4 over IPv6 tunnel automatically."
msgstr "Flet'h is a helper that can configure your IPv4 over IPv6 tunnel automatically."
msgstr "Flet'h 是一个可以自动配置您的 IPv4 over IPv6 隧道的助手。"

msgid "Area"
msgstr "Area"
msgstr "区域"

msgid "EAST"
msgstr "EAST"
msgstr "东日本"

msgid "WEST"
msgstr "WEST"
msgstr "西日本"

msgid "DS-Lite Provider"
msgstr "DS-Lite Provider"
msgstr "DS-Lite 提供商"

msgid "UNKNOWN"
msgid "UNKNOWN"
msgstr "未知"

msgid "MAP-E Provider"
msgstr "MAP-E Provider"
msgstr "MAP-E 提供商"

msgid "IP Address"
msgstr "IP Address"
msgstr "IP 地址"

msgid "Peer Address"
msgstr "Peer Address"
msgstr "对端地址"

msgid "IPv4 prefix"
msgstr "IPv4 prefix"
msgstr "IPv4 前缀"

msgid "IPv4 Prefix Length"
msgstr "IPv4 Prefix Length"
msgstr "IPv4 前缀长度"

msgid "IPv6 Prefix"
msgstr "IPv6 Prefix"
msgstr "IPv6 前缀"

msgid "IPv6 Prefix Length"
msgstr "IPv6 Prefix Length"
msgstr "IPv6 前缀长度"

msgid "EA Length"
msgstr "EA Length"
msgstr "EA 长度"

msgid "PSID Length"
msgstr "PSID Length"
msgstr "PSID 长度"

msgid "Offset"
msgstr "Offset"
msgstr "偏移量"

msgid "Available ports"
msgstr "Available ports"
msgstr "可用端口"

msgid "Auto Configure tunnel Interface"
msgstr "Auto Configure tunnel Interface"
msgstr "自动配置隧道接口"

msgid "Auto Add IPv6 PD in IPv6 Interface"
msgstr "Auto Add IPv6 PD in IPv6 Interface"
msgstr "IPv6 接口中自动添加 IPv6 PD"

msgid "We recommend enabling it in MAP-E and when not using Hikari Denwa."
msgstr "We recommend enabling it in MAP-E and when not using Hikari Denwa."
msgstr "我们建议您在 MAP-E 并且在不使用光电话时中启用此选项。"

msgid "IPv6 Interface"
msgstr "IPv6 Interface"
msgstr "IPv6 接口"

msgid "Uplink interface"
msgstr "Uplink interface"
msgstr "上行接口"

msgid "Tunnel Interface"
msgstr "Tunnel Interface"
msgstr "隧道接口"

msgid "Tunnel Interface MTU"
msgstr "Tunnel Interface MTU"
msgstr "隧道接口 MTU"

msgid "We recommend setting MTU to 1460 in MAP-E and DS-Lite."
msgstr "We recommend setting MTU to 1460 in MAP-E and DS-Lite."
msgstr "我们建议在 MAP-E DS-Lite 中将 MTU 设置为 1460。"
80 changes: 80 additions & 0 deletions po/zh_Hant/fleth.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"

msgid "Flet'h Configuration"
msgstr "Flet'h 設定"

msgid "Flet'h is a helper that can configure your IPv4 over IPv6 tunnel automatically."
msgstr "Flet'h 是一個可以自動配置您的 IPv4 over IPv6 隧道的助手。"

msgid "Area"
msgstr "區域"

msgid "EAST"
msgstr "東日本"

msgid "WEST"
msgstr "西日本"

msgid "DS-Lite Provider"
msgstr "DS-Lite 提供商"

msgid "UNKNOWN"
msgstr "未知"

msgid "MAP-E Provider"
msgstr "MAP-E 提供商"

msgid "IP Address"
msgstr "IP 地址"

msgid "Peer Address"
msgstr "對端地址"

msgid "IPv4 prefix"
msgstr "IPv4 前綴"

msgid "IPv4 Prefix Length"
msgstr "IPv4 前綴長度"

msgid "IPv6 Prefix"
msgstr "IPv6 前綴"

msgid "IPv6 Prefix Length"
msgstr "IPv6 前綴長度"

msgid "EA Length"
msgstr "EA 長度"

msgid "PSID Length"
msgstr "PSID 長度"

msgid "Offset"
msgstr "偏移量"

msgid "Available ports"
msgstr "可用端口"

msgid "Auto Configure tunnel Interface"
msgstr "自動配置隧道介面"

msgid "Auto Add IPv6 PD in IPv6 Interface"
msgstr "在 IPv6 介面中自動添加 IPv6 PD"

msgid "We recommend enabling it in MAP-E and when not using Hikari Denwa."
msgstr "我們建議在 MAP-E 中啟用此選項,並且在不使用光電話時使用。"

msgid "IPv6 Interface"
msgstr "IPv6 介面"

msgid "Uplink interface"
msgstr "上行介面"

msgid "Tunnel Interface"
msgstr "隧道介面"

msgid "Tunnel Interface MTU"
msgstr "隧道介面 MTU"

msgid "We recommend setting MTU to 1460 in MAP-E and DS-Lite."
msgstr "我們建議在 MAP-E 和 DS-Lite 中將 MTU 設置為 1460。"

0 comments on commit eb97d68

Please sign in to comment.