apple / apple/unityplugins

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

オープン
#98 コメント 2 件 リアクション 0 件 担当者 1 名 @ryzngard が担当を希望しています GitHub で見る
bug Plug-in - GameKit
主要言語
C#
スター
982
フォーク
248
平均マージ
6日 12時間
マージ済み PR(30日)
2

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。