Skip to content

Commit

Permalink
fixed github action update boost download url; hkuadmin, hkuserver 多语…
Browse files Browse the repository at this point in the history
…言支持更新
  • Loading branch information
fasiondog committed May 2, 2021
1 parent 754353e commit c2c9965
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: build_boost
run: |
cd ./hikyuu
wget https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2
wget https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2
tar -jxf boost_1_75_0.tar.bz2
cd boost_1_75_0
ls
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
git clone https://github.com/fasiondog/hikyuu.git --recursive --depth 1
- name: download_boost
run: |
Invoke-WebRequest "https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.zip" -UseBasicParsing -OutFile ./boost_1_75_0.zip
Invoke-WebRequest "https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.zip" -UseBasicParsing -OutFile ./boost_1_75_0.zip
Expand-Archive ./boost_1_75_0.zip -DestinationPath ./hikyuu
# Copy-Item ./boost_1_75_0 ./hikyuu
Expand Down
9 changes: 8 additions & 1 deletion hikyuu/admin/ServerApi/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-

from PyQt5 import QtCore

server_api_config = {"protocol": "http", "prefix": "hku", "version": "v1"}


Expand All @@ -10,8 +12,13 @@ def getServerApiUrl(host_url, service, api):


def defaultRequestHeader():
return {
header = {
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0",
"Accept-Encoding": "gzip, deflate, br"
}
loc = QtCore.QLocale()
if loc.language() == QtCore.QLocale.Chinese:
header["Accept-Language"] = "zh_CN"
print(header)
return header
Binary file modified hikyuu_cpp/hikyuu_server/i8n/zh_CN.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion hikyuu_cpp/hikyuu_server/i8n/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Hikyuu\n"
"POT-Creation-Date: 2021-05-03 01:44+0800\n"
"PO-Revision-Date: 2021-05-03 01:44+0800\n"
"PO-Revision-Date: 2021-05-03 01:53+0800\n"
"Last-Translator: \n"
"Language-Team: hikyuu.org\n"
"Language: zh_CN\n"
Expand Down

0 comments on commit c2c9965

Please sign in to comment.