-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation into other languages #4
Comments
Hi, thanks for your kind comments, I am glad you like it! Since Clowd has no support for localisation currently, we would need to decide on a localisation architecture before we can start adding translations. I will start thinking about this and look at what localisation frameworks are available for WPF. |
Just leaving here a suggested implementation. Move all hard-coded strings into a English:
Polish (4 plural forms)
Ideally, we can find or create a roslyn source generator which turns this into strongly-typed functions. Example: public class Translations
{
public string TimeStampDay(int p0);
} For WPF we could look to generate a pre-built view model that accepts the parameters as properties and emits the strings as properties, or we could use a converter or markup extension. It's possible we can re-use some of https://github.com/rudyhuyn/PluralNet The resx variations for other languages would be checked in to the main repo, but editing and collaboration could be done online. https://crowdin.com/ is free for open source projects, supports anonymous collaborators and branching, and supports resx natively. If anyone is interested in this getting developed, please comment on this thread to let me know what languages you could contribute. This is also useful: https://devblogs.microsoft.com/ifdef-windows/use-a-custom-resource-markup-extension-to-succeed-at-ui-string-globalization/ |
I would enjoy contributing to the French translation! |
I love Clowd, but I will love it more if it is in French.
I can help
The text was updated successfully, but these errors were encountered: