Skip to main content

Руководство по переводу

Поддерживаемые языки

Интерфейс Space Acres уже локализован на нескольких языках, что облегчает пользователям по всему миру фармить в Сети Autonomys. Нашей целью является обеспечение того, чтобы как можно больше людей могли пользоваться платформой на родном языке.

В настоящее время интерфейс Acres Space поддерживает следующие языки:

  • Английский
  • Немецкий
  • Испанский
  • Французский
  • Сербский
  • Русский
  • Китайский (Упрощенный)

Мы постоянно работаем над расширением этого списка. С самым последним списком поддерживаемых языков вы можете ознакомиться в разделе "Переводы" в хранилище Space Acres. Если вы хотите сделать перевод на язык, который еще не поддерживается, пожалуйста, следуйте инструкциям ниже.

Руководство по переводу

Спасибо за то, что рассмотрели вопрос о внесении вклада в локализацию интерфейса Space Acres! Это руководство призвано помочь вам внести свой вклад в достижение нашей цели — сделать фарминг в сети Autonomys более доступным и инклюзивным путем локализации или перевода пользовательского интерфейса. Сеть Autonomys Network руководствуется видением децентрализованного и справедливого будущего, и мы считаем, что преодоление языковых барьеров имеет решающее значение для достижения этого видения.

Перед началом работы

В Space Acres много технического и связанного с Autonomys сленга, который не будет правильно переведен с помощью LLM, таких как Chat GPT, или служб перевода, таких как Google Translate. Просим Вас работать над всеми переводами вручную, так как мы не можем действительно проверить их правильность. Мы благодарим Вас за понимание!

Step by Step Tutorial

  1. Sign in to your GitHub account, or create a new account if you don't have one yet.

  2. Proceed to the Space Acres translations folder in the Space Acres repository.

    sa-translate-1

  3. Check that the language you're planning to translate the UI to has not been translated yet!

  4. Click on Add file and select Create new file.

    sa-translate-2

  5. Provide the name of the file: it should start with the 2-character language code, plus the 2-character code of the region (optional) followed by /messages.ftl. You can refer to the IETF languages tag page to find out the language code.

    sa-translate-3

    For example, if you're planning to translate the Space Acres UI into the Russian language, you would put ru/messages.ftl (or alternatively if you want to specify the region: ru-RU/messages.ftl). You will notice that as soon as you put the forward slash / after the 2-character language code, it will turn blue in the interface, indicating that your translation file will be correctly created in the appropriate folder.

    sa-translate-4

    Some other language-region pair examples:

    • uk-UA
    • en-GB
  6. Copy the content of the English Space Acres UI into the Edit window.

    sa-translate-5

  7. Start translating messages from the UI into the language of your choice! Please make sure to only translate the text that comes after the = sign. Also, please don't translate any variables, e.g. {$chain_name}.

    sa-translate-6

  8. When you finish translating the whole file, click on Commit changes....

    sa-translate-7

  9. You will see a new window appear!

    sa-translate-8

  10. Adjust the commit message and the change description.

    sa-translate-9

  11. Additionally, you could adjust the branch-name from the generic one to one that makes the most sense e.g. add-your-language-support and click on Propose changes.

    sa-translate-10

  12. Review your changes by scrolling down the page one last time and ensure that everything is translated correctly before submitting the changes.

    sa-translate-11

    sa-translate-12

  13. Submit your changes by clicking on Create pull request.

    sa-translate-13

    Your translation submission is now complete and next steps are for the team to review before providing feedback and/or merging the pull request. Thanks for your help in bringing Space Acres to an even wider audience!