鈍足ランナーのIT日記

走るのが好きな5流のITエンジニアのブログ。

趣味の範囲は広いけど、どれも中途半端なクソブロガー楽しめるWebアプリを作ってあっと言わせたい。サーバーサイドPerl(Mojolicious)、クライアントサイドVue.js。Arduinoにも触手を伸ばす予定。

Andoroidの国際化

stringsに登録すればよさげ、values-enなどに翻訳したstringsを格納すればいいのか。

f:id:kechiya:20140827055546p:plain

    <TextView
        android:text="@string/hello_world"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

でも、こんな感じでhello_worldを参照してあげれば適切なロケールの文字列が表示されるのか。 なるほど。