aboutsummaryrefslogtreecommitdiff
path: root/Makefile (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-05-15Remove "MIME-Version" extra headerEuAndreh17-26/+0
2025-05-15Use LC_MESSAGES for testsEuAndreh1-6/+3
2025-05-15Remove "Content-Transfer-Encoding" "header" from files and stringsEuAndreh17-26/+0
2025-05-15Makefile: Fix dependency of tests/functional/api-usage/main.bin-check targetEuAndreh1-1/+3
2025-05-15Do not install po/tests/*.mo filesEuAndreh3-4/+7
2025-05-15src/gotext.go: Stop panicking on unknown AST typeEuAndreh1-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....
2025-05-15Add po/gotext/EuAndreh9-5/+167
2025-05-15Makefile: Replace mandir(1) with instool(1)EuAndreh1-2/+2
2025-05-15mkdeps.sh: Better name of varlistsEuAndreh3-23/+24
2025-05-14doc/: No longer commit into the repository the generated filesEuAndreh9-35/+25
2025-05-14po/: Cleanup garbage generated headersEuAndreh9-161/+67
2025-05-14Remove gobang as a dependencyEuAndreh3-253/+343
2025-05-14src/gotext.go: Add translatableErrorTEuAndreh1-0/+8
2025-05-14src/gotext.go: Move Main() to the end of the fileEuAndreh1-21/+14
2025-05-14src/gotext.go: Rename msgID -> msgIDTEuAndreh2-31/+31
2025-05-14src/gotext.go: Cleanup LC_* comments and make them constsEuAndreh1-26/+10
2025-05-14Remove global `msgIDs` shared variableEuAndreh2-40/+56
2025-05-14src/gotext.go: Group together type definitionsEuAndreh1-16/+11
2025-05-14src/gotext.go: Fix usage of `var`EuAndreh1-47/+55
2025-05-14src/gotext.go: Remove global `opts` shared variableEuAndreh2-30/+48
2025-05-14src/gotext.go: Do away with most of the CLI optionsEuAndreh2-133/+24
2025-05-14rm LICENSE .travis.ymlEuAndreh2-27/+0
2025-05-14rm _examples/gettext.goEuAndreh1-21/+0
2025-05-14Absorb go-xgettext/main_test.goEuAndreh9-550/+639
2025-05-12Absorb gettext_test.goEuAndreh15-178/+257
2025-05-12mv po/* po/doc/EuAndreh9-2/+2
2025-05-12Absorb gettext.goEuAndreh2-222/+190
2025-05-10Absorb go-xgettext/main.go: Hackly do away with ad-hoc go-flags packageEuAndreh2-357/+426
2025-05-10Setup manpage i18nEuAndreh18-2/+274
2025-05-10Setup Go skeletonEuAndreh16-1/+362
2016-03-09fix tests on ubuntuMichael Vogt1-7/+12
2016-03-09add travis.ymlMichael Vogt2-0/+12
2016-02-20Fixing example with go-xgettext.José Carlos Nieto3-1/+1
2016-02-20Adding old LC_* style constants for backward compatibility.José Carlos Nieto1-2/+13
2016-02-20Updating example.José Carlos Nieto2-19/+11
2016-02-20Adding a note on #1.José Carlos Nieto1-0/+2
2016-02-20Code cleaning.José Carlos Nieto10-254/+157
2016-02-07Updating readme.José Carlos Nieto1-22/+19
2016-02-07Closes #7José Carlos Nieto1-40/+65
2016-01-25Add native go xgettextMichael Vogt2-0/+855
Upstream xgettext does not provide support for the go raw_string_lit (backtick) multi-line strings. Thanks to the excellent go/ast package its easy to build a native xgettext in go itself.
2015-06-08Fix translations with DGettext (and other D... func) when the domain name is ↵SQP2-4/+45
empty. According to the doc, NULL allow to use the current domain as fallback: http://www.gnu.org/software/libc/manual/html_node/Translation-with-gettext.html If the domainname parameter is the null pointer the dgettext function is exactly equivalent to gettext since the default value for the domain name is used.
2013-02-21Styling typos.José Carlos Nieto1-11/+12
2013-02-19TypoJosé Carlos Nieto1-1/+1
2013-02-19Updating code (fixing leaks) and docs.José Carlos Nieto3-31/+115
2012-10-06Typo.José Carlos Nieto1-6/+6
2012-10-06Additional data on xgettext.José Carlos Nieto2-1/+25
2012-10-06Typos.José Carlos Nieto1-3/+6