Skip to content
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

Add translations #13

Open
Ruben2776 opened this issue Jun 16, 2020 · 2 comments
Open

Add translations #13

Ruben2776 opened this issue Jun 16, 2020 · 2 comments
Labels
good first issue Good for newcomers help wanted PR Welcome Pull requests are welcome

Comments

@Ruben2776
Copy link
Owner

Ruben2776 commented Jun 16, 2020

If you would like to translate PicView, it can be done in two ways. Please have a look at my guide:

Using Crowdin

  1. Go to https://crwd.in/picview
  2. Choose desired language to translate. Note Enter, Delete, Shift, and alt are keyboard key names.
  3. Send me a message when you're done and I'll add it manually

Manual way

  1. Fork the repo and create your branch from dev.
  2. Copy en.xaml from /PicView/Translations and rename it to your two letter language code (wiki).
  3. Edit the string values of the xx.xaml file to your language.
  4. Issue a pull request.

If you want to test it
not required

  1. Open the project with the latest version of Visual Studio and have the latest .NET SDK installed.
  2. Add the two letter language code to the enum /PicView/Translations/Languages.cs.
  3. Add language to /PicView/Translations/LoadLanguage.cs (copy-paste one of the others, add your own).
  4. Start the app and change the language in the settings window F4.
@Ruben2776 Ruben2776 changed the title Add translation/language option Add translations Jul 22, 2020
@Ruben2776 Ruben2776 pinned this issue Jul 22, 2020
@Crystal-RainSlide
Copy link
Contributor

For xx-xx / xx_xx (zh-CN / zh_CN for example), should we use - or _?

@Ruben2776
Copy link
Owner Author

It should be zh_CN then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted PR Welcome Pull requests are welcome
Projects
None yet
Development

No branches or pull requests

2 participants