1. // '
    
  2. gettext('This literal should be included.')
    
  3. gettext_noop('gettext_noop should, too.');
    
  4. x = y; // '
    
  5. gettext("This one as well.")
    
  6. 
    
  7. /** (from ticket 7704)
    
  8.  * *****************************
    
  9.  * AddModule main / window
    
  10.  * @constructor
    
  11.  * @class MyDesktop.AddModule
    
  12.  * *****************************
    
  13.  */
    
  14. 
    
  15. gettext('He said, \"hello".')
    
  16. 
    
  17. // from ticket 14045
    
  18. function mfunc() {
    
  19.     var val = 0;
    
  20.     return val ? 1 : 0;
    
  21. }
    
  22. gettext('okkkk');
    
  23. print mysub();
    
  24. 
    
  25. // from ticket 15495
    
  26. /* / ' */ gettext("TEXT");
    
  27. 
    
  28. gettext("It's at http://example.com")
    
  29. 
    
  30. // also from ticket 15495
    
  31. gettext("String"); // This comment won't be caught by pythonize_re and it contains "'" which is a string start in Perl
    
  32. /*
    
  33.  * This one will be removed by the patch
    
  34.  */
    
  35. gettext("/* but this one will be too */ 'cause there is no way of telling...");
    
  36. f(/* ... if it's different from this one */);
    
  37. 
    
  38. // from ticket 15331
    
  39. gettext("foo");
    
  40. true ? true : false;
    
  41. gettext("bar");
    
  42. true ? true : false;
    
  43. gettext("baz");
    
  44. true ? true : false; // ?
    
  45. gettext("quz");
    
  46. "?";
    
  47. gettext("foobar");
    
  48.