<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/json-gettext/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 18:50:16 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/json-gettext/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何使用 Rust 编程语言实作出多国语言程序？</title><link>https://magiclen.org/cn/json-gettext/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
现在是个国际化的时代，软件程序如果能够支持多国语言，想必可以有效地加快传播速度。让软件程序拥有多国语言的能力有很多种方式，像是使用相依于操作系统环境本身所提供的 Locale 机制的工具，再搭配语言设置档，例如 GNU 的 gettext 工具搭配 PO 和 MO 档。或是使用能跨操作系统的独立函数库和语言设置档，例如 Fluent 搭配其定义好的特殊语法的语言设置档。当然也可以很单纯地在程序内将...]]></description><category>Rust</category><category>Rust</category><category>i18n</category><category>json-gettext</category><category>Rocket</category><guid>https://magiclen.org/cn/json-gettext</guid><pubDate>Sat, 20 Oct 2018 20:00:26 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>