aboutsummaryrefslogtreecommitdiff
path: root/src/gotext.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/gotext.go: Fix bad exit of Main()EuAndreh2025-05-151-1/+1
|
* Remove "MIME-Version" extra headerEuAndreh2025-05-151-1/+0
|
* Remove "Content-Transfer-Encoding" "header" from files and stringsEuAndreh2025-05-151-1/+0
|
* src/gotext.go: Stop panicking on unknown AST typeEuAndreh2025-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that it is panicking on indentantion nodes. I didn't take time to investigate, I only glanced at the error message below and removed the panic(): $ make i18n po4a po/doc/po4a.cfg gotext -k 'Gettext' src/gotext.go > po/gotext/gotext.pot val: &ast.SelectorExpr{X:(*ast.Ident)(0xc00007ed00), Sel:(*ast.Ident)(0xc00007ed20)} panic: unknown type: &{e err} goroutine 1 [running]: gotext.constructValue({0x58c900, 0xc000012240}) /home/andreh/src/gotext/src/gotext.go:158 +0x474 gotext.inspectNodeForTranslations({{0xc000016100, 0x4, 0x4}, {0xc000016130, 0x1, 0x1}, {0x5a7750, 0xb}, {0x7ffc031638af, 0x7}, ...}, ...) /home/andreh/src/gotext/src/gotext.go:206 +0x9a5 gotext.processSingleGoSource.func1({0x5d4648, 0xc000016dc0}) /home/andreh/src/gotext/src/gotext.go:296 +0xbe go/ast.inspector.Visit(0xc0000d2d00, {0x5d4648?, 0xc000016dc0?}) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:361 +0x2b go/ast.Walk({0x5d4348?, 0xc0000d2d00?}, {0x5d4648, 0xc000016dc0}) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:34 +0x4c go/ast.walkList[...](...) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:21 go/ast.Walk({0x5d4348?, 0xc0000d2d00?}, {0x5d4d50, 0xc00007ed40}) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:203 +0x179e go/ast.walkList[...](...) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:21 go/ast.Walk({0x5d4348?, 0xc0000d2d00?}, {0x5d4918, 0xc0000b6720}) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:211 +0x30ad go/ast.Walk({0x5d4348?, 0xc0000d2d00?}, {0x5d4fa8, 0xc0000b6750}) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:332 +0xf7c go/ast.walkList[...](...) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:21 go/ast.Walk({0x5d4348?, 0xc0000d2d00?}, {0x5d4620, 0xc000182000}) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:341 +0x3585 go/ast.Inspect(...) /gnu/store/4viyda7sf79xf14zj9fgjavq45wpm4dd-go-full-1.23.5/lib/go/src/go/ast/walk.go:372 gotext.processSingleGoSource({{0xc000016100, 0x4, 0x4}, {0xc000016130, 0x1, 0x1}, {0x5a7750, 0xb}, {0x7ffc031638a f, 0x7}, ...}, ...) /home/andreh/src/gotext/src/gotext.go:295 +0x456 gotext.processFiles({{0xc000016100, 0x4, 0x4}, {0xc000016130, 0x1, 0x1}, {0x5a7750, 0xb}, {0x7ffc031638af, 0x7}, ...}) /home/andreh/src/gotext/src/gotext.go:269 +0x19b gotext.run({{{0xc000016100, 0x4, 0x4}, {0xc000016130, 0x1, 0x1}, {0x5a7750, 0xb}, {0x7ffc031638af, 0x7}, ...}, ...}) /home/andreh/src/gotext/src/gotext.go:413 +0x5b gotext.Main() /home/andreh/src/gotext/src/gotext.go:580 +0x1f8 main.main() /home/andreh/src/gotext/src/main.go:6 +0xf make: *** [Makefile:207: i18n-code] Error 2 make: *** Attente des tâches non terminées....
* Add po/gotext/EuAndreh2025-05-151-5/+6
|
* Remove gobang as a dependencyEuAndreh2025-05-141-13/+16
|
* src/gotext.go: Add translatableErrorTEuAndreh2025-05-141-0/+8
|
* src/gotext.go: Move Main() to the end of the fileEuAndreh2025-05-141-21/+14
|
* src/gotext.go: Rename msgID -> msgIDTEuAndreh2025-05-141-7/+7
|
* src/gotext.go: Cleanup LC_* comments and make them constsEuAndreh2025-05-141-26/+10
|
* Remove global `msgIDs` shared variableEuAndreh2025-05-141-16/+33
|
* src/gotext.go: Group together type definitionsEuAndreh2025-05-141-16/+11
|
* src/gotext.go: Fix usage of `var`EuAndreh2025-05-141-47/+55
|
* src/gotext.go: Remove global `opts` shared variableEuAndreh2025-05-141-25/+28
|
* src/gotext.go: Do away with most of the CLI optionsEuAndreh2025-05-141-82/+23
|
* Absorb go-xgettext/main_test.goEuAndreh2025-05-141-27/+37
|
* Absorb gettext_test.goEuAndreh2025-05-121-25/+15
|
* Absorb gettext.goEuAndreh2025-05-121-3/+190
|
* Absorb go-xgettext/main.go: Hackly do away with ad-hoc go-flags packageEuAndreh2025-05-101-0/+426
|
* Setup Go skeletonEuAndreh2025-05-101-0/+19