apple / apple/unityplugins

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

Ouverte
#98 2 commentaires 0 réactions 1 personne assignée Réclamée par @ryzngard Voir sur GitHub
bug Plug-in - GameKit
Langage dominant
C#
Étoiles
982
Forks
248
Merge moyen
6 j 12 h
PR mergées (30 j)
2

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.