<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmurakam</author_name>
  <author_url>https://blog.hatena.ne.jp/tmurakam/</author_url>
  <blog_title>むらかみの雑記帳</blog_title>
  <blog_url>https://tmurakam.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>故あって、Bash スクリプトの国際化などをやっていたりする。Bash 自体に国際化の機能 (gettext) が組み込まれているので、割と簡単ではある。大きな作業としては、国際化したい文字列を &quot;&quot; で囲むところを $&quot;&quot; などに変更すればよい。(セキュリティ上は $&quot;&quot; は使うべきではないらしい)そして、スクリプトを gettext に食わせて .po ファイルを作り、翻訳して .mo ファイルを作ればよい。あと、TEXTDOMAIN の設定とかいろいろすれば完了である。しかし、bash のバージョンとか gettext のバージョンとかの差異でいろいろ動かんこともある。困ったものだ。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmurakam.hatenablog.com%2Fentry%2F20060828%2F1156735736&quot; title=&quot; Bash スクリプトの国際化 - むらかみの雑記帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-08-28 12:28:56</published>
  <title> Bash スクリプトの国際化</title>
  <type>rich</type>
  <url>https://tmurakam.hatenablog.com/entry/20060828/1156735736</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
