eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 7784
3257703e10c5
parent 7782
976d3b19ba7f
child 7836
2f0d208b8137
equal deleted inserted replaced
7783:36f66ce496bd 7784:3257703e10c5
16 _annotationsMessages, _annotationsMessagesSampleArgs 16 _annotationsMessages, _annotationsMessagesSampleArgs
17 ) 17 )
18 from .Complexity.translations import ( 18 from .Complexity.translations import (
19 _complexityMessages, _complexityMessagesSampleArgs 19 _complexityMessages, _complexityMessagesSampleArgs
20 ) 20 )
21 21 from .DocStyle.translations import (
22 # TODO: separate this huge dict into separate translations per checker type 22 _docStyleMessages, _docStyleMessagesSampleArgs
23 )
24 from .Miscellaneous.translations import (
25 _miscellaneousMessages, _miscellaneousMessagesSampleArgs
26 )
27 from .Naming.translations import _namingStyleMessages
28
23 _messages = { 29 _messages = {
24 ################################################################## 30 ##################################################################
25 ## pycodestyle messages 31 ## pycodestyle messages
26 ################################################################## 32 ##################################################################
27 "E101": QCoreApplication.translate( 33 "E101": QCoreApplication.translate(
285 "pycodestyle", 291 "pycodestyle",
286 "{0}: {1}"), 292 "{0}: {1}"),
287 "E902": QCoreApplication.translate( 293 "E902": QCoreApplication.translate(
288 "pycodestyle", 294 "pycodestyle",
289 "{0}"), 295 "{0}"),
290
291 ##################################################################
292 ## DocStyleChecker messages
293 ##################################################################
294 "D101": QCoreApplication.translate(
295 "DocStyleChecker", "module is missing a docstring"),
296 "D102": QCoreApplication.translate(
297 "DocStyleChecker",
298 "public function/method is missing a docstring"),
299 "D103": QCoreApplication.translate(
300 "DocStyleChecker",
301 "private function/method may be missing a docstring"),
302 "D104": QCoreApplication.translate(
303 "DocStyleChecker", "public class is missing a docstring"),
304 "D105": QCoreApplication.translate(
305 "DocStyleChecker", "private class may be missing a docstring"),
306 "D111": QCoreApplication.translate(
307 "DocStyleChecker", 'docstring not surrounded by """'),
308 "D112": QCoreApplication.translate(
309 "DocStyleChecker",
310 'docstring containing \\ not surrounded by r"""'),
311 "D121": QCoreApplication.translate(
312 "DocStyleChecker", "one-liner docstring on multiple lines"),
313 "D122": QCoreApplication.translate(
314 "DocStyleChecker", "docstring has wrong indentation"),
315 "D130": QCoreApplication.translate(
316 "DocStyleChecker", "docstring does not contain a summary"),
317 "D131": QCoreApplication.translate(
318 "DocStyleChecker", "docstring summary does not end with a period"),
319 "D132": QCoreApplication.translate(
320 "DocStyleChecker",
321 "docstring summary is not in imperative mood"
322 " (Does instead of Do)"),
323 "D133": QCoreApplication.translate(
324 "DocStyleChecker",
325 "docstring summary looks like a function's/method's signature"),
326 "D134": QCoreApplication.translate(
327 "DocStyleChecker",
328 "docstring does not mention the return value type"),
329 "D141": QCoreApplication.translate(
330 "DocStyleChecker",
331 "function/method docstring is separated by a blank line"),
332 "D142": QCoreApplication.translate(
333 "DocStyleChecker",
334 "class docstring is not preceded by a blank line"),
335 "D143": QCoreApplication.translate(
336 "DocStyleChecker",
337 "class docstring is not followed by a blank line"),
338 "D144": QCoreApplication.translate(
339 "DocStyleChecker",
340 "docstring summary is not followed by a blank line"),
341 "D145": QCoreApplication.translate(
342 "DocStyleChecker",
343 "last paragraph of docstring is not followed by a blank line"),
344
345 "D201": QCoreApplication.translate(
346 "DocStyleChecker", "module docstring is still a default string"),
347 "D202": QCoreApplication.translate(
348 "DocStyleChecker", "function docstring is still a default string"),
349 "D203": QCoreApplication.translate(
350 "DocStyleChecker",
351 "private function/method is missing a docstring"),
352 "D205": QCoreApplication.translate(
353 "DocStyleChecker", "private class is missing a docstring"),
354 "D206": QCoreApplication.translate(
355 "DocStyleChecker", "class docstring is still a default string"),
356 "D221": QCoreApplication.translate(
357 "DocStyleChecker",
358 "leading quotes of docstring not on separate line"),
359 "D222": QCoreApplication.translate(
360 "DocStyleChecker",
361 "trailing quotes of docstring not on separate line"),
362 "D231": QCoreApplication.translate(
363 "DocStyleChecker", "docstring summary does not end with a period"),
364 "D232": QCoreApplication.translate(
365 "DocStyleChecker", "docstring summary does not start with '{0}'"),
366 "D234": QCoreApplication.translate(
367 "DocStyleChecker",
368 "docstring does not contain a @return line but function/method"
369 " returns something"),
370 "D235": QCoreApplication.translate(
371 "DocStyleChecker",
372 "docstring contains a @return line but function/method doesn't"
373 " return anything"),
374 "D236": QCoreApplication.translate(
375 "DocStyleChecker",
376 "docstring does not contain enough @param/@keyparam lines"),
377 "D237": QCoreApplication.translate(
378 "DocStyleChecker",
379 "docstring contains too many @param/@keyparam lines"),
380 "D238": QCoreApplication.translate(
381 "DocStyleChecker",
382 "keyword only arguments must be documented with @keyparam lines"),
383 "D239": QCoreApplication.translate(
384 "DocStyleChecker", "order of @param/@keyparam lines does"
385 " not match the function/method signature"),
386 "D242": QCoreApplication.translate(
387 "DocStyleChecker", "class docstring is preceded by a blank line"),
388 "D243": QCoreApplication.translate(
389 "DocStyleChecker", "class docstring is followed by a blank line"),
390 "D244": QCoreApplication.translate(
391 "DocStyleChecker",
392 "function/method docstring is preceded by a blank line"),
393 "D245": QCoreApplication.translate(
394 "DocStyleChecker",
395 "function/method docstring is followed by a blank line"),
396 "D246": QCoreApplication.translate(
397 "DocStyleChecker",
398 "docstring summary is not followed by a blank line"),
399 "D247": QCoreApplication.translate(
400 "DocStyleChecker",
401 "last paragraph of docstring is followed by a blank line"),
402 "D250": QCoreApplication.translate(
403 "DocStyleChecker",
404 "docstring does not contain a @exception line but function/method"
405 " raises an exception"),
406 "D251": QCoreApplication.translate(
407 "DocStyleChecker",
408 "docstring contains a @exception line but function/method doesn't"
409 " raise an exception"),
410 "D252": QCoreApplication.translate(
411 "DocStyleChecker",
412 "raised exception '{0}' is not documented in docstring"),
413 "D253": QCoreApplication.translate(
414 "DocStyleChecker",
415 "documented exception '{0}' is not raised"),
416 "D260": QCoreApplication.translate(
417 "DocStyleChecker",
418 "docstring does not contain a @signal line but class defines signals"),
419 "D261": QCoreApplication.translate(
420 "DocStyleChecker",
421 "docstring contains a @signal line but class doesn't define signals"),
422 "D262": QCoreApplication.translate(
423 "DocStyleChecker",
424 "defined signal '{0}' is not documented in docstring"),
425 "D263": QCoreApplication.translate(
426 "DocStyleChecker",
427 "documented signal '{0}' is not defined"),
428
429 "D901": QCoreApplication.translate(
430 "DocStyleChecker", "{0}: {1}"),
431
432 ##################################################################
433 ## NamingStyleChecker messages
434 ##################################################################
435 "N801": QCoreApplication.translate(
436 "NamingStyleChecker",
437 "class names should use CapWords convention"),
438 "N802": QCoreApplication.translate(
439 "NamingStyleChecker",
440 "function name should be lowercase"),
441 "N803": QCoreApplication.translate(
442 "NamingStyleChecker",
443 "argument name should be lowercase"),
444 "N804": QCoreApplication.translate(
445 "NamingStyleChecker",
446 "first argument of a class method should be named 'cls'"),
447 "N805": QCoreApplication.translate(
448 "NamingStyleChecker",
449 "first argument of a method should be named 'self'"),
450 "N806": QCoreApplication.translate(
451 "NamingStyleChecker",
452 "first argument of a static method should not be named"
453 " 'self' or 'cls"),
454 "N807": QCoreApplication.translate(
455 "NamingStyleChecker",
456 "module names should be lowercase"),
457 "N808": QCoreApplication.translate(
458 "NamingStyleChecker",
459 "package names should be lowercase"),
460 "N811": QCoreApplication.translate(
461 "NamingStyleChecker",
462 "constant imported as non constant"),
463 "N812": QCoreApplication.translate(
464 "NamingStyleChecker",
465 "lowercase imported as non lowercase"),
466 "N813": QCoreApplication.translate(
467 "NamingStyleChecker",
468 "camelcase imported as lowercase"),
469 "N814": QCoreApplication.translate(
470 "NamingStyleChecker",
471 "camelcase imported as constant"),
472 "N821": QCoreApplication.translate(
473 "NamingStyleChecker",
474 "variable in function should be lowercase"),
475 "N831": QCoreApplication.translate(
476 "NamingStyleChecker",
477 "names 'l', 'O' and 'I' should be avoided"),
478
479 ##################################################################
480 ## Messages of the Miscellaneous Checker
481 ##################################################################
482 "M101": QCoreApplication.translate(
483 "MiscellaneousChecker",
484 "coding magic comment not found"),
485 "M102": QCoreApplication.translate(
486 "MiscellaneousChecker",
487 "unknown encoding ({0}) found in coding magic comment"),
488 "M111": QCoreApplication.translate(
489 "MiscellaneousChecker",
490 "copyright notice not present"),
491 "M112": QCoreApplication.translate(
492 "MiscellaneousChecker",
493 "copyright notice contains invalid author"),
494 "M131": QCoreApplication.translate(
495 "MiscellaneousChecker",
496 '"{0}" is a Python builtin and is being shadowed; '
497 'consider renaming the variable'),
498 "M132": QCoreApplication.translate(
499 "MiscellaneousChecker",
500 '"{0}" is used as an argument and thus shadows a '
501 'Python builtin; consider renaming the argument'),
502 "M181": QCoreApplication.translate(
503 "MiscellaneousChecker",
504 'unnecessary generator - rewrite as a list comprehension'),
505 "M182": QCoreApplication.translate(
506 "MiscellaneousChecker",
507 'unnecessary generator - rewrite as a set comprehension'),
508 "M183": QCoreApplication.translate(
509 "MiscellaneousChecker",
510 'unnecessary generator - rewrite as a dict comprehension'),
511 "M184": QCoreApplication.translate(
512 "MiscellaneousChecker",
513 'unnecessary list comprehension - rewrite as a set comprehension'),
514 "M185": QCoreApplication.translate(
515 "MiscellaneousChecker",
516 'unnecessary list comprehension - rewrite as a dict comprehension'),
517 "M186": QCoreApplication.translate(
518 "MiscellaneousChecker",
519 'unnecessary {0} call - rewrite as a literal'),
520 "M187": QCoreApplication.translate(
521 "MiscellaneousChecker",
522 'unnecessary list comprehension - "{0}" can take a generator'),
523 "M191": QCoreApplication.translate(
524 "MiscellaneousChecker",
525 'unnecessary {0} literal - rewrite as a {1} literal'),
526 "M192": QCoreApplication.translate(
527 "MiscellaneousChecker",
528 'unnecessary {0} passed to tuple() - rewrite as a {1} literal'),
529 "M193": QCoreApplication.translate(
530 "MiscellaneousChecker",
531 'unnecessary {0} passed to list() - rewrite as a {1} literal'),
532 "M195": QCoreApplication.translate(
533 "MiscellaneousChecker",
534 'unnecessary list call - remove the outer call to list()'),
535 "M196": QCoreApplication.translate(
536 "MiscellaneousChecker",
537 'unnecessary list comprehension - "in" can take a generator'),
538 "M197": QCoreApplication.translate(
539 "MiscellaneousChecker",
540 'unnecessary {0} passed to tuple() - remove the outer call to {1}()'),
541 "M198": QCoreApplication.translate(
542 "MiscellaneousChecker",
543 'unnecessary {0} passed to list() - remove the outer call to {1}()'),
544
545 "M201": QCoreApplication.translate(
546 "MiscellaneousChecker",
547 "sort keys - '{0}' should be before '{1}'"),
548
549 "M301": QCoreApplication.translate(
550 "MiscellaneousChecker",
551 "use of 'datetime.datetime()' without 'tzinfo' argument should be"
552 " avoided"),
553 "M302": QCoreApplication.translate(
554 "MiscellaneousChecker",
555 "use of 'datetime.datetime.today()' should be avoided.\n"
556 "Use 'datetime.datetime.now(tz=)' instead."),
557 "M303": QCoreApplication.translate(
558 "MiscellaneousChecker",
559 "use of 'datetime.datetime.utcnow()' should be avoided.\n"
560 "Use 'datetime.datetime.now(tz=)' instead."),
561 "M304": QCoreApplication.translate(
562 "MiscellaneousChecker",
563 "use of 'datetime.datetime.utcfromtimestamp()' should be avoided.\n"
564 "Use 'datetime.datetime.fromtimestamp(, tz=)' instead."),
565 "M305": QCoreApplication.translate(
566 "MiscellaneousChecker",
567 "use of 'datetime.datetime.now()' without 'tz' argument should be"
568 " avoided"),
569 "M306": QCoreApplication.translate(
570 "MiscellaneousChecker",
571 "use of 'datetime.datetime.fromtimestamp()' without 'tz' argument"
572 " should be avoided"),
573 "M307": QCoreApplication.translate(
574 "MiscellaneousChecker",
575 "use of 'datetime.datetime.strptime()' should be followed by"
576 " '.replace(tzinfo=)'"),
577 "M308": QCoreApplication.translate(
578 "MiscellaneousChecker",
579 "use of 'datetime.datetime.fromordinal()' should be avoided"),
580 "M311": QCoreApplication.translate(
581 "MiscellaneousChecker",
582 "use of 'datetime.date()' should be avoided.\n"
583 "Use 'datetime.datetime(, tzinfo=).date()' instead."),
584 "M312": QCoreApplication.translate(
585 "MiscellaneousChecker",
586 "use of 'datetime.date.today()' should be avoided.\n"
587 "Use 'datetime.datetime.now(tz=).date()' instead."),
588 "M313": QCoreApplication.translate(
589 "MiscellaneousChecker",
590 "use of 'datetime.date.fromtimestamp()' should be avoided.\n"
591 "Use 'datetime.datetime.fromtimestamp(tz=).date()' instead."),
592 "M314": QCoreApplication.translate(
593 "MiscellaneousChecker",
594 "use of 'datetime.date.fromordinal()' should be avoided"),
595 "M315": QCoreApplication.translate(
596 "MiscellaneousChecker",
597 "use of 'datetime.date.fromisoformat()' should be avoided"),
598 "M321": QCoreApplication.translate(
599 "MiscellaneousChecker",
600 "use of 'datetime.time()' without 'tzinfo' argument should be"
601 " avoided"),
602
603 "M401": QCoreApplication.translate(
604 "MiscellaneousChecker",
605 "'sys.version[:3]' referenced (Python 3.10), use 'sys.version_info'"),
606 "M402": QCoreApplication.translate(
607 "MiscellaneousChecker",
608 "'sys.version[2]' referenced (Python 3.10), use 'sys.version_info'"),
609 "M403": QCoreApplication.translate(
610 "MiscellaneousChecker",
611 "'sys.version' compared to string (Python 3.10), use"
612 " 'sys.version_info'"),
613 "M411": QCoreApplication.translate(
614 "MiscellaneousChecker",
615 "'sys.version_info[0] == 3' referenced (Python 4), use '>='"),
616 "M412": QCoreApplication.translate(
617 "MiscellaneousChecker",
618 "'six.PY3' referenced (Python 4), use 'not six.PY2'"),
619 "M413": QCoreApplication.translate(
620 "MiscellaneousChecker",
621 "'sys.version_info[1]' compared to integer (Python 4),"
622 " compare 'sys.version_info' to tuple"),
623 "M414": QCoreApplication.translate(
624 "MiscellaneousChecker",
625 "'sys.version_info.minor' compared to integer (Python 4),"
626 " compare 'sys.version_info' to tuple"),
627 "M421": QCoreApplication.translate(
628 "MiscellaneousChecker",
629 "'sys.version[0]' referenced (Python 10), use 'sys.version_info'"),
630 "M422": QCoreApplication.translate(
631 "MiscellaneousChecker",
632 "'sys.version' compared to string (Python 10),"
633 " use 'sys.version_info'"),
634 "M423": QCoreApplication.translate(
635 "MiscellaneousChecker",
636 "'sys.version[:1]' referenced (Python 10), use 'sys.version_info'"),
637
638 "M501": QCoreApplication.translate(
639 "MiscellaneousChecker",
640 "Python does not support the unary prefix increment"),
641 "M502": QCoreApplication.translate(
642 "MiscellaneousChecker",
643 "using .strip() with multi-character strings is misleading"),
644 "M503": QCoreApplication.translate(
645 "MiscellaneousChecker",
646 "do not call assert False since python -O removes these calls"),
647 "M504": QCoreApplication.translate(
648 "MiscellaneousChecker",
649 "'sys.maxint' is not defined in Python 3 - use 'sys.maxsize'"),
650 "M505": QCoreApplication.translate(
651 "MiscellaneousChecker",
652 "'BaseException.message' has been deprecated as of Python 2.6 and is"
653 " removed in Python 3 - use 'str(e)'"),
654 "M506": QCoreApplication.translate(
655 "MiscellaneousChecker",
656 "assigning to 'os.environ' does not clear the environment -"
657 " use 'os.environ.clear()'"),
658 "M507": QCoreApplication.translate(
659 "MiscellaneousChecker",
660 "loop control variable {0} not used within the loop body -"
661 " start the name with an underscore"),
662 "M508": QCoreApplication.translate(
663 "MiscellaneousChecker",
664 "unncessary f-string"),
665 "M509": QCoreApplication.translate(
666 "MiscellaneousChecker",
667 "cannot use 'self.__class__' as first argument of 'super()' call"),
668 "M511": QCoreApplication.translate(
669 "MiscellaneousChecker",
670 """using 'hasattr(x, "__call__")' to test if 'x' is callable is"""
671 """ unreliable"""),
672 "M512": QCoreApplication.translate(
673 "MiscellaneousChecker",
674 "do not call getattr with a constant attribute value"),
675 "M513": QCoreApplication.translate(
676 "MiscellaneousChecker",
677 "do not call setattr with a constant attribute value"),
678 "M521": QCoreApplication.translate(
679 "MiscellaneousChecker",
680 "Python 3 does not include '.iter*' methods on dictionaries"),
681 "M522": QCoreApplication.translate(
682 "MiscellaneousChecker",
683 "Python 3 does not include '.view*' methods on dictionaries"),
684 "M523": QCoreApplication.translate(
685 "MiscellaneousChecker",
686 "'.next()' does not exist in Python 3"),
687 "M524": QCoreApplication.translate(
688 "MiscellaneousChecker",
689 "'__metaclass__' does nothing on Python 3 -"
690 " use 'class MyClass(BaseClass, metaclass=...)'"),
691
692 "M601": QCoreApplication.translate(
693 "MiscellaneousChecker",
694 "found {0} formatter"),
695 "M611": QCoreApplication.translate(
696 "MiscellaneousChecker",
697 "format string does contain unindexed parameters"),
698 "M612": QCoreApplication.translate(
699 "MiscellaneousChecker",
700 "docstring does contain unindexed parameters"),
701 "M613": QCoreApplication.translate(
702 "MiscellaneousChecker",
703 "other string does contain unindexed parameters"),
704 "M621": QCoreApplication.translate(
705 "MiscellaneousChecker",
706 "format call uses too large index ({0})"),
707 "M622": QCoreApplication.translate(
708 "MiscellaneousChecker",
709 "format call uses missing keyword ({0})"),
710 "M623": QCoreApplication.translate(
711 "MiscellaneousChecker",
712 "format call uses keyword arguments but no named entries"),
713 "M624": QCoreApplication.translate(
714 "MiscellaneousChecker",
715 "format call uses variable arguments but no numbered entries"),
716 "M625": QCoreApplication.translate(
717 "MiscellaneousChecker",
718 "format call uses implicit and explicit indexes together"),
719 "M631": QCoreApplication.translate(
720 "MiscellaneousChecker",
721 "format call provides unused index ({0})"),
722 "M632": QCoreApplication.translate(
723 "MiscellaneousChecker",
724 "format call provides unused keyword ({0})"),
725 "M651": QCoreApplication.translate(
726 "MiscellaneousChecker",
727 "logging statement uses string.format()"),
728 "M652": QCoreApplication.translate(
729 "MiscellaneousChecker",
730 "logging statement uses '%'"), # __IGNORE_WARNING_M601__
731 "M653": QCoreApplication.translate(
732 "MiscellaneousChecker",
733 "logging statement uses '+'"),
734 "M654": QCoreApplication.translate(
735 "MiscellaneousChecker",
736 "logging statement uses f-string"),
737 "M655": QCoreApplication.translate(
738 "MiscellaneousChecker",
739 "logging statement uses 'warn' instead of 'warning'"),
740
741 "M701": QCoreApplication.translate(
742 "MiscellaneousChecker",
743 "expected these __future__ imports: {0}; but only got: {1}"),
744 "M702": QCoreApplication.translate(
745 "MiscellaneousChecker",
746 "expected these __future__ imports: {0}; but got none"),
747 "M711": QCoreApplication.translate(
748 "MiscellaneousChecker",
749 "gettext import with alias _ found: {0}"),
750
751 "M801": QCoreApplication.translate(
752 "MiscellaneousChecker",
753 "print statement found"),
754 "M811": QCoreApplication.translate(
755 "MiscellaneousChecker",
756 "one element tuple found"),
757 "M821": QCoreApplication.translate(
758 "MiscellaneousChecker",
759 "mutable default argument of type {0}"),
760 "M822": QCoreApplication.translate(
761 "MiscellaneousChecker",
762 "mutable default argument of type {0}"),
763 "M823": QCoreApplication.translate(
764 "MiscellaneousChecker",
765 "mutable default argument of function call '{0}'"),
766 "M831": QCoreApplication.translate(
767 "MiscellaneousChecker",
768 "None should not be added at any return if function has no return"
769 " value except None"),
770 "M832": QCoreApplication.translate(
771 "MiscellaneousChecker",
772 "an explicit value at every return should be added if function has"
773 " a return value except None"),
774 "M833": QCoreApplication.translate(
775 "MiscellaneousChecker",
776 "an explicit return at the end of the function should be added if"
777 " it has a return value except None"),
778 "M834": QCoreApplication.translate(
779 "MiscellaneousChecker",
780 "a value should not be assigned to a variable if it will be used as a"
781 " return value only"),
782 "M841": QCoreApplication.translate(
783 "MiscellaneousChecker",
784 "prefer implied line continuation inside parentheses, "
785 "brackets and braces as opposed to a backslash"),
786 "M891": QCoreApplication.translate(
787 "MiscellaneousChecker",
788 "commented code lines should be removed"),
789
790 "M901": QCoreApplication.translate(
791 "MiscellaneousChecker",
792 "{0}: {1}"),
793 296
794 ################################################################## 297 ##################################################################
795 ## CodeStyleFixer messages 298 ## CodeStyleFixer messages
796 ################################################################## 299 ##################################################################
797 300
968 "E742": ["l"], 471 "E742": ["l"],
969 "E743": ["l"], 472 "E743": ["l"],
970 "E901": ["SyntaxError", "Invalid Syntax"], 473 "E901": ["SyntaxError", "Invalid Syntax"],
971 "E902": ["IOError"], 474 "E902": ["IOError"],
972 475
973 "D232": ["public"],
974 "D252": ["RuntimeError"],
975 "D253": ["RuntimeError"],
976 "D262": ["buttonClicked"],
977 "D263": ["buttonClicked"],
978 "D901": ["SyntaxError", "Invalid Syntax"],
979
980 "M102": ["enc42"],
981 "M131": ["list"],
982 "M132": ["list"],
983 "M188": ["sorted"],
984 "M186": ["list"],
985 "M191": ["list", "set"],
986 "M192": ["list", "tuple"],
987 "M193": ["tuple", "list"],
988 "M197": ["tuple", "tuple"],
989 "M198": ["list", "list"],
990 "M201": ["bar", "foo"],
991 "M507": ["x"],
992 "M601": ["%s"],
993 "M621": [5],
994 "M622": ["foo"],
995 "M631": [5],
996 "M632": ["foo"],
997 "M701": ["print_function, unicode_literals", "print_function"],
998 "M702": ["print_function, unicode_literals"],
999 "M711": ["lgettext"],
1000 "M821": ["Dict"],
1001 "M822": ["Call"],
1002 "M823": ["dict"],
1003 "M901": ["SyntaxError", "Invalid Syntax"],
1004
1005 "FIXWRITE_ERROR": ["IOError"], 476 "FIXWRITE_ERROR": ["IOError"],
1006 } 477 }
1007 478
1008 messageCatalogs = ( 479 messageCatalogs = (
1009 _messages, 480 _messages,
1010 _securityMessages, 481 _securityMessages,
1011 _annotationsMessages, 482 _annotationsMessages,
1012 _complexityMessages, 483 _complexityMessages,
484 _docStyleMessages,
485 _miscellaneousMessages,
486 _namingStyleMessages,
1013 ) 487 )
1014 488
1015 messageSampleArgsCatalog = ( 489 messageSampleArgsCatalog = (
1016 _messages_sample_args, 490 _messages_sample_args,
1017 _securityMessagesSampleArgs, 491 _securityMessagesSampleArgs,
1018 _annotationsMessagesSampleArgs, 492 _annotationsMessagesSampleArgs,
1019 _complexityMessagesSampleArgs, 493 _complexityMessagesSampleArgs,
494 _docStyleMessagesSampleArgs,
495 _miscellaneousMessagesSampleArgs,
1020 ) 496 )
1021 497
1022 498
1023 def getTranslatedMessage(messageCode, messageArgs, example=False): 499 def getTranslatedMessage(messageCode, messageArgs, example=False):
1024 """ 500 """

eric ide

mercurial