LoginSignup
3
2

More than 5 years have passed since last update.

[iOS] ステッカー名を変更する(ローカライズ対応)

Posted at

「言語によってステッカー名を切り替えたい」人向け

☆「sample」というプロジェクト名を前提とします。

  • 「InfoPlist.string」という名称のString Fileを追加する。TargetsのStickerPackExtensionにチェックを入れること。

スクリーンショット 2016-10-06 12.58.33.png

  • InfoPlist.stringを選択し、Utilities > File inspector > Localization のLocalize...を押下する。

スクリーンショット 2016-10-06 13.05.14.png


スクリーンショット 2016-10-06 13.05.26.png

  • sample > sample > Locallizationsにローカライズしたい言語を追加する。

スクリーンショット 2016-10-06 13.09.48.png


スクリーンショット 2016-10-06 13.10.18.png

  • それぞれのInfoPlist.stringに以下を追加する。

CFBundleDisplayName = "この言語で表示したいステッカー名"

スクリーンショット 2016-10-06 13.18.00.png


スクリーンショット 2016-10-06 13.18.14.png

  • sample > StickerPackExtension > Info にApplication has loclized display nameを追加し、ValueをYESにする。

スクリーンショット 2016-10-06 13.27.41.png

  • 実行結果(English)
    Simulator Screen Shot 2016.10.06 13.30.28.png

  • 実行結果(日本語)
    Simulator Screen Shot 2016.10.06 13.33.10.png

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2