apple / apple/unityplugins

Arguments for Push Message localisation in SendExchange do not seem to work

Đang mở
#98 2 bình luận 0 reaction 1 người được giao Được @ryzngard nhận Xem trên GitHub
bug Plug-in - GameKit
Ngôn ngữ chính
C#
Star
982
Fork
248
Merge trung bình
6 ngày 12 giờ
Pull request đã merge (30 ngày)
2

Mô tả

Sending an Exchange with the `GKTurnBasedMatch.SendExchange` method with a localisation key that is set in the Localizable.strings and one or more arguments leads to a push message that only displays the localisation key (in my example LC_PushMsg_MatchEnded). If the message does not contain arguments the push message is correctly localized and displayed.

Example of localizable.strings entry with one argument to be replaced:

`"LC_PushMsg_MatchEnded" = "The match has ended. The winner is %@";`

I also tried

`"LC_PushMsg_MatchEnded" = "The match has ended. The winner is %1$@";`

I even added a log to the swift file to make sure that exactly one argument is passed to the native SendExchange method (for this example) and the call seems to have the right argument.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.