How to Easily Create a Multilingual WordPress Site
透過 wordpress 寫多國語言的網站還滿簡單的耶。
裝好外掛後,要先新增語言(Langages)。
由於 zh_TW, zh_CN 預設用的程式碼都是 zh, 不能2個都用zh, 所以我改用 tw 和 cn, 理論上用 chs / cht 也不錯。
翻譯一些字串:
翻譯文章:
編輯文章的介面,會多一個 Languages 區塊:
最後一個步驟,把語言切換按鈕放進畫面裡,理論上這一步可以省略,可以改用自行輸入的文字區塊的 widgets 加到想要區塊,裡面固定連到某一個語言的首頁。
資料來源:
相關推薦
How to Easily Create a Multilingual WordPress Site
透過 wordpress 寫多國語言的網站還滿簡單的耶。 裝好外掛後,要先新增語言(Langages)。 由於 zh_TW, zh_CN 預設用的程式碼都是 zh, 不能2個都用zh, 所以我改用 tw 和 cn, 理論上用 chs / cht 也不錯。 翻譯一些字串: 翻譯文章: 編輯文
(轉載)How to create a mobile WordPress theme with jQuery Mobile
Last month, jQuery Mobile was released. This tool allows you to easily create mobile websites and web apps. In this tutorial, I’ll show
How To Connect Using A Sqlplus Preliminary Connect
sqlplus -prelim / aAPPLIES TO:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.1.0.2 [Release 10.2 to 12.1]Information in this document applie
How to forcefully delete a daemonset or a pod in kubernetes cluster
I have setup a kubernetes cluster which is working fine. I created deployment with type as daemonset which then created few p
How to check if a string contains only digits in Java
Try String regex = "[0-9]+"; or String regex = "\\d+"; As per Java regular expressions, the + means “one or more times” and \d means “a digit”. Note: the
[java] How to test if a remote system is reachable
Programatically using ICMP Ping is a great way to establish that a server is up and running. Previously you couldn’t do ICMP ping (what ping command does
How do you create a dictionary in Java?
用習慣python的 dictionary, 到其他程式語言也會想要用一下。 You’ll want a Map<String, String>. Classes that implement the Map interface include (but are not limited to)
How to Disable Directory Browsing in WordPress
發現,預設的apache 引數是允許瀏覽目錄的,修改方法是到 /etc/apache2/sites-available/ 目錄下,把自己的網站增加下面紅字部份的引數: <Directory /var/www/html/> Options -Indexes AllowOverride All &l
How would I create a UIAlertView in Swift?
let Msg:String = "Hello" let alert = UIAlertController(title: "Alert", message: Msg, preferredStyle: UIAlertControllerStyle.alert) alert.addActi
How to go from a Blockchain Tourist to a Blockchain Citizen: Beyond the Hype
How to go from a Blockchain Tourist to a Blockchain Citizen: Beyond the HypeHow to go from a Blockchain Tourist to a Blockchain CitizenBlockchain tourism a
Ethereum 69: how to set up a fully synced blockchain node in 10 mins
Wait for few hours until the blockchain is fully synced.The current block number as of 24th of September is: 3039786. On my AMD Ryzen 5 2600, 3.4Ghz, the s
How to Effectively Run a Chatbot Development Project?
In our last story, we went over the 7 key factors to consider before choosing a Chatbot Development Platform. Between selecting a particular use-case, choo
How to code like a Hacker in the terminal
How to code like a Hacker in the terminalYou are a hacker. Your home is the terminal. You know every key stroke is valuable. If something is less than 100%
How to Slack smarter? — a UX case study
Phase One: Understanding the ProductSlack (short for Searchable Log of All Communication and Knowledge) started out as an internal communication tool used
How to look like a checkbox but sound like a switch
Here at Airtasker, we’re always looking for ways to build an inclusive, educational and empowering community marketplace — including users dependant on acc
Ask HN: How to contribute towards a sustainable society as a software engineer
I'm passionate about sustainability and am considering going to 80% time at work so I have one day a week to devote to problems around growth/environment.H
How To Work Through A Problem Like A Data Scientist
Tweet Share Share Google Plus In a 2010 post Hilary Mason and Chris Wiggins described the OSEMN
How to Work Through a Regression Machine Learning Project in Weka Step
Tweet Share Share Google Plus The fastest way to get good at applied machine learning is to prac
How To Work Through a Multi
Tweet Share Share Google Plus The Weka machine learning workbench is so easy to use that working
How To Work Through a Binary Classification Project in Weka Step
Tweet Share Share Google Plus The fastest way to get good at applied machine learning is to prac