內容簡介
這個外掛會自動偵測並將正確的方向(RTL 或 LTR)應用於文章標題、內文和評論。
根據 WordPress 指出,支援使用從右到左(RTL)書寫的語言,只需要在另一個名為 rtl.css 的樣式表中覆寫所有水平定位屬性即可。
但這種解決方案只適用於您只有一個 RTL 部落格(或只有一個使用傳統 style.css 的 LTR 部落格)。
其中一種解決方案:我們會讓 WordPress 將相同的 style.css 樣式表套用於 RTL 和 LTR 的文章,這個外掛會根據文章的語言自動偵測以更正方向。
這只是我測試過 WordPress 預設佈景主題的測試版本,如果您有更複雜的 CSS,歡迎提供回饋。
外掛標籤
開發者團隊
原文外掛簡介
This plugin auto detects and apply the right direction (RTL or LTR) on post’s titles, bodies and comments.
According to WordPress, adding support for language written in a Right To Left (RTL) direction is just a matter of overwriting all the horizontal positioning attributes of your CSS stylesheet in a separate stylesheet file named rtl.css.
But this solution is working only when you have just an RTL blog (or just an LTR blog using the classical style.css).
One of solutions: We will let WordPress applying the same style.css to both of RTL/LTR posts and this plugin will automatically detect the post language to correct its direction.
It’s just a beta version that I tested with the WordPress default theme, please let me know your feedback with your own complexed css.
