IOS solves the problem of pushing local internationalization Loc-key localization failure _ios

Source: Internet
Author: User

Body

First, prepare

Push Local International official documents:

{"APS": {"alert": {"title": "Shou", "Loc-key": "Notification_push_live", "Loc-args":
["over140", "Broadcast test"] }, "badge": 0, "sound": "Default", "Content-available": 1}}

Nwpusher Test Push content:

Write in En.lproj/localizable.strings (System language default English):

"Notification_push_live" = ": Space_invader:%@ is broadcasting%@";

Ii. Issues

After receiving the push, the body directly shows the notification_push_live , which indicates that the internationalization failed without finding the string.

  Iii. Reasons & Solutions

found that the project has an empty base.lproj/localizable.strings , there is nothing in it, the project was created and not deleted.

--Delete The good,,, another test, if the language is not supported by default will be English

The above is an introduction to the internationalization of iOS development, hope to help develop iOS program friends.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.