Weblate-2.4 --No-Git 2
Total Page:16
File Type:pdf, Size:1020Kb
Weblate Documentation Versión 2.4 Michal Cihaˇ rˇ 20 de julio de 2020 Índice general 1. About Weblate 3 1.1. Project goals...............................................3 1.2. Project name...............................................3 1.3. Project website..............................................3 1.4. Authors..................................................3 2. Translators guide 5 2.1. Weblate basics..............................................5 2.2. Registration and user profile.......................................5 2.3. Translating using Weblate........................................9 2.4. Checks and fixups............................................ 16 3. Application developer guide 21 3.1. Activity reports.............................................. 21 3.2. Promoting the translation........................................ 22 3.3. Reviewing source strings......................................... 23 3.4. Adding new translations......................................... 24 4. Administrators guide 25 4.1. Quick setup guide............................................ 25 4.2. Installation instructions......................................... 26 4.3. Weblate deployments........................................... 40 4.4. Upgrading Weblate............................................ 44 4.5. Authentication.............................................. 49 4.6. Access control.............................................. 51 4.7. Translation projects........................................... 55 4.8. Continuous translation.......................................... 65 4.9. Translation process............................................ 71 4.10. Checks and fixups............................................ 72 4.11. Machine translation........................................... 76 4.12. Configuration............................................... 79 4.13. Sample configuration........................................... 88 4.14. Management commands......................................... 98 4.15. Advertisement.............................................. 103 5. Frequently Asked Questions 105 5.1. Configuration............................................... 105 I 5.2. Usage................................................... 107 5.3. Troubleshooting............................................. 109 5.4. Features.................................................. 110 6. Supported formats 113 6.1. Automatic detection........................................... 113 6.2. GNU Gettext............................................... 113 6.3. XLIFF.................................................. 114 6.4. Java properties.............................................. 115 6.5. Qt Linguist .ts.............................................. 115 6.6. Android string resources......................................... 115 6.7. Apple OS X strings............................................ 116 6.8. PHP strings................................................ 116 6.9. JSON files................................................ 116 6.10. .Net Resource files............................................ 117 6.11. CSV files................................................. 117 6.12. Others.................................................. 117 7. Weblate’s Web API 119 7.1. Notification hooks............................................ 119 7.2. Exports.................................................. 120 7.3. RSS feeds................................................. 122 8. Changes 123 8.1. weblate 2.4................................................ 123 8.2. weblate 2.3................................................ 124 8.3. weblate 2.2................................................ 124 8.4. weblate 2.1................................................ 125 8.5. weblate 2.0................................................ 125 8.6. weblate 1.9................................................ 126 8.7. weblate 1.8................................................ 126 8.8. weblate 1.7................................................ 127 8.9. weblate 1.6................................................ 127 8.10. weblate 1.5................................................ 128 8.11. weblate 1.4................................................ 128 8.12. weblate 1.3................................................ 129 8.13. weblate 1.2................................................ 129 8.14. weblate 1.1................................................ 130 8.15. weblate 1.0................................................ 130 8.16. weblate 0.9................................................ 131 8.17. weblate 0.8................................................ 131 8.18. weblate 0.7................................................ 132 8.19. weblate 0.6................................................ 132 8.20. weblate 0.5................................................ 132 8.21. weblate 0.4................................................ 133 8.22. weblate 0.3................................................ 133 8.23. weblate 0.2................................................ 133 8.24. weblate 0.1................................................ 133 9. Contributing 135 9.1. Code and development.......................................... 135 9.2. Starting with our codebase........................................ 135 9.3. Earning money by coding........................................ 135 9.4. Translating................................................ 136 II 10. License 137 11. Indices and tables 139 HTTP Routing Table 141 Índice 143 III IV Weblate Documentation, Versión 2.4 Contents: Índice general 1 Weblate Documentation, Versión 2.4 2 Índice general CAPÍTULO 1 About Weblate 1.1 Project goals Web based translation with tight git integration supporting wide range of file formats and makes it easy for translators to contribute. The translations should be kept within same repository as source code and translation process should closely follow development. There is no plan in heavy conflict resolution as these should be primarily handled on git side. 1.2 Project name The project is named as mixture of words web and translate. 1.3 Project website You can find project website at <http://weblate.org/>, there is also demonstration server at <https://demo.weblate. org/>. This documentation can be browsed on <http://docs.weblate.org/>. 1.4 Authors This tool was written by Michal Cihaˇ rˇ <[email protected]>. 3 Weblate Documentation, Versión 2.4 4 Capítulo 1. About Weblate CAPÍTULO 2 Translators guide 2.1 Weblate basics 2.1.1 Projects structure Each project can contain various components. The reason for this structure is that all components in a project are expected to have a lot in common. Whenever translation is made in single component, it is automatically propagated to others within same project (this is especially useful when translating more version of same project, but can be disabled, see Component configuration). 2.2 Registration and user profile 2.2.1 Registration While everybody can browse projects, view translations or suggest them, only registered users are allowed to actually save changes and are credited for every translation made. You can register following two simple steps: 1. Fill out the registration form with your credentials 2. Activate registration by following in email you receive 3. Possibly adjust your profile to choose which languages you know 2.2.2 User profile User profile contains your preferences, name and email. Name and email are being used in VCS commits, so keep this information accurate. 5 Weblate Documentation, Versión 2.4 Translated languages Choose here which languages you prefer to translate. These will be offered to you on main page to have easier access to translations. Secondary languages You can define secondary languages, which will be shown you while translating together with source language. Exam- ple can be seen on following image, where Slovak language is shown as secondary: 6 Capítulo 2. Translators guide Weblate Documentation, Versión 2.4 Subscriptions You can subscribe to various notifications on Subscriptions tab. You will receive notifications for selected events on chosen projects for languages you have indicated for translation (see above). If you are an owner of some project, you will always receive some important notifications, like merge failures or new language requests. Nota: You will not receive notifications for actions you’ve done. 2.2. Registration and user profile 7 Weblate Documentation, Versión 2.4 Authentication On the Authentication tab you can connect various services which you can use to login into Weblate. List of services depends on Weblate configuration, but can include popular sites such as Google, Facebook, GitHub or Bitbucket. 8 Capítulo 2. Translators guide Weblate Documentation, Versión 2.4 Avatar Weblate can be configured to show avatar for each user (depending on ENABLE_AVATARS). These images are obtai- ned using libravatar protocol (see https://www.libravatar.org/) or using http://gravatar.com/. 2.3 Translating using Weblate 2.3.1 Translation links Once you navigate to a translation, you will be shown set of links which lead to translation. These are results of various checks, like untranslated or fuzzy strings. Should no other checks fire, there will be still link to all translations. Alternatively you can use search field to find translation you need to fix. 2.3. Translating using Weblate 9 Weblate Documentation, Versión 2.4 2.3.2 Suggestions As an anonymous user, you have no other choice than making a suggestion. However if you are