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