Closed darklinkpower closed 2 years ago
I have some concerns with the builtin system that have kept me from using it:
FriendOwnsOneGame
and FriendOwnsMultipleGames
IDs ("one game" vs "{count} games"), which doesn't make sense for a language without the singular/plural distinction (Japanese) and is insufficient for a language with an additional dual distinction (Arabic).Something like Project Fluent solves the first issue, although it still has the third issue.
Oh, it looks like Crowdin actually supports Project Fluent (source), and there are a couple of .NET implementations (Fluent.Net, Linguini). I'll give it a shot, since it addresses two of my three concerns.
Both Ludusavi and the plugin are now on Crowdin and using Project Fluent for translation files:
I'll try to get a plugin release out within the next few days with the latest changes.
If I'm not wrong the extension has its own system for localization, but as a suggestion I would recommend to use the builtin system for extensions in Playnite:
Documentations: https://playnite.link/docs/master/tutorials/extensions/localizations.html?tabs=csharp
This way you can use something like Crowdin to provide an easy way to edit and update them and also have the string available in the plugin code and in xaml views and resources
An example of a configuration file for Crowdin to automatically pick localization files: https://github.com/darklinkpower/PlayniteExtensionsCollection/blob/master/crowdin.yml