Skip to content

Commit

Permalink
Site updated: 2023-11-05 21:49:03
Browse files Browse the repository at this point in the history
  • Loading branch information
Syize committed Nov 5, 2023
1 parent c87cc60 commit 2acacbc
Show file tree
Hide file tree
Showing 20 changed files with 1,071 additions and 123 deletions.
14 changes: 14 additions & 0 deletions 2023/10/20/asymmetrical-colormap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@ <h2 id="解决思路"><a href="#解决思路" class="headerlink" title="解决
<div class="nav">
<div class="nav__prev">

<a href="/2023/11/05/pyqt-translation/" class="nav__link">
<div>
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M589.088 790.624L310.464 512l278.624-278.624 45.248 45.248L400.96 512l233.376 233.376z" fill="#808080"></path></svg>
</div>
<div>
<div class="nav__label">
Previous Post
</div>
<div class="nav__title">
PyQt中的国际化问题
</div>
</div>
</a>

</div>
<div class="nav__next">

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
467 changes: 467 additions & 0 deletions 2023/11/05/pyqt-translation/index.html

Large diffs are not rendered by default.

277 changes: 277 additions & 0 deletions archives/2023/11/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">



<!-- 渲染优化 -->
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="HandheldFriendly" content="True" >
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<!--icon-->


<link rel="shortcut icon" href="/images/favicon.ico">







<!-- meta -->


<title>Archive: 2023/11 | Syize の blog</title>





<!-- OpenGraph -->

<meta property="og:type" content="website">
<meta property="og:title" content="Syize の blog">
<meta property="og:url" content="https://blog.syize.cn/archives/2023/11/index.html">
<meta property="og:site_name" content="Syize の blog">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="Syize">
<meta name="twitter:card" content="summary_large_image">



<link rel="stylesheet" href="/css/style/main.css">








<link rel="stylesheet" href="/css/style/dark.css">


<script src="/js/darkmode.js"></script>





<!-- custom head -->

<meta name="generator" content="Hexo 5.4.2"></head>

<body>
<div id="app" tabindex="-1">
<header class="header">
<div class="header__left">
<a href="/" class="button">
<span class="logo__text">Syize の blog</span>
</a>
</div>
<div class="header__right">

<div class="navbar__menus">

<a href="/" class="navbar-menu button">home</a>

<a href="/tags/" class="navbar-menu button">tags</a>

<a href="/archives/" class="navbar-menu button">archives</a>

<a href="/categories/" class="navbar-menu button">categories</a>

<a href="/about/" class="navbar-menu button">about</a>

<a href="/friend/" class="navbar-menu button">links</a>

</div>






<a href="javaScript:void(0);" id="btn-toggle-dark">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
</a>



<a class="dropdown-icon button" id="btn-dropdown" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width='24' height='24' fill="none" stroke="currentColor" stroke-width="0.7" stroke-linecap="round" stroke-linejoin="round"><path fill="currentColor" d="M3.314,4.8h13.372c0.41,0,0.743-0.333,0.743-0.743c0-0.41-0.333-0.743-0.743-0.743H3.314c-0.41,0-0.743,0.333-0.743,0.743C2.571,4.467,2.904,4.8,3.314,4.8z M16.686,15.2H3.314c-0.41,0-0.743,0.333-0.743,0.743s0.333,0.743,0.743,0.743h13.372c0.41,0,0.743-0.333,0.743-0.743S17.096,15.2,16.686,15.2z M16.686,9.257H3.314c-0.41,0-0.743,0.333-0.743,0.743s0.333,0.743,0.743,0.743h13.372c0.41,0,0.743-0.333,0.743-0.743S17.096,9.257,16.686,9.257z"></path></svg></a>
<div class="dropdown-menus" id="dropdown-menus">

<a href="/" class="dropdown-menu button">home</a>

<a href="/tags/" class="dropdown-menu button">tags</a>

<a href="/archives/" class="dropdown-menu button">archives</a>

<a href="/categories/" class="dropdown-menu button">categories</a>

<a href="/about/" class="dropdown-menu button">about</a>

<a href="/friend/" class="dropdown-menu button">links</a>

</div>

</div>
</header>


<div class="cover">
<div class="cover__logo">

<img no-lazy alt="author Image" class="cover__avatar" src="/images/avatar.png">

</div>


<div class="cover__intro">
<p>欲望大过了能力,由此产生了焦虑</p>

</div>

</div>


<main class='main'>


<div class="post-list">


<div class='post-entry content-card'>
<div class="post-entry__header"></div>
<div class="post-entry__content">
<h2 class="post-entry__title">
PyQt中的国际化问题
</h2>

<p>最近自己搞的海雾识别可视化界面已经基本完善可用了,唯一的不足就是没有弄国际化。因为网上有关 PyQt 国际化的示例实在是太不全了,方法五花八门,甚至连 Stack Overflow 上都没有很好的解决方法。经过自己的不断搜索,以及阅读 PyQt 上的手册,终于搞明白了 PyQt5 和 PyQt6 两个版本 PyQt 国际化的方法。</p>
<img src="/2023/11/05/pyqt-translation/image-20231105205151967.png" class="" alt="image-20231105205151967">

</div>
<div class="post-entry__meta">
<a href="/archives/2023/11/" class="post-meta__date button">2023-11-05</a>

<span class="separate-dot"></span><a href="/categories/Python/" class="button">Python</a>


</div>
<div class="post-entry__tags"><a href="/tags/Python/" class="post-tags__link button"># Python</a><a href="/tags/PyQt/" class="post-tags__link button"># PyQt</a></div>
<a href="/2023/11/05/pyqt-translation/" class="post-entry__link">PyQt中的国际化问题</a>
</div>


</div>




</main>

<footer class="footer">











<p class="footer-copyright">
Copyright © 2021&nbsp;-&nbsp;2023 <a href="/">Syize の blog</a>
</p>


<p>Powered by <a href="https://hexo.io" target="_blank">Hexo</a> | Theme - <a href="https://github.com/ChrAlpha/hexo-theme-cards" target="_blank">Cards</a></p>
</footer>

</div>
























<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>


<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css">


<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js"></script>

<script>
let lazyloadT = Boolean('false'),
auto_fancybox = Boolean('false')
if (auto_fancybox) {
$(".post__content").find('img').each(function () {
var element = document.createElement("a");
$(element).attr("data-fancybox", "gallery");
$(element).attr("href", $(this).attr("src"));
if (lazyloadT) {
$(element).attr("href", $(this).attr("data-srcset"));
}
$(this).wrap(element);
});
} else {
$(".post__content").find("fancybox").find('img').each(function () {
var element = document.createElement("a");
$(element).attr("data-fancybox", "gallery");
$(element).attr("href", $(this).attr("src"));
if (lazyloadT) {
$(element).attr("href", $(this).attr("data-srcset"));
}
$(this).wrap(element);
});
}
</script>







<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js'></script>
<script>
mermaid.initialize(JSON.stringify(''));
</script>







</body>
</html>
22 changes: 22 additions & 0 deletions archives/2023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,28 @@
<div class="post-list">


<div class='post-entry content-card'>
<div class="post-entry__header"></div>
<div class="post-entry__content">
<h2 class="post-entry__title">
PyQt中的国际化问题
</h2>

<p>最近自己搞的海雾识别可视化界面已经基本完善可用了,唯一的不足就是没有弄国际化。因为网上有关 PyQt 国际化的示例实在是太不全了,方法五花八门,甚至连 Stack Overflow 上都没有很好的解决方法。经过自己的不断搜索,以及阅读 PyQt 上的手册,终于搞明白了 PyQt5 和 PyQt6 两个版本 PyQt 国际化的方法。</p>
<img src="/2023/11/05/pyqt-translation/image-20231105205151967.png" class="" alt="image-20231105205151967">

</div>
<div class="post-entry__meta">
<a href="/archives/2023/11/" class="post-meta__date button">2023-11-05</a>

<span class="separate-dot"></span><a href="/categories/Python/" class="button">Python</a>


</div>
<div class="post-entry__tags"><a href="/tags/Python/" class="post-tags__link button"># Python</a><a href="/tags/PyQt/" class="post-tags__link button"># PyQt</a></div>
<a href="/2023/11/05/pyqt-translation/" class="post-entry__link">PyQt中的国际化问题</a>
</div>

<div class='post-entry content-card'>
<div class="post-entry__header"></div>
<div class="post-entry__content">
Expand Down
20 changes: 20 additions & 0 deletions archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,26 @@ <h3 class="archives-year">2023</h3>
</div>
</div>

<div class="archives-item">
<div class="archives-left">
<div class="archives-icon">

</div>
</div>
<span class="archives-content">
11-05
&nbsp;
<a href="/2023/11/05/pyqt-translation/">
<span class="archives-title">

PyQt中的国际化问题

</span>
</a>
<br><br>
</span>
</div>

<div class="archives-item">
<div class="archives-left">
<div class="archives-icon">
Expand Down
20 changes: 20 additions & 0 deletions archives/page/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,26 @@ <h3 class="archives-year">2023</h3>
</div>
</div>

<div class="archives-item">
<div class="archives-left">
<div class="archives-icon">

</div>
</div>
<span class="archives-content">
11-05
&nbsp;
<a href="/2023/11/05/pyqt-translation/">
<span class="archives-title">

PyQt中的国际化问题

</span>
</a>
<br><br>
</span>
</div>

<div class="archives-item">
<div class="archives-left">
<div class="archives-icon">
Expand Down
Loading

0 comments on commit 2acacbc

Please sign in to comment.