././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8540468 wlc-1.14/0000755000175100001770000000000014566104012011630 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8340468 wlc-1.14/.reuse/0000755000175100001770000000000014566104012013031 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/.reuse/dep50000644000175100001770000000114614566103766013632 0ustar00runnerdockerFormat: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: wlc Upstream-Contact: Michal Čihař Source: https://weblate.org/ Files: wlc/test_data/* Copyright: Michal Čihař License: GPL-3.0-or-later Files: .coveragerc .deepsource.toml .dockerignore .gitignore .isort.cfg .pre-commit-config.yaml MANIFEST.in codecov.yml requirements*.txt setup.cfg pyproject.toml Copyright: Michal Čihař License: GPL-3.0-or-later Files: CHANGES.rst README.md Copyright: Michal Čihař License: GPL-3.0-or-later ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/CHANGES.rst0000644000175100001770000000713014566103766013452 0ustar00runnerdocker1.14 ---- * Released on 23rd February 2024. * Dropped support for Python 3.6 and 3.7. * Tested against Python 3.11 and 3.12. * Added support for categories. * Added support for the linked_component field. 1.13 ---- * Released on 24th March 2022. * Support all wlc upload methods. * Tested against Python 3.10. * Allow uploading files when creating a component. * Allow downloading at component, project, and site level. 1.12 ---- * Released on 19th May 2021. * Improved error messages when permission was denied. * Added type hints to the codebase. 1.11 ---- * Released on 17th March 2021. * Fixed long filenames in test fixtures. * Updated base docker image. * Add support for specifying format when uploading files. 1.10 ---- * Released on 11th February 2021. * Added ability to create new projects, components, and translations * Added ability to add new source strings to a component * Added Retry mechanism to handle failed requests * Added ability to create a new language * Added the source_lang attribute to Components * Added Unit class which provides access to the units api endpoints. * Added the PATCH HTTP method to the white list in order to enable access to new api endpoints. * Using requests.session to keep a single http request open instead of reinitializing them. * Added timeout config variable 1.9 --- * Released on 21st December 2020. * Added Docker image published as weblate/wlc on Docker Hub. 1.8 --- * Released on 11th September 2020. * Compatibility with Weblate 4.3 which moves source language from component to a project. 1.7 --- * Released on 3rd September 2020. * Fixed installation of wlc command-line. 1.6 --- * Released on 1st September 2020. * Post payload as JSON to allow handling complex data structures. * Added support for finding configuration file on Windows in AppData dir. * Improved error reporting. 1.5 --- * Released on 19th June 2020. * Fixed compatibility of some API calls with Weblate 4.1. 1.4 --- * Released on 3rd June 2020. * Fixed compatibility of some API calls with Weblate 4.1. 1.3 --- * Released on 6th May 2020. * Mark Python 3.8 as supported, dropped support for Python 3.5. * Added support for shell completion. * Improved error messages to give better understanding of actual problem. * Fixed repr() and str() behavior on returned objects. * Added support for filtering components and translations. * Better report errors when accessing API. 1.2 --- * Released on 15th October 2019. * Fix stats invocation. * Improved timestamps handling. * Added support for replace upload. * Added support for project, component and translation removal. 1.1 --- * Released on 1st February, 2019. * Fixed listing of language objects. 1.0 --- * Released on 31st January, 2019. * Added support for more parameters on file upload. 0.10 ---- * Released on 21th October, 2018. * Fixed POST operations in the API. * Added --debug parameter to diagnose HTTP problems. 0.9 --- * Released on 17th October, 2018. * Switched to requests * Added support for cleanup command. * Added support for upload command. 0.8 --- * Released on 3rd March, 2017. * Various code cleanups. * Tested with Python 3.6. 0.7 --- * Released on 16th December, 2016. * Added reset operation. * Added statistics for project. * Added changes listing. * Added file downloads. 0.6 --- * Released on 20th September, 2016. * Fixed error when invoked without command. * Tested on Windows and OS X (in addition to Linux). 0.5 --- * Released on 11th July, 2016. * Added locking commands. 0.4 --- * Released on 8th July, 2016. * Moved Git repository. 0.3 --- * Released on 19th May, 2016. * First version for general usage. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/LICENSE0000644000175100001770000010451514566103766012662 0ustar00runnerdocker GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8340468 wlc-1.14/LICENSES/0000755000175100001770000000000014566104012013035 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/LICENSES/CC0-1.0.txt0000644000175100001770000001561014566103766014461 0ustar00runnerdockerCreative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/LICENSES/GPL-3.0-or-later.txt0000644000175100001770000010355614566103766016272 0ustar00runnerdockerGNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. “This License” refers to version 3 of the GNU General Public License. “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. A “covered work” means either the unmodified Program or a work based on the Program. To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/MANIFEST.in0000644000175100001770000000040314566103766013402 0ustar00runnerdockerinclude README.md include LICENSE recursive-include LICENSES * include CHANGES.rst include MANIFEST.in include completion/wlc include requirements.txt include requirements-test.txt recursive-include .reuse * include wlc/*.py recursive-include wlc/test_data * ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8540468 wlc-1.14/PKG-INFO0000644000175100001770000001244514566104012012733 0ustar00runnerdockerMetadata-Version: 2.1 Name: wlc Version: 1.14 Summary: A command-line utility for Weblate, translation tool with tight version control integration Author-email: Michal Čihař License: GPL-3.0-or-later Project-URL: Documentation, https://docs.weblate.org/ Project-URL: Download, https://github.com/WeblateOrg/wlc Project-URL: Funding, https://weblate.org/donate/ Project-URL: Homepage, https://weblate.org/ Project-URL: Issue Tracker, https://github.com/WeblateOrg/wlc/issues Project-URL: Source Code, https://github.com/WeblateOrg/wlc Project-URL: Twitter, https://twitter.com/WeblateOrg Keywords: i18n,l10n,gettext,git,mercurial,translate Platform: any Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Internationalization Classifier: Topic :: Software Development :: Localization Classifier: Topic :: Utilities Requires-Python: >=3.8 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: argcomplete Requires-Dist: python-dateutil Requires-Dist: pyxdg Requires-Dist: requests>=2.25.0 Requires-Dist: urllib3>=1.26 Provides-Extra: lint Requires-Dist: pre-commit==3.6.2; extra == "lint" Provides-Extra: test Requires-Dist: pytest; extra == "test" Requires-Dist: pytest-cov; extra == "test" Requires-Dist: responses<0.26.0,>=0.10.1; extra == "test" Requires-Dist: build==1.0.3; extra == "test" Requires-Dist: twine==5.0.0; extra == "test" Weblate **Weblate is libre software web-based continuous localization system, used by over 2500 libre projects and companies in more than 165 countries.** # wlc wlc is a [Weblate](https://weblate.org/) command-line client using [Weblate's REST API](https://docs.weblate.org/en/latest/api.html). [![Website](https://img.shields.io/badge/website-weblate.org-blue.svg)](https://weblate.org/) [![Translation status](https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg)](https://hosted.weblate.org/engage/weblate/?utm_source=widget) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/552/badge)](https://bestpractices.coreinfrastructure.org/projects/552) [![PyPI package](https://img.shields.io/pypi/v/wlc.svg)](https://pypi.org/project/wlc/) [![Documenation](https://readthedocs.org/projects/weblate/badge/)](https://docs.weblate.org/en/latest/wlc.html) ## PIP Installation Install using pip: ```console pip3 install wlc ``` Sources are available at . ## Usage Please see [Weblate documentation](https://docs.weblate.org/en/latest/wlc.html) for more complete documentation. Command-line usage: ```console wlc list-projects wlc list-components wlc list-translations wlc list-languages wlc show wlc ls wlc commit wlc push wlc pull wlc repo wlc stats wlc lock wlc unlock wlc lock-status wlc download wlc upload ``` Configuration is stored in `~/.config/weblate`. The key/values (`retries`, `timeout`, `method_whitelist`, `backoff_factor`, `status_forcelist`) are closely coupled with the [urllib3 parameters](https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html) and allows the user to configure request parameters. ```ini [weblate] url = https://hosted.weblate.org/api/ retries = 3 method_whitelist = PUT,POST,GET backoff_factor = 0.2 status_forcelist = 429,500,502,503,504 timeout = 30 [keys] https://hosted.weblate.org/api/ = APIKEY ``` ## Docker image The image is published on [Docker Hub](https://hub.docker.com/r/weblate/wlc). Building locally: ```console docker build -t weblate/wlc . ``` Detailed documentation is available in [Weblate documentation](https://docs.weblate.org/en/latest/wlc.html#docker-wlc). ## Docker hub tags You can use following tags on Docker hub: | Tag name | Description | Use case | | -------- | --------------------------------------------------------------------------------- | ----------------------------------------------- | | `latest` | wlc stable release, matches latest tagged release | Rolling updates in a production environment | | `edge` | wlc development | Staging environment | | version | wlc stable release, see [weblate/wlc](https://hub.docker.com/r/weblate/wlc/tags/) | Well defined deploy in a production environment | Every image is tested by our CI before it gets published, so even the `bleeding` version should be quite safe to use. ## Contributing Contributions are welcome! See [documentation](https://docs.weblate.org/en/latest/contributing/modules.html) for more information. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/README.md0000644000175100001770000000651214566103766013132 0ustar00runnerdockerWeblate **Weblate is libre software web-based continuous localization system, used by over 2500 libre projects and companies in more than 165 countries.** # wlc wlc is a [Weblate](https://weblate.org/) command-line client using [Weblate's REST API](https://docs.weblate.org/en/latest/api.html). [![Website](https://img.shields.io/badge/website-weblate.org-blue.svg)](https://weblate.org/) [![Translation status](https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg)](https://hosted.weblate.org/engage/weblate/?utm_source=widget) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/552/badge)](https://bestpractices.coreinfrastructure.org/projects/552) [![PyPI package](https://img.shields.io/pypi/v/wlc.svg)](https://pypi.org/project/wlc/) [![Documenation](https://readthedocs.org/projects/weblate/badge/)](https://docs.weblate.org/en/latest/wlc.html) ## PIP Installation Install using pip: ```console pip3 install wlc ``` Sources are available at . ## Usage Please see [Weblate documentation](https://docs.weblate.org/en/latest/wlc.html) for more complete documentation. Command-line usage: ```console wlc list-projects wlc list-components wlc list-translations wlc list-languages wlc show wlc ls wlc commit wlc push wlc pull wlc repo wlc stats wlc lock wlc unlock wlc lock-status wlc download wlc upload ``` Configuration is stored in `~/.config/weblate`. The key/values (`retries`, `timeout`, `method_whitelist`, `backoff_factor`, `status_forcelist`) are closely coupled with the [urllib3 parameters](https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html) and allows the user to configure request parameters. ```ini [weblate] url = https://hosted.weblate.org/api/ retries = 3 method_whitelist = PUT,POST,GET backoff_factor = 0.2 status_forcelist = 429,500,502,503,504 timeout = 30 [keys] https://hosted.weblate.org/api/ = APIKEY ``` ## Docker image The image is published on [Docker Hub](https://hub.docker.com/r/weblate/wlc). Building locally: ```console docker build -t weblate/wlc . ``` Detailed documentation is available in [Weblate documentation](https://docs.weblate.org/en/latest/wlc.html#docker-wlc). ## Docker hub tags You can use following tags on Docker hub: | Tag name | Description | Use case | | -------- | --------------------------------------------------------------------------------- | ----------------------------------------------- | | `latest` | wlc stable release, matches latest tagged release | Rolling updates in a production environment | | `edge` | wlc development | Staging environment | | version | wlc stable release, see [weblate/wlc](https://hub.docker.com/r/weblate/wlc/tags/) | Well defined deploy in a production environment | Every image is tested by our CI before it gets published, so even the `bleeding` version should be quite safe to use. ## Contributing Contributions are welcome! See [documentation](https://docs.weblate.org/en/latest/contributing/modules.html) for more information. ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8340468 wlc-1.14/completion/0000755000175100001770000000000014566104012014001 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/completion/wlc0000644000175100001770000000153214566103766014531 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later _python_argcomplete() { local IFS=$'\013' local SUPPRESS_SPACE=0 if compopt +o nospace 2> /dev/null; then SUPPRESS_SPACE=1 fi COMPREPLY=( $(IFS="$IFS" \ COMP_LINE="$COMP_LINE" \ COMP_POINT="$COMP_POINT" \ COMP_TYPE="$COMP_TYPE" \ _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \ _ARGCOMPLETE=1 \ _ARGCOMPLETE_SUPPRESS_SPACE=$SUPPRESS_SPACE \ "$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) ) if [[ $? != 0 ]]; then unset COMPREPLY elif [[ $SUPPRESS_SPACE == 1 ]] && [[ "$COMPREPLY" =~ [=/:]$ ]]; then compopt -o nospace fi } complete -o nospace -o default -F _python_argcomplete "wlc" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/pyproject.toml0000644000175100001770000000607014566103766014566 0ustar00runnerdocker[build-system] build-backend = "setuptools.build_meta" requires = ["setuptools>=61.2"] [project] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Internationalization", "Topic :: Software Development :: Localization", "Topic :: Utilities" ] dependencies = [ "argcomplete", "python-dateutil", "pyxdg", "requests>=2.25.0", "urllib3>=1.26" ] description = "A command-line utility for Weblate, translation tool with tight version control integration" dynamic = ["version"] keywords = [ "i18n", "l10n", "gettext", "git", "mercurial", "translate" ] name = "wlc" requires-python = ">=3.8" [[project.authors]] email = "michal@cihar.com" name = "Michal Čihař" [project.license] text = "GPL-3.0-or-later" [project.optional-dependencies] lint = ["pre-commit==3.6.2"] test = [ "pytest", "pytest-cov", "responses>=0.10.1,<0.26.0", "build==1.0.3", "twine==5.0.0" ] [project.readme] content-type = "text/markdown" file = "README.md" [project.scripts] wlc = "wlc.main:main" [project.urls] Documentation = "https://docs.weblate.org/" Download = "https://github.com/WeblateOrg/wlc" Funding = "https://weblate.org/donate/" Homepage = "https://weblate.org/" "Issue Tracker" = "https://github.com/WeblateOrg/wlc/issues" "Source Code" = "https://github.com/WeblateOrg/wlc" Twitter = "https://twitter.com/WeblateOrg" [tool.isort] profile = "black" [tool.ruff] output-format = "github" target-version = "py38" [tool.ruff.lint] ignore = [ "D10", # TODO: we are missing many docstrings "D203", # CONFIG: incompatible with D211 "D212", # CONFIG: incompatible with D213 "D401", # TODO: many strings need rephrasing "T201", # WONTFIX: using print() (maybe add noqa) "TRY003", # WONTFIX: Avoid specifying long messages outside the exception class "PLR0913", # WONTFIX: Too many arguments to function call "PLR2004", # TODO: Magic value used in comparison, consider replacing 201 with a constant variable "N818" # TODO: exception naming ] select = [ "E", "F", "B", "T10", "A", "C4", "C90", "YTT", "DJ", "UP", "D", "PD", "PGH", "PL", "TRY", "RUF", "ERA", "ICN", "ISC", "EXE", "INP", "PIE", "G", "PYI", "Q", "SIM", "TID", "RSE", "T20", "RET", "SLF", "N" ] [tool.ruff.lint.mccabe] max-complexity = 16 [tool.setuptools] include-package-data = true license-files = ["LICENSE"] platforms = ["any"] [tool.setuptools.dynamic.version] attr = "wlc.__version__" [tool.setuptools.package-dir] wlc = "wlc" [tool.setuptools.packages.find] include = ["wlc*"] namespaces = true ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8540468 wlc-1.14/setup.cfg0000644000175100001770000000004614566104012013451 0ustar00runnerdocker[egg_info] tag_build = tag_date = 0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/setup.py0000755000175100001770000000031114566103766013357 0ustar00runnerdocker#!/usr/bin/env python3 # Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Setup file for easy installation.""" from setuptools import setup setup() ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8340468 wlc-1.14/wlc/0000755000175100001770000000000014566104012012415 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/__init__.py0000644000175100001770000006643214566103766014560 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Weblate API client library.""" from __future__ import annotations import json import logging from copy import copy from typing import Any, ClassVar, Collection, cast from urllib.parse import urlencode, urlparse import dateutil.parser import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry log = logging.getLogger("wlc") __version__ = "1.14" URL = "https://weblate.org/" DEVEL_URL = "https://github.com/WeblateOrg/wlc" API_URL = "http://127.0.0.1:8000/api/" USER_AGENT = f"wlc/{__version__}" LOCALHOST_NETLOC = "127.0.0.1" TIMESTAMPS = {"last_change"} class WeblateException(Exception): """Generic error.""" def __init__(self, message: str | None = None): super().__init__(message or self.__doc__) class WeblateThrottlingError(WeblateException): """Throttling on the server.""" def __init__(self, limit: str, retry_after: str): self.limit = limit self.retry_after = retry_after message_segments = [ cast(str, self.__doc__) ] # workaround for https://github.com/python/mypy/issues/15825 if limit: message_segments.append(f"Limit is {limit} requests.") if retry_after: message_segments.append(f"Retry after {retry_after} seconds.") super().__init__(" ".join(message_segments)) class WeblatePermissionError(WeblateException): """You don't have permission to access this object.""" class WeblateDeniedError(WeblateException): """Access denied, API key is wrong or missing.""" class Weblate: """Weblate API wrapper object.""" def __init__( self, key: str = "", url: str = API_URL, config=None, retries: int = 0, status_forcelist: Collection[int] | None = None, method_whitelist: Collection[str] | None = None, backoff_factor: int = 0, timeout: int = 300, ): """Create the object, storing key, API url and requests retry args.""" self.session = requests.Session() if config is not None: self.url, self.key = config.get_url_key() ( self.retries, self.status_forcelist, self.method_whitelist, self.backoff_factor, self.timeout, ) = config.get_request_options() else: self.key = key self.url = url self.retries = retries self.status_forcelist = status_forcelist self.timeout = timeout self.method_whitelist = method_whitelist or [ "HEAD", "GET", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE", ] self.backoff_factor = backoff_factor self.retries = Retry( total=self.retries, backoff_factor=self.backoff_factor, status_forcelist=self.status_forcelist, allowed_methods=self.method_whitelist, raise_on_status=False, ) self.adapter = HTTPAdapter(pool_connections=1, max_retries=retries) if not self.url.endswith("/"): self.url += "/" @staticmethod def permission_error_message(error): """Get detail from serialized DRF PermissionDenied exception.""" try: return error.response.json()["detail"] except (json.JSONDecodeError, KeyError): return None def process_error(self, error): """Raise WeblateException for known HTTP errors.""" if isinstance(error, requests.HTTPError): status_code = error.response.status_code if status_code == 429: headers = error.response.headers raise WeblateThrottlingError( headers.get("X-RateLimit-Limit"), headers.get("Retry-After") ) from error if status_code == 404: raise WeblateException( "Object not found on the server " "(maybe operation is not supported on the server)" ) from error if status_code == 403: raise WeblatePermissionError( self.permission_error_message(error) ) from error if status_code == 401: raise WeblateDeniedError from error if 300 <= status_code < 400: raise WeblateException( "Server responded with an unexpectedHTTP redirect. " "Please check your configuration." ) from error reason = error.response.reason try: error_string = str(error.response.json()) except Exception: error_string = "" raise WeblateException( f"HTTP error {status_code}: {reason} {error_string}" ) from error def raw_request(self, method, path, data=None, files=None, params=None): """Construct request object and returns raw content.""" response = self.invoke_request(method, path, data, files, params=params) return response.content def request(self, method, path, data=None, files=None, params=None): """Construct request object and returns json response.""" response = self.invoke_request(method, path, data, files, params=params) try: return response.json() except ValueError as error: raise WeblateException("Server returned invalid JSON") from error def invoke_request(self, method, path, data=None, files=None, params=None): """Construct request object.""" if not path.startswith("http"): path = f"{self.url}{path}" headers = {"user-agent": USER_AGENT, "Accept": "application/json"} if self.key: headers["Authorization"] = f"Token {self.key}" verify_ssl = self._should_verify_ssl(path) kwargs = { "headers": headers, "verify": verify_ssl, "files": files, "allow_redirects": False, } # Disable insecure warnings for localhost if not verify_ssl: logging.captureWarnings(True) if params: kwargs["params"] = params if files: # mulitpart/form upload kwargs["data"] = data else: # JSON params to handle complex structures kwargs["json"] = data try: self.session.mount(f"{urlparse(path).scheme}://", self.adapter) kwargs["timeout"] = self.timeout log_kwargs = copy(kwargs) del log_kwargs["files"] log.debug(json.dumps([method, path, log_kwargs], indent=True)) response = self.session.request(method, path, **kwargs) response.raise_for_status() if 300 <= response.status_code < 400: raise requests.HTTPError("Server redirected", response=response) except requests.exceptions.RequestException as error: self.process_error(error) raise return response def post(self, path, files=None, params=None, **kwargs): """Perform POST request on the API.""" return self.request("post", path, data=kwargs, files=files, params=params) def _post_factory(self, prefix, path, kwargs): """Wrapper for posting objects.""" return self.post("/".join((prefix, path, "")), **kwargs) def get(self, path, params=None): """Perform GET request on the API.""" return self.request("get", path, params=params) def list_factory(self, path, parser, params=None): """Listing object wrapper.""" while path is not None: data = self.get(path, params=params) for item in data["results"]: yield parser(weblate=self, **item) path = data["next"] def _get_factory(self, prefix, path, parser): """Wrapper for getting objects.""" data = self.get("/".join((prefix, path, ""))) return parser(weblate=self, **data) def get_object(self, path): """ Return object based on path. Operates on (project, component or translation objects. """ parts = path.strip("/").split("/") try: int(path) return self.get_unit(path) except ValueError: pass if len(parts) == 3: return self.get_translation(path) if len(parts) == 2: return self.get_component(path) if len(parts) == 1: return self.get_project(path) raise ValueError(f"Not supported path: {path}") def get_project(self, path): """Return project of given path.""" return self._get_factory("projects", path, Project) def get_component(self, path): """Return component of given path.""" return self._get_factory("components", path, Component) def get_translation(self, path): """Return translation of given path.""" return self._get_factory("translations", path, Translation) def get_unit(self, path): """Return unit of given path.""" return self._get_factory("units", path, Unit) def list_projects(self, path="projects/"): """List projects in the instance.""" return self.list_factory(path, Project) def list_components(self, path="components/"): """List components in the instance.""" return self.list_factory(path, Component) def list_changes(self, path="changes/"): """List changes in the instance.""" return self.list_factory(path, Change) def list_units(self, path, params=None): """List units in the instance.""" return self.list_factory(path, Unit, params=params) def list_translations(self, path="translations/"): """List translations in the instance.""" return self.list_factory(path, Translation) def list_languages(self): """List languages in the instance.""" return self.list_factory("languages/", Language) def list_categories(self, path="categories/"): """List categories in the instance.""" return self.list_factory(path, Category) def add_source_string( self, project, component, msgid, msgstr, source_language=None ): """Adds a source string to a monolingual base file.""" if not source_language: component_obj = self.get_component(f"{project}/{component}") source_language = component_obj["source_language"]["code"] if not isinstance(msgstr, list): msgstr = [msgstr] path = f"{project}/{component}/{source_language}/units" payload = {"key": msgid, "value": msgstr} return self._post_factory("translations", path, payload) def create_project( self, name, slug, website, source_language_name=None, source_language_code=None ): """Create a new project in the instance.""" data = { "name": name, "slug": slug, "web": website, } if source_language_name and source_language_code: data["source_language"] = { "name": source_language_name, "code": source_language_code, } return self.post("projects/", **data) def create_component(self, project, **kwargs): """Create a new component for project in the instance.""" files = {} for fileattr in ("docfile", "zipfile"): if fileattr in kwargs: files[fileattr] = kwargs.pop(fileattr) required_keys = ["name", "slug", "file_format", "filemask", "repo"] for key in required_keys: if key not in kwargs: raise WeblateException(f"{key} is required.") return self.post(f"projects/{project}/components/", files=files, **kwargs) def create_language(self, code, name, direction="ltr", plural=None): """Create a new language.""" plural = plural if plural else {"number": 2, "formula": "n != 1"} data = {"code": code, "name": name, "direction": direction, "plural": plural} return self.post("languages/", **data) @staticmethod def _should_verify_ssl(path): """Cheks if it should verify ssl certificates.""" url = urlparse(path) is_localhost = url.netloc.startswith(LOCALHOST_NETLOC) return url.scheme == "https" and (not is_localhost) class LazyObject(dict): """Object which supports deferred loading.""" PARAMS: ClassVar[tuple[str, ...]] = () OPTIONALS: ClassVar[set[str]] = set() MAPPINGS: ClassVar[dict[str, Any]] = {} ID: ClassVar[str] = "url" def __init__(self, weblate, url, **kwargs): """Construct object for given Weblate instance.""" super().__init__() self.weblate = weblate self._url = url self._data = {} self._loaded = False self._attribs = {} self._load_params(**kwargs) self._load_params(url=url) def get_data(self): return copy(self._data) def __str__(self): return str(self._data) def __repr__(self): return repr(self._data) def _load_params(self, **kwargs): for param in self.PARAMS: if param in kwargs: value = kwargs[param] if value is not None and param in self.MAPPINGS: if isinstance(value, str): self._data[param] = self.MAPPINGS[param]( self.weblate, url=value ) else: self._data[param] = self.MAPPINGS[param](self.weblate, **value) elif value is not None and param in TIMESTAMPS: self._data[param] = dateutil.parser.parse(value) else: self._data[param] = value del kwargs[param] for key, value in kwargs.items(): self._attribs[key] = value def ensure_loaded(self, attrib): """Ensure attribute is loaded from remote.""" if attrib in self._data or attrib in self._attribs: return if not self._loaded: self.refresh() def refresh(self): """Read object again from remote.""" data = self.weblate.get(self._url) self._load_params(**data) self._loaded = True def __getattr__(self, name): if name not in self.PARAMS: raise AttributeError(name) if name not in self._data: self.refresh() try: return self._data[name] except KeyError as error: raise AttributeError(name) from error def setattrvalue(self, name, value): if name not in self.PARAMS: raise AttributeError(name) self._data[name] = value def __getitem__(self, name): return self.__getattr__(name) def __len__(self): return len(list(self.keys())) def keys(self): """Return list of attributes.""" # There is always at least url present if len(self._data) <= 1: self.refresh() for param in self.PARAMS: if param not in self.OPTIONALS or param in self._data: yield param def items(self): """Iterator over attributes.""" for key in self.keys(): yield key, self.__getattr__(key) def to_value(self): """Return identifier for the object.""" self.ensure_loaded(self.ID) return self.__getattr__(self.ID) class Language(LazyObject): """Language object.""" PARAMS: ClassVar[tuple[str, ...]] = ("url", "web_url", "code", "name", "direction") ID: ClassVar[str] = "code" class LanguageStats(LazyObject): """Language object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "total", "code", "translated_words", "language", "translated", "translated_percent", "total_words", "words_percent", ) ID: ClassVar[str] = "code" class RepoMixin: """Repository mixin providing generic repository wide operations.""" def _get_repo_url(self): self.ensure_loaded("repository_url") return self._attribs["repository_url"] def commit(self): """Commit Weblate changes.""" return self.weblate.post(self._get_repo_url(), operation="commit") def push(self): """Push Weblate changes upstream.""" return self.weblate.post(self._get_repo_url(), operation="push") def pull(self): """Pull upstream changes into Weblate.""" return self.weblate.post(self._get_repo_url(), operation="pull") def reset(self): """Reset Weblate repository to upstream.""" return self.weblate.post(self._get_repo_url(), operation="reset") def cleanup(self): """Cleanup Weblate repository from untracked files.""" return self.weblate.post(self._get_repo_url(), operation="cleanup") class ProjectRepository(LazyObject, RepoMixin): """Repository object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "url", "needs_commit", "needs_merge", "needs_push", ) def _get_repo_url(self): """Return repository url.""" return self._data["url"] class Repository(ProjectRepository): """Repository object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "url", "needs_commit", "needs_merge", "needs_push", "status", "merge_failure", "remote_commit", ) class RepoObjectMixin(RepoMixin): """Repository mixin.""" REPOSITORY_CLASS = ProjectRepository def repository(self): """Return repository object.""" data = self.weblate.get(self._get_repo_url()) return self.REPOSITORY_CLASS(weblate=self.weblate, **data) class Project(LazyObject, RepoObjectMixin): """Project object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "url", "web_url", "name", "slug", "web", "source_language", ) OPTIONALS: ClassVar[set[str]] = {"source_language"} ID: ClassVar[str] = "slug" MAPPINGS: ClassVar[dict[str, Any]] = {"source_language": Language} def list(self): """List components in the project.""" self.ensure_loaded("components_list_url") return self.weblate.list_components(self._attribs["components_list_url"]) def statistics(self): """Return statistics for translation.""" self.ensure_loaded("statistics_url") data = self.weblate.get(self._attribs["statistics_url"]) return Statistics(weblate=self.weblate, **data) def languages(self): """Return language statistics for component.""" self.ensure_loaded("languages_url") url = self._attribs["languages_url"] return [LanguageStats(self.weblate, **item) for item in self.weblate.get(url)] def changes(self): """List changes in the project.""" self.ensure_loaded("changes_list_url") return self.weblate.list_changes(self._attribs["changes_list_url"]) def categories(self): """List categories in the project.""" self.ensure_loaded("categories_url") return self.weblate.list_categories(self._attribs["categories_url"]) def delete(self): self.weblate.raw_request("delete", self._url) def create_component(self, **kwargs): return self.weblate.create_component(self.slug, **kwargs) class Category(LazyObject): """Category object.""" PARAMS: ClassVar[tuple[str, ...]] = ("category", "name", "project", "slug", "url") MAPPINGS: ClassVar[dict[str, Any]] = {"project": Project} class Component(LazyObject, RepoObjectMixin): """Component object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "url", "web_url", "name", "slug", "project", "source_language", "vcs", "repo", "git_export", "branch", "filemask", "template", "new_base", "file_format", "license", "license_url", "agreement", "source_language", "priority", "is_glossary", "category", "linked_component", ) OPTIONALS: ClassVar[set[str]] = { "source_language", "is_glossary", "category", "linked_component", } ID: ClassVar[str] = "slug" MAPPINGS: ClassVar[dict[str, Any]] = { "category": Category, "project": Project, "source_language": Language, } REPOSITORY_CLASS = Repository def list(self): """List translations in the component.""" self.ensure_loaded("translations_url") return self.weblate.list_translations(self._attribs["translations_url"]) def add_translation(self, language): """Creates a new translation in the component.""" self.ensure_loaded("translations_url") return self.weblate.post( path=self._attribs["translations_url"], language_code=language ) def statistics(self): """Return statistics for component.""" self.ensure_loaded("statistics_url") return self.weblate.list_factory( self._attribs["statistics_url"], TranslationStatistics ) def _get_lock_url(self): self.ensure_loaded("lock_url") return self._attribs["lock_url"] def lock(self): """Lock component from translations.""" return self.weblate.post(self._get_lock_url(), lock=1) def unlock(self): """Unlock component from translations.""" return self.weblate.post(self._get_lock_url(), lock=0) def lock_status(self): """Return component lock status.""" return self.weblate.get(self._get_lock_url()) def changes(self): """List changes in the project.""" self.ensure_loaded("changes_list_url") return self.weblate.list_changes(self._attribs["changes_list_url"]) def delete(self): self.weblate.raw_request("delete", self._url) def add_source_string(self, msgid, msgstr): """Adds a source string to a monolingual base file.""" return self.weblate.add_source_string( project=self.project.slug, component=self.slug, msgid=msgid, msgstr=msgstr, source_language=self.source_language["code"], ) def download(self, convert=None): """Download translation file from server.""" self.ensure_loaded("repository_url") url = self._get_repo_url().replace("repository", "file") if convert is not None: url = "{}?{}".format(url, urlencode({"format": convert})) return self.weblate.raw_request("get", url) def patch(self, **kwargs): return self.weblate.raw_request("patch", self._url, data=kwargs) class Translation(LazyObject, RepoObjectMixin): """Translation object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "url", "web_url", "language", "component", "translated", "fuzzy", "total", "translated_words", "fuzzy_words", "failing_checks_words", "total_words", "failing_checks", "have_suggestion", "have_comment", "language_code", "filename", "revision", "share_url", "translate_url", "is_template", "translated_percent", "fuzzy_percent", "failing_checks_percent", "last_change", "last_author", ) ID: ClassVar[str] = "language_code" MAPPINGS: ClassVar[dict[str, Any]] = {"language": Language, "component": Component} REPOSITORY_CLASS = Repository def list(self): """API compatibility method, returns self.""" self.ensure_loaded("last_author") return self def statistics(self): """Return statistics for translation.""" self.ensure_loaded("statistics_url") data = self.weblate.get(self._attribs["statistics_url"]) return TranslationStatistics(weblate=self.weblate, **data) def changes(self): """List changes in the translation.""" self.ensure_loaded("changes_list_url") return self.weblate.list_changes(self._attribs["changes_list_url"]) def download(self, convert=None): """Download translation file from server.""" self.ensure_loaded("file_url") url = self._attribs["file_url"] if convert is not None: url = "{}?{}".format(url, urlencode({"format": convert})) return self.weblate.raw_request("get", url) def upload(self, file, overwrite=None, format=None, **kwargs): # noqa: A002 """Updoad a translation file to server.""" self.ensure_loaded("file_url") url = self._attribs["file_url"] files = {"file": (f"file.{format}", file)} if format else {"file": file} if overwrite: kwargs["conflicts"] = "replace-translated" return self.weblate.request("post", url, files=files, data=kwargs) def delete(self): self.weblate.raw_request("delete", self._url) def units(self, **kwargs): """List units in the translation.""" self.ensure_loaded("units_list_url") return self.weblate.list_units(self._attribs["units_list_url"], params=kwargs) class Statistics(LazyObject): """Statistics object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "failing_percent", "translated_percent", "total_words", "failing", "translated_words", "fuzzy_percent", "recent_changes", "translated", "fuzzy", "total", "last_change", "name", "url", ) class TranslationStatistics(Statistics): """Translation statistics.""" PARAMS: ClassVar[tuple[str, ...]] = (*Statistics.PARAMS, "code", "last_author") class Change(LazyObject): """Change object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "url", "unit", "translation", "component", "timestamp", "action_name", "target", ) ID: ClassVar[str] = "id" MAPPINGS: ClassVar[dict[str, Any]] = { "translation": Translation, "component": Component, } class Unit(LazyObject): """Unit object.""" PARAMS: ClassVar[tuple[str, ...]] = ( "approved", "content_hash", "context", "explanation", "extra_flags", "flags", "fuzzy", "has_comment", "has_failing_check", "has_suggestion", "id", "id_hash", "location", "note", "num_words", "position", "previous_source", "priority", "source", "source_unit", "state", "target", "translated", "translation", "url", "web_url", ) ID: ClassVar[str] = "id" MAPPINGS: ClassVar[dict[str, Any]] = {"translation": Translation} def list(self): """API compatibility method, returns self.""" self.ensure_loaded("id") return self def patch(self, **kwargs): return self.weblate.raw_request("patch", self._url, data=kwargs) def put(self, **kwargs): return self.weblate.raw_request("put", self._url, data=kwargs) def delete(self): return self.weblate.raw_request("delete", self._url) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/config.py0000644000175100001770000000600014566103766014247 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Weblate API library, configuration.""" from __future__ import annotations import os.path from configparser import NoOptionError, RawConfigParser from xdg.BaseDirectory import load_config_paths import wlc __all__ = ["NoOptionError", "WeblateConfig"] class WeblateConfig(RawConfigParser): """Configuration parser wrapper with defaults.""" def __init__(self, section="weblate"): """Construct WeblateConfig object.""" super().__init__(delimiters=("=",)) self.section = section self.set_defaults() def set_defaults(self): """Set default values.""" self.add_section("keys") self.add_section(self.section) self.set(self.section, "key", "") self.set(self.section, "url", wlc.API_URL) self.set(self.section, "retries", 0) self.set(self.section, "timeout", 300) self.set(self.section, "status_forcelist", None) self.set( self.section, "method_whitelist", "HEAD\nTRACE\nDELETE\nOPTIONS\nPUT\nGET" ) self.set(self.section, "backoff_factor", 0) @staticmethod def find_configs(): # Handle Windows specifically if "APPDATA" in os.environ: win_path = os.path.join(os.environ["APPDATA"], "weblate.ini") if os.path.exists(win_path): yield win_path # Generic XDG paths yield from load_config_paths("weblate") yield from load_config_paths("weblate.ini") def load(self, path=None): """Load configuration from XDG paths.""" if path is None: path = list(self.find_configs()) self.read(path) # Try reading from current dir cwd = os.path.abspath(".") prev = None while cwd != prev: for name in (".weblate", ".weblate.ini", "weblate.ini"): conf_name = os.path.join(cwd, name) if os.path.exists(conf_name): self.read(conf_name) break prev = cwd cwd = os.path.dirname(cwd) def get_url_key(self): """Get API URL and key.""" url = self.get(self.section, "url") key = self.get(self.section, "key") if not key: try: key = self.get("keys", url) except NoOptionError: key = "" return url, key def get_request_options(self): retries = int(self.get(self.section, "retries")) timeout = int(self.get(self.section, "timeout")) status_forcelist = self.get(self.section, "status_forcelist") if status_forcelist is not None: status_forcelist = [int(option) for option in status_forcelist.split(",")] method_whitelist = self.get(self.section, "method_whitelist").split(",") backoff_factor = float(self.get(self.section, "backoff_factor")) return retries, status_forcelist, method_whitelist, backoff_factor, timeout ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/main.py0000644000175100001770000005655214566103766013747 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Command-line interface for Weblate.""" from __future__ import annotations import csv import http.client import json import logging import sys from argparse import ArgumentParser from datetime import datetime from pathlib import Path from typing import Callable import argcomplete from requests.exceptions import RequestException import wlc from wlc.config import NoOptionError, WeblateConfig COMMANDS: dict[str, Callable] = {} SORT_ORDER: list[str] = [] def register_command(command): """Register command decorator in the command-line interface.""" COMMANDS[command.name] = command return command def get_parser(): """Create argument parser.""" parser = ArgumentParser( description=f"Weblate <{wlc.URL}> command-line utility.", epilog=f"This utility is developed at <{wlc.DEVEL_URL}>.", ) parser.add_argument( "--format", "-f", default="text", choices=("text", "csv", "json", "html"), help="Output format to use", ) parser.add_argument( "--version", "-v", action="version", version=f"wlc {wlc.__version__}" ) parser.add_argument( "--debug", "-D", action="store_true", help="Print verbosely http communication" ) parser.add_argument("--config", "-c", help="Path to configuration file") parser.add_argument( "--config-section", "-s", default="weblate", help="Configuration section to use" ) parser.add_argument("--key", "-k", help="API key") parser.add_argument("--url", "-u", help="API URL") subparser = parser.add_subparsers( title="Command", description=""" Specifies what action to perform. Invoke with --help to get more detailed help. """, dest="command", ) subparser.required = True for command in COMMANDS.values(): command.add_parser(subparser) argcomplete.autocomplete(parser) return parser class CommandError(Exception): """Generic error from command-line.""" def __init__(self, message, detail=None): """Create CommandError exception.""" if detail is not None: message = "\n".join((message, detail)) super().__init__(message) class DateTimeEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, datetime): return o.isoformat() return super().default(o) def sort_key(value): """Key getter for sorting.""" try: return f"{SORT_ORDER.index(value):02d}" except ValueError: return value def sorted_items(value): """Sorted items iterator.""" for key in sorted(value.keys(), key=sort_key): yield key, value[key] class Command: """Basic command object.""" name = "" description = "" def __init__(self, args, config, stdout=None, stdin=None): """Construct Command object.""" self.args = args self.config = config if stdout is None: self.stdout = sys.stdout else: self.stdout = stdout if stdin is None: self.stdin = sys.stdin else: self.stdin = stdin self.wlc = wlc.Weblate(config=config) @classmethod def add_parser(cls, subparser): """Create parser for command-line.""" return subparser.add_parser(cls.name, description=cls.description) def println(self, line): """Print single line to output.""" print(line, file=self.stdout) def print_json(self, value): """JSON print.""" json.dump(value, self.stdout, cls=DateTimeEncoder, indent=2) @staticmethod def format_value(value): """Format value for rendering.""" if isinstance(value, float): return f"{value:.1f}" if isinstance(value, int): return f"{value}" if value is None: return "" if hasattr(value, "to_value"): return value.to_value() return value def print_csv(self, value, header): """CSV print.""" if header is not None: writer = csv.DictWriter(self.stdout, header) writer.writeheader() for row in value: writer.writerow({k: self.format_value(v) for k, v in row.items()}) else: writer = csv.writer(self.stdout) for key, data in sorted_items(value): writer.writerow((key, self.format_value(data))) def print_html(self, value, header): """HTML print.""" if header is not None: self.println("") self.println(" ") self.println(" ") for key in header: self.println(f" ") self.println(" ") self.println(" ") self.println(" ") for item in value: self.println(" ") for key in header: self.println( f" " ) self.println(" ") self.println(" ") self.println("
{key}
{self.format_value(getattr(item, key))}
") else: self.println("") for key, data in sorted_items(value): self.println(" ") self.println(f" ") self.println(" ") self.println("
{key}{self.format_value(data)}
") def print_text(self, value, header): """Text print.""" if header is not None: for item in value: for key in header: self.println(f"{key}: {self.format_value(getattr(item, key))}") self.println("") else: for key, data in sorted_items(value): self.println(f"{key}: {self.format_value(data)}") def print(self, value): """Print value.""" header = None if isinstance(value, list): if len(value) == 0: return header = sorted(value[0].keys(), key=sort_key) if self.args.format == "json": self.print_json(value) elif self.args.format == "csv": self.print_csv(value, header) elif self.args.format == "html": self.print_html(value, header) else: self.print_text(value, header) def run(self): """Main execution of the command.""" raise NotImplementedError class ObjectCommand(Command): """Command to require path to object.""" @classmethod def add_parser(cls, subparser): """Create parser for command-line.""" parser = super().add_parser(subparser) parser.add_argument( "object", nargs="*", help=( "Object on which we should operate " "(project, component or translation)" ), ) return parser def get_object(self, blank: bool = False): """Return object.""" if self.args.object: path = self.args.object[0] else: try: path = self.config.get(self.config.section, "translation") except NoOptionError: path = None if not path: if blank: return None raise CommandError("No object passed on command-line!") return self.wlc.get_object(path) def run(self): """Main execution of the command.""" raise NotImplementedError @staticmethod def check_result(result, message): """Check result json data.""" if not result["result"]: raise CommandError(message, result.get("detail", "")) class ProjectCommand(ObjectCommand): """Wrapper to allow only project objects.""" def get_object(self, blank: bool = False): """Return component object.""" obj = super().get_object(blank=blank) if not isinstance(obj, wlc.Project): raise CommandError("Not supported") return obj def run(self): """Main execution of the command.""" raise NotImplementedError class ComponentCommand(ObjectCommand): """Wrapper to allow only component objects.""" def get_object(self, blank: bool = False): """Return component object.""" obj = super().get_object(blank=blank) if not isinstance(obj, wlc.Component): raise CommandError("This command is supported only at component level") return obj def run(self): """Main execution of the command.""" raise NotImplementedError class TranslationCommand(ObjectCommand): """Wrapper to allow only translation objects.""" def get_object(self, blank: bool = False): """Return translation object.""" obj = super().get_object(blank=blank) if not isinstance(obj, wlc.Translation): raise CommandError("This command is supported only at translation level") return obj def run(self): """Main execution of the command.""" raise NotImplementedError @register_command class Version(Command): """Print version.""" name = "version" description = "Prints program version" @classmethod def add_parser(cls, subparser): """Create parser for command-line.""" parser = super().add_parser(subparser) parser.add_argument("--bare", action="store_true", help="Print only version") return parser def run(self): """Main execution of the command.""" if self.args.bare: self.println(wlc.__version__) else: self.print({"version": wlc.__version__}) @register_command class ListProjects(Command): """List projects.""" name = "list-projects" description = "Lists all projects" def run(self): """Main execution of the command.""" self.print(list(self.wlc.list_projects())) @register_command class ListComponents(ProjectCommand): """List components.""" name = "list-components" description = "Lists all components (optionally per project)" def run(self): """Main execution of the command.""" if self.args.object: obj = self.get_object() component_list = list(obj.list()) for component in component_list: component.setattrvalue("project", obj) self.print(component_list) else: self.print(list(self.wlc.list_components())) @register_command class ListLanguages(Command): """List languages.""" name = "list-languages" description = "Lists all languages" def run(self): """Main execution of the command.""" self.print(list(self.wlc.list_languages())) @register_command class ListTranslations(ComponentCommand): """List translations.""" name = "list-translations" description = "Lists all translations (optionally per component)" def run(self): """Main execution of the command.""" if self.args.object: obj = self.get_object() translation_list = list(obj.list()) for translation in translation_list: translation.setattrvalue("component", obj) self.print(translation_list) else: self.print(list(self.wlc.list_translations())) @register_command class Show(ObjectCommand): """Show object.""" name = "show" description = "Shows translation, component or project" def run(self): """Executor.""" self.print(self.get_object()) @register_command class Delete(ObjectCommand): """Delete object.""" name = "delete" description = "Delete translation, component or project" def run(self): """Executor.""" self.get_object().delete() @register_command class ListObjects(ObjectCommand): """List object.""" name = "ls" description = "List content of translation, component or project" def run(self): """Executor.""" obj = self.get_object(blank=True) if obj: self.print(list(obj.list())) else: # Called without params lsproj = ListProjects(self.args, self.config, self.stdout) lsproj.run() @register_command class Commit(ObjectCommand): """Commit object.""" name = "commit" description = "Commits changes in translation, component or project" def run(self): """Executor.""" obj = self.get_object() result = obj.commit() self.check_result(result, "Failed to commit changes!") @register_command class Push(ObjectCommand): """Push object.""" name = "push" description = ( "Pushes changes from Weblate to repository " "in translation, component or project from Weblate" ) def run(self): """Executor.""" obj = self.get_object() result = obj.push() self.check_result(result, "Failed to push changes!") @register_command class Pull(ObjectCommand): """Pull object.""" name = "pull" description = ( "Pulls changes to Weblate from repository " "in translation, component or project" ) def run(self): """Executor.""" obj = self.get_object() result = obj.pull() self.check_result(result, "Failed to pull changes!") @register_command class Reset(ObjectCommand): """Reset object.""" name = "reset" description = ( "Resets all changes in Weblate repository to upstream " "in translation, component or project" ) def run(self): """Executor.""" obj = self.get_object() result = obj.reset() self.check_result(result, "Failed to reset changes!") @register_command class Cleanup(ObjectCommand): """Cleanup object.""" name = "cleanup" description = ( "Cleanups all untracked changes in Weblate repository " "in translation, component or project" ) def run(self): """Executor.""" obj = self.get_object() result = obj.cleanup() self.check_result(result, "Failed to cleanup changes!") @register_command class Repo(ObjectCommand): """Display repository status for object.""" name = "repo" description = ( "Displays status of Weblate repository for translation, component or project" ) def run(self): """Executor.""" obj = self.get_object() self.print(obj.repository()) @register_command class Changes(ObjectCommand): """Display repository status for object.""" name = "changes" description = "Displays list of changes for translation, component or project" def run(self): """Executor.""" obj = self.get_object() self.print(list(obj.changes())) @register_command class Stats(ObjectCommand): """Display repository statistics for object.""" name = "stats" description = "Displays statistics for translation, component or project" def run(self): """Executor.""" obj = self.get_object() if isinstance(obj, wlc.Project): self.print(obj.statistics()) elif isinstance(obj, wlc.Component): self.print(list(obj.statistics())) else: self.print(obj.statistics()) @register_command class LockStatus(ComponentCommand): """Show lock status.""" name = "lock-status" description = "Shows component lock status" def run(self): """Executor.""" obj = self.get_object() self.print(obj.lock_status()) @register_command class Lock(ComponentCommand): """Lock component for transaltion.""" name = "lock" description = "Locks componets from translations" def run(self): """Executor.""" obj = self.get_object() obj.lock() @register_command class Unlock(ComponentCommand): """Unock component for transaltion.""" name = "unlock" description = "Unlocks componets from translations" def run(self): """Executor.""" obj = self.get_object() obj.unlock() @register_command class Download(ObjectCommand): """Downloads translation file.""" name = "download" description = """ Downloads translation file for a project, a component or a file For a project or a component we will download a zip to --output """ @classmethod def add_parser(cls, subparser): """Create parser for command-line.""" parser = super().add_parser(subparser) parser.add_argument( "-c", "--convert", help="Convert file format on server (defaults to none)" ) parser.add_argument( "-o", "--output", help="File|Directory where to store output (defaults to stdout)", ) parser.add_argument( "-g", "--no-glossary", action="store_true", default=False, help="Disable download glossary (defaults to False)", ) return parser def download_component(self, component): """Download a single component as file (if not a translation).""" content = component.download(self.args.convert) if self.args.output is None: raise CommandError("Output is needed for download!") directory = Path(self.args.output) file_path = directory.joinpath(f"{component.project.slug}-{component.slug}.zip") if not directory.exists(): directory.mkdir(exist_ok=True, parents=True) with open(file_path, "wb") as file: file.write(content) def download_components(self, iterable): for component in iterable: # Ignore glossary via --no-glossary if getattr(component, "is_glossary", False) and self.args.no_glossary: continue self.download_component(component) item = f"{component.project.slug}/{component.slug}" self.println(f"downloaded translations for component: {item}") def run(self): """Executor.""" obj = self.get_object(blank=True) # Translation locale for a component if isinstance(obj, wlc.Translation): content = obj.download(self.args.convert) if self.args.output and self.args.output != "-": with open(self.args.output, "wb") as handle: handle.write(content) else: self.stdout.buffer.write(content) return # All translations for a component if isinstance(obj, wlc.Component): for component in self.wlc.list_components(): # Only download for the component we scoped if obj.slug == component.slug: self.download_component(component) self.println( f"downloaded translations for component: {self.args.object[0]}" ) return # All translations for a project if isinstance(obj, wlc.Project): self.download_components(obj.list()) self.println(f"downloaded translations for project: {self.args.object[0]}") return self.download_components(self.wlc.list_components()) @register_command class Upload(TranslationCommand): """Uploads translation file.""" name = "upload" description = "Uploads translation file" @classmethod def add_parser(cls, subparser): """Create parser for command-line.""" parser = super().add_parser(subparser) parser.add_argument("-i", "--input", help="File to upload (defaults to stdin)") parser.add_argument( "--overwrite", action="store_true", help="Overwrite existing translations (defaults to none)", ) parser.add_argument( "--author-name", help="Author name, to override currently authenticated user", ) parser.add_argument( "--author-email", help="Author e-mail, to override currently authenticated user", ) parser.add_argument( "--method", choices=( "translate", "approve", "suggest", "fuzzy", "replace", "source", "add", ), default="translate", ) parser.add_argument("--fuzzy", choices=("", "process", "approve"), default="") return parser def run(self): """Executor.""" obj = self.get_object() kwargs = {"overwrite": self.args.overwrite} for arg in ("author_name", "author_email", "method", "fuzzy"): value = getattr(self.args, arg, None) if value: kwargs[arg] = value if self.args.input and self.args.input != "-": with open(self.args.input, "rb") as handle: result = obj.upload(handle, **kwargs) else: result = obj.upload(self.stdin.buffer.read(), **kwargs) if not ( "count" in result and "result" in result and "total" in result and "accepted" in result and "not_found" in result and "skipped" in result ): raise CommandError( "Failed to upload translations!", result.get("detail", ""), ) def parse_settings(args, settings): """Read settings based on command-line params.""" config = WeblateConfig(args.config_section) if settings is None: config.load(args.config) else: for section, key, value in settings: config.set(section, key, value) for override in ("key", "url"): value = getattr(args, override) if value is not None: config.set(args.config_section, override, value) return config def main(settings=None, stdout=None, stdin=None, args=None): """Execution entry point.""" parser = get_parser() if args is None: args = sys.argv[1:] args = parser.parse_args(args) if args.debug: http.client.HTTPConnection.debuglevel = 1 logging.basicConfig() logging.getLogger().setLevel(logging.DEBUG) requests_log = logging.getLogger("requests.packages.urllib3") requests_log.setLevel(logging.DEBUG) requests_log.propagate = True config = parse_settings(args, settings) command = COMMANDS[args.command](args, config, stdout, stdin) try: command.run() except wlc.WeblateDeniedError: url, key = config.get_url_key() if key: print( f"API key configured for {url} was rejected by server.", file=sys.stderr ) else: print(f"Missing API key for {url}.", file=sys.stderr) print( "The API key can be specified by --key or in the configuration file.", file=sys.stderr, ) return 1 except RequestException as error: print(f"Request failed: {error}", file=sys.stderr) return 10 except (CommandError, wlc.WeblateException) as error: print(f"Error: {error}", file=sys.stderr) return 1 else: return 0 finally: if args.debug: http.client.HTTPConnection.debuglevel = 0 logging.getLogger().setLevel(logging.DEBUG) requests_log = logging.getLogger("requests.packages.urllib3") requests_log.setLevel(logging.DEBUG) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_base.py0000644000175100001770000001654014566103766014765 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Test helpers.""" from __future__ import annotations import os from email import message_from_string from hashlib import blake2b from unittest import TestCase import responses from requests.exceptions import RequestException DATA_TEST_BASE = os.path.join(os.path.dirname(__file__), "test_data", "api") class ResponseHandler: """responses response handler.""" def __init__(self, body, filename, auth=False): """Construct response handler object.""" self.body = body self.filename = filename self.auth = auth def __call__(self, request): """Call interface for responses.""" if self.auth and request.headers.get("Authorization") != "Token KEY": return 403, {}, "" content = self.get_content(request) return 200, {}, content def get_content(self, request): """Return content for given request.""" filename = self.get_filename(request) if filename is not None: try: with open(filename, "rb") as handle: return handle.read() except FileNotFoundError as error: error.strerror = "Failed to find response mock" raise error # noqa: TRY201 return self.body @staticmethod def format_body(body): if not body: return "" body = body.decode() return ( body.replace(": ", "=") .replace("{", "") .replace("}", "") .replace('"', "") .replace(":", "-") .replace("/", "-") .replace(", ", "--") .replace(" ", "-") .replace("[", "-") .replace("]", "-") .replace("*", "-") ) def get_filename(self, request): """Return filename for given request.""" filename_parts = [self.filename, request.method] if request.method != "GET": content_type = request.headers.get("content-type", None) if content_type is not None and content_type.startswith( "multipart/form-data" ): filename_parts.append( self.format_multipart_body(request.body, content_type) ) else: filename_parts.append(self.format_body(request.body)) return "--".join(filename_parts) if "?" in request.path_url: filename_parts.append(request.path_url.split("?", 1)[-1]) return "--".join(filename_parts) return None @staticmethod def format_multipart_body(body, content_type): message = message_from_string( f"Content-Type: {content_type}\n\n{body.decode()}" ) payload = [] for part in message.get_payload(): name = part.get_param("name", header="content-disposition") value = part.get_payload() if isinstance(value, bytes): value = value.decode() payload.append((name, value)) digest = blake2b(digest_size=4) digest.update(repr(sorted(payload)).encode()) return digest.hexdigest() def register_uri(path, domain="http://127.0.0.1:8000/api", auth=False): """Simplified URL registration.""" filename = os.path.join(DATA_TEST_BASE, path.replace("/", "-")) url = "/".join((domain, path, "")) with open(filename, "rb") as handle: responses.add_callback( responses.GET, url, callback=ResponseHandler(handle.read(), filename, auth), content_type="application/json", ) responses.add_callback( responses.POST, url, callback=ResponseHandler(handle.read(), filename, auth), content_type="application/json", ) responses.add_callback( responses.DELETE, url, callback=ResponseHandler(handle.read(), filename, auth), content_type="application/json", ) responses.add_callback( responses.PATCH, url, callback=ResponseHandler(handle.read(), filename, auth), content_type="application/json", ) responses.add_callback( responses.PUT, url, callback=ResponseHandler(handle.read(), filename, auth), content_type="application/json", ) def raise_error(request): """Raise IOError.""" if "/io" in request.path_url: raise RequestException("Some error") raise FileNotFoundError("Bug") def register_error( path, code, domain="http://127.0.0.1:8000/api", method=responses.GET, **kwargs ): """Simplified URL error registration.""" url = "/".join((domain, path, "")) if "callback" in kwargs: responses.add_callback(method, url, **kwargs) else: responses.add(method, url, status=code, **kwargs) def register_uris(): """Register URIs for responses.""" paths = ( "categories", "categories/1", "changes", "components", "components/hello/android", "components/hello/android/file", "components/hello/olderweblate", "components/hello/weblate", "components/hello/weblate/file", "components/hello/weblate/changes", "components/hello/weblate/lock", "components/hello/weblate/repository", "components/hello/weblate/statistics", "components/hello/weblate/translations", "languages", "projects", "projects/empty", "projects/empty/components", "projects/hello", "projects/hello/categories", "projects/hello/changes", "projects/hello/components", "projects/hello/languages", "projects/hello/repository", "projects/hello/statistics", "projects/invalid", "translations", "translations/hello/weblate/cs", "translations/hello/weblate/cs/changes", "translations/hello/weblate/cs/file", "translations/hello/weblate/cs/repository", "translations/hello/weblate/cs/statistics", "translations/hello/weblate/cs/units", "translations/hello/android/en/units", "units", "units/123", ) for path in paths: register_uri(path) register_uri("projects/acl", auth=True) register_uri("projects", domain="https://example.net") register_error("projects/nonexisting", 404) register_error("projects/denied", 403) register_error( "projects/denied_json/components", 403, method=responses.POST, json={"detail": "Can not create components"}, ) register_error( "projects/throttled", 429, headers={"X-RateLimit-Limit": "100", "Retry-After": "81818"}, ) register_error("projects/error", 500) register_error("projects/io", 500, callback=raise_error) register_error("projects/bug", 500, callback=raise_error) register_error("projects", 401, domain="http://denied.example.com") class APITest(TestCase): """Base class for API testing.""" def setUp(self): """Enable responses and register urls.""" responses.mock.start() register_uris() def tearDown(self): """Disable responses.""" responses.mock.stop() responses.mock.reset() ././@PaxHeader0000000000000000000000000000003300000000000010211 xustar0027 mtime=1708689417.838047 wlc-1.14/wlc/test_data/0000755000175100001770000000000014566104012014365 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/.weblate0000644000175100001770000000010714566103766016026 0ustar00runnerdocker[weblate] url = http://127.0.0.1:8000/api/ translation = hello/weblate ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8540468 wlc-1.14/wlc/test_data/api/0000755000175100001770000000000014566104012015136 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/categories0000644000175100001770000000105414566103766017225 0ustar00runnerdocker{ "count": 2, "next": null, "previous": null, "results": [ { "category": null, "name": "3.12", "project": "http://127.0.0.1:8000/api/projects/hello/", "slug": "latest", "url": "http://127.0.0.1:8000/api/categories/1/" }, { "category": null, "name": "3.11", "project": "http://127.0.0.1:8000/api/projects/hello/", "slug": "3-11", "url": "http://127.0.0.1:8000/api/categories/2/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/categories-10000644000175100001770000000025714566103766017367 0ustar00runnerdocker{ "category": null, "name": "Hi", "project": "http://127.0.0.1:8000/api/projects/hello/", "slug": "hi", "url": "http://127.0.0.1:8000/api/categories/1/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/changes0000644000175100001770000000216214566103766016511 0ustar00runnerdocker { "count": 2, "next": null, "previous": null, "results": [ { "unit": null, "component": "http://127.0.0.1:8000/api/components/hello/android/", "url": "http://127.0.0.1:8000/api/changes/1/", "translation": null, "dictionary": null, "user": null, "author": null, "timestamp": "2016-11-18T10:47:01.355911Z", "action": 20, "target": "", "id": 353, "action_name": "Sloučen repozitář" }, { "unit": "http://127.0.0.1:8000/api/units/227/", "component": "http://127.0.0.1:8000/api/components/hello/weblate/", "url": "http://127.0.0.1:8000/api/changes/2/", "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "dictionary": null, "user": 2, "author": 2, "timestamp": "2016-10-24T07:21:54.121348Z", "action": 26, "target": "", "id": 350, "action_name": "Odstraněn návrh" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components0000644000175100001770000001177014566103766017273 0ustar00runnerdocker{ "count": 2, "next": null, "previous": null, "results": [ { "agreement": "", "branch": "main", "category": "http://127.0.0.1:8000/api/categories/1/", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "priority": 100, "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "statistics_url": "http://127.0.0.1:8000/api/components/hello/android/statistics/", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, { "agreement": "", "branch": "main", "category": null, "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "priority": 100, "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "statistics_url": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-android0000644000175100001770000000347614566103766022016 0ustar00runnerdocker{ "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "is_glossary": true, "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "statistics_url": "http://127.0.0.1:8000/api/components/hello/android/statistics/", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-android-file0000644000175100001770000000000014566103766022707 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-android-file--GET--format=zip0000644000175100001770000000000014566103766025564 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-olderweblate0000644000175100001770000000240514566103766023036 0ustar00runnerdocker{ "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "priority": 100, "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "statistics_url": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "changes_list_url": "http://127.0.0.1:8000/api/components/hello/weblate/changes/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate0000644000175100001770000000371114566103766022011 0ustar00runnerdocker{ "agreement": "", "branch": "main", "category": "http://127.0.0.1:8000/api/categories/1/", "file_format": "po", "filemask": "po/*.po", "git_export": "", "is_glossary": false, "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "priority": 100, "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "statistics_url": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "changes_list_url": "http://127.0.0.1:8000/api/components/hello/weblate/changes/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate--DELETE--0000644000175100001770000000000014566103766023144 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate--PATCH--priority=800000644000175100001770000000001414566103766025115 0ustar00runnerdocker--patched-- ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-changes0000644000175100001770000000216214566103766023416 0ustar00runnerdocker { "count": 2, "next": null, "previous": null, "results": [ { "unit": null, "component": "http://127.0.0.1:8000/api/components/hello/android/", "url": "http://127.0.0.1:8000/api/changes/1/", "translation": null, "dictionary": null, "user": null, "author": null, "timestamp": "2016-11-18T10:47:01.355911Z", "action": 20, "target": "", "id": 353, "action_name": "Sloučen repozitář" }, { "unit": "http://127.0.0.1:8000/api/units/227/", "component": "http://127.0.0.1:8000/api/components/hello/weblate/", "url": "http://127.0.0.1:8000/api/changes/2/", "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "dictionary": null, "user": 2, "author": 2, "timestamp": "2016-10-24T07:21:54.121348Z", "action": 26, "target": "", "id": 350, "action_name": "Odstraněn návrh" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-file0000644000175100001770000000000014566103766022712 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-file--GET--format=zip0000644000175100001770000000000014566103766025567 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-lock0000644000175100001770000000003014566103766022726 0ustar00runnerdocker{ "locked": false } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-lock--POST--lock=00000644000175100001770000000003014566103766024746 0ustar00runnerdocker{ "locked": false } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-lock--POST--lock=10000644000175100001770000000002714566103766024755 0ustar00runnerdocker{ "locked": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-repository0000644000175100001770000000201314566103766024220 0ustar00runnerdocker{ "merge_failure": null, "needs_commit": false, "needs_merge": false, "needs_push": true, "remote_commit": { "author": "Michal \u010ciha\u0159 ", "author_email": "michal@cihar.com", "author_name": "Michal \u010ciha\u0159", "authordate": "2014-11-19T12:50:24+01:00", "commit": "Michal \u010ciha\u0159 ", "commit_email": "michal@cihar.com", "commit_name": "Michal \u010ciha\u0159", "commitdate": "2014-11-19T12:50:24+01:00", "message": "Add Arabic\n\nSigned-off-by: Michal \u010ciha\u0159 ", "revision": "8ba2d7e113dd58a3695d1b196f24e37a7b5bcb80", "shortrevision": "8ba2d7e", "summary": "Add Arabic" }, "status": "On branch main\nYour branch is ahead of 'origin/main' by 1 commit.\n (use \"git push\" to publish your local commits)\nnothing to commit, working directory clean\n", "url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-repository--POST--operation=cleanup0000644000175100001770000000002714566103766030603 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-repository--POST--operation=commit0000644000175100001770000000002714566103766030444 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-repository--POST--operation=pull0000644000175100001770000000002714566103766030130 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-repository--POST--operation=push0000644000175100001770000000011514566103766030131 0ustar00runnerdocker{ "detail": "Push is disabled for Hello/Weblate.", "result": false } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-repository--POST--operation=reset0000644000175100001770000000002714566103766030276 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-statistics0000644000175100001770000002761014566103766024205 0ustar00runnerdocker{ "count": 33, "next": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/?page=2", "previous": null, "results": [ { "code": "ar", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Arabic", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/ar/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/ar/" }, { "code": "hy", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Armenian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/hy/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/hy/" }, { "code": "ca", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Catalan", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/ca/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/ca/" }, { "code": "zh_CN", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Chinese (China)", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/zh_CN/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/zh_CN/" }, { "code": "zh_TW", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Chinese (Taiwan)", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/zh_TW/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/zh_TW/" }, { "code": "cs", "failing": 3, "failing_percent": 75.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": "Weblate Admin", "last_change": "2016-03-07T10:20:05.499", "recent_changes": 123, "name": "Czech", "total": 4, "total_words": 15, "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/engage/hello/cs/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/cs/" }, { "code": "da", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Danish", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/da/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/da/" }, { "code": "nl", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Dutch", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/nl/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/nl/" }, { "code": "en_GB", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "English (United Kingdom)", "total": 4, "total_words": 15, "translated": 1, "translated_percent": 25.0, "translated_words": 2, "url": "http://127.0.0.1:8000/engage/hello/en_GB/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/en_GB/" }, { "code": "fi", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Finnish", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/fi/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/fi/" }, { "code": "fr", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "French", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/fr/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/fr/" }, { "code": "gl", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Galician", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/gl/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/gl/" }, { "code": "ka", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Georgian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/ka/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/ka/" }, { "code": "de", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "German", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/de/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/de/" }, { "code": "el", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Greek", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/el/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/el/" }, { "code": "he", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Hebrew", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/he/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/he/" }, { "code": "hu", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Hungarian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/hu/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/hu/" }, { "code": "it", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Italian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/it/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/it/" }, { "code": "ja", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Japanese", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/ja/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/ja/" }, { "code": "lt", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Lithuanian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/lt/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/lt/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-statistics--GET--page=20000644000175100001770000001737114566103766026050 0ustar00runnerdocker{ "count": 33, "next": null, "previous": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "results": [ { "code": "mn", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Mongolian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/mn/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/mn/" }, { "code": "nb", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Norwegian Bokm\u00e5l", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/nb/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/nb/" }, { "code": "fa", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Persian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/fa/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/fa/" }, { "code": "pl", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Polish", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/pl/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/pl/" }, { "code": "pt_BR", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Portuguese (Brazil)", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/pt_BR/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/pt_BR/" }, { "code": "ro", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Romanian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/ro/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/ro/" }, { "code": "ru", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Russian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/ru/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/ru/" }, { "code": "sr", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Serbian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/sr/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/sr/" }, { "code": "sk", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Slovak", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/sk/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/sk/" }, { "code": "sl", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Slovenian", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/sl/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/sl/" }, { "code": "es", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Spanish", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/es/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/es/" }, { "code": "sv", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Swedish", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/sv/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/sv/" }, { "code": "tr", "failing": 0, "failing_percent": 0.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": null, "last_change": null, "recent_changes": 0, "name": "Turkish", "total": 4, "total_words": 15, "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/engage/hello/tr/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/tr/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-statistics--GET--page=30000644000175100001770000000010714566103766026036 0ustar00runnerdocker{ "detail": "Invalid page \"3\": That page contains no results." } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-translations0000644000175100001770000007443714566103766024545 0ustar00runnerdocker{ "count": 33, "next": "http://127.0.0.1:8000/api/components/hello/weblate/translations/?page=2", "previous": null, "results": [ { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ar/file/", "filename": "po/ar.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ar", "direction": "rtl", "name": "Arabic", "nplurals": 6, "pluralequation": "n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5", "url": "http://127.0.0.1:8000/api/languages/ar/", "web_url": "http://127.0.0.1:8000/languages/ar/" }, "language_code": "ar", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ar/repository/", "revision": "0fa1366cc77ccb3000160c605b9fde04557090a5", "share_url": "http://127.0.0.1:8000/engage/hello/ar/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ar/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ar/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ar/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hy/file/", "filename": "po/hy.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "hy", "direction": "ltr", "name": "Armenian", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/hy/", "web_url": "http://127.0.0.1:8000/languages/hy/" }, "language_code": "hy", "last_author": null, "last_change": "2016-03-07T10:20:05.499", "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hy/repository/", "revision": "afb17482bcfa8b87bc6d6e1a528f07b7a1eba2ce", "share_url": "http://127.0.0.1:8000/engage/hello/hy/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/hy/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/hy/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/hy/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ca/file/", "filename": "po/ca.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ca", "direction": "ltr", "name": "Catalan", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/ca/", "web_url": "http://127.0.0.1:8000/languages/ca/" }, "language_code": "ca", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ca/repository/", "revision": "f1d3eeac05a28dfd1c8b16285208741a7f5c20ea", "share_url": "http://127.0.0.1:8000/engage/hello/ca/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ca/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ca/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ca/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_CN/file/", "filename": "po/zh_CN.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "zh_CN", "direction": "ltr", "name": "Chinese (China)", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/zh_CN/", "web_url": "http://127.0.0.1:8000/languages/zh_CN/" }, "language_code": "zh_CN", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_CN/repository/", "revision": "f0c09c57167d74977e652fa49b8ce1b3adcd51a3", "share_url": "http://127.0.0.1:8000/engage/hello/zh_CN/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/zh_CN/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_CN/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/zh_CN/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_TW/file/", "filename": "po/zh_TW.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "zh_TW", "direction": "ltr", "name": "Chinese (Taiwan)", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/zh_TW/", "web_url": "http://127.0.0.1:8000/languages/zh_TW/" }, "language_code": "zh_TW", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_TW/repository/", "revision": "70b1c532d9d8f4f19088cc3a3a2377ad1ce6383b", "share_url": "http://127.0.0.1:8000/engage/hello/zh_TW/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/zh_TW/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_TW/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/zh_TW/" }, { "failing_checks": 3, "failing_checks_percent": 75.0, "failing_checks_words": 11, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/file/", "filename": "po/cs.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "cs", "direction": "ltr", "name": "Czech", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/cs/", "web_url": "http://127.0.0.1:8000/languages/cs/" }, "language_code": "cs", "last_author": "Weblate Admin", "last_change": "2016-03-07T10:20:05.499", "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/repository/", "revision": "c0e48e09bd6d1c3a8502176d5f79c9c7e6463653", "share_url": "http://127.0.0.1:8000/engage/hello/cs/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/cs/", "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/cs/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/da/file/", "filename": "po/da.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "da", "direction": "ltr", "name": "Danish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/da/", "web_url": "http://127.0.0.1:8000/languages/da/" }, "language_code": "da", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/da/repository/", "revision": "0eeaf29f8743dc44f2ce59f9f5f89794cdcb4b2d", "share_url": "http://127.0.0.1:8000/engage/hello/da/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/da/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/da/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/da/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl/file/", "filename": "po/nl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "nl", "direction": "ltr", "name": "Dutch", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/nl/", "web_url": "http://127.0.0.1:8000/languages/nl/" }, "language_code": "nl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl/repository/", "revision": "97e9651626941843a98075fefae5006604c63022", "share_url": "http://127.0.0.1:8000/engage/hello/nl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/nl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/nl/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/en_GB/file/", "filename": "po/en_GB.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "en_GB", "direction": "ltr", "name": "English (United Kingdom)", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en_GB/", "web_url": "http://127.0.0.1:8000/languages/en_GB/" }, "language_code": "en_GB", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/en_GB/repository/", "revision": "7516a8d3773548a5f1aabe32299cfd48db6b2f68", "share_url": "http://127.0.0.1:8000/engage/hello/en_GB/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/en_GB/", "translated": 1, "translated_percent": 25.0, "translated_words": 2, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/en_GB/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/en_GB/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fi/file/", "filename": "po/fi.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "fi", "direction": "ltr", "name": "Finnish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/fi/", "web_url": "http://127.0.0.1:8000/languages/fi/" }, "language_code": "fi", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fi/repository/", "revision": "3f77f09b6e5b779bb1cf4e450cb841c02a379539", "share_url": "http://127.0.0.1:8000/engage/hello/fi/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/fi/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/fi/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/fi/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fr/file/", "filename": "po/fr.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "fr", "direction": "ltr", "name": "French", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/fr/", "web_url": "http://127.0.0.1:8000/languages/fr/" }, "language_code": "fr", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fr/repository/", "revision": "bf66e3a5d443473f923dd3eff8029bbed947fd37", "share_url": "http://127.0.0.1:8000/engage/hello/fr/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/fr/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/fr/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/fr/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/gl/file/", "filename": "po/gl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "gl", "direction": "ltr", "name": "Galician", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/gl/", "web_url": "http://127.0.0.1:8000/languages/gl/" }, "language_code": "gl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/gl/repository/", "revision": "1716940c8564f1f97b77c5546b2cf8f6f076a955", "share_url": "http://127.0.0.1:8000/engage/hello/gl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/gl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/gl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/gl/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ka/file/", "filename": "po/ka.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ka", "direction": "ltr", "name": "Georgian", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ka/", "web_url": "http://127.0.0.1:8000/languages/ka/" }, "language_code": "ka", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ka/repository/", "revision": "e416a99698bf93ae338382496a76d23f4f0865a5", "share_url": "http://127.0.0.1:8000/engage/hello/ka/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ka/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ka/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ka/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/de/file/", "filename": "po/de.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "de", "direction": "ltr", "name": "German", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/de/", "web_url": "http://127.0.0.1:8000/languages/de/" }, "language_code": "de", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/de/repository/", "revision": "cc7bbc49b76f0e87b32235ffbac4816558eafd8c", "share_url": "http://127.0.0.1:8000/engage/hello/de/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/de/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/de/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/de/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/el/file/", "filename": "po/el.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "el", "direction": "ltr", "name": "Greek", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/el/", "web_url": "http://127.0.0.1:8000/languages/el/" }, "language_code": "el", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/el/repository/", "revision": "8d8ccc657b269199c1aa0c02aa56f706fb7b00b3", "share_url": "http://127.0.0.1:8000/engage/hello/el/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/el/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/el/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/el/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/he/file/", "filename": "po/he.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "he", "direction": "rtl", "name": "Hebrew", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/he/", "web_url": "http://127.0.0.1:8000/languages/he/" }, "language_code": "he", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/he/repository/", "revision": "5a2ef6fb30618b30b4d03fe3b67f93997399c2ab", "share_url": "http://127.0.0.1:8000/engage/hello/he/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/he/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/he/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/he/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hu/file/", "filename": "po/hu.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "hu", "direction": "ltr", "name": "Hungarian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/hu/", "web_url": "http://127.0.0.1:8000/languages/hu/" }, "language_code": "hu", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hu/repository/", "revision": "d3f655d95673a22396b5d3cc1c346ea25d31c32b", "share_url": "http://127.0.0.1:8000/engage/hello/hu/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/hu/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/hu/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/hu/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/it/file/", "filename": "po/it.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "it", "direction": "ltr", "name": "Italian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/it/", "web_url": "http://127.0.0.1:8000/languages/it/" }, "language_code": "it", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/it/repository/", "revision": "ae4186c1a9c6d7533aeb5a27798b04136cf9d52c", "share_url": "http://127.0.0.1:8000/engage/hello/it/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/it/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/it/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/it/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ja/file/", "filename": "po/ja.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ja", "direction": "ltr", "name": "Japanese", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ja/", "web_url": "http://127.0.0.1:8000/languages/ja/" }, "language_code": "ja", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ja/repository/", "revision": "49e74555803b84ce2c4d2f2be06dde0036949fbb", "share_url": "http://127.0.0.1:8000/engage/hello/ja/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ja/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ja/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ja/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/lt/file/", "filename": "po/lt.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "lt", "direction": "ltr", "name": "Lithuanian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/lt/", "web_url": "http://127.0.0.1:8000/languages/lt/" }, "language_code": "lt", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/lt/repository/", "revision": "dc4c2129e424ba6728aea9567346bb9724938147", "share_url": "http://127.0.0.1:8000/engage/hello/lt/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/lt/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/lt/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/lt/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-translations--GET--page=20000644000175100001770000004763214566103766026402 0ustar00runnerdocker{ "count": 33, "next": null, "previous": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "results": [ { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/mn/file/", "filename": "po/mn.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "mn", "direction": "ltr", "name": "Mongolian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/mn/", "web_url": "http://127.0.0.1:8000/languages/mn/" }, "language_code": "mn", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/mn/repository/", "revision": "2c7dc7711b5947a750c26b5a70960c080ebc453d", "share_url": "http://127.0.0.1:8000/engage/hello/mn/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/mn/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/mn/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/mn/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nb/file/", "filename": "po/nb.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "nb", "direction": "ltr", "name": "Norwegian Bokm\u00e5l", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/nb/", "web_url": "http://127.0.0.1:8000/languages/nb/" }, "language_code": "nb", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nb/repository/", "revision": "d4e77ca538d8ba99d3c36cae1c7930357a6cc69a", "share_url": "http://127.0.0.1:8000/engage/hello/nb/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/nb/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/nb/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/nb/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fa/file/", "filename": "po/fa.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "fa", "direction": "rtl", "name": "Persian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/fa/", "web_url": "http://127.0.0.1:8000/languages/fa/" }, "language_code": "fa", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fa/repository/", "revision": "c8c6a51f8651064ea3fce69b853fe38e192b11b7", "share_url": "http://127.0.0.1:8000/engage/hello/fa/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/fa/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/fa/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/fa/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pl/file/", "filename": "po/pl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "pl", "direction": "ltr", "name": "Polish", "nplurals": 3, "pluralequation": "n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/pl/", "web_url": "http://127.0.0.1:8000/languages/pl/" }, "language_code": "pl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pl/repository/", "revision": "9022604cc72c16e6e6ce0acc077b5c78724c35f7", "share_url": "http://127.0.0.1:8000/engage/hello/pl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/pl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/pl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/pl/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pt_BR/file/", "filename": "po/pt_BR.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "pt_BR", "direction": "ltr", "name": "Portuguese (Brazil)", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/pt_BR/", "web_url": "http://127.0.0.1:8000/languages/pt_BR/" }, "language_code": "pt_BR", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pt_BR/repository/", "revision": "195f63e8c2e04846fdf19357b7d7409d3d8f3996", "share_url": "http://127.0.0.1:8000/engage/hello/pt_BR/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/pt_BR/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/pt_BR/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/pt_BR/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ro/file/", "filename": "po/ro.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ro", "direction": "ltr", "name": "Romanian", "nplurals": 3, "pluralequation": "n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/ro/", "web_url": "http://127.0.0.1:8000/languages/ro/" }, "language_code": "ro", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ro/repository/", "revision": "895ea9c349f2c4331a4ef4f18fd68a799a82cca0", "share_url": "http://127.0.0.1:8000/engage/hello/ro/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ro/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ro/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ro/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ru/file/", "filename": "po/ru.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ru", "direction": "ltr", "name": "Russian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/ru/", "web_url": "http://127.0.0.1:8000/languages/ru/" }, "language_code": "ru", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ru/repository/", "revision": "7b68e2fe1e6ada354b7917d5119847d7184255bc", "share_url": "http://127.0.0.1:8000/engage/hello/ru/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ru/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ru/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ru/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sr/file/", "filename": "po/sr.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sr", "direction": "ltr", "name": "Serbian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/sr/", "web_url": "http://127.0.0.1:8000/languages/sr/" }, "language_code": "sr", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sr/repository/", "revision": "fc47ee862e9596f02c80f51bb330cb6186d9d6e8", "share_url": "http://127.0.0.1:8000/engage/hello/sr/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sr/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sr/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sr/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sk/file/", "filename": "po/sk.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sk", "direction": "ltr", "name": "Slovak", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/sk/", "web_url": "http://127.0.0.1:8000/languages/sk/" }, "language_code": "sk", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sk/repository/", "revision": "4d7d5d22185e79369d9a841b80509c1e951deb94", "share_url": "http://127.0.0.1:8000/engage/hello/sk/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sk/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sk/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sk/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sl/file/", "filename": "po/sl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sl", "direction": "ltr", "name": "Slovenian", "nplurals": 4, "pluralequation": "n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3", "url": "http://127.0.0.1:8000/api/languages/sl/", "web_url": "http://127.0.0.1:8000/languages/sl/" }, "language_code": "sl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sl/repository/", "revision": "1a89a1e080ad6f973f642d6e7088838f274a7771", "share_url": "http://127.0.0.1:8000/engage/hello/sl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sl/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/es/file/", "filename": "po/es.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "es", "direction": "ltr", "name": "Spanish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/es/", "web_url": "http://127.0.0.1:8000/languages/es/" }, "language_code": "es", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/es/repository/", "revision": "791f73a19494a33779c0f6b73a8052b42a9a5e22", "share_url": "http://127.0.0.1:8000/engage/hello/es/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/es/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/es/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/es/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sv/file/", "filename": "po/sv.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sv", "direction": "ltr", "name": "Swedish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/sv/", "web_url": "http://127.0.0.1:8000/languages/sv/" }, "language_code": "sv", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sv/repository/", "revision": "26ede652353210c1424a1b1a193b675fb928e17c", "share_url": "http://127.0.0.1:8000/engage/hello/sv/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sv/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sv/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sv/" }, { "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/tr/file/", "filename": "po/tr.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "tr", "direction": "ltr", "name": "Turkish", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/tr/", "web_url": "http://127.0.0.1:8000/languages/tr/" }, "language_code": "tr", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/tr/repository/", "revision": "24857b12414f7ad0c0f4bbf1dfc8cc2499670d9f", "share_url": "http://127.0.0.1:8000/engage/hello/tr/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/tr/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/tr/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/tr/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/components-hello-weblate-translations--POST--language_code=nl_BE0000644000175100001770000000321014566103766031207 0ustar00runnerdocker{ "data": { "language": { "code": "nl_BE", "name": "Flemish", "plural": { "id": 305, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "swe" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/languages/nl_BE/", "url": "http://127.0.0.1:8000/api/languages/nl_BE/", "statistics_url": "http://127.0.0.1:8000/api/languages/nl_BE/statistics/" }, "language_code": "nl_BE", "id": 827, "filename": "po/sv.po", "revision": "da6ea2777f61fbe1d2a207ff6ebdadfa15f26d1a", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/nl_BE/", "share_url": "http://127.0.0.1:8000/engage/hello/nl_BE/", "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/nl_BE/", "url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl_BE/", "is_template": false, "is_source": false, "total": 0, "total_words": 0, "translated": 0, "translated_words": 0, "translated_percent": 0.0, "fuzzy": 0, "fuzzy_words": 0, "fuzzy_percent": 0.0, "failing_checks": 0, "failing_checks_words": 0, "failing_checks_percent": 0.0, "have_suggestion": 0, "have_comment": 0, "last_change": null, "last_author": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl_BE/repository/", "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl_BE/file/", "statistics_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl_BE/statistics/", "changes_list_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl_BE/changes/", "units_list_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl_BE/units/" } } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/languages0000644000175100001770000001432014566103766017046 0ustar00runnerdocker{ "count": 47, "next": "http://127.0.0.1:8000/api/languages/?page=2", "previous": null, "results": [ { "code": "ach", "direction": "ltr", "name": "Acholi", "nplurals": 2, "pluralequation": "(n > 1)", "url": "http://127.0.0.1:8000/api/languages/ach/", "web_url": "http://127.0.0.1:8000/languages/ach/" }, { "code": "af", "direction": "ltr", "name": "Afrikaans", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/af/", "web_url": "http://127.0.0.1:8000/languages/af/" }, { "code": "ak", "direction": "ltr", "name": "Akan", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/ak/", "web_url": "http://127.0.0.1:8000/languages/ak/" }, { "code": "sq", "direction": "ltr", "name": "Albanian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/sq/", "web_url": "http://127.0.0.1:8000/languages/sq/" }, { "code": "am", "direction": "ltr", "name": "Amharic", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/am/", "web_url": "http://127.0.0.1:8000/languages/am/" }, { "code": "anp", "direction": "ltr", "name": "Angika", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/anp/", "web_url": "http://127.0.0.1:8000/languages/anp/" }, { "code": "ar", "direction": "rtl", "name": "Arabic", "nplurals": 6, "pluralequation": "n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5", "url": "http://127.0.0.1:8000/api/languages/ar/", "web_url": "http://127.0.0.1:8000/languages/ar/" }, { "code": "hy", "direction": "ltr", "name": "Armenian", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/hy/", "web_url": "http://127.0.0.1:8000/languages/hy/" }, { "code": "ast", "direction": "ltr", "name": "Asturian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/ast/", "web_url": "http://127.0.0.1:8000/languages/ast/" }, { "code": "de_AT", "direction": "ltr", "name": "Austrian German", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/de_AT/", "web_url": "http://127.0.0.1:8000/languages/de_AT/" }, { "code": "ay", "direction": "ltr", "name": "Aymar\u00e1", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ay/", "web_url": "http://127.0.0.1:8000/languages/ay/" }, { "code": "az", "direction": "ltr", "name": "Azerbaijani", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/az/", "web_url": "http://127.0.0.1:8000/languages/az/" }, { "code": "ba", "direction": "ltr", "name": "Bashkir", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/ba/", "web_url": "http://127.0.0.1:8000/languages/ba/" }, { "code": "bs", "direction": "ltr", "name": "Bosnian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/bs/", "web_url": "http://127.0.0.1:8000/languages/bs/" }, { "code": "ca", "direction": "ltr", "name": "Catalan", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/ca/", "web_url": "http://127.0.0.1:8000/languages/ca/" }, { "code": "zh_CN", "direction": "ltr", "name": "Chinese (China)", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/zh_CN/", "web_url": "http://127.0.0.1:8000/languages/zh_CN/" }, { "code": "zh_TW", "direction": "ltr", "name": "Chinese (Taiwan)", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/zh_TW/", "web_url": "http://127.0.0.1:8000/languages/zh_TW/" }, { "code": "cs", "direction": "ltr", "name": "Czech", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/cs/", "web_url": "http://127.0.0.1:8000/languages/cs/" }, { "code": "da", "direction": "ltr", "name": "Danish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/da/", "web_url": "http://127.0.0.1:8000/languages/da/" }, { "code": "nl", "direction": "ltr", "name": "Dutch", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/nl/", "web_url": "http://127.0.0.1:8000/languages/nl/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/languages--GET--page=20000644000175100001770000001446714566103766020722 0ustar00runnerdocker{ "count": 47, "next": "http://127.0.0.1:8000/api/languages/?page=3", "previous": "http://127.0.0.1:8000/api/languages/", "results": [ { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, { "code": "en_GB", "direction": "ltr", "name": "English (United Kingdom)", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en_GB/", "web_url": "http://127.0.0.1:8000/languages/en_GB/" }, { "code": "fi", "direction": "ltr", "name": "Finnish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/fi/", "web_url": "http://127.0.0.1:8000/languages/fi/" }, { "code": "fr", "direction": "ltr", "name": "French", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/fr/", "web_url": "http://127.0.0.1:8000/languages/fr/" }, { "code": "gl", "direction": "ltr", "name": "Galician", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/gl/", "web_url": "http://127.0.0.1:8000/languages/gl/" }, { "code": "ka", "direction": "ltr", "name": "Georgian", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ka/", "web_url": "http://127.0.0.1:8000/languages/ka/" }, { "code": "de", "direction": "ltr", "name": "German", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/de/", "web_url": "http://127.0.0.1:8000/languages/de/" }, { "code": "el", "direction": "ltr", "name": "Greek", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/el/", "web_url": "http://127.0.0.1:8000/languages/el/" }, { "code": "he", "direction": "rtl", "name": "Hebrew", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/he/", "web_url": "http://127.0.0.1:8000/languages/he/" }, { "code": "hu", "direction": "ltr", "name": "Hungarian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/hu/", "web_url": "http://127.0.0.1:8000/languages/hu/" }, { "code": "it", "direction": "ltr", "name": "Italian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/it/", "web_url": "http://127.0.0.1:8000/languages/it/" }, { "code": "ja", "direction": "ltr", "name": "Japanese", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ja/", "web_url": "http://127.0.0.1:8000/languages/ja/" }, { "code": "lt", "direction": "ltr", "name": "Lithuanian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/lt/", "web_url": "http://127.0.0.1:8000/languages/lt/" }, { "code": "mn", "direction": "ltr", "name": "Mongolian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/mn/", "web_url": "http://127.0.0.1:8000/languages/mn/" }, { "code": "nb", "direction": "ltr", "name": "Norwegian Bokm\u00e5l", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/nb/", "web_url": "http://127.0.0.1:8000/languages/nb/" }, { "code": "fa", "direction": "rtl", "name": "Persian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/fa/", "web_url": "http://127.0.0.1:8000/languages/fa/" }, { "code": "pl", "direction": "ltr", "name": "Polish", "nplurals": 3, "pluralequation": "n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/pl/", "web_url": "http://127.0.0.1:8000/languages/pl/" }, { "code": "pt_BR", "direction": "ltr", "name": "Portuguese (Brazil)", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/pt_BR/", "web_url": "http://127.0.0.1:8000/languages/pt_BR/" }, { "code": "ro", "direction": "ltr", "name": "Romanian", "nplurals": 3, "pluralequation": "n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/ro/", "web_url": "http://127.0.0.1:8000/languages/ro/" }, { "code": "ru", "direction": "ltr", "name": "Russian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/ru/", "web_url": "http://127.0.0.1:8000/languages/ru/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/languages--GET--page=30000644000175100001770000000454214566103766020714 0ustar00runnerdocker{ "count": 47, "next": null, "previous": "http://127.0.0.1:8000/api/languages/?page=2", "results": [ { "code": "sr", "direction": "ltr", "name": "Serbian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/sr/", "web_url": "http://127.0.0.1:8000/languages/sr/" }, { "code": "sk", "direction": "ltr", "name": "Slovak", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/sk/", "web_url": "http://127.0.0.1:8000/languages/sk/" }, { "code": "sl", "direction": "ltr", "name": "Slovenian", "nplurals": 4, "pluralequation": "n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3", "url": "http://127.0.0.1:8000/api/languages/sl/", "web_url": "http://127.0.0.1:8000/languages/sl/" }, { "code": "es", "direction": "ltr", "name": "Spanish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/es/", "web_url": "http://127.0.0.1:8000/languages/es/" }, { "code": "es_AR", "direction": "ltr", "name": "Spanish (Argentina)", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/es_AR/", "web_url": "http://127.0.0.1:8000/languages/es_AR/" }, { "code": "sv", "direction": "ltr", "name": "Swedish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/sv/", "web_url": "http://127.0.0.1:8000/languages/sv/" }, { "code": "tr", "direction": "ltr", "name": "Turkish", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/tr/", "web_url": "http://127.0.0.1:8000/languages/tr/" } ] } ././@PaxHeader0000000000000000000000000000023000000000000010210 xustar00130 path=wlc-1.14/wlc/test_data/api/languages--POST--code=tst--name=Test-Language--direction=rtl--plural=number=2--formula=n-!=-1 22 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/languages--POST--code=tst--name=Test-Language--direction=rtl--plural=numb0000644000175100001770000000063414566103766032402 0ustar00runnerdocker{ "code": "tst", "name": "Test Language", "plural": { "id": 389, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [], "direction": "rtl", "web_url": "http://example.com/languages/test/", "url": "http://127.0.0.1:8080/api/languages/test/", "statistics_url": "http://127.0.0.1:8080/api/languages/test/statistics/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects0000644000175100001770000000240114566103766016726 0ustar00runnerdocker{ "count": 2, "next": null, "previous": null, "results": [ { "name": "ACL", "slug": "acl", "web": "https://weblate.org/", "source_language": { "code": "en", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "direction": "ltr", "web_url": "http://127.0.0.1:8000/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/" }, "web_url": "http://127.0.0.1:8000/projects/acl/", "url": "http://127.0.0.1:8000/api/projects/acl/" }, { "name": "Hello", "slug": "hello", "web": "http://weblate.org/", "source_language": { "code": "en", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "direction": "ltr", "web_url": "http://127.0.0.1:8000/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/" }, "web_url": "http://127.0.0.1:8000/projects/hello/", "url": "http://127.0.0.1:8000/api/projects/hello/" } ] } ././@PaxHeader0000000000000000000000000000024300000000000010214 xustar00141 path=wlc-1.14/wlc/test_data/api/projects--POST--name=Hello--slug=hello--web=http---example.com---source_language=name=Malayalam--code=ml 22 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects--POST--name=Hello--slug=hello--web=http---example.com---source_l0000644000175100001770000000207114566103766032143 0ustar00runnerdocker{ "name":"Hello", "slug":"hello", "id":14, "web":"http://example.com/", "source_language":{ "code":"ml", "name":"Malayalam", "plural":{ "id":218, "source":0, "number":2, "formula":"n != 1", "type":1 }, "aliases":[ "mal" ], "direction":"ltr", "web_url":"http://example.com/languages/ml/", "url":"http://127.0.0.1:8000/api/languages/ml/", "statistics_url":"http://127.0.0.1:8000/api/languages/ml/statistics/" }, "web_url":"http://example.com/projects/hello/", "url":"http://127.0.0.1:8000/api/projects/hello/", "components_list_url":"http://127.0.0.1:8000/api/projects/hello/components/", "repository_url":"http://127.0.0.1:8000/api/projects/hello/repository/", "statistics_url":"http://127.0.0.1:8000/api/projects/hello/statistics/", "changes_list_url":"http://127.0.0.1:8000/api/projects/hello/changes/", "languages_url":"http://127.0.0.1:8000/api/projects/hello/languages/" } ././@PaxHeader0000000000000000000000000000021700000000000010215 xustar00121 path=wlc-1.14/wlc/test_data/api/projects--POST--name=denied_json--slug=denide_json--web=http---some-weblate-app.com- 22 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects--POST--name=denied_json--slug=denide_json--web=http---some-webla0000644000175100001770000000000314566103766032410 0ustar00runnerdocker{} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-acl0000644000175100001770000000140614566103766017467 0ustar00runnerdocker{ "components_list_url": "http://127.0.0.1:8000/api/projects/acl/components/", "name": "ACL", "repository_url": "http://127.0.0.1:8000/api/projects/acl/repository/", "slug": "acl", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/acl/", "statistics_url": "http://127.0.0.1:8000/api/projects/acl/statistics/", "changes_list_url": "http://127.0.0.1:8000/api/projects/acl/changes/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/acl/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-empty0000644000175100001770000000142614566103766020070 0ustar00runnerdocker{ "components_list_url": "http://127.0.0.1:8000/api/projects/empty/components/", "name": "Empty", "repository_url": "http://127.0.0.1:8000/api/projects/empty/repository/", "slug": "empty", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/empty/", "statistics_url": "http://127.0.0.1:8000/api/projects/empty/statistics/", "changes_list_url": "http://127.0.0.1:8000/api/projects/empty/changes/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/empty/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-empty-components0000644000175100001770000000012314566103766022244 0ustar00runnerdocker{ "count": 0, "next": null, "previous": null, "results": [ ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello0000644000175100001770000000166014566103766020035 0ustar00runnerdocker{ "categories_url": "http://127.0.0.1:8000/api/projects/hello/categories/", "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "statistics_url": "http://127.0.0.1:8000/api/projects/hello/statistics/", "languages_url": "http://127.0.0.1:8000/api/projects/hello/languages/", "changes_list_url": "http://127.0.0.1:8000/api/projects/hello/changes/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello--DELETE--0000644000175100001770000000000014566103766021167 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-categories0000644000175100001770000000104614566103766022156 0ustar00runnerdocker{ "count": 2, "next": null, "previous": null, "results": [ { "category": null, "name": "hi", "project": "http://127.0.0.1:8000/api/projects/hello/", "slug": "hi", "url": "http://127.0.0.1:8000/api/categories/1/" }, { "category": null, "name": "hiya", "project": "http://127.0.0.1:8000/api/projects/hello/", "slug": "hiya", "url": "http://127.0.0.1:8000/api/categories/2/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-changes0000644000175100001770000000216214566103766021441 0ustar00runnerdocker { "count": 2, "next": null, "previous": null, "results": [ { "unit": null, "component": "http://127.0.0.1:8000/api/components/hello/android/", "url": "http://127.0.0.1:8000/api/changes/1/", "translation": null, "dictionary": null, "user": null, "author": null, "timestamp": "2016-11-18T10:47:01.355911Z", "action": 20, "target": "", "id": 353, "action_name": "Sloučen repozitář" }, { "unit": "http://127.0.0.1:8000/api/units/227/", "component": "http://127.0.0.1:8000/api/components/hello/weblate/", "url": "http://127.0.0.1:8000/api/changes/2/", "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "dictionary": null, "user": 2, "author": 2, "timestamp": "2016-10-24T07:21:54.121348Z", "action": 26, "target": "", "id": 350, "action_name": "Odstraněn návrh" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-components0000644000175100001770000000730114566103766022216 0ustar00runnerdocker{ "count": 2, "next": null, "previous": null, "results": [ { "agreement": "", "branch": "main", "category": "http://127.0.0.1:8000/api/categories/1/", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "priority": 100, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "statistics_url": "http://127.0.0.1:8000/api/components/hello/android/statistics/", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, { "agreement": "", "branch": "main", "category": null, "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "priority": 100, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "statistics_url": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-components--POST--9c51d0bc0000644000175100001770000000651414566103766024350 0ustar00runnerdocker{ "name":"Weblate", "slug":"weblate", "id":23, "project":{ "name":"Hello", "slug":"hello", "id":15, "web":"http://example.com", "web_url":"http://example.com/projects/hello/", "url":"http://127.0.0.1:8000/api/projects/hello/", "components_list_url":"http://127.0.0.1:8000/api/projects/hello/components/", "repository_url":"http://127.0.0.1:8000/api/projects/hello/repository/", "statistics_url":"http://127.0.0.1:8000/api/projects/hello/statistics/", "changes_list_url":"http://127.0.0.1:8000/api/projects/hello/changes/", "languages_url":"http://127.0.0.1:8000/api/projects/hello/languages/" }, "vcs":"local", "repo":"local:", "git_export":"http://example.com/git/hello/weblate/", "branch":"main", "push_branch":"", "filemask":"po/*.po", "template":"", "edit_template":true, "intermediate":"", "new_base":"", "file_format":"po", "license":"", "license_url":null, "agreement":"", "web_url":"http://example.com/projects/hello/weblate/", "url":"http://127.0.0.1:8000/api/components/hello/weblate/", "repository_url":"http://127.0.0.1:8000/api/components/hello/weblate/repository/", "translations_url":"http://127.0.0.1:8000/api/components/hello/weblate/translations/", "statistics_url":"http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "lock_url":"http://127.0.0.1:8000/api/components/hello/weblate/lock/", "changes_list_url":"http://127.0.0.1:8000/api/components/hello/weblate/changes/", "new_lang":"add", "language_code_style":"", "push":"", "check_flags":"", "priority":100, "enforced_checks":"[]", "restricted":false, "repoweb":"", "report_source_bugs":"", "merge_style":"rebase", "commit_message":"Translated using Weblate ({{ language_name }})\n\nCurrently translated at {{ stats.translated_percent }}% ({{ stats.translated }} of {{ stats.all }} strings)\n\nTranslation: {{ project_name }}/{{ component_name }}\nTranslate-URL: {{ url }}", "add_message":"Added translation using Weblate ({{ language_name }})\n\n", "delete_message":"Deleted translation using Weblate ({{ language_name }})\n\n", "merge_message":"Merge branch '{{ component_remote_branch }}' into Weblate.\n\n", "addon_message":"Update translation files\n\nUpdated by \"{{ addon_name }}\" hook in Weblate.\n\nTranslation: {{ project_name }}/{{ component_name }}\nTranslate-URL: {{ url }}", "allow_translation_propagation":true, "enable_suggestions":true, "suggestion_voting":false, "suggestion_autoaccept":0, "push_on_commit":true, "commit_pending_age":24, "auto_lock_error":true, "language_regex":"^[^.]+$", "variant_regex":"" } ././@PaxHeader0000000000000000000000000000042500000000000010216 xustar00255 path=wlc-1.14/wlc/test_data/api/projects-hello-components--POST--branch=main--file_format=po--filemask=po--.po--git_export=--license=--license_url=--name=Weblate--slug=weblate--repo=file----home-nijel-work-weblate-hello--template=--new_base=--vcs=git 22 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-components--POST--branch=main--file_format=po--filemask=po0000644000175100001770000000655114566103766032636 0ustar00runnerdocker{ "name":"Weblate", "slug":"weblate", "id":23, "project":{ "name":"Hello", "slug":"hello", "id":15, "web":"http://example.com", "web_url":"http://example.com/projects/hello/", "url":"http://127.0.0.1:8000/api/projects/hello/", "components_list_url":"http://127.0.0.1:8000/api/projects/hello/components/", "repository_url":"http://127.0.0.1:8000/api/projects/hello/repository/", "statistics_url":"http://127.0.0.1:8000/api/projects/hello/statistics/", "changes_list_url":"http://127.0.0.1:8000/api/projects/hello/changes/", "languages_url":"http://127.0.0.1:8000/api/projects/hello/languages/" }, "vcs":"git", "repo":"file:///home/nijel/work/weblate-hello", "git_export":"http://example.com/git/hello/weblate/", "branch":"main", "push_branch":"", "filemask":"po/*.po", "template":"", "edit_template":true, "intermediate":"", "new_base":"", "file_format":"po", "license":"", "license_url":null, "agreement":"", "web_url":"http://example.com/projects/hello/weblate/", "url":"http://127.0.0.1:8000/api/components/hello/weblate/", "repository_url":"http://127.0.0.1:8000/api/components/hello/weblate/repository/", "translations_url":"http://127.0.0.1:8000/api/components/hello/weblate/translations/", "statistics_url":"http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "source_language": { "code": "en", "name": "English", "plural": { "id": 82, "source": 0, "number": 2, "formula": "n != 1", "type": 1 }, "aliases": [ "english", "en_en", "base", "source", "eng" ], "direction": "ltr", "web_url": "http://127.0.0.1:8000/api/languages/en/", "url": "http://127.0.0.1:8000/api/languages/en/", "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/" }, "lock_url":"http://127.0.0.1:8000/api/components/hello/weblate/lock/", "changes_list_url":"http://127.0.0.1:8000/api/components/hello/weblate/changes/", "new_lang":"add", "language_code_style":"", "push":"", "check_flags":"", "priority":100, "enforced_checks":"[]", "restricted":false, "repoweb":"", "report_source_bugs":"", "merge_style":"rebase", "commit_message":"Translated using Weblate ({{ language_name }})\n\nCurrently translated at {{ stats.translated_percent }}% ({{ stats.translated }} of {{ stats.all }} strings)\n\nTranslation: {{ project_name }}/{{ component_name }}\nTranslate-URL: {{ url }}", "add_message":"Added translation using Weblate ({{ language_name }})\n\n", "delete_message":"Deleted translation using Weblate ({{ language_name }})\n\n", "merge_message":"Merge branch '{{ component_remote_branch }}' into Weblate.\n\n", "addon_message":"Update translation files\n\nUpdated by \"{{ addon_name }}\" hook in Weblate.\n\nTranslation: {{ project_name }}/{{ component_name }}\nTranslate-URL: {{ url }}", "allow_translation_propagation":true, "enable_suggestions":true, "suggestion_voting":false, "suggestion_autoaccept":0, "push_on_commit":true, "commit_pending_age":24, "auto_lock_error":true, "language_regex":"^[^.]+$", "variant_regex":"" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-languages0000644000175100001770000000113714566103766022000 0ustar00runnerdocker [ { "total_words": 30, "code": "cs", "translated_words": 19, "language": "čeština", "translated": 5, "translated_percent": 62.5, "total": 8, "url": "http://127.0.0.1:8000/projects/hello/-/cs/", "words_percent": 63.3 }, { "total_words": 30, "code": "en", "translated_words": 15, "language": "angličtina", "translated": 4, "translated_percent": 50.0, "total": 8, "url": "http://127.0.0.1:8000/projects/hello/-/en/", "words_percent": 50.0 } ] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-repository0000644000175100001770000000022314566103766022244 0ustar00runnerdocker{ "needs_commit": false, "needs_merge": false, "needs_push": true, "url": "http://127.0.0.1:8000/api/projects/hello/repository/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-repository--POST--operation=cleanup0000644000175100001770000000002714566103766026626 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-repository--POST--operation=commit0000644000175100001770000000002714566103766026467 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-repository--POST--operation=pull0000644000175100001770000000002714566103766026153 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-repository--POST--operation=push0000644000175100001770000000011514566103766026154 0ustar00runnerdocker{ "detail": "Push is disabled for Hello/Weblate.", "result": false } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-repository--POST--operation=reset0000644000175100001770000000002714566103766026321 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-hello-statistics0000644000175100001770000000064314566103766022225 0ustar00runnerdocker{ "failing": 3, "failing_percent": 75.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_change": "2016-03-07T10:20:05.499", "recent_changes": 123, "name": "Hello", "total": 4, "total_words": 15, "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/engage/hello/", "url_translate": "http://127.0.0.1:8000/projects/hello/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/projects-invalid0000644000175100001770000000001514566103766020351 0ustar00runnerdockerInvalid JSON ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations0000644000175100001770000021057014566103766017626 0ustar00runnerdocker{ "count": 50, "next": "http://127.0.0.1:8000/api/translations/?page=2", "previous": null, "results": [ { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/ach/file/", "filename": "android/values-b+ach/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "ach", "direction": "ltr", "name": "Acholi", "nplurals": 2, "pluralequation": "(n > 1)", "url": "http://127.0.0.1:8000/api/languages/ach/", "web_url": "http://127.0.0.1:8000/languages/ach/" }, "language_code": "b+ach", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/ach/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/ach/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/ach/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/ach/", "web_url": "http://127.0.0.1:8000/projects/hello/android/ach/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/af/file/", "filename": "android/values-af/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "af", "direction": "ltr", "name": "Afrikaans", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/af/", "web_url": "http://127.0.0.1:8000/languages/af/" }, "language_code": "af", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/af/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/af/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/af/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/af/", "web_url": "http://127.0.0.1:8000/projects/hello/android/af/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/ak/file/", "filename": "android/values-ak/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "ak", "direction": "ltr", "name": "Akan", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/ak/", "web_url": "http://127.0.0.1:8000/languages/ak/" }, "language_code": "ak", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/ak/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/ak/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/ak/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/ak/", "web_url": "http://127.0.0.1:8000/projects/hello/android/ak/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/sq/file/", "filename": "android/values-sq/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "sq", "direction": "ltr", "name": "Albanian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/sq/", "web_url": "http://127.0.0.1:8000/languages/sq/" }, "language_code": "sq", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/sq/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/sq/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/sq/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/sq/", "web_url": "http://127.0.0.1:8000/projects/hello/android/sq/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/am/file/", "filename": "android/values-am/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "am", "direction": "ltr", "name": "Amharic", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/am/", "web_url": "http://127.0.0.1:8000/languages/am/" }, "language_code": "am", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/am/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/am/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/am/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/am/", "web_url": "http://127.0.0.1:8000/projects/hello/android/am/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/anp/file/", "filename": "android/values-b+anp/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "anp", "direction": "ltr", "name": "Angika", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/anp/", "web_url": "http://127.0.0.1:8000/languages/anp/" }, "language_code": "b+anp", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/anp/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/anp/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/anp/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/anp/", "web_url": "http://127.0.0.1:8000/projects/hello/android/anp/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ar/file/", "filename": "po/ar.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ar", "direction": "rtl", "name": "Arabic", "nplurals": 6, "pluralequation": "n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5", "url": "http://127.0.0.1:8000/api/languages/ar/", "web_url": "http://127.0.0.1:8000/languages/ar/" }, "language_code": "ar", "last_author": null, "last_change": "2016-03-07T10:20:05.499", "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ar/repository/", "revision": "0fa1366cc77ccb3000160c605b9fde04557090a5", "share_url": "http://127.0.0.1:8000/engage/hello/ar/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ar/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ar/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ar/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/ar/file/", "filename": "android/values-ar/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "ar", "direction": "rtl", "name": "Arabic", "nplurals": 6, "pluralequation": "n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5", "url": "http://127.0.0.1:8000/api/languages/ar/", "web_url": "http://127.0.0.1:8000/languages/ar/" }, "language_code": "ar", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/ar/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/ar/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/ar/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/ar/", "web_url": "http://127.0.0.1:8000/projects/hello/android/ar/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hy/file/", "filename": "po/hy.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "hy", "direction": "ltr", "name": "Armenian", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/hy/", "web_url": "http://127.0.0.1:8000/languages/hy/" }, "language_code": "hy", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hy/repository/", "revision": "afb17482bcfa8b87bc6d6e1a528f07b7a1eba2ce", "share_url": "http://127.0.0.1:8000/engage/hello/hy/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/hy/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/hy/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/hy/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/hy/file/", "filename": "android/values-hy/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "hy", "direction": "ltr", "name": "Armenian", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/hy/", "web_url": "http://127.0.0.1:8000/languages/hy/" }, "language_code": "hy", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/hy/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/hy/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/hy/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/hy/", "web_url": "http://127.0.0.1:8000/projects/hello/android/hy/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/ast/file/", "filename": "android/values-b+ast/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "ast", "direction": "ltr", "name": "Asturian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/ast/", "web_url": "http://127.0.0.1:8000/languages/ast/" }, "language_code": "b+ast", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/ast/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/ast/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/ast/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/ast/", "web_url": "http://127.0.0.1:8000/projects/hello/android/ast/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/de_AT/file/", "filename": "android/values-de-rAT/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "de_AT", "direction": "ltr", "name": "Austrian German", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/de_AT/", "web_url": "http://127.0.0.1:8000/languages/de_AT/" }, "language_code": "de-rAT", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/de_AT/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/de_AT/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/de_AT/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/de_AT/", "web_url": "http://127.0.0.1:8000/projects/hello/android/de_AT/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/ay/file/", "filename": "android/values-ay/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "ay", "direction": "ltr", "name": "Aymar\u00e1", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ay/", "web_url": "http://127.0.0.1:8000/languages/ay/" }, "language_code": "ay", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/ay/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/ay/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/ay/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/ay/", "web_url": "http://127.0.0.1:8000/projects/hello/android/ay/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/az/file/", "filename": "android/values-az/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "az", "direction": "ltr", "name": "Azerbaijani", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/az/", "web_url": "http://127.0.0.1:8000/languages/az/" }, "language_code": "az", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/az/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/az/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/az/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/az/", "web_url": "http://127.0.0.1:8000/projects/hello/android/az/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/ba/file/", "filename": "android/values-ba/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "ba", "direction": "ltr", "name": "Bashkir", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/ba/", "web_url": "http://127.0.0.1:8000/languages/ba/" }, "language_code": "ba", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/ba/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/ba/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/ba/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/ba/", "web_url": "http://127.0.0.1:8000/projects/hello/android/ba/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/bs/file/", "filename": "android/values-bs/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "bs", "direction": "ltr", "name": "Bosnian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/bs/", "web_url": "http://127.0.0.1:8000/languages/bs/" }, "language_code": "bs", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/bs/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/bs/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/bs/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/bs/", "web_url": "http://127.0.0.1:8000/projects/hello/android/bs/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ca/file/", "filename": "po/ca.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ca", "direction": "ltr", "name": "Catalan", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/ca/", "web_url": "http://127.0.0.1:8000/languages/ca/" }, "language_code": "ca", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ca/repository/", "revision": "f1d3eeac05a28dfd1c8b16285208741a7f5c20ea", "share_url": "http://127.0.0.1:8000/engage/hello/ca/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ca/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ca/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ca/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_CN/file/", "filename": "po/zh_CN.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "zh_CN", "direction": "ltr", "name": "Chinese (China)", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/zh_CN/", "web_url": "http://127.0.0.1:8000/languages/zh_CN/" }, "language_code": "zh_CN", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_CN/repository/", "revision": "f0c09c57167d74977e652fa49b8ce1b3adcd51a3", "share_url": "http://127.0.0.1:8000/engage/hello/zh_CN/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/zh_CN/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_CN/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/zh_CN/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_TW/file/", "filename": "po/zh_TW.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "zh_TW", "direction": "ltr", "name": "Chinese (Taiwan)", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/zh_TW/", "web_url": "http://127.0.0.1:8000/languages/zh_TW/" }, "language_code": "zh_TW", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_TW/repository/", "revision": "70b1c532d9d8f4f19088cc3a3a2377ad1ce6383b", "share_url": "http://127.0.0.1:8000/engage/hello/zh_TW/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/zh_TW/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/zh_TW/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/zh_TW/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 3, "failing_checks_percent": 75.0, "failing_checks_words": 11, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/file/", "filename": "po/cs.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "cs", "direction": "ltr", "name": "Czech", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/cs/", "web_url": "http://127.0.0.1:8000/languages/cs/" }, "language_code": "cs", "last_author": "Weblate Admin", "last_change": "2016-03-07T10:20:05.499", "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/repository/", "revision": "c0e48e09bd6d1c3a8502176d5f79c9c7e6463653", "share_url": "http://127.0.0.1:8000/engage/hello/cs/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/cs/", "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/cs/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations--GET--page=20000644000175100001770000020562214566103766021470 0ustar00runnerdocker{ "count": 50, "next": "http://127.0.0.1:8000/api/translations/?page=3", "previous": "http://127.0.0.1:8000/api/translations/", "results": [ { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 1, "failing_checks_percent": 25.0, "failing_checks_words": 5, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/cs/file/", "filename": "android/values-cs/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "cs", "direction": "ltr", "name": "Czech", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/cs/", "web_url": "http://127.0.0.1:8000/languages/cs/" }, "language_code": "cs", "last_author": "Weblate Admin", "last_change": "2016-01-27T13:34:23.162", "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/cs/repository/", "revision": "eb7c160287874da501debb385cf7ecd47230f4d2,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/cs/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/cs/", "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/api/translations/hello/android/cs/", "web_url": "http://127.0.0.1:8000/projects/hello/android/cs/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/da/file/", "filename": "po/da.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "da", "direction": "ltr", "name": "Danish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/da/", "web_url": "http://127.0.0.1:8000/languages/da/" }, "language_code": "da", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/da/repository/", "revision": "0eeaf29f8743dc44f2ce59f9f5f89794cdcb4b2d", "share_url": "http://127.0.0.1:8000/engage/hello/da/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/da/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/da/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/da/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl/file/", "filename": "po/nl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "nl", "direction": "ltr", "name": "Dutch", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/nl/", "web_url": "http://127.0.0.1:8000/languages/nl/" }, "language_code": "nl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl/repository/", "revision": "97e9651626941843a98075fefae5006604c63022", "share_url": "http://127.0.0.1:8000/engage/hello/nl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/nl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/nl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/nl/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/en/file/", "filename": "android/values/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": true, "language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "language_code": "en", "last_author": "Weblate Admin", "last_change": "2016-05-09T15:03:48.317", "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/en/repository/", "revision": "8dda0f2088ad1e31c8f8a7888010ea1ce323db71,8dda0f2088ad1e31c8f8a7888010ea1ce323db71", "share_url": "http://127.0.0.1:8000/engage/hello/en/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/en/", "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/api/translations/hello/android/en/", "web_url": "http://127.0.0.1:8000/projects/hello/android/en/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/en_GB/file/", "filename": "po/en_GB.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "en_GB", "direction": "ltr", "name": "English (United Kingdom)", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en_GB/", "web_url": "http://127.0.0.1:8000/languages/en_GB/" }, "language_code": "en_GB", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/en_GB/repository/", "revision": "7516a8d3773548a5f1aabe32299cfd48db6b2f68", "share_url": "http://127.0.0.1:8000/engage/hello/en_GB/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/en_GB/", "translated": 1, "translated_percent": 25.0, "translated_words": 2, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/en_GB/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/en_GB/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fi/file/", "filename": "po/fi.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "fi", "direction": "ltr", "name": "Finnish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/fi/", "web_url": "http://127.0.0.1:8000/languages/fi/" }, "language_code": "fi", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fi/repository/", "revision": "3f77f09b6e5b779bb1cf4e450cb841c02a379539", "share_url": "http://127.0.0.1:8000/engage/hello/fi/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/fi/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/fi/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/fi/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fr/file/", "filename": "po/fr.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "fr", "direction": "ltr", "name": "French", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/fr/", "web_url": "http://127.0.0.1:8000/languages/fr/" }, "language_code": "fr", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fr/repository/", "revision": "bf66e3a5d443473f923dd3eff8029bbed947fd37", "share_url": "http://127.0.0.1:8000/engage/hello/fr/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/fr/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/fr/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/fr/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/gl/file/", "filename": "po/gl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "gl", "direction": "ltr", "name": "Galician", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/gl/", "web_url": "http://127.0.0.1:8000/languages/gl/" }, "language_code": "gl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/gl/repository/", "revision": "1716940c8564f1f97b77c5546b2cf8f6f076a955", "share_url": "http://127.0.0.1:8000/engage/hello/gl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/gl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/gl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/gl/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ka/file/", "filename": "po/ka.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ka", "direction": "ltr", "name": "Georgian", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ka/", "web_url": "http://127.0.0.1:8000/languages/ka/" }, "language_code": "ka", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ka/repository/", "revision": "e416a99698bf93ae338382496a76d23f4f0865a5", "share_url": "http://127.0.0.1:8000/engage/hello/ka/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ka/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ka/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ka/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/de/file/", "filename": "po/de.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "de", "direction": "ltr", "name": "German", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/de/", "web_url": "http://127.0.0.1:8000/languages/de/" }, "language_code": "de", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/de/repository/", "revision": "cc7bbc49b76f0e87b32235ffbac4816558eafd8c", "share_url": "http://127.0.0.1:8000/engage/hello/de/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/de/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/de/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/de/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/el/file/", "filename": "po/el.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "el", "direction": "ltr", "name": "Greek", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/el/", "web_url": "http://127.0.0.1:8000/languages/el/" }, "language_code": "el", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/el/repository/", "revision": "8d8ccc657b269199c1aa0c02aa56f706fb7b00b3", "share_url": "http://127.0.0.1:8000/engage/hello/el/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/el/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/el/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/el/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/he/file/", "filename": "po/he.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "he", "direction": "rtl", "name": "Hebrew", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/he/", "web_url": "http://127.0.0.1:8000/languages/he/" }, "language_code": "he", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/he/repository/", "revision": "5a2ef6fb30618b30b4d03fe3b67f93997399c2ab", "share_url": "http://127.0.0.1:8000/engage/hello/he/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/he/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/he/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/he/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hu/file/", "filename": "po/hu.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "hu", "direction": "ltr", "name": "Hungarian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/hu/", "web_url": "http://127.0.0.1:8000/languages/hu/" }, "language_code": "hu", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/hu/repository/", "revision": "d3f655d95673a22396b5d3cc1c346ea25d31c32b", "share_url": "http://127.0.0.1:8000/engage/hello/hu/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/hu/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/hu/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/hu/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/it/file/", "filename": "po/it.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "it", "direction": "ltr", "name": "Italian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/it/", "web_url": "http://127.0.0.1:8000/languages/it/" }, "language_code": "it", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/it/repository/", "revision": "ae4186c1a9c6d7533aeb5a27798b04136cf9d52c", "share_url": "http://127.0.0.1:8000/engage/hello/it/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/it/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/it/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/it/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ja/file/", "filename": "po/ja.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ja", "direction": "ltr", "name": "Japanese", "nplurals": 1, "pluralequation": "0", "url": "http://127.0.0.1:8000/api/languages/ja/", "web_url": "http://127.0.0.1:8000/languages/ja/" }, "language_code": "ja", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ja/repository/", "revision": "49e74555803b84ce2c4d2f2be06dde0036949fbb", "share_url": "http://127.0.0.1:8000/engage/hello/ja/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ja/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ja/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ja/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/lt/file/", "filename": "po/lt.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "lt", "direction": "ltr", "name": "Lithuanian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/lt/", "web_url": "http://127.0.0.1:8000/languages/lt/" }, "language_code": "lt", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/lt/repository/", "revision": "dc4c2129e424ba6728aea9567346bb9724938147", "share_url": "http://127.0.0.1:8000/engage/hello/lt/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/lt/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/lt/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/lt/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/mn/file/", "filename": "po/mn.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "mn", "direction": "ltr", "name": "Mongolian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/mn/", "web_url": "http://127.0.0.1:8000/languages/mn/" }, "language_code": "mn", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/mn/repository/", "revision": "2c7dc7711b5947a750c26b5a70960c080ebc453d", "share_url": "http://127.0.0.1:8000/engage/hello/mn/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/mn/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/mn/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/mn/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nb/file/", "filename": "po/nb.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "nb", "direction": "ltr", "name": "Norwegian Bokm\u00e5l", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/nb/", "web_url": "http://127.0.0.1:8000/languages/nb/" }, "language_code": "nb", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/nb/repository/", "revision": "d4e77ca538d8ba99d3c36cae1c7930357a6cc69a", "share_url": "http://127.0.0.1:8000/engage/hello/nb/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/nb/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/nb/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/nb/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fa/file/", "filename": "po/fa.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "fa", "direction": "rtl", "name": "Persian", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/fa/", "web_url": "http://127.0.0.1:8000/languages/fa/" }, "language_code": "fa", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/fa/repository/", "revision": "c8c6a51f8651064ea3fce69b853fe38e192b11b7", "share_url": "http://127.0.0.1:8000/engage/hello/fa/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/fa/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/fa/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/fa/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pl/file/", "filename": "po/pl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "pl", "direction": "ltr", "name": "Polish", "nplurals": 3, "pluralequation": "n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/pl/", "web_url": "http://127.0.0.1:8000/languages/pl/" }, "language_code": "pl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pl/repository/", "revision": "9022604cc72c16e6e6ce0acc077b5c78724c35f7", "share_url": "http://127.0.0.1:8000/engage/hello/pl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/pl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/pl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/pl/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations--GET--page=30000644000175100001770000010334214566103766021465 0ustar00runnerdocker{ "count": 50, "next": null, "previous": "http://127.0.0.1:8000/api/translations/?page=2", "results": [ { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pt_BR/file/", "filename": "po/pt_BR.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "pt_BR", "direction": "ltr", "name": "Portuguese (Brazil)", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/pt_BR/", "web_url": "http://127.0.0.1:8000/languages/pt_BR/" }, "language_code": "pt_BR", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/pt_BR/repository/", "revision": "195f63e8c2e04846fdf19357b7d7409d3d8f3996", "share_url": "http://127.0.0.1:8000/engage/hello/pt_BR/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/pt_BR/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/pt_BR/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/pt_BR/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ro/file/", "filename": "po/ro.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ro", "direction": "ltr", "name": "Romanian", "nplurals": 3, "pluralequation": "n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/ro/", "web_url": "http://127.0.0.1:8000/languages/ro/" }, "language_code": "ro", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ro/repository/", "revision": "895ea9c349f2c4331a4ef4f18fd68a799a82cca0", "share_url": "http://127.0.0.1:8000/engage/hello/ro/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ro/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ro/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ro/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ru/file/", "filename": "po/ru.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "ru", "direction": "ltr", "name": "Russian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/ru/", "web_url": "http://127.0.0.1:8000/languages/ru/" }, "language_code": "ru", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/ru/repository/", "revision": "7b68e2fe1e6ada354b7917d5119847d7184255bc", "share_url": "http://127.0.0.1:8000/engage/hello/ru/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/ru/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/ru/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/ru/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sr/file/", "filename": "po/sr.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sr", "direction": "ltr", "name": "Serbian", "nplurals": 3, "pluralequation": "n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/sr/", "web_url": "http://127.0.0.1:8000/languages/sr/" }, "language_code": "sr", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sr/repository/", "revision": "fc47ee862e9596f02c80f51bb330cb6186d9d6e8", "share_url": "http://127.0.0.1:8000/engage/hello/sr/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sr/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sr/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sr/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sk/file/", "filename": "po/sk.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sk", "direction": "ltr", "name": "Slovak", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/sk/", "web_url": "http://127.0.0.1:8000/languages/sk/" }, "language_code": "sk", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sk/repository/", "revision": "4d7d5d22185e79369d9a841b80509c1e951deb94", "share_url": "http://127.0.0.1:8000/engage/hello/sk/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sk/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sk/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sk/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sl/file/", "filename": "po/sl.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sl", "direction": "ltr", "name": "Slovenian", "nplurals": 4, "pluralequation": "n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3", "url": "http://127.0.0.1:8000/api/languages/sl/", "web_url": "http://127.0.0.1:8000/languages/sl/" }, "language_code": "sl", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sl/repository/", "revision": "1a89a1e080ad6f973f642d6e7088838f274a7771", "share_url": "http://127.0.0.1:8000/engage/hello/sl/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sl/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sl/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sl/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/es/file/", "filename": "po/es.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "es", "direction": "ltr", "name": "Spanish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/es/", "web_url": "http://127.0.0.1:8000/languages/es/" }, "language_code": "es", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/es/repository/", "revision": "791f73a19494a33779c0f6b73a8052b42a9a5e22", "share_url": "http://127.0.0.1:8000/engage/hello/es/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/es/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/es/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/es/" }, { "component": { "branch": "main", "file_format": "aresource", "filemask": "android/values-*/strings.xml", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "https://github.com/WeblateOrg/test.git", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "slug": "android", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/es_AR/file/", "filename": "android/values-es-rAR/strings.xml", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 1, "have_suggestion": 0, "is_template": false, "language": { "code": "es_AR", "direction": "ltr", "name": "Spanish (Argentina)", "nplurals": 2, "pluralequation": "(n != 1)", "url": "http://127.0.0.1:8000/api/languages/es_AR/", "web_url": "http://127.0.0.1:8000/languages/es_AR/" }, "language_code": "es-rAR", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/es_AR/repository/", "revision": "a6b3daec9354f9ae75cdf8d94a67446c6227dd96,de7ed54c55f3dffceae30a1b4c20426e26214723", "share_url": "http://127.0.0.1:8000/engage/hello/es_AR/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/android/es_AR/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/android/es_AR/", "web_url": "http://127.0.0.1:8000/projects/hello/android/es_AR/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sv/file/", "filename": "po/sv.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "sv", "direction": "ltr", "name": "Swedish", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/sv/", "web_url": "http://127.0.0.1:8000/languages/sv/" }, "language_code": "sv", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/sv/repository/", "revision": "26ede652353210c1424a1b1a193b675fb928e17c", "share_url": "http://127.0.0.1:8000/engage/hello/sv/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/sv/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/sv/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/sv/" }, { "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/tr/file/", "filename": "po/tr.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "tr", "direction": "ltr", "name": "Turkish", "nplurals": 2, "pluralequation": "n > 1", "url": "http://127.0.0.1:8000/api/languages/tr/", "web_url": "http://127.0.0.1:8000/languages/tr/" }, "language_code": "tr", "last_author": null, "last_change": null, "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/tr/repository/", "revision": "24857b12414f7ad0c0f4bbf1dfc8cc2499670d9f", "share_url": "http://127.0.0.1:8000/engage/hello/tr/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/tr/", "translated": 0, "translated_percent": 0.0, "translated_words": 0, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/tr/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/tr/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-android-en-units0000644000175100001770000000172414566103766024104 0ustar00runnerdocker{ "count": 1, "next": "http://127.0.0.1:8000/api/translations/hello/android/en/units/", "previous": null, "results": [ { "translation": "http://127.0.0.1:8000/api/translations/hello/android/en/", "source": "mr", "previous_source": "", "target": "mr", "id_hash": 3515632860997702012, "content_hash": 3515632860997702012, "location": "", "context": "", "note": "", "flags": "", "fuzzy": false, "translated": true, "approved": false, "position": 987, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "priority": 100, "id": 35664, "web_url": "http://127.0.0.1:8000/projects/hello/android/en/", "url": "http://127.0.0.1:8000/api/units/35664/" } } ././@PaxHeader0000000000000000000000000000021300000000000010211 xustar00117 path=wlc-1.14/wlc/test_data/api/translations-hello-android-en-units--POST--key=test-monolingual--value=-test-me- 22 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-android-en-units--POST--key=test-monolingual--value=-t0000644000175100001770000001136514566103766032655 0ustar00runnerdocker{"changes_list_url": "http://127.0.0.1:8000/api/translations/hello/android/en/units/en/changes/", "component": {"branch": "main", "changes_list_url": "http://127.0.0.1:8000/api/components/hello/android/changes/", "check_flags": "", "edit_template": true, "enforced_checks": "[]", "file_format": "po-mono", "filemask": "android/*.po", "git_export": "http://127.0.0.1:8000/git/hello/android/", "id": 754, "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/android/lock/", "name": "Android", "new_base": "", "new_lang": "add", "project": {"changes_list_url": "http://127.0.0.1:8000/api/projects/hello/changes/", "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "id": 7, "languages_url": "http://127.0.0.1:8000/api/projects/hello/languages/", "name": "Bilingual Vs android", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": {"aliases": ["english", "en_en", "base", "source", "eng"], "code": "en", "direction": "ltr", "name": "English", "plural": {"formula": "n != 1", "id": 82, "number": 2, "source": 0, "type": 1}, "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/"}, "statistics_url": "http://127.0.0.1:8000/api/projects/hello/statistics/", "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "https://bilingual-is-something.com", "web_url": "http://127.0.0.1:8000/projects/hello/"}, "push": "file:///home/WeblateOrg/work/weblate-hello", "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/android/repository/", "restricted": false, "slug": "android", "statistics_url": "http://127.0.0.1:8000/api/components/hello/android/statistics/", "template": "android/values/strings.xml", "translations_url": "http://127.0.0.1:8000/api/components/hello/android/translations/", "url": "http://127.0.0.1:8000/api/components/hello/android/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/android/"}, "failing_checks": 0, "failing_checks_percent": 0.0, "failing_checks_words": 0, "file_url": "http://127.0.0.1:8000/api/translations/hello/android/en/units/en/file/", "filename": "templates/android_base_file.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "id": 1646, "is_source": true, "is_template": true, "language": {"aliases": ["english", "en_en", "base", "source", "eng"], "code": "en", "direction": "ltr", "name": "English", "plural": {"formula": "n != 1", "id": 82, "number": 2, "source": 0, "type": 1}, "statistics_url": "http://127.0.0.1:8000/api/languages/en/statistics/", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/"}, "language_code": "en", "last_author": "Approver Man", "last_change": "2020-08-03T11:56:20.257895Z", "repository_url": "http://127.0.0.1:8000/api/translations/hello/android/en/units/en/repository/", "revision": "f17c1670cba3ecd805702bb81268beb899a11f14,f17c1670cba3ecd805702bb81268beb899a11f14", "share_url": "http://127.0.0.1:8000/engage/hello/en/", "statistics_url": "http://127.0.0.1:8000/api/translations/hello/android/en/units/en/statistics/", "total": 17, "total_words": 17, "translate_url": "http://127.0.0.1:8000/translate/hello/android/en/", "translated": 17, "translated_percent": 100.0, "translated_words": 17, "units_list_url": "http://127.0.0.1:8000/api/translations/hello/android/en/units/en/units/", "url": "http://127.0.0.1:8000/api/translations/hello/android/en/units/en/", "web_url": "http://127.0.0.1:8000/projects/hello/android/en/"} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs0000644000175100001770000000624414566103766022754 0ustar00runnerdocker{ "component": { "branch": "main", "file_format": "po", "filemask": "po/*.po", "git_export": "", "license": "", "license_url": "", "lock_url": "http://127.0.0.1:8000/api/components/hello/weblate/lock/", "name": "Weblate", "new_base": "", "project": { "components_list_url": "http://127.0.0.1:8000/api/projects/hello/components/", "name": "Hello", "repository_url": "http://127.0.0.1:8000/api/projects/hello/repository/", "slug": "hello", "source_language": { "code": "en", "direction": "ltr", "name": "English", "nplurals": 2, "pluralequation": "n != 1", "url": "http://127.0.0.1:8000/api/languages/en/", "web_url": "http://127.0.0.1:8000/languages/en/" }, "url": "http://127.0.0.1:8000/api/projects/hello/", "web": "http://weblate.org/", "web_url": "http://127.0.0.1:8000/projects/hello/" }, "repo": "file:///home/WeblateOrg/work/weblate-hello", "repository_url": "http://127.0.0.1:8000/api/components/hello/weblate/repository/", "slug": "weblate", "statistics_url": "http://127.0.0.1:8000/api/components/hello/weblate/statistics/", "template": "", "translations_url": "http://127.0.0.1:8000/api/components/hello/weblate/translations/", "url": "http://127.0.0.1:8000/api/components/hello/weblate/", "vcs": "git", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/" }, "failing_checks": 3, "failing_checks_percent": 75.0, "failing_checks_words": 11, "file_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/file/", "filename": "po/cs.po", "fuzzy": 0, "fuzzy_percent": 0.0, "fuzzy_words": 0, "have_comment": 0, "have_suggestion": 0, "is_template": false, "language": { "code": "cs", "direction": "ltr", "name": "Czech", "nplurals": 3, "pluralequation": "(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2", "url": "http://127.0.0.1:8000/api/languages/cs/", "web_url": "http://127.0.0.1:8000/languages/cs/" }, "language_code": "cs", "last_author": "Weblate Admin", "last_change": "2016-03-07T10:20:05.499", "repository_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/repository/", "revision": "c0e48e09bd6d1c3a8502176d5f79c9c7e6463653", "share_url": "http://127.0.0.1:8000/engage/hello/cs/", "statistics_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/statistics/", "changes_list_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/changes/", "total": 4, "total_words": 15, "translate_url": "http://127.0.0.1:8000/translate/hello/weblate/cs/", "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "web_url": "http://127.0.0.1:8000/projects/hello/weblate/cs/", "units_list_url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/units/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs--DELETE--0000644000175100001770000000000014566103766024103 0ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-changes0000644000175100001770000000216214566103766024355 0ustar00runnerdocker { "count": 2, "next": null, "previous": null, "results": [ { "unit": null, "component": "http://127.0.0.1:8000/api/components/hello/android/", "url": "http://127.0.0.1:8000/api/changes/1/", "translation": null, "dictionary": null, "user": null, "author": null, "timestamp": "2016-11-18T10:47:01.355911Z", "action": 20, "target": "", "id": 353, "action_name": "Sloučen repozitář" }, { "unit": "http://127.0.0.1:8000/api/units/227/", "component": "http://127.0.0.1:8000/api/components/hello/weblate/", "url": "http://127.0.0.1:8000/api/changes/2/", "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "dictionary": null, "user": 2, "author": 2, "timestamp": "2016-10-24T07:21:54.121348Z", "action": 26, "target": "", "id": 350, "action_name": "Odstraněn návrh" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file0000644000175100001770000000146414566103766023670 0ustar00runnerdockermsgid "" msgstr "" "Project-Id-Version: Weblate Hello World 2012\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-03-14 15:54+0100\n" "PO-Revision-Date: 2012-03-05 15:55+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ASCII\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: main.c:11 #, c-format msgid "Hello, world!\n" msgstr "" #: main.c:12 #, c-format msgid "Orangutan has %d banana.\n" msgid_plural "Orangutan has %d bananas.\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: main.c:13 #, c-format msgid "Try Weblate at !\n" msgstr "" #: main.c:14 msgid "Thank you for using Weblate." msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--GET--format=csv0000644000175100001770000000060114566103766026526 0ustar00runnerdocker"location","source","target","id","fuzzy","context","translator_comments","developer_comments" "main.c:11","Hello, world! ","fdfd ","","False","","","" "main.c:12","Orangutan has %d banana. ","Opička má %d banán. ","","False","","","" "main.c:13","Try Weblate at ! ","","","False","","","" "main.c:14","Thank you for using Weblate.","","","False","","","" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--POST--3748506a0000644000175100001770000000003014566103766025570 0ustar00runnerdocker{"detail":"Not found."} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--POST--5c6a101f0000644000175100001770000000012114566103766025716 0ustar00runnerdocker{"not_found":1,"skipped":141,"accepted":1,"total":143,"result":true,"count":143} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--POST--857625470000644000175100001770000000012214566103766025524 0ustar00runnerdocker{"not_found":1,"skipped":142,"accepted":0,"total":143,"result":false,"count":143} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--POST--90a4957d0000644000175100001770000000012214566103766025657 0ustar00runnerdocker{"not_found":2,"skipped":141,"accepted":0,"total":143,"result":false,"count":143} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--POST--f8672b4c0000644000175100001770000000012114566103766025735 0ustar00runnerdocker{"not_found":1,"skipped":141,"accepted":1,"total":143,"result":true,"count":143} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-file--POST--fe040a0c0000644000175100001770000000012214566103766025773 0ustar00runnerdocker{"not_found":2,"skipped":141,"accepted":0,"total":143,"result":false,"count":143} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-repository0000644000175100001770000000202014566103766025155 0ustar00runnerdocker{ "merge_failure": null, "needs_commit": false, "needs_merge": false, "needs_push": true, "remote_commit": { "author": "Michal \u010ciha\u0159 ", "author_email": "michal@cihar.com", "author_name": "Michal \u010ciha\u0159", "authordate": "2014-11-19T12:50:24+01:00", "commit": "Michal \u010ciha\u0159 ", "commit_email": "michal@cihar.com", "commit_name": "Michal \u010ciha\u0159", "commitdate": "2014-11-19T12:50:24+01:00", "message": "Add Arabic\n\nSigned-off-by: Michal \u010ciha\u0159 ", "revision": "8ba2d7e113dd58a3695d1b196f24e37a7b5bcb80", "shortrevision": "8ba2d7e", "summary": "Add Arabic" }, "status": "On branch main\nYour branch is ahead of 'origin/main' by 1 commit.\n (use \"git push\" to publish your local commits)\nnothing to commit, working directory clean\n", "url": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/repository/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=cleanup0000644000175100001770000000002714566103766031542 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=commit0000644000175100001770000000002714566103766031403 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=pull0000644000175100001770000000002714566103766031067 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=push0000644000175100001770000000011514566103766031070 0ustar00runnerdocker{ "detail": "Push is disabled for Hello/Weblate.", "result": false } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=reset0000644000175100001770000000002714566103766031235 0ustar00runnerdocker{ "result": true } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-statistics0000644000175100001770000000074714566103766025146 0ustar00runnerdocker{ "code": "cs", "failing": 3, "failing_percent": 75.0, "fuzzy": 0, "fuzzy_percent": 0.0, "last_author": "Weblate Admin", "last_change": "2016-03-07T10:20:05.499", "recent_changes": 123, "name": "Czech", "total": 4, "total_words": 15, "translated": 4, "translated_percent": 100.0, "translated_words": 15, "url": "http://127.0.0.1:8000/engage/hello/cs/", "url_translate": "http://127.0.0.1:8000/projects/hello/weblate/cs/" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-units0000644000175100001770000000163614566103766024114 0ustar00runnerdocker{ "count": 1, "next": null, "previous": null, "results": [ { "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "source": "mr", "previous_source": "", "target": "mr", "id_hash": 3515632860997702012, "content_hash": 3515632860997702012, "location": "", "context": "", "note": "", "flags": "", "fuzzy": false, "translated": true, "approved": false, "position": 987, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "priority": 100, "id": 35664, "web_url": "http://127.0.0.1:8000/projects/hello/weblate/cs/", "url": "http://127.0.0.1:8000/api/units/35664/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/translations-hello-weblate-cs-units--GET--q=source%3A%3D%22mr%220000644000175100001770000000163214566103766030101 0ustar00runnerdocker{ "count": 1, "next": null, "previous": null, "results": [ { "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "source": "mr", "previous_source": "", "target": "mr", "id_hash": 3515632860997702012, "content_hash": 3515632860997702012, "location": "", "context": "", "note": "", "flags": "", "fuzzy": false, "translated": true, "approved": false, "position": 987, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "priority": 100, "id": 117, "web_url": "http://127.0.0.1:8000/projects/hello/weblate/cs/", "url": "http://127.0.0.1:8000/api/units/117/" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/units0000644000175100001770000001063214566103766016244 0ustar00runnerdocker{ "count": 4, "next": null, "previous": null, "results": [ { "translation": "http://127.0.0.1:8080/api/translations/test-project/mono_comp/en/", "source": [ "String 'A'" ], "previous_source": "", "target": [ "String 'A'" ], "id_hash": -6306725157533644379, "content_hash": 6706964138259559415, "location": "string_a", "context": "A", "note": "", "flags": "", "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "http://127.0.0.1:8080/api/units/1/", "priority": 100, "id": 1, "web_url": "http://127.0.0.1:8080/translate/test-project/mono_comp/en/?checksum=287a02e2393009a5", "url": "http://127.0.0.1:8080/api/units/1/", "explanation": "", "extra_flags": "" }, { "translation": "http://127.0.0.1:8080/api/translations/test-project/mono_comp/en/", "source": [ "String 'B'" ], "previous_source": "", "target": [ "String 'B'" ], "id_hash": 94239120442185084, "content_hash": 5871207942681564553, "location": "string_b", "context": "B", "note": "", "flags": "", "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "http://127.0.0.1:8080/api/units/2/", "priority": 100, "id": 2, "web_url": "http://127.0.0.1:8080/translate/test-project/mono_comp/en/?checksum=814ecdfb11e6d57c", "url": "http://127.0.0.1:8080/api/units/2/", "explanation": "", "extra_flags": "" }, { "translation": "http://127.0.0.1:8080/api/translations/hello/weblate/cs/", "source": [ "String 'A'" ], "previous_source": "", "target": [ "foo" ], "id_hash": -6306725157533644379, "content_hash": 6706964138259559415, "location": "string_a", "context": "A", "note": "", "flags": "", "state": 30, "fuzzy": false, "translated": true, "approved": true, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "http://127.0.0.1:8080/api/units/1/", "priority": 100, "id": 3, "web_url": "http://127.0.0.1:8080/translate/hello/weblate/cs/?checksum=287a02e2393009a5", "url": "http://127.0.0.1:8080/api/units/3/", "explanation": "", "extra_flags": "" }, { "translation": "http://127.0.0.1:8080/api/translations/hello/weblate/cs/", "source": [ "String 'B'" ], "previous_source": "", "target": [ "" ], "id_hash": 94239120442185084, "content_hash": 5871207942681564553, "location": "string_b", "context": "B", "note": "", "flags": "", "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "http://127.0.0.1:8080/api/units/2/", "priority": 100, "id": 4, "web_url": "http://127.0.0.1:8080/translate/hello/weblate/cs/?checksum=814ecdfb11e6d57c", "url": "http://127.0.0.1:8080/api/units/4/", "explanation": "", "extra_flags": "" } ] } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/units-1230000644000175100001770000000150614566103766016547 0ustar00runnerdocker{ "translation": "http://127.0.0.1:8000/api/translations/hello/weblate/cs/", "source": [ "String 'B'" ], "previous_source": "", "target": [ "B" ], "id_hash": 94239120442185084, "content_hash": 5871207942681564553, "location": "string_b", "context": "B", "note": "", "flags": "", "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "http://127.0.0.1:8000/api/units/1/", "priority": 100, "id": 123, "web_url": "http://127.0.0.1:8000/translate/hello/weblate/cs/?checksum=814ecdfb11e6d57c", "url": "http://127.0.0.1:8000/api/units/123/", "explanation": "", "extra_flags": "" } ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/units-123--DELETE--0000644000175100001770000000001414566103766017707 0ustar00runnerdocker--deleted-- ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/units-123--PATCH--target=-foo---state=300000644000175100001770000000001414566103766023401 0ustar00runnerdocker--patched-- ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/api/units-123--PUT--target=-foo---state=300000644000175100001770000000001014566103766023206 0ustar00runnerdocker--put-- ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8540468 wlc-1.14/wlc/test_data/mock/0000755000175100001770000000000014566104012015316 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/mock/project-local-file.pot0000644000175100001770000000057014566103766021536 0ustar00runnerdockermsgid "" msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Plural-Forms: nplurals = 2; plural = (n != 1);\n" "Language: en\n" "mime-version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" #: src/pages/about/impact.tsx:22 msgctxt "Title" msgid "How to make a better world" msgstr "" #: src/pages/about/impact.tsx:28 msgctxt "Title" msgid "Community informations" msgstr "" ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/section0000644000175100001770000000004414566103766015771 0ustar00runnerdocker[custom] url = https://example.net/ ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/weblate.ini0000644000175100001770000000006514566103766016531 0ustar00runnerdocker[weblate] url = http://127.0.0.1:8000/api/ key = KEY ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_data/wlc0000644000175100001770000000031614566103766015114 0ustar00runnerdocker[weblate] url = https://example.net/ retries = 999 method_whitelist = PUT,POST backoff_factor = 0.2 status_forcelist = 429,500,502,503,504 timeout = 30 [withkey] url = http://127.0.0.1:8000/api/ key = KEY ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_main.py0000644000175100001770000004167614566103766015007 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Test command-line interface.""" from __future__ import annotations import json import os import sys from io import BytesIO, StringIO, TextIOWrapper from tempfile import NamedTemporaryFile, TemporaryDirectory import wlc from wlc.config import WeblateConfig from wlc.main import Version, main from .test_base import APITest TEST_DATA = os.path.join(os.path.dirname(__file__), "test_data") TEST_CONFIG = os.path.join(TEST_DATA, "wlc") TEST_SECTION = os.path.join(TEST_DATA, "section") def execute(args, settings=None, stdout=None, stdin=None, expected=0): """Execute command and return output.""" if settings is None: settings = () elif not settings: settings = None output = StringIO() output.buffer = BytesIO() backup = sys.stdout backup_err = sys.stderr try: sys.stdout = output sys.stderr = output if stdout: stdout = output result = main(args=args, settings=settings, stdout=stdout, stdin=stdin) assert result == expected finally: sys.stdout = backup sys.stderr = backup_err result = output.buffer.getvalue() if result: return result return output.getvalue() class TestSettings(APITest): """Test settings handling.""" def test_commandline(self): """Configuration using command-line.""" output = execute(["--url", "https://example.net/", "list-projects"]) self.assertIn("Hello", output) def test_stdout(self): """Configuration using params.""" output = execute(["list-projects"], stdout=True) self.assertIn("Hello", output) def test_debug(self): """Debug mode.""" output = execute(["--debug", "list-projects"], stdout=True) self.assertIn("api/projects", output) def test_settings(self): """Configuration using settings param.""" output = execute( ["list-projects"], settings=(("weblate", "url", "https://example.net/"),) ) self.assertIn("Hello", output) def test_config(self): """Configuration using custom config file.""" output = execute(["--config", TEST_CONFIG, "list-projects"], settings=False) self.assertIn("Hello", output) def test_config_section(self): """Configuration using custom config file section.""" output = execute( ["--config", TEST_SECTION, "--config-section", "custom", "list-projects"], settings=False, ) self.assertIn("Hello", output) def test_config_key(self): """Configuration using custom config file section and key set.""" output = execute( ["--config", TEST_CONFIG, "--config-section", "withkey", "show", "acl"], settings=False, ) self.assertIn("ACL", output) def test_config_appdata(self): """Configuration using custom config file section and key set.""" output = execute(["show", "acl"], settings=False, expected=1) try: os.environ["APPDATA"] = TEST_DATA output = execute(["show", "acl"], settings=False) self.assertIn("ACL", output) finally: del os.environ["APPDATA"] def test_config_cwd(self): """Test loading settings from current dir.""" current = os.path.abspath(".") try: os.chdir(os.path.join(os.path.dirname(__file__), "test_data")) output = execute(["show"], settings=False) self.assertIn("Weblate", output) finally: os.chdir(current) def test_default_config_values(self): """Test default parser values.""" config = WeblateConfig() self.assertEqual(config.get("weblate", "key"), "") self.assertEqual(config.get("weblate", "retries"), 0) self.assertEqual(config.get("weblate", "timeout"), 300) self.assertEqual( config.get("weblate", "method_whitelist"), "HEAD\nTRACE\nDELETE\nOPTIONS\nPUT\nGET", ) self.assertEqual(config.get("weblate", "backoff_factor"), 0) self.assertIsNone(config.get("weblate", "status_forcelist")) def test_parsing(self): """Test config file parsing.""" config = WeblateConfig() self.assertEqual(config.get("weblate", "url"), wlc.API_URL) config.load() config.load(TEST_CONFIG) self.assertEqual(config.get("weblate", "url"), "https://example.net/") self.assertEqual(config.get("weblate", "retries"), "999") self.assertEqual(config.get("weblate", "method_whitelist"), "PUT,POST") self.assertEqual(config.get("weblate", "backoff_factor"), "0.2") self.assertEqual( config.get("weblate", "status_forcelist"), "429,500,502,503,504" ) def test_get_request_options(self): """Test the get_request_options method when all options are in config.""" config = WeblateConfig() config.load() config.load(TEST_CONFIG) ( retries, status_forcelist, method_whitelist, backoff_factor, _timeout, ) = config.get_request_options() self.assertEqual(retries, 999) self.assertEqual(status_forcelist, [429, 500, 502, 503, 504]) self.assertEqual(method_whitelist, ["PUT", "POST"]) self.assertEqual(backoff_factor, 0.2) def test_argv(self): """Test sys.argv processing.""" backup = sys.argv try: sys.argv = ["wlc", "version"] output = execute(None) self.assertIn(f"version: {wlc.__version__}", output) finally: sys.argv = backup class TestOutput(APITest): """Test output formatting.""" def test_version_text(self): """Test version printing.""" output = execute(["--format", "text", "version"]) self.assertIn(f"version: {wlc.__version__}", output) def test_version_json(self): """Test version printing.""" output = execute(["--format", "json", "version"]) values = json.loads(output) self.assertEqual({"version": wlc.__version__}, values) def test_version_csv(self): """Test version printing.""" output = execute(["--format", "csv", "version"]) self.assertIn(f"version,{wlc.__version__}", output) def test_version_html(self): """Test version printing.""" output = execute(["--format", "html", "version"]) self.assertIn(wlc.__version__, output) def test_projects_text(self): """Test projects printing.""" output = execute(["--format", "text", "list-projects"]) self.assertIn("name: {}".format("Hello"), output) def test_projects_json(self): """Test projects printing.""" output = execute(["--format", "json", "list-projects"]) values = json.loads(output) self.assertEqual(2, len(values)) def test_projects_csv(self): """Test projects printing.""" output = execute(["--format", "csv", "list-projects"]) self.assertIn("Hello", output) def test_projects_html(self): """Test projects printing.""" output = execute(["--format", "html", "list-projects"]) self.assertIn("Hello", output) def test_json_encoder(self): """Test JSON encoder.""" output = StringIO() cmd = Version(args=[], config=WeblateConfig(), stdout=output) with self.assertRaises(TypeError): cmd.print_json(self) class TestCommands(APITest): """Individual command tests.""" def test_version_bare(self): """Test version printing.""" output = execute(["version", "--bare"]) self.assertEqual(f"{wlc.__version__}\n", output) def test_ls(self): """Project listing.""" output = execute(["ls"]) self.assertIn("Hello", output) output = execute(["ls", "hello"]) self.assertIn("Weblate", output) output = execute(["ls", "empty"]) self.assertEqual("", output) def test_list_languages(self): """Language listing.""" output = execute(["list-languages"]) self.assertIn("Turkish", output) def test_list_projects(self): """Project listing.""" output = execute(["list-projects"]) self.assertIn("Hello", output) def test_list_components(self): """Components listing.""" output = execute(["list-components"]) self.assertIn("/hello/weblate", output) output = execute(["list-components", "hello"]) self.assertIn("/hello/weblate", output) output = execute(["list-components", "hello/weblate"], expected=1) self.assertIn("Not supported", output) def test_list_translations(self): """Translations listing.""" output = execute(["list-translations"]) self.assertIn("/hello/weblate/cs/", output) output = execute(["list-translations", "hello/weblate"]) self.assertIn("/hello/weblate/cs/", output) output = execute(["list-translations", "hello/weblate"]) self.assertIn("/hello/weblate/cs/", output) output = execute(["--format", "json", "list-translations", "hello/weblate"]) self.assertIn("/hello/weblate/cs/", output) def test_show(self): """Project show.""" output = execute(["show", "hello"]) self.assertIn("Hello", output) output = execute(["show", "hello/weblate"]) self.assertIn("Weblate", output) output = execute(["show", "hello/weblate/cs"]) self.assertIn("/hello/weblate/cs/", output) def test_show_error(self): execute(["show", "io"], expected=10) with self.assertRaises(FileNotFoundError): execute(["show", "bug"]) def test_delete(self): """Project delete.""" output = execute(["delete", "hello"]) self.assertEqual("", output) output = execute(["delete", "hello/weblate"]) self.assertEqual("", output) output = execute(["delete", "hello/weblate/cs"]) self.assertEqual("", output) def test_commit(self): """Project commit.""" output = execute(["commit", "hello"]) self.assertEqual("", output) output = execute(["commit", "hello/weblate"]) self.assertEqual("", output) output = execute(["commit", "hello/weblate/cs"]) self.assertEqual("", output) def test_push(self): """Project push.""" msg = "Error: Failed to push changes!\nPush is disabled for Hello/Weblate.\n" output = execute(["push", "hello"], expected=1) self.assertEqual(msg, output) output = execute(["push", "hello/weblate"], expected=1) self.assertEqual(msg, output) output = execute(["push", "hello/weblate/cs"], expected=1) self.assertEqual(msg, output) def test_pull(self): """Project pull.""" output = execute(["pull", "hello"]) self.assertEqual("", output) output = execute(["pull", "hello/weblate"]) self.assertEqual("", output) output = execute(["pull", "hello/weblate/cs"]) self.assertEqual("", output) def test_reset(self): """Project reset.""" output = execute(["reset", "hello"]) self.assertEqual("", output) output = execute(["reset", "hello/weblate"]) self.assertEqual("", output) output = execute(["reset", "hello/weblate/cs"]) self.assertEqual("", output) def test_cleanup(self): """Project cleanup.""" output = execute(["cleanup", "hello"]) self.assertEqual("", output) output = execute(["cleanup", "hello/weblate"]) self.assertEqual("", output) output = execute(["cleanup", "hello/weblate/cs"]) self.assertEqual("", output) def test_repo(self): """Project repo.""" output = execute(["repo", "hello"]) self.assertIn("needs_commit", output) output = execute(["repo", "hello/weblate"]) self.assertIn("needs_commit", output) output = execute(["repo", "hello/weblate/cs"]) self.assertIn("needs_commit", output) def test_stats(self): """Project stats.""" output = execute(["stats", "hello"]) self.assertIn("translated_percent", output) output = execute(["stats", "hello/weblate"]) self.assertIn("failing_percent", output) output = execute(["stats", "hello/weblate/cs"]) self.assertIn("failing_percent", output) def test_locks(self): """Project locks.""" output = execute(["lock-status", "hello"], expected=1) self.assertIn("This command is supported only at component level", output) output = execute(["lock-status", "hello/weblate"]) self.assertIn("locked", output) output = execute(["lock", "hello/weblate"]) self.assertEqual("", output) output = execute(["unlock", "hello/weblate"]) self.assertEqual("", output) output = execute(["lock-status", "hello/weblate/cs"], expected=1) self.assertIn("This command is supported only at component level", output) def test_changes(self): """Project changes.""" output = execute(["changes", "hello"]) self.assertIn("action_name", output) output = execute(["changes", "hello/weblate"]) self.assertIn("action_name", output) output = execute(["changes", "hello/weblate/cs"]) self.assertIn("action_name", output) def test_download(self): """Translation file downloads.""" output = execute(["download"], expected=1) self.assertIn("Output is needed", output) with TemporaryDirectory() as tmpdirname: execute(["download", "--output", tmpdirname]) output = execute(["download", "hello/weblate/cs"]) self.assertIn(b"Plural-Forms:", output) output = execute(["download", "hello/weblate/cs", "--convert", "csv"]) self.assertIn(b'"location"', output) with NamedTemporaryFile() as handle: handle.close() execute(["download", "hello/weblate/cs", "-o", handle.name]) with open(handle.name, "rb") as tmp: output = tmp.read() self.assertIn(b"Plural-Forms:", output) output = execute(["download", "hello/weblate"], expected=1) self.assertIn("Output is needed", output) with TemporaryDirectory() as tmpdirname: execute(["download", "hello/weblate", "--output", tmpdirname]) output = execute(["download", "hello"], expected=1) self.assertIn("Output is needed", output) with TemporaryDirectory() as tmpdirname: execute(["download", "hello", "--no-glossary", "--output", tmpdirname]) # The hello-android should not be present as it is flagged as a glossary self.assertEqual(os.listdir(tmpdirname), ["hello-weblate.zip"]) with TemporaryDirectory() as tmpdirname: execute( [ "download", "hello", "--convert", "zip", "--output", os.path.join(tmpdirname, "output"), ] ) self.assertEqual(os.listdir(tmpdirname), ["output"]) def test_upload(self): """Translation file uploads.""" msg = "Error: Failed to upload translations!\nNot found.\n" output = execute(["upload", "hello/weblate"], expected=1) self.assertEqual( "Error: This command is supported only at translation level\n", output ) with self.get_text_io_wrapper("test upload data") as stdin: output = execute(["upload", "hello/weblate/cs"], stdin=stdin) self.assertEqual("", output) with self.get_text_io_wrapper("wrong upload data") as stdin: output = execute(["upload", "hello/weblate/cs"], stdin=stdin, expected=1) self.assertEqual(msg, output) with NamedTemporaryFile(delete=False) as handle: handle.write(b"test upload overwrite") handle.close() output = execute( ["upload", "hello/weblate/cs", "-i", handle.name, "--overwrite"] ) self.assertEqual("", output) @staticmethod def get_text_io_wrapper(string): """Create a text io wrapper from a string.""" return TextIOWrapper(BytesIO(string.encode()), "utf8") class TestErrors(APITest): """Error handling tests.""" def test_commandline_missing_key(self): """Configuration using command-line.""" output = execute( ["--url", "http://denied.example.com", "list-projects"], expected=1 ) self.assertIn("Missing API key", output) def test_commandline_wrong_key(self): """Configuration using command-line.""" output = execute( ["--key", "x", "--url", "http://denied.example.com", "list-projects"], expected=1, ) self.assertIn("was rejected by server", output) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689398.0 wlc-1.14/wlc/test_wlc.py0000644000175100001770000005255414566103766014645 0ustar00runnerdocker# Copyright © Michal Čihař # # SPDX-License-Identifier: GPL-3.0-or-later """Test the module.""" from __future__ import annotations import io import os from typing import Any, ClassVar from requests.exceptions import RequestException from wlc import ( API_URL, Category, Change, Component, Project, Translation, Unit, Weblate, WeblateException, ) from .test_base import APITest class WeblateErrorTest(APITest): """Testing error handling.""" def test_nonexisting(self): """Test listing projects.""" with self.assertRaisesRegex(WeblateException, "not found"): Weblate().get_object("nonexisting") def test_denied(self): """Test listing projects.""" with self.assertRaisesRegex(WeblateException, "permission"): Weblate().get_object("denied") def test_denied_json(self): """Test permission denied when posting components.""" with self.assertRaisesRegex(WeblateException, "Can not create"): Weblate().create_component( project="denied_json", slug="component1", name="component1", file_format="po", filemask="/something", repo="a_repo", ) def test_throttled(self): """Test listing projects.""" with self.assertRaisesRegex( WeblateException, "Throttling.*Limit is 100 requests. Retry after 81818 seconds.", ): Weblate().get_object("throttled") def test_error(self): """Test listing projects.""" with self.assertRaisesRegex(WeblateException, "500"): Weblate().get_object("error") def test_oserror(self): """Test listing projects.""" with self.assertRaises(RequestException): Weblate().get_object("io") def test_bug(self): """Test listing projects.""" with self.assertRaises(FileNotFoundError): Weblate().get_object("bug") def test_invalid(self): """Test listing projects.""" with self.assertRaisesRegex(WeblateException, "invalid JSON"): Weblate().get_object("invalid") def test_too_long(self): """Test listing projects.""" with self.assertRaises(ValueError): Weblate().get_object("a/b/c/d") def test_invalid_attribute(self): """Test attributes getting.""" obj = Weblate().get_object("hello") self.assertEqual(obj.name, "Hello") with self.assertRaises(AttributeError): print(obj.invalid_attribute) class WeblateTest(APITest): """Testing of Weblate class.""" def test_languages(self): """Test listing projects.""" self.assertEqual(len(list(Weblate().list_languages())), 47) def test_api_trailing_slash(self): """Test listing projects.""" self.assertEqual(len(list(Weblate(url=API_URL[:-1]).list_languages())), 47) def test_projects(self): """Test listing projects.""" self.assertEqual(len(list(Weblate().list_projects())), 2) def test_components(self): """Test listing components.""" self.assertEqual(len(list(Weblate().list_components())), 2) def test_translations(self): """Test listing translations.""" self.assertEqual(len(list(Weblate().list_translations())), 50) def test_categories(self): """Test listing translations.""" self.assertEqual(len(list(Weblate().list_categories())), 2) def test_authentication(self): """Test authentication against server.""" with self.assertRaisesRegex(WeblateException, "permission"): obj = Weblate().get_object("acl") obj = Weblate(key="KEY").get_object("acl") self.assertEqual(obj.name, "ACL") def test_ensure_loaded(self): """Test lazy loading of attributes.""" obj = Weblate().get_object("hello") obj.ensure_loaded("missing") obj.ensure_loaded("missing") with self.assertRaises(AttributeError): print(obj.missing) def test_setattrvalue(self): """Test lazy loading of attributes.""" obj = Weblate().get_object("hello") with self.assertRaises(AttributeError): obj.setattrvalue("missing", "") def test_repr(self): """Test str and repr behavior.""" obj = Weblate().get_object("hello") self.assertIn("'slug': 'hello'", repr(obj)) self.assertIn("'slug': 'hello'", str(obj)) def test_add_source_string_to_monolingual_component(self): resp = Weblate().add_source_string( project="hello", component="android", msgid="test-monolingual", msgstr="test-me", ) # ensure it is definitely monolingual self.assertEqual(resp["component"]["template"], "android/values/strings.xml") self.assertEqual(resp["component"]["slug"], "android") self.assertEqual(resp["id"], 1646) def test_create_project(self): resp = Weblate().create_project( "Hello", "hello", "http://example.com/", "Malayalam", "ml" ) self.assertEqual("Hello", resp["name"]) self.assertEqual("hello", resp["slug"]) self.assertEqual("http://example.com/", resp["web"]) self.assertEqual("Malayalam", resp["source_language"]["name"]) self.assertEqual("ml", resp["source_language"]["code"]) def test_create_language(self): resp = Weblate().create_language( name="Test Language", code="tst", direction="rtl", plural={"number": 2, "formula": "n != 1"}, ) self.assertEqual("Test Language", resp["name"]) self.assertEqual("tst", resp["code"]) self.assertEqual("rtl", resp["direction"]) self.assertEqual(2, resp["plural"]["number"]) self.assertEqual("n != 1", resp["plural"]["formula"]) def test_create_component(self): resp = Weblate().create_component( project="hello", branch="main", file_format="po", filemask="po/*.po", git_export="", license="", license_url="", name="Weblate", slug="weblate", repo="file:///home/nijel/work/weblate-hello", template="", new_base="", vcs="git", ) self.assertEqual("Hello", resp["project"]["name"]) self.assertEqual("hello", resp["project"]["slug"]) self.assertEqual("Weblate", resp["name"]) self.assertEqual("weblate", resp["slug"]) self.assertEqual("file:///home/nijel/work/weblate-hello", resp["repo"]) self.assertEqual("http://example.com/git/hello/weblate/", resp["git_export"]) self.assertEqual("main", resp["branch"]) self.assertEqual("po/*.po", resp["filemask"]) self.assertEqual("git", resp["vcs"]) self.assertEqual("po", resp["file_format"]) with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component(project="hello") with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component(project="hello", name="Weblate") with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component(project="hello", name="Weblate", slug="weblate") with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component( project="hello", name="Weblate", slug="weblate", file_format="po" ) with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component( project="hello", name="Weblate", slug="weblate", file_format="po", filemask="po/*.po", ) def test_create_component_local_files(self): test_file = os.path.join( os.path.dirname(__file__), "test_data", "mock", "project-local-file.pot" ) with open(test_file) as file: resp = Weblate().create_component( docfile=file.read(), project="hello", branch="main", file_format="po", filemask="po/*.po", git_export="", license="", license_url="", name="Weblate", slug="weblate", repo="local:", template="", new_base="", vcs="local", ) self.assertEqual("Hello", resp["project"]["name"]) self.assertEqual("hello", resp["project"]["slug"]) self.assertEqual("Weblate", resp["name"]) self.assertEqual("weblate", resp["slug"]) self.assertEqual("local:", resp["repo"]) self.assertEqual("main", resp["branch"]) self.assertEqual("po/*.po", resp["filemask"]) self.assertEqual("local", resp["vcs"]) self.assertEqual("po", resp["file_format"]) with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component(project="hello") with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component(project="hello", name="Weblate") with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component( project="hello", name="Weblate", slug="weblate" ) with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component( project="hello", name="Weblate", slug="weblate", file_format="po" ) with self.assertRaisesRegex(WeblateException, "required"): Weblate().create_component( project="hello", name="Weblate", slug="weblate", file_format="po", filemask="po/*.po", ) class ObjectTestBaseClass(APITest): """Base class for objects testing.""" _name: str | None = None _cls: Any = None def check_object(self, obj): """Perform verification whether object is valid.""" raise NotImplementedError def get(self): """Return remote object.""" return Weblate().get_object(self._name) def test_get(self): """Test getting project.""" obj = self.get() self.assertIsInstance(obj, self._cls) self.check_object(obj) def check_list(self, obj): """Perform verification whether listing is valid.""" raise NotImplementedError def test_list(self): """Item listing test.""" obj = self.get() self.check_list(obj.list()) class ObjectTest(ObjectTestBaseClass): """Additional tests for projects, components, and translations.""" def test_refresh(self): """Object refreshing test.""" obj = self.get() obj.refresh() self.assertIsInstance(obj, self._cls) self.check_object(obj) def test_changes(self): """Item listing test.""" obj = self.get() lst = list(obj.changes()) self.assertEqual(len(lst), 2) self.assertIsInstance(lst[0], Change) def test_repository(self): """Repository get test.""" obj = self.get() repository = obj.repository() self.assertFalse(repository.needs_commit) def test_repository_commit(self): """Repository commit test.""" obj = self.get() repository = obj.repository() self.assertEqual(repository.commit(), {"result": True}) def test_commit(self): """Direct commit test.""" obj = self.get() self.assertEqual(obj.commit(), {"result": True}) def test_pull(self): """Direct pull test.""" obj = self.get() self.assertEqual(obj.pull(), {"result": True}) def test_reset(self): """Direct reset test.""" obj = self.get() self.assertEqual(obj.reset(), {"result": True}) def test_cleanup(self): """Direct cleanup test.""" obj = self.get() self.assertEqual(obj.cleanup(), {"result": True}) def test_push(self): """Direct push test.""" obj = self.get() self.assertEqual( obj.push(), {"result": False, "detail": "Push is disabled for Hello/Weblate."}, ) def test_data(self): obj = self.get() self.assertIsNotNone(obj.get_data()) def test_delete(self): obj = self.get() self.assertIsNone(obj.delete()) class ProjectTest(ObjectTest): """Project object tests.""" _name = "hello" _cls = Project def check_object(self, obj): """Perform verification whether object is valid.""" self.assertEqual(obj.name, "Hello") def check_list(self, obj): """Perform verification whether listing is valid.""" lst = list(obj) self.assertEqual(len(lst), 2) self.assertIsInstance(lst[0], Component) def test_languages(self): """Component statistics test.""" obj = self.get() self.assertEqual(2, len(list(obj.languages()))) def test_statistics(self): """Component statistics test.""" obj = self.get() stats = obj.statistics() self.assertEqual(stats["name"], "Hello") def test_categories(self): obj = self.get() self.assertEqual(2, len(list(obj.categories()))) def test_create_component(self): """Component creation test.""" obj = self.get() resp = obj.create_component( branch="main", file_format="po", filemask="po/*.po", git_export="", license="", license_url="", name="Weblate", slug="weblate", repo="file:///home/nijel/work/weblate-hello", template="", new_base="", vcs="git", ) self.assertEqual("Hello", resp["project"]["name"]) self.assertEqual("hello", resp["project"]["slug"]) self.assertEqual("Weblate", resp["name"]) self.assertEqual("weblate", resp["slug"]) self.assertEqual("file:///home/nijel/work/weblate-hello", resp["repo"]) self.assertEqual("http://example.com/git/hello/weblate/", resp["git_export"]) self.assertEqual("main", resp["branch"]) self.assertEqual("po/*.po", resp["filemask"]) self.assertEqual("git", resp["vcs"]) self.assertEqual("po", resp["file_format"]) class ComponentTest(ObjectTest): """Component object tests.""" _name = "hello/weblate" _cls = Component def check_object(self, obj): """Perform verification whether object is valid.""" self.assertEqual(obj.name, "Weblate") self.assertEqual(obj.priority, 100) self.assertEqual(obj.agreement, "") def check_list(self, obj): """Perform verification whether listing is valid.""" lst = list(obj) self.assertEqual(len(lst), 33) self.assertIsInstance(lst[0], Translation) def test_add_translation(self): """Perform verification that the correct endpoint is accessed.""" obj = self.get() resp = obj.add_translation("nl_BE") self.assertEqual(resp["data"]["id"], 827) self.assertEqual( resp["data"]["revision"], "da6ea2777f61fbe1d2a207ff6ebdadfa15f26d1a" ) def test_statistics(self): """Component statistics test.""" obj = self.get() self.assertEqual(33, len(list(obj.statistics()))) def test_lock_status(self): """Component lock status test.""" obj = self.get() self.assertEqual({"locked": False}, obj.lock_status()) def test_lock(self): """Component lock test.""" obj = self.get() self.assertEqual({"locked": True}, obj.lock()) def test_unlock(self): """Component unlock test.""" obj = self.get() self.assertEqual({"locked": False}, obj.unlock()) def test_keys(self): """Test keys lazy loading.""" obj = Component(Weblate(), f"components/{self._name}/") self.assertCountEqual( obj.keys(), [ "agreement", "branch", "category", "file_format", "filemask", "git_export", "is_glossary", "license", "license_url", "name", "new_base", "priority", "project", "repo", "slug", "source_language", "source_language", "template", "url", "vcs", "web_url", ], ) def test_components_patch(self): obj = self.get() resp = obj.patch(priority=80) self.assertIn("--patched--", resp.decode()) class ComponentCompatibilityTest(ObjectTest): """Tests a component with lack of all optional fields in a response.""" _name = "hello/olderweblate" _cls = Component def check_object(self, obj): """Perform verification whether object is valid.""" self.assertEqual(obj.name, "Weblate") self.assertEqual(obj.priority, 100) self.assertEqual(obj.agreement, "") def check_list(self, obj): """Perform verification whether listing is valid.""" lst = list(obj) self.assertEqual(len(lst), 33) self.assertIsInstance(lst[0], Translation) def test_keys(self): """Test keys lazy loading.""" obj = Component(Weblate(), f"components/{self._name}/") self.assertCountEqual( obj.keys(), [ "agreement", "branch", "file_format", "filemask", "git_export", "license", "license_url", "name", "new_base", "priority", "project", "repo", "slug", "template", "url", "vcs", "web_url", ], ) class TranslationTest(ObjectTest): """Translation object tests.""" _name = "hello/weblate/cs" _cls = Translation def check_object(self, obj): """Perform verification whether object is valid.""" self.assertEqual(obj.language.code, "cs") def check_list(self, obj): """Perform verification whether listing is valid.""" self.assertIsInstance(obj, Translation) def test_statistics(self): """Translation statistics test.""" obj = self.get() data = obj.statistics() self.assertEqual(data.name, "Czech") def test_download(self): """Test verbatim file download.""" obj = self.get() content = obj.download() self.assertIn(b"Plural-Forms:", content) def test_download_csv(self): """Test dowload of file converted to CSV.""" obj = self.get() content = obj.download("csv") self.assertIn(b'"location"', content) def test_upload(self): """Test file upload.""" obj = self.get() file = io.StringIO("test upload data") obj.upload(file) def test_upload_method(self): """Test file upload.""" obj = self.get() file = io.StringIO("test upload data") obj.upload(file, method="translate") def test_upload_format(self): """Test file upload.""" obj = self.get() file = io.StringIO("test upload data") obj.upload(file, format="po") def test_units(self): obj = self.get() units = list(obj.units()) self.assertEqual(1, len(units)) self.assertIsInstance(units[0], Unit) self.assertEqual(units[0].id, 35664) def test_units_search(self): obj = self.get() units = list(obj.units(q='source:="mr"')) self.assertEqual(1, len(units)) self.assertIsInstance(units[0], Unit) self.assertEqual(units[0].id, 117) class UnitTest(ObjectTestBaseClass): _name = "123" _cls = Unit patch_data: ClassVar[dict[str, Any]] = { "target": ["foo"], "state": 30, } def check_object(self, obj): """Perform verification whether object is valid.""" self.assertEqual(obj.id, 123) def check_list(self, obj): """Perform verification whether listing is valid.""" self.assertIsInstance(obj, Unit) def test_units_patch(self): obj = self.get() resp = obj.patch(**self.patch_data) self.assertIn("--patched--", resp.decode()) def test_units_put(self): obj = self.get() resp = obj.put(**self.patch_data) self.assertIn("--put--", resp.decode()) def test_units_delete(self): obj = self.get() resp = obj.delete() self.assertIn("--deleted--", resp.decode()) class CategoryTest(APITest): def test(self): obj = Category(Weblate(), "http://127.0.0.1:8000/api/categories/1/") self.assertIsInstance(obj, Category) self.assertIsNone(obj.category) self.assertEqual(obj.name, "Hi") self.assertEqual(obj.slug, "hi") # Delete the reference, so that the abstract class is not discovered # when running tests del ObjectTest del ObjectTestBaseClass ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1708689417.8540468 wlc-1.14/wlc.egg-info/0000755000175100001770000000000014566104012014107 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689417.0 wlc-1.14/wlc.egg-info/PKG-INFO0000644000175100001770000001244514566104011015211 0ustar00runnerdockerMetadata-Version: 2.1 Name: wlc Version: 1.14 Summary: A command-line utility for Weblate, translation tool with tight version control integration Author-email: Michal Čihař License: GPL-3.0-or-later Project-URL: Documentation, https://docs.weblate.org/ Project-URL: Download, https://github.com/WeblateOrg/wlc Project-URL: Funding, https://weblate.org/donate/ Project-URL: Homepage, https://weblate.org/ Project-URL: Issue Tracker, https://github.com/WeblateOrg/wlc/issues Project-URL: Source Code, https://github.com/WeblateOrg/wlc Project-URL: Twitter, https://twitter.com/WeblateOrg Keywords: i18n,l10n,gettext,git,mercurial,translate Platform: any Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Internationalization Classifier: Topic :: Software Development :: Localization Classifier: Topic :: Utilities Requires-Python: >=3.8 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: argcomplete Requires-Dist: python-dateutil Requires-Dist: pyxdg Requires-Dist: requests>=2.25.0 Requires-Dist: urllib3>=1.26 Provides-Extra: lint Requires-Dist: pre-commit==3.6.2; extra == "lint" Provides-Extra: test Requires-Dist: pytest; extra == "test" Requires-Dist: pytest-cov; extra == "test" Requires-Dist: responses<0.26.0,>=0.10.1; extra == "test" Requires-Dist: build==1.0.3; extra == "test" Requires-Dist: twine==5.0.0; extra == "test" Weblate **Weblate is libre software web-based continuous localization system, used by over 2500 libre projects and companies in more than 165 countries.** # wlc wlc is a [Weblate](https://weblate.org/) command-line client using [Weblate's REST API](https://docs.weblate.org/en/latest/api.html). [![Website](https://img.shields.io/badge/website-weblate.org-blue.svg)](https://weblate.org/) [![Translation status](https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg)](https://hosted.weblate.org/engage/weblate/?utm_source=widget) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/552/badge)](https://bestpractices.coreinfrastructure.org/projects/552) [![PyPI package](https://img.shields.io/pypi/v/wlc.svg)](https://pypi.org/project/wlc/) [![Documenation](https://readthedocs.org/projects/weblate/badge/)](https://docs.weblate.org/en/latest/wlc.html) ## PIP Installation Install using pip: ```console pip3 install wlc ``` Sources are available at . ## Usage Please see [Weblate documentation](https://docs.weblate.org/en/latest/wlc.html) for more complete documentation. Command-line usage: ```console wlc list-projects wlc list-components wlc list-translations wlc list-languages wlc show wlc ls wlc commit wlc push wlc pull wlc repo wlc stats wlc lock wlc unlock wlc lock-status wlc download wlc upload ``` Configuration is stored in `~/.config/weblate`. The key/values (`retries`, `timeout`, `method_whitelist`, `backoff_factor`, `status_forcelist`) are closely coupled with the [urllib3 parameters](https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html) and allows the user to configure request parameters. ```ini [weblate] url = https://hosted.weblate.org/api/ retries = 3 method_whitelist = PUT,POST,GET backoff_factor = 0.2 status_forcelist = 429,500,502,503,504 timeout = 30 [keys] https://hosted.weblate.org/api/ = APIKEY ``` ## Docker image The image is published on [Docker Hub](https://hub.docker.com/r/weblate/wlc). Building locally: ```console docker build -t weblate/wlc . ``` Detailed documentation is available in [Weblate documentation](https://docs.weblate.org/en/latest/wlc.html#docker-wlc). ## Docker hub tags You can use following tags on Docker hub: | Tag name | Description | Use case | | -------- | --------------------------------------------------------------------------------- | ----------------------------------------------- | | `latest` | wlc stable release, matches latest tagged release | Rolling updates in a production environment | | `edge` | wlc development | Staging environment | | version | wlc stable release, see [weblate/wlc](https://hub.docker.com/r/weblate/wlc/tags/) | Well defined deploy in a production environment | Every image is tested by our CI before it gets published, so even the `bleeding` version should be quite safe to use. ## Contributing Contributions are welcome! See [documentation](https://docs.weblate.org/en/latest/contributing/modules.html) for more information. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689417.0 wlc-1.14/wlc.egg-info/SOURCES.txt0000644000175100001770000001275214566104011016001 0ustar00runnerdockerCHANGES.rst LICENSE MANIFEST.in README.md pyproject.toml setup.py .reuse/dep5 LICENSES/CC0-1.0.txt LICENSES/GPL-3.0-or-later.txt completion/wlc wlc/__init__.py wlc/config.py wlc/main.py wlc/test_base.py wlc/test_main.py wlc/test_wlc.py wlc.egg-info/PKG-INFO wlc.egg-info/SOURCES.txt wlc.egg-info/dependency_links.txt wlc.egg-info/entry_points.txt wlc.egg-info/requires.txt wlc.egg-info/top_level.txt wlc/test_data/.weblate wlc/test_data/section wlc/test_data/weblate.ini wlc/test_data/wlc wlc/test_data/api/categories wlc/test_data/api/categories-1 wlc/test_data/api/changes wlc/test_data/api/components wlc/test_data/api/components-hello-android wlc/test_data/api/components-hello-android-file wlc/test_data/api/components-hello-android-file--GET--format=zip wlc/test_data/api/components-hello-olderweblate wlc/test_data/api/components-hello-weblate wlc/test_data/api/components-hello-weblate--DELETE-- wlc/test_data/api/components-hello-weblate--PATCH--priority=80 wlc/test_data/api/components-hello-weblate-changes wlc/test_data/api/components-hello-weblate-file wlc/test_data/api/components-hello-weblate-file--GET--format=zip wlc/test_data/api/components-hello-weblate-lock wlc/test_data/api/components-hello-weblate-lock--POST--lock=0 wlc/test_data/api/components-hello-weblate-lock--POST--lock=1 wlc/test_data/api/components-hello-weblate-repository wlc/test_data/api/components-hello-weblate-repository--POST--operation=cleanup wlc/test_data/api/components-hello-weblate-repository--POST--operation=commit wlc/test_data/api/components-hello-weblate-repository--POST--operation=pull wlc/test_data/api/components-hello-weblate-repository--POST--operation=push wlc/test_data/api/components-hello-weblate-repository--POST--operation=reset wlc/test_data/api/components-hello-weblate-statistics wlc/test_data/api/components-hello-weblate-statistics--GET--page=2 wlc/test_data/api/components-hello-weblate-statistics--GET--page=3 wlc/test_data/api/components-hello-weblate-translations wlc/test_data/api/components-hello-weblate-translations--GET--page=2 wlc/test_data/api/components-hello-weblate-translations--POST--language_code=nl_BE wlc/test_data/api/languages wlc/test_data/api/languages--GET--page=2 wlc/test_data/api/languages--GET--page=3 wlc/test_data/api/languages--POST--code=tst--name=Test-Language--direction=rtl--plural=number=2--formula=n-!=-1 wlc/test_data/api/projects wlc/test_data/api/projects--POST--name=Hello--slug=hello--web=http---example.com---source_language=name=Malayalam--code=ml wlc/test_data/api/projects--POST--name=denied_json--slug=denide_json--web=http---some-weblate-app.com- wlc/test_data/api/projects-acl wlc/test_data/api/projects-empty wlc/test_data/api/projects-empty-components wlc/test_data/api/projects-hello wlc/test_data/api/projects-hello--DELETE-- wlc/test_data/api/projects-hello-categories wlc/test_data/api/projects-hello-changes wlc/test_data/api/projects-hello-components wlc/test_data/api/projects-hello-components--POST--9c51d0bc wlc/test_data/api/projects-hello-components--POST--branch=main--file_format=po--filemask=po--.po--git_export=--license=--license_url=--name=Weblate--slug=weblate--repo=file----home-nijel-work-weblate-hello--template=--new_base=--vcs=git wlc/test_data/api/projects-hello-languages wlc/test_data/api/projects-hello-repository wlc/test_data/api/projects-hello-repository--POST--operation=cleanup wlc/test_data/api/projects-hello-repository--POST--operation=commit wlc/test_data/api/projects-hello-repository--POST--operation=pull wlc/test_data/api/projects-hello-repository--POST--operation=push wlc/test_data/api/projects-hello-repository--POST--operation=reset wlc/test_data/api/projects-hello-statistics wlc/test_data/api/projects-invalid wlc/test_data/api/translations wlc/test_data/api/translations--GET--page=2 wlc/test_data/api/translations--GET--page=3 wlc/test_data/api/translations-hello-android-en-units wlc/test_data/api/translations-hello-android-en-units--POST--key=test-monolingual--value=-test-me- wlc/test_data/api/translations-hello-weblate-cs wlc/test_data/api/translations-hello-weblate-cs--DELETE-- wlc/test_data/api/translations-hello-weblate-cs-changes wlc/test_data/api/translations-hello-weblate-cs-file wlc/test_data/api/translations-hello-weblate-cs-file--GET--format=csv wlc/test_data/api/translations-hello-weblate-cs-file--POST--3748506a wlc/test_data/api/translations-hello-weblate-cs-file--POST--5c6a101f wlc/test_data/api/translations-hello-weblate-cs-file--POST--85762547 wlc/test_data/api/translations-hello-weblate-cs-file--POST--90a4957d wlc/test_data/api/translations-hello-weblate-cs-file--POST--f8672b4c wlc/test_data/api/translations-hello-weblate-cs-file--POST--fe040a0c wlc/test_data/api/translations-hello-weblate-cs-repository wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=cleanup wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=commit wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=pull wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=push wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=reset wlc/test_data/api/translations-hello-weblate-cs-statistics wlc/test_data/api/translations-hello-weblate-cs-units wlc/test_data/api/translations-hello-weblate-cs-units--GET--q=source%3A%3D%22mr%22 wlc/test_data/api/units wlc/test_data/api/units-123 wlc/test_data/api/units-123--DELETE-- wlc/test_data/api/units-123--PATCH--target=-foo---state=30 wlc/test_data/api/units-123--PUT--target=-foo---state=30 wlc/test_data/mock/project-local-file.pot././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689417.0 wlc-1.14/wlc.egg-info/dependency_links.txt0000644000175100001770000000000114566104011020154 0ustar00runnerdocker ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689417.0 wlc-1.14/wlc.egg-info/entry_points.txt0000644000175100001770000000004614566104011017404 0ustar00runnerdocker[console_scripts] wlc = wlc.main:main ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689417.0 wlc-1.14/wlc.egg-info/requires.txt0000644000175100001770000000025114566104011016504 0ustar00runnerdockerargcomplete python-dateutil pyxdg requests>=2.25.0 urllib3>=1.26 [lint] pre-commit==3.6.2 [test] pytest pytest-cov responses<0.26.0,>=0.10.1 build==1.0.3 twine==5.0.0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1708689417.0 wlc-1.14/wlc.egg-info/top_level.txt0000644000175100001770000000000414566104011016632 0ustar00runnerdockerwlc