mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
move i18n/exceptions.go to crawler directory
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// This file contains a map of strings that should be ignored by the i18n crawler,
|
||||
// such as empty strings, symbols, and template syntax that should remain unchanged
|
||||
// across all locales.
|
||||
package i18n
|
||||
package main
|
||||
|
||||
var IgnoreTheseStrings = map[string]bool{
|
||||
"": true,
|
||||
@@ -15,8 +15,6 @@ import (
|
||||
"github.com/soluble-ai/go-jnode"
|
||||
"github.com/yargevad/filepathx"
|
||||
"golang.org/x/net/html"
|
||||
|
||||
"codeberg.org/vnpower/pixivfe/v2/i18n"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -87,7 +85,7 @@ func processFile(filename string, result *jnode.Node) {
|
||||
|
||||
// manual filter
|
||||
func shouldIgnore(msg string) bool {
|
||||
return i18n.IgnoreTheseStrings[msg]
|
||||
return IgnoreTheseStrings[msg]
|
||||
}
|
||||
|
||||
func visit(node *html.Node, record func([]*html.Node)) {
|
||||
|
||||
Reference in New Issue
Block a user