You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

64 lines
1.3 KiB

  1. // Code generated by go generate. DO NOT EDIT.
  2. // gotext is a tool for managing text in Go source code.
  3. //
  4. // Usage:
  5. //
  6. // gotext command [arguments]
  7. //
  8. // The commands are:
  9. //
  10. // update merge translations and generate catalog
  11. // extract extracts strings to be translated from code
  12. // rewrite rewrites fmt functions to use a message Printer
  13. // generate generates code to insert translated messages
  14. //
  15. // Use "gotext help [command]" for more information about a command.
  16. //
  17. // Additional help topics:
  18. //
  19. //
  20. // Use "gotext help [topic]" for more information about that topic.
  21. //
  22. //
  23. // Merge translations and generate catalog
  24. //
  25. // Usage:
  26. //
  27. // gotext update <package>* [-out <gofile>]
  28. //
  29. //
  30. //
  31. //
  32. // Extracts strings to be translated from code
  33. //
  34. // Usage:
  35. //
  36. // gotext extract <package>*
  37. //
  38. //
  39. //
  40. //
  41. // Rewrites fmt functions to use a message Printer
  42. //
  43. // Usage:
  44. //
  45. // gotext rewrite <package>
  46. //
  47. // rewrite is typically done once for a project. It rewrites all usages of
  48. // fmt to use x/text's message package whenever a message.Printer is in scope.
  49. // It rewrites Print and Println calls with constant strings to the equivalent
  50. // using Printf to allow translators to reorder arguments.
  51. //
  52. //
  53. // Generates code to insert translated messages
  54. //
  55. // Usage:
  56. //
  57. // gotext generate <package>
  58. //
  59. //
  60. //
  61. //
  62. package main