wlc-0.8/0000755000000000000000000000000013056272505012111 5ustar rootroot00000000000000wlc-0.8/requirements-test.txt0000644000000000000000000000015313024505141016337 0ustar rootroot00000000000000-r requirements.txt codecov codacy-coverage HTTPretty!=0.8.11,!=0.8.12,!=0.8.13,!=0.8.14 pytest pytest-cov wlc-0.8/wlc/0000755000000000000000000000000013056272505012676 5ustar rootroot00000000000000wlc-0.8/wlc/main.py0000644000000000000000000004130113040205265014163 0ustar rootroot00000000000000# -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Command line interface for Weblate.""" import sys import json import csv from argparse import ArgumentParser import wlc from wlc.config import WeblateConfig, NoOptionError COMMANDS = {} SORT_ORDER = [ ] def register_command(command): """Decorator to register command in command line interface.""" COMMANDS[command.name] = command return command def get_parser(): """Create argument parser.""" parser = ArgumentParser( description='Weblate <{0}> command line utility.'.format(wlc.URL), epilog='This utility is developed at <{0}>.'.format(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='wlc {0}'.format(wlc.__version__) ) 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='subcommands', description='Subcommands specify what action to perform.', dest='cmd' ) subparser.required = True for command in COMMANDS: COMMANDS[command].add_parser(subparser) 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(CommandError, self).__init__(message) def sort_key(value): """Key getter for sorting.""" try: return '{0:02d}'.format(SORT_ORDER.index(value)) 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(object): """Basic command object.""" name = '' description = '' def __init__(self, args, config, stdout=None): """Construct Command object.""" self.args = args self.config = config if stdout is None: self.stdout = sys.stdout else: self.stdout = stdout 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, indent=2) @staticmethod def format_value(value): """Format value for rendering.""" if isinstance(value, float): return '{0:.1f}'.format(value) elif isinstance(value, int): return '{0}'.format(value) elif value is None: return '' elif 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(' '.format(key)) self.println(' ') self.println(' ') self.println(' ') for item in value: self.println(' ') for key in header: self.println(' '.format( self.format_value(getattr(item, key)) )) self.println(' ') self.println(' ') self.println('
{0}
{0}
') else: self.println('') for key, data in sorted_items(value): self.println(' ') self.println(' '.format( key, self.format_value(data) )) self.println(' ') self.println('
{0}{1}
') def print_text(self, value, header): """Text print.""" if header is not None: for item in value: for key in header: self.println('{0}: {1}'.format( key, self.format_value(getattr(item, key)) )) self.println('') else: for key, data in sorted_items(value): self.println('{0}: {1}'.format( 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(ObjectCommand, cls).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): """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: 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['detail'] if 'detail' in result else '', ) class ComponentCommand(ObjectCommand): """Wrapper to allow only component objects.""" def get_object(self): """Return component object.""" obj = super(ComponentCommand, self).get_object() if not isinstance(obj, wlc.Component): raise CommandError('Not supported') 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): """Return translation object.""" obj = super(TranslationCommand, self).get_object() if not isinstance(obj, wlc.Translation): raise CommandError('Not supported') 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(Version, cls).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(Command): """List components.""" name = 'list-components' description = "Lists all components" def run(self): """Main execution of the command.""" 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(Command): """List translations.""" name = 'list-translations' description = "Lists all translations" def run(self): """Main execution of the command.""" 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 List(ObjectCommand): """List object.""" name = 'ls' description = "List content of translation, component or project" def run(self): """Executor.""" try: obj = self.get_object() self.print(list(obj.list())) except CommandError: # 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 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(list(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(TranslationCommand): """Downloads translation file.""" name = 'download' description = ( "Downloads translation file" ) @classmethod def add_parser(cls, subparser): """Create parser for command line.""" parser = super(Download, cls).add_parser(subparser) parser.add_argument( '-c', '--convert', help='Convert file format on server (defaults to none)' ) parser.add_argument( '-o', '--output', help='File where to store output (defaults to stdout)' ) return parser def run(self): """Executor.""" obj = self.get_object() 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) 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, args=None): """Execution entry point.""" parser = get_parser() if args is None: args = sys.argv[1:] args = parser.parse_args(args) config = parse_settings(args, settings) command = COMMANDS[args.cmd](args, config, stdout) try: command.run() return 0 except (CommandError, wlc.WeblateException) as error: print('Error: {0}'.format(error), file=sys.stderr) return 1 wlc-0.8/wlc/test_data/0000755000000000000000000000000013056272505014646 5ustar rootroot00000000000000wlc-0.8/wlc/test_data/wlc0000644000000000000000000000013413024507021015341 0ustar rootroot00000000000000[weblate] url = https://example.net/ [withkey] url = https://127.0.0.1:8000/api/ key = KEY wlc-0.8/wlc/test_data/section0000644000000000000000000000004412737655001016234 0ustar rootroot00000000000000[custom] url = https://example.net/ wlc-0.8/wlc/test_data/api/0000755000000000000000000000000013056272505015417 5ustar rootroot00000000000000wlc-0.8/wlc/test_data/api/projects-hello-statistics0000644000000000000000000000074513023521730022461 0ustar rootroot00000000000000 [ { "total_words": 30, "code": "cs", "translated_words": 19, "language": "čeština", "translated": 5, "translated_percent": 62.5, "total": 8, "words_percent": 63.3 }, { "total_words": 30, "code": "en", "translated_words": 15, "language": "angličtina", "translated": 4, "translated_percent": 50.0, "total": 8, "words_percent": 50.0 } ] wlc-0.8/wlc/test_data/api/components-hello-weblate0000644000000000000000000000306113023557171022250 0ustar rootroot00000000000000{ "branch": "master", "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/", "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/" } wlc-0.8/wlc/test_data/api/components-hello-weblate-changes0000644000000000000000000000216213023557361023660 0ustar rootroot00000000000000 { "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" } ] } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-repository0000644000000000000000000000202412737655162025434 0ustar rootroot00000000000000{ "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 master\nYour branch is ahead of 'origin/master' 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/" } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs0000644000000000000000000000611613023557221023207 0ustar rootroot00000000000000{ "component": { "branch": "master", "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/" } wlc-0.8/wlc/test_data/api/projects-empty-components0000644000000000000000000000012313024507443022503 0ustar rootroot00000000000000{ "count": 0, "next": null, "previous": null, "results": [ ] } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-file0000644000000000000000000000177713024467317024143 0ustar rootroot00000000000000# Czech translations for PACKAGE package. # Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Automatically generated, 2012. # msgid "" 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 "" wlc-0.8/wlc/test_data/api/translations0000644000000000000000000021061312737655221020073 0ustar rootroot00000000000000{ "count": 50, "next": "http://127.0.0.1:8000/api/translations/?page=2", "previous": null, "results": [ { "component": { "branch": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": 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/" }, { "component": { "branch": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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/" } ] } wlc-0.8/wlc/test_data/api/components-hello-weblate-statistics0000644000000000000000000002636212737655162024463 0ustar rootroot00000000000000{ "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, "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, "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, "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, "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, "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", "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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/" } ] } wlc-0.8/wlc/test_data/api/components-hello-weblate-repository--POST--operation=commit0000644000000000000000000000002712737655162030717 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/components-hello-weblate-translations0000644000000000000000000007441212737655162025011 0ustar rootroot00000000000000{ "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": 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/" }, { "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/" } ] } wlc-0.8/wlc/test_data/api/projects-hello-repository0000644000000000000000000000022312737655162022517 0ustar rootroot00000000000000{ "needs_commit": false, "needs_merge": false, "needs_push": true, "url": "http://127.0.0.1:8000/api/projects/hello/repository/" } wlc-0.8/wlc/test_data/api/components-hello-weblate-statistics--GET--page=30000644000000000000000000000010712737655162026311 0ustar rootroot00000000000000{ "detail": "Invalid page \"3\": That page contains no results." } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=reset0000644000000000000000000000002713015556777031512 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-statistics0000644000000000000000000000071412737655162025413 0ustar rootroot00000000000000{ "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", "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/" } wlc-0.8/wlc/test_data/api/components-hello-android0000644000000000000000000000301412737655221022251 0ustar rootroot00000000000000{ "branch": "master", "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", "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/" } wlc-0.8/wlc/test_data/api/components-hello-weblate-repository--POST--operation=push0000644000000000000000000000011512737655162030404 0ustar rootroot00000000000000{ "detail": "Push is disabled for Hello/Weblate.", "result": false } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=push0000644000000000000000000000011512737655162031343 0ustar rootroot00000000000000{ "detail": "Push is disabled for Hello/Weblate.", "result": false } wlc-0.8/wlc/test_data/api/projects-hello-repository--POST--operation=reset0000644000000000000000000000002713015556733026566 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=commit0000644000000000000000000000002712737655162031656 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/projects-acl0000644000000000000000000000140613024475716017735 0ustar rootroot00000000000000{ "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/" } wlc-0.8/wlc/test_data/api/projects-hello-repository--POST--operation=push0000644000000000000000000000011512737655162026427 0ustar rootroot00000000000000{ "detail": "Push is disabled for Hello/Weblate.", "result": false } wlc-0.8/wlc/test_data/api/components-hello-weblate-translations--GET--page=20000644000000000000000000004763212737655162026655 0ustar rootroot00000000000000{ "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/" } ] } wlc-0.8/wlc/test_data/api/projects0000644000000000000000000000240112737655162017201 0ustar rootroot00000000000000{ "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/" } ] } wlc-0.8/wlc/test_data/api/components-hello-weblate-repository--POST--operation=pull0000644000000000000000000000002712737655162030403 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/components-hello-weblate-lock0000644000000000000000000000003012740660213023164 0ustar rootroot00000000000000{ "locked": false } wlc-0.8/wlc/test_data/api/changes0000644000000000000000000000216213023557371016754 0ustar rootroot00000000000000 { "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" } ] } wlc-0.8/wlc/test_data/api/translations--GET--page=20000644000000000000000000020567212737655221021744 0ustar rootroot00000000000000{ "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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/" } ] } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-file--GET--format=csv0000644000000000000000000000060613024470154026770 0ustar rootroot00000000000000"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","","","" wlc-0.8/wlc/test_data/api/components-hello-weblate-statistics--GET--page=20000644000000000000000000001651412737655162026321 0ustar rootroot00000000000000{ "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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/" } ] } wlc-0.8/wlc/test_data/api/projects-hello-components0000644000000000000000000000373412737655221022473 0ustar rootroot00000000000000{ "count": 2, "next": null, "previous": null, "results": [ { "branch": "master", "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": "", "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/", "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/" }, { "branch": "master", "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": "", "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/" } ] } wlc-0.8/wlc/test_data/api/translations--GET--page=30000644000000000000000000010336612737655221021742 0ustar rootroot00000000000000{ "count": 50, "next": null, "previous": "http://127.0.0.1:8000/api/translations/?page=2", "results": [ { "component": { "branch": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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": "master", "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/" } ] } wlc-0.8/wlc/test_data/api/projects-hello-repository--POST--operation=pull0000644000000000000000000000002712737655162026426 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-changes0000644000000000000000000000216213023557407024620 0ustar rootroot00000000000000 { "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" } ] } wlc-0.8/wlc/test_data/api/components-hello-weblate-lock--POST--lock=00000644000000000000000000000003112740660213025205 0ustar rootroot00000000000000{ "locked": false } wlc-0.8/wlc/test_data/api/projects-invalid0000644000000000000000000000001512737655162020624 0ustar rootroot00000000000000Invalid JSON wlc-0.8/wlc/test_data/api/translations-hello-weblate-cs-repository--POST--operation=pull0000644000000000000000000000002712737655162031342 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/components-hello-weblate-repository--POST--operation=reset0000644000000000000000000000002713015556775030551 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/components-hello-weblate-repository0000644000000000000000000000201712737655162024477 0ustar rootroot00000000000000{ "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 master\nYour branch is ahead of 'origin/master' 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/" } wlc-0.8/wlc/test_data/api/projects-empty0000644000000000000000000000142613024507656020335 0ustar rootroot00000000000000{ "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/" } wlc-0.8/wlc/test_data/api/projects-hello-changes0000644000000000000000000000216213023557402021677 0ustar rootroot00000000000000 { "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" } ] } wlc-0.8/wlc/test_data/api/components-hello-weblate-lock--POST--lock=10000644000000000000000000000003012740660446025215 0ustar rootroot00000000000000{ "locked": true } wlc-0.8/wlc/test_data/api/projects-hello0000644000000000000000000000142613023557204020273 0ustar rootroot00000000000000{ "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/", "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/" } wlc-0.8/wlc/test_data/api/projects-hello-repository--POST--operation=commit0000644000000000000000000000002712737655162026742 0ustar rootroot00000000000000{ "result": true } wlc-0.8/wlc/test_data/api/languages--GET--page=20000644000000000000000000001446712737655162021175 0ustar rootroot00000000000000{ "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/" } ] } wlc-0.8/wlc/test_data/api/languages--GET--page=30000644000000000000000000000454212737655162021167 0ustar rootroot00000000000000{ "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/" } ] } wlc-0.8/wlc/test_data/api/languages0000644000000000000000000001432012737655162017321 0ustar rootroot00000000000000{ "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/" } ] } wlc-0.8/wlc/test_data/api/components0000644000000000000000000000723212737655221017540 0ustar rootroot00000000000000{ "count": 2, "next": null, "previous": null, "results": [ { "branch": "master", "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", "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/" }, { "branch": "master", "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/" } ] } wlc-0.8/wlc/test_data/.weblate0000644000000000000000000000011012737655001016263 0ustar rootroot00000000000000[weblate] url = http://127.0.0.1:8000/api/ translation = hello/weblate wlc-0.8/wlc/test_base.py0000644000000000000000000001151313053016306015212 0ustar rootroot00000000000000# -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Test helpers.""" from unittest import TestCase import httpretty import os DATA_TEST_BASE = os.path.join(os.path.dirname(__file__), 'test_data', 'api') class ResponseHandler(object): """httpretty response handler.""" def __init__(self, body, filename, auth=False): """Construct response handler object.""" self.body = body self.filename = filename self.auth = auth def get_filename(self, request): """Return filename for given request.""" filename = None if request.method != 'GET': filename = '--'.join( (self.filename, request.method, request.body.decode('ascii')) ) elif '?' in request.path: filename = '--'.join( (self.filename, request.method, request.path.split('?', 1)[-1]) ) return filename def get_content(self, request): """Return content for given request.""" filename = self.get_filename(request) if filename is not None: with open(filename, 'rb') as handle: return handle.read() return self.body def __call__(self, request, uri, headers): """Function call interface for httpretty.""" if self.auth and request.headers['Authorization'] != 'Token KEY': return (403, headers, '') return (200, headers, self.get_content(request)) 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: httpretty.register_uri( httpretty.GET, url, body=ResponseHandler(handle.read(), filename, auth), content_type='application/json' ) httpretty.register_uri( httpretty.POST, url, body=ResponseHandler(handle.read(), filename, auth), content_type='application/json' ) def raise_error(request, uri, headers): """Raise IOError.""" # pylint: disable=W0613 raise IOError('Some error') def register_error(path, code, domain='http://127.0.0.1:8000/api', body=None): """Simplified URL error registration.""" url = '/'.join((domain, path, '')) httpretty.register_uri( httpretty.GET, url, body=body, status=code ) def register_uris(): """Register URIs for httpretty.""" paths = ( 'changes', 'projects', 'components', 'translations', 'projects/hello', 'projects/hello/changes', 'projects/hello/components', 'projects/hello/statistics', 'projects/empty', 'projects/empty/components', 'projects/invalid', 'components/hello/weblate', 'components/hello/android', 'translations/hello/weblate/cs', 'projects/hello/repository', 'components/hello/weblate/repository', 'components/hello/weblate/changes', 'translations/hello/weblate/cs/file', 'translations/hello/weblate/cs/repository', 'translations/hello/weblate/cs/changes', 'components/hello/weblate/statistics', 'translations/hello/weblate/cs/statistics', 'components/hello/weblate/translations', 'components/hello/weblate/lock', 'languages', ) 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/throttled', 429) register_error('projects/error', 500) register_error('projects/io', 500, body=raise_error) class APITest(TestCase): """Base class for API testing.""" def setUp(self): """Enable httpretty and register urls.""" httpretty.enable() register_uris() def tearDown(self): """Disable httpretty.""" httpretty.disable() httpretty.reset() wlc-0.8/wlc/config.py0000644000000000000000000000452113040205265014507 0ustar rootroot00000000000000# -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Weblate API library, configuration.""" import os.path from configparser import RawConfigParser, NoOptionError 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.""" RawConfigParser.__init__(self, 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) def load(self, path=None): """Load configuration from XDG paths.""" if path is None: path = load_config_paths('weblate') self.read(path) # Try reading from current dir cwd = os.path.abspath('.') prev = None while cwd != prev: conf_name = os.path.join(cwd, '.weblate') 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 wlc-0.8/wlc/test_wlc.py0000644000000000000000000002222013040205265015062 0ustar rootroot00000000000000# -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Test the module.""" from .test_base import APITest from wlc import ( Weblate, WeblateException, Project, Component, Translation, Change, ) 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_throttled(self): """Test listing projects.""" with self.assertRaisesRegex(WeblateException, 'Throttling'): 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(IOError): Weblate().get_object('io') 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') self.assertEqual(getattr(obj, 'name'), 'Hello') with self.assertRaises(AttributeError): getattr(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_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_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): getattr(obj, 'missing') class ObjectTest(object): """Base class for objects testing.""" _name = None _cls = None 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_object(self, obj): """Perform verification whether object is valid.""" raise NotImplementedError() def test_refresh(self): """Object refreshing test.""" obj = self.get() obj.refresh() 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() ) 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_push(self): """Direct push test.""" obj = self.get() self.assertEqual( obj.push(), { 'result': False, 'detail': 'Push is disabled for Hello/Weblate.', } ) class ProjectTest(ObjectTest, APITest): """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_statistics(self): """Component statistics test.""" obj = self.get() self.assertEqual(2, len(list(obj.statistics()))) class ComponentTest(ObjectTest, APITest): """Component object tests.""" _name = 'hello/weblate' _cls = Component def check_object(self, obj): """Perform verification whether object is valid.""" self.assertEqual( obj.name, 'Weblate', ) 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_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() ) class TranslationTest(ObjectTest, APITest): """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 ) wlc-0.8/wlc/__init__.py0000644000000000000000000003524013053016364015007 0ustar rootroot00000000000000# -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Weblate API client library.""" from urllib.request import Request, urlopen from urllib.parse import urlencode import json __version__ = '0.8' URL = 'https://weblate.org/' DEVEL_URL = 'https://github.com/WeblateOrg/wlc' API_URL = 'http://127.0.0.1:8000/api/' USER_AGENT = 'wlc/{0}'.format(__version__) class WeblateException(Exception): """Generic error.""" class Weblate(object): """Weblate API wrapper object.""" def __init__(self, key='', url=API_URL, config=None): """Create the object, storing key and API url.""" if config is not None: self.url, self.key = config.get_url_key() else: self.key = key self.url = url @staticmethod def process_error(error): """Raise WeblateException for known HTTP errors.""" if hasattr(error, 'code'): if error.code == 429: raise WeblateException( 'Throttling on the server' ) elif error.code == 404: raise WeblateException( 'Object not found on the server ' '(maybe operation is not supported on the server)' ) elif error.code == 403: raise WeblateException( 'You don\'t have permission to access this object' ) raise WeblateException( 'HTTP error {0}: {1}'.format(error.code, error.reason) ) def request(self, path, params=None, raw=False): """Construct request object.""" if not path.startswith('http'): path = '{0}{1}'.format(self.url, path) request = Request(path) request.add_header('User-Agent', USER_AGENT) request.add_header('Accept', 'application/json') if self.key: request.add_header( 'Authorization', 'Token {}'.format(self.key) ) try: handle = urlopen(request, params) content = handle.read() except IOError as error: self.process_error(error) raise if raw: return content try: result = json.loads(content.decode('utf-8')) except ValueError: raise WeblateException( 'Server returned invalid JSON' ) return result def post(self, path, **kwargs): """Perform POST request on the API.""" params = urlencode(kwargs) return self.request(path, params.encode('utf-8')) def get(self, path): """Perform GET request on the API.""" return self.request(path) def list_factory(self, path, parser): """Wrapper for listing objects.""" while path is not None: data = self.get(path) 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('/') if len(parts) == 3: return self.get_translation(path) elif len(parts) == 2: return self.get_component(path) elif len(parts) == 1: return self.get_project(path) raise ValueError('Not supported path: {0}'.format(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 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 components in the instance.""" return self.list_factory(path, Change) 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) class LazyObject(dict): """Object which supports deferred loading.""" _params = () _mappings = {} _url = None weblate = None _loaded = False _data = None _attribs = None _id = 'url' def __init__(self, weblate, url, **kwargs): """Construct object for given Weblate instance.""" super(LazyObject, self).__init__() self.weblate = weblate self._url = url self._data = {} self._attribs = {} self._load_params(**kwargs) self._load_params(url=url) 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 ) else: self._data[param] = value del kwargs[param] for key in kwargs: self._attribs[key] = kwargs[key] def ensure_loaded(self, attrib): """Ensure attrbiute 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() return self._data[name] def __getitem__(self, name): return self.__getattr__(name) def __len__(self): return len(self._params) def keys(self): """Return list of attributes.""" return self._params def items(self): """Iterator over attributes.""" for key in self._params: 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 = ( 'url', 'web_url', 'code', 'name', 'nplurals', 'pluralequation', 'direction', ) _id = 'code' class LanguageStats(LazyObject): """Language object.""" _params = ( 'total', 'code', 'translated_words', 'language', 'translated', 'translated_percent', 'total_words', 'words_percent', ) _id = 'code' class RepoMixin(object): """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' ) class ProjectRepository(LazyObject, RepoMixin): """Repository object.""" _params = ('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 = ( '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 = ( 'url', 'web_url', 'name', 'slug', 'web', 'source_language' ) _id = 'slug' _mappings = { '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 component.""" self.ensure_loaded('statistics_url') url = self._attribs['statistics_url'] return [ LanguageStats(self.weblate, url, **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'] ) class Component(LazyObject, RepoObjectMixin): """Component object.""" _params = ( 'url', 'web_url', 'name', 'slug', 'project', 'vcs', 'repo', 'git_export', 'branch', 'filemask', 'template', 'new_base', 'file_format', 'license', 'license_url', ) _id = 'slug' _mappings = { 'project': Project, } _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 statistics(self): """Return statistics for component.""" self.ensure_loaded('statistics_url') return self.weblate.list_factory( self._attribs['statistics_url'], Statistics ) 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'] ) class Translation(LazyObject, RepoObjectMixin): """Translation object.""" _params = ( '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 = 'language_code' _mappings = { '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 Statistics(weblate=self.weblate, **data) 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 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 = '{0}?{1}'.format( url, urlencode({'format': convert}) ) return self.weblate.request(url, raw=True) class Statistics(LazyObject): """Statistics object.""" _params = ( 'last_author', 'code', 'failing_percent', 'url', 'translated_percent', 'total_words', 'failing', 'translated_words', 'url_translate', 'fuzzy_percent', 'translated', 'fuzzy', 'total', 'last_change', 'name', ) class Change(LazyObject): """Change object.""" _params = ( 'url', 'unit', 'translation', 'component', 'timestamp', 'action_name', 'target', ) _id = 'id' _mappings = { 'translation': Translation, 'component': Component, } wlc-0.8/wlc/test_main.py0000644000000000000000000002654413040205265015236 0ustar rootroot00000000000000# -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Test command line interface.""" from io import StringIO, BytesIO import json import sys from tempfile import NamedTemporaryFile import os import wlc from wlc.main import main from wlc.config import WeblateConfig from .test_base import APITest TEST_CONFIG = os.path.join(os.path.dirname(__file__), 'test_data', 'wlc') TEST_SECTION = os.path.join(os.path.dirname(__file__), 'test_data', 'section') def execute(args, settings=None, stdout=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) assert result == expected finally: sys.stdout = backup sys.stderr = backup_err result = output.buffer.getvalue() if not result: result = output.getvalue() return result class TestSettings(APITest): """Test settings handling.""" def test_commandline(self): """Configuration using commandline.""" 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_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_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_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/') def test_argv(self): """Test sys.argv processing.""" backup = sys.argv try: sys.argv = ['wlc', 'version'] output = execute(None) self.assertIn('version: {0}'.format(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('version: {0}'.format(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('version,{0}'.format(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: {0}'.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) class TestCommands(APITest): """Individual command tests.""" def test_version_bare(self): """Test version printing.""" output = execute(['version', '--bare']) self.assertEqual('{0}\n'.format(wlc.__version__), 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): """Project listing.""" output = execute( [ 'list-components' ], ) self.assertIn('/hello/weblate', output) def test_list_translations(self): """Project listing.""" output = execute( [ 'list-translations' ], ) 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_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!\n' 'Push 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_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('Not supported', 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('Not supported', 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', '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('Not supported', output) wlc-0.8/LICENSE0000644000000000000000000010450512674267527013140 0ustar rootroot00000000000000 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. {one line to give the program's name and a brief idea of what it does.} Copyright (C) {year} {name of author} 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: {project} Copyright (C) {year} {fullname} 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 . wlc-0.8/README.rst0000644000000000000000000000404213024472411013571 0ustar rootroot00000000000000wlc === `Weblate`_ commandline client using `Weblate's REST API`_. .. image:: https://travis-ci.org/WeblateOrg/wlc.svg?branch=master :target: https://travis-ci.org/WeblateOrg/wlc :alt: Build Status .. image:: https://ci.appveyor.com/api/projects/status/e9a8n9qhvd6ulibw/branch/master?svg=true :target: https://ci.appveyor.com/project/nijel/wlc/branch/master :alt: Build status .. image:: https://landscape.io/github/WeblateOrg/wlc/master/landscape.svg?style=flat :target: https://landscape.io/github/WeblateOrg/wlc/master :alt: Code Health .. image:: http://codecov.io/github/WeblateOrg/wlc/coverage.svg?branch=master :target: http://codecov.io/github/WeblateOrg/wlc?branch=master :alt: Code coverage .. image:: https://img.shields.io/pypi/dm/wlc.svg :target: https://pypi.python.org/pypi/wlc :alt: PyPI package .. image:: https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg :alt: Translation status :target: https://hosted.weblate.org/engage/weblate/?utm_source=widget .. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat :alt: Documentation :target: https://docs.weblate.org/en/latest/wlc.html Installation ------------ Install using pip: .. code-block:: sh pip3 install wlc Sources are available at . Usage ----- Please see `Weblate documentation`_ for more complete documentation. Command line usage: .. code-block:: sh 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 Configuration is stored in ``~/.config/weblate``: .. code-block:: ini [weblate] url = https://hosted.weblate.org/api/ [keys] https://hosted.weblate.org/api/ = APIKEY .. _Weblate's REST API: https://docs.weblate.org/en/latest/api.html .. _Weblate documentation: https://docs.weblate.org/en/latest/wlc.html .. _Weblate: https://weblate.org/ wlc-0.8/setup.py0000755000000000000000000000472513040205304013620 0ustar rootroot00000000000000#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright © 2016 - 2017 Michal Čihař # # This file is part of Weblate Client # # 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 . # """Setup file for easy installation.""" from setuptools import setup import os VERSION = __import__('wlc').__version__ with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: LONG_DESCRIPTION = readme.read() REQUIRES = open('requirements.txt').read().split() setup( name='wlc', version=VERSION, author='Michal Čihař', author_email='michal@cihar.com', description=( 'A command line utility for Weblate, ' 'translation tool with tight version control integration' ), license='GPLv3+', keywords='i18n l10n gettext git mercurial translate', url='https://weblate.org/', download_url='https://pypi.python.org/pypi/wlc', bugtrack_url='https://github.com/WeblateOrg/wlc/issues', platforms=['any'], packages=[ 'wlc', ], package_dir={'wlc': 'wlc'}, long_description=LONG_DESCRIPTION, install_requires=REQUIRES, classifiers=[ 'Development Status :: 4 - Beta', 'Topic :: Software Development :: Internationalization', 'Topic :: Software Development :: Localization', 'Topic :: Utilities', 'License :: OSI Approved :: ' 'GNU General Public License v3 or later (GPLv3+)', 'Operating System :: OS Independent', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], entry_points={ 'console_scripts': ['wlc = wlc.main:main'] }, ) wlc-0.8/wlc.egg-info/0000755000000000000000000000000013056272505014370 5ustar rootroot00000000000000wlc-0.8/wlc.egg-info/SOURCES.txt0000644000000000000000000000565513056272505016267 0ustar rootroot00000000000000ChangeLog LICENSE MANIFEST.in README.rst requirements-test.txt requirements.txt setup.py 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/wlc wlc/test_data/api/changes wlc/test_data/api/components wlc/test_data/api/components-hello-android wlc/test_data/api/components-hello-weblate wlc/test_data/api/components-hello-weblate-changes 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=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/languages wlc/test_data/api/languages--GET--page=2 wlc/test_data/api/languages--GET--page=3 wlc/test_data/api/projects 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-changes wlc/test_data/api/projects-hello-components wlc/test_data/api/projects-hello-repository 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-weblate-cs 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-repository 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-statisticswlc-0.8/wlc.egg-info/requires.txt0000644000000000000000000000000613056272505016764 0ustar rootroot00000000000000pyxdg wlc-0.8/wlc.egg-info/dependency_links.txt0000644000000000000000000000000113056272505020436 0ustar rootroot00000000000000 wlc-0.8/wlc.egg-info/PKG-INFO0000644000000000000000000000730413056272505015471 0ustar rootroot00000000000000Metadata-Version: 1.1 Name: wlc Version: 0.8 Summary: A command line utility for Weblate, translation tool with tight version control integration Home-page: https://weblate.org/ Author: Michal Čihař Author-email: michal@cihar.com License: GPLv3+ Download-URL: https://pypi.python.org/pypi/wlc Description: wlc === `Weblate`_ commandline client using `Weblate's REST API`_. .. image:: https://travis-ci.org/WeblateOrg/wlc.svg?branch=master :target: https://travis-ci.org/WeblateOrg/wlc :alt: Build Status .. image:: https://ci.appveyor.com/api/projects/status/e9a8n9qhvd6ulibw/branch/master?svg=true :target: https://ci.appveyor.com/project/nijel/wlc/branch/master :alt: Build status .. image:: https://landscape.io/github/WeblateOrg/wlc/master/landscape.svg?style=flat :target: https://landscape.io/github/WeblateOrg/wlc/master :alt: Code Health .. image:: http://codecov.io/github/WeblateOrg/wlc/coverage.svg?branch=master :target: http://codecov.io/github/WeblateOrg/wlc?branch=master :alt: Code coverage .. image:: https://img.shields.io/pypi/dm/wlc.svg :target: https://pypi.python.org/pypi/wlc :alt: PyPI package .. image:: https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg :alt: Translation status :target: https://hosted.weblate.org/engage/weblate/?utm_source=widget .. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat :alt: Documentation :target: https://docs.weblate.org/en/latest/wlc.html Installation ------------ Install using pip: .. code-block:: sh pip3 install wlc Sources are available at . Usage ----- Please see `Weblate documentation`_ for more complete documentation. Command line usage: .. code-block:: sh 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 Configuration is stored in ``~/.config/weblate``: .. code-block:: ini [weblate] url = https://hosted.weblate.org/api/ [keys] https://hosted.weblate.org/api/ = APIKEY .. _Weblate's REST API: https://docs.weblate.org/en/latest/api.html .. _Weblate documentation: https://docs.weblate.org/en/latest/wlc.html .. _Weblate: https://weblate.org/ Keywords: i18n l10n gettext git mercurial translate Platform: any Classifier: Development Status :: 4 - Beta Classifier: Topic :: Software Development :: Internationalization Classifier: Topic :: Software Development :: Localization Classifier: Topic :: Utilities Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Operating System :: OS Independent Classifier: Intended Audience :: Developers Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.2 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 wlc-0.8/wlc.egg-info/top_level.txt0000644000000000000000000000000413056272505017114 0ustar rootroot00000000000000wlc wlc-0.8/wlc.egg-info/entry_points.txt0000644000000000000000000000004713056272505017667 0ustar rootroot00000000000000[console_scripts] wlc = wlc.main:main wlc-0.8/ChangeLog0000644000000000000000000000112013056263304013652 0ustar rootroot000000000000000.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 statistrics 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. wlc-0.8/PKG-INFO0000644000000000000000000000730413056272505013212 0ustar rootroot00000000000000Metadata-Version: 1.1 Name: wlc Version: 0.8 Summary: A command line utility for Weblate, translation tool with tight version control integration Home-page: https://weblate.org/ Author: Michal Čihař Author-email: michal@cihar.com License: GPLv3+ Download-URL: https://pypi.python.org/pypi/wlc Description: wlc === `Weblate`_ commandline client using `Weblate's REST API`_. .. image:: https://travis-ci.org/WeblateOrg/wlc.svg?branch=master :target: https://travis-ci.org/WeblateOrg/wlc :alt: Build Status .. image:: https://ci.appveyor.com/api/projects/status/e9a8n9qhvd6ulibw/branch/master?svg=true :target: https://ci.appveyor.com/project/nijel/wlc/branch/master :alt: Build status .. image:: https://landscape.io/github/WeblateOrg/wlc/master/landscape.svg?style=flat :target: https://landscape.io/github/WeblateOrg/wlc/master :alt: Code Health .. image:: http://codecov.io/github/WeblateOrg/wlc/coverage.svg?branch=master :target: http://codecov.io/github/WeblateOrg/wlc?branch=master :alt: Code coverage .. image:: https://img.shields.io/pypi/dm/wlc.svg :target: https://pypi.python.org/pypi/wlc :alt: PyPI package .. image:: https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg :alt: Translation status :target: https://hosted.weblate.org/engage/weblate/?utm_source=widget .. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat :alt: Documentation :target: https://docs.weblate.org/en/latest/wlc.html Installation ------------ Install using pip: .. code-block:: sh pip3 install wlc Sources are available at . Usage ----- Please see `Weblate documentation`_ for more complete documentation. Command line usage: .. code-block:: sh 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 Configuration is stored in ``~/.config/weblate``: .. code-block:: ini [weblate] url = https://hosted.weblate.org/api/ [keys] https://hosted.weblate.org/api/ = APIKEY .. _Weblate's REST API: https://docs.weblate.org/en/latest/api.html .. _Weblate documentation: https://docs.weblate.org/en/latest/wlc.html .. _Weblate: https://weblate.org/ Keywords: i18n l10n gettext git mercurial translate Platform: any Classifier: Development Status :: 4 - Beta Classifier: Topic :: Software Development :: Internationalization Classifier: Topic :: Software Development :: Localization Classifier: Topic :: Utilities Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Operating System :: OS Independent Classifier: Intended Audience :: Developers Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.2 Classifier: Programming Language :: Python :: 3.3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 wlc-0.8/MANIFEST.in0000644000000000000000000000026313024774453013654 0ustar rootroot00000000000000include README.rst include LICENSE include ChangeLog include MANIFEST.in include requirements.txt include requirements-test.txt include wlc/*.py recursive-include wlc/test_data * wlc-0.8/setup.cfg0000644000000000000000000000004613056272505013732 0ustar rootroot00000000000000[egg_info] tag_build = tag_date = 0 wlc-0.8/requirements.txt0000644000000000000000000000000612715373527015400 0ustar rootroot00000000000000pyxdg