2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 04:22:33 +08:00

fix: lint

This commit is contained in:
2025-04-12 06:13:56 +08:00
parent 137665b77d
commit ae76a0171d
4 changed files with 2 additions and 721 deletions

View File

@@ -20,8 +20,7 @@ jobs:
go install github.com/leonelquinteros/gotext/cli/xgotext@latest
- name: Generate pot files
run: |
~/go/bin/xgotext -default web -pkg-tree ./cmd/web -out ./pkg/embed/locales
~/go/bin/xgotext -default cli -pkg-tree ./cmd/cli -out ./pkg/embed/locales
~/go/bin/xgotext -default backend -pkg-tree ./cmd/web -out ./pkg/embed/locales
- uses: stefanzweifel/git-auto-commit-action@v5
name: Commit changes
with:

View File

@@ -28,9 +28,7 @@ func NewT(conf *koanf.Koanf) (*gotext.Locale, error) {
}
l := gotext.NewLocaleFSWithPath(locale, embed.LocalesFS, "locales")
l.AddDomain("web")
l.AddDomain("cli")
l.AddDomain("backend")
return l, nil
}

View File

@@ -1,716 +0,0 @@
msgid ""
msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"X-Generator: xgotext\n"
#: internal/bootstrap/cli.go:18
msgid "AUTHOR"
msgstr ""
#: internal/apps/php/app.go:130
msgid "Accepted Connections"
msgstr ""
#: internal/apps/mysql/app.go:121
msgid "Active Connections"
msgstr ""
#: internal/apps/php/app.go:135
msgid "Active Processes"
msgstr ""
#: internal/apps/nginx/app.go:120
msgid "Active connections"
msgstr ""
#: internal/apps/php/app.go:127
msgid "Application Pool"
msgstr ""
#: internal/apps/mysql/app.go:120
#: internal/apps/mysql/app.go:139
msgid "Bytes Received"
msgstr ""
#: internal/apps/mysql/app.go:119
#: internal/apps/mysql/app.go:139
msgid "Bytes Sent"
msgstr ""
#: internal/apps/php/app.go:352
msgid "Bzip2 is a library for compressing and decompressing files"
msgstr ""
#: internal/bootstrap/cli.go:24
msgid "CATEGORY"
msgstr ""
#: internal/bootstrap/cli.go:19
#: internal/bootstrap/cli.go:30
msgid "COMMANDS"
msgstr ""
#: internal/bootstrap/cli.go:21
msgid "COPYRIGHT"
msgstr ""
#: internal/apps/php/app.go:392
msgid "Calendar is a library for handling dates"
msgstr ""
#: internal/apps/redis/app.go:86
msgid "Commands Per Second"
msgstr ""
#: internal/apps/redis/app.go:79
msgid "Connected Clients"
msgstr ""
#: internal/bootstrap/cli.go:17
#: internal/bootstrap/cli.go:25
msgid "DESCRIPTION"
msgstr ""
#: internal/apps/php/app.go:382
msgid "Enchant is a spell-checking library"
msgstr ""
#: internal/apps/php/app.go:362
msgid "Event is a library for handling events"
msgstr ""
#: internal/apps/php/app.go:317
msgid "Exif is a library for reading and writing image metadata"
msgstr ""
#: internal/apps/php/app.go:287
msgid "Fileinfo is a library used to identify file types"
msgstr ""
#: internal/bootstrap/cli.go:34
msgid "Forumhttps://bbs.haozi.net"
msgstr ""
#: internal/apps/mysql/app.go:127
msgid "Full Joins without Index"
msgstr ""
#: internal/apps/mysql/app.go:128
msgid "Full Range Joins without Index"
msgstr ""
#: internal/bootstrap/cli.go:20
msgid "GLOBAL OPTIONS"
msgstr ""
#: internal/apps/php/app.go:397
msgid "GMP is a library for handling large integers"
msgstr ""
#: internal/apps/php/app.go:417
msgid "Gettext is a library for handling multilingual support"
msgstr ""
#: internal/apps/php/app.go:342
msgid "IMAP extension allows PHP to read, search, delete, download, and manage emails"
msgstr ""
#: internal/apps/php/app.go:134
msgid "Idle Processes"
msgstr ""
#: internal/apps/php/app.go:297
msgid "Igbinary is a library for serializing and deserializing data"
msgstr ""
#: internal/apps/php/app.go:312
msgid "ImageMagick is free software for creating, editing, and composing images"
msgstr ""
#: internal/apps/mysql/app.go:123
msgid "Index Hit Rate"
msgstr ""
#: internal/apps/mysql/app.go:124
msgid "Innodb Index Hit Rate"
msgstr ""
#: internal/apps/php/app.go:239
msgid "Install PHP-%d %s extension"
msgstr ""
#: internal/apps/php/app.go:412
msgid "Intl is a library for handling internationalization and localization"
msgstr ""
#: internal/apps/redis/app.go:87
msgid "Keyspace Hits"
msgstr ""
#: internal/apps/redis/app.go:88
msgid "Keyspace Misses"
msgstr ""
#: internal/apps/php/app.go:377
msgid "LDAP is a protocol for accessing directory services"
msgstr ""
#: internal/apps/redis/app.go:89
msgid "Latest Fork Time (ms)"
msgstr ""
#: internal/apps/php/app.go:131
msgid "Listen Queue"
msgstr ""
#: internal/apps/php/app.go:133
msgid "Listen Queue Length"
msgstr ""
#: internal/apps/php/app.go:137
msgid "Max Active Processes"
msgstr ""
#: internal/apps/php/app.go:138
msgid "Max Children Reached"
msgstr ""
#: internal/apps/php/app.go:132
msgid "Max Listen Queue"
msgstr ""
#: internal/apps/php/app.go:307
msgid "Memcached is a driver for connecting to Memcached servers"
msgstr ""
#: internal/apps/nginx/app.go:113
msgid "Memory"
msgstr ""
#: internal/apps/redis/app.go:83
msgid "Memory Fragmentation Ratio"
msgstr ""
#: internal/apps/mysql/app.go:88
msgid "MySQL root password is empty"
msgstr ""
#: internal/bootstrap/cli.go:14
#: internal/bootstrap/cli.go:22
#: internal/bootstrap/cli.go:27
msgid "NAME"
msgstr ""
#: internal/bootstrap/cli.go:26
#: internal/bootstrap/cli.go:31
msgid "OPTIONS"
msgstr ""
#: internal/apps/php/app.go:292
msgid "OPcache stores precompiled PHP script bytecode in shared memory to improve PHP performance"
msgstr ""
#: internal/apps/mysql/app.go:126
msgid "Open Tables"
msgstr ""
#: internal/apps/mysql/app.go:122
msgid "Peak Connections"
msgstr ""
#: internal/apps/redis/app.go:82
msgid "Peak Memory Usage"
msgstr ""
#: internal/apps/php/app.go:302
msgid "PhpRedis connects to and operates on data in Redis databases (requires the igbinary extension installed above)"
msgstr ""
#: internal/apps/postgresql/app.go:142
msgid "Process Count"
msgstr ""
#: internal/apps/php/app.go:128
msgid "Process Manager"
msgstr ""
#: internal/apps/postgresql/app.go:141
msgid "Process PID"
msgstr ""
#: internal/apps/php/app.go:387
msgid "Pspell is a spell-checking library"
msgstr ""
#: internal/bootstrap/cli.go:35
msgid "QQ Group12370907"
msgstr ""
#: internal/bootstrap/cli.go:39
msgid "Rat Panel CLI Tool"
msgstr ""
#: internal/apps/nginx/app.go:144
msgid "Reading"
msgstr ""
#: internal/apps/php/app.go:367
msgid "Readline is a library for processing text"
msgstr ""
#: internal/apps/mysql/app.go:118
msgid "Rollbacks per Second"
msgstr ""
#: internal/apps/php/app.go:372
msgid "SNMP is a protocol for network management"
msgstr ""
#: internal/apps/php/app.go:357
msgid "SSH2 is a library for connecting to SSH servers"
msgstr ""
#: internal/apps/php/app.go:139
msgid "Slow Requests"
msgstr ""
#: internal/apps/mysql/app.go:130
msgid "Sort Merge Passes"
msgstr ""
#: internal/apps/php/app.go:129
#: internal/apps/postgresql/app.go:140
msgid "Start Time"
msgstr ""
#: internal/apps/postgresql/app.go:144
msgid "Storage Usage"
msgstr ""
#: internal/apps/mysql/app.go:129
msgid "Subqueries without Index"
msgstr ""
#: internal/apps/php/app.go:477
msgid "Swoole is a PHP extension for building high-performance asynchronous concurrent servers"
msgstr ""
#: internal/apps/php/app.go:486
msgid "Swow is a PHP extension for building high-performance asynchronous concurrent servers"
msgstr ""
#: internal/apps/php/app.go:457
msgid "Sysvmsg is a library for handling System V message queues"
msgstr ""
#: internal/apps/php/app.go:462
msgid "Sysvsem is a library for handling System V semaphores"
msgstr ""
#: internal/apps/php/app.go:467
msgid "Sysvshm is a library for handling System V shared memory"
msgstr ""
#: internal/apps/redis/app.go:77
msgid "TCP Port"
msgstr ""
#: internal/apps/mysql/app.go:131
msgid "Table Locks Waited"
msgstr ""
#: internal/apps/mysql/app.go:125
msgid "Temporary Tables Created on Disk"
msgstr ""
#: internal/apps/redis/app.go:80
msgid "Total Allocated Memory"
msgstr ""
#: internal/apps/redis/app.go:85
msgid "Total Commands Processed"
msgstr ""
#: internal/apps/mysql/app.go:116
#: internal/apps/postgresql/app.go:143
msgid "Total Connections"
msgstr ""
#: internal/apps/redis/app.go:84
msgid "Total Connections Received"
msgstr ""
#: internal/apps/redis/app.go:81
msgid "Total Memory Usage"
msgstr ""
#: internal/apps/php/app.go:136
msgid "Total Processes"
msgstr ""
#: internal/apps/mysql/app.go:115
msgid "Total Queries"
msgstr ""
#: internal/apps/nginx/app.go:128
msgid "Total connections"
msgstr ""
#: internal/apps/nginx/app.go:132
msgid "Total handshakes"
msgstr ""
#: internal/apps/nginx/app.go:136
msgid "Total requests"
msgstr ""
#: internal/apps/mysql/app.go:117
msgid "Transactions per Second"
msgstr ""
#: internal/bootstrap/cli.go:15
#: internal/bootstrap/cli.go:23
#: internal/bootstrap/cli.go:28
#: internal/bootstrap/cli.go:29
msgid "USAGE"
msgstr ""
#: internal/apps/php/app.go:270
msgid "Uninstall PHP-%d %s extension"
msgstr ""
#: internal/apps/mysql/app.go:114
msgid "Uptime"
msgstr ""
#: internal/apps/redis/app.go:78
msgid "Uptime in Days"
msgstr ""
#: internal/bootstrap/cli.go:16
msgid "VERSION"
msgstr ""
#: internal/apps/nginx/app.go:152
msgid "Waiting"
msgstr ""
#: internal/bootstrap/cli.go:33
msgid "Websitehttps://panel.haozi.net"
msgstr ""
#: internal/apps/nginx/app.go:102
msgid "Workers"
msgstr ""
#: internal/apps/nginx/app.go:148
msgid "Writing"
msgstr ""
#: internal/apps/php/app.go:402
msgid "XLSWriter is a high-performance library for reading and writing Excel files"
msgstr ""
#: internal/apps/php/app.go:407
msgid "XSL is a library for processing XML documents"
msgstr ""
#: internal/apps/php/app.go:347
msgid "Zip is a library for handling ZIP files"
msgstr ""
#: internal/apps/pureftpd/app.go:84
msgid "directory %s does not exist"
msgstr ""
#: internal/apps/toolbox/app.go:155
msgid "disk space is insufficient, current free %s"
msgstr ""
#: internal/apps/s3fs/app.go:71
msgid "endpoint should not contain bucket"
msgstr ""
#: internal/apps/php/app.go:228
#: internal/apps/php/app.go:259
msgid "extension %s does not exist"
msgstr ""
#: internal/apps/s3fs/app.go:134
#: internal/apps/s3fs/app.go:139
msgid "failed to add s3fs mount: %v"
msgstr ""
#: internal/apps/s3fs/app.go:78
msgid "failed to create mount path: %v"
msgstr ""
#: internal/apps/s3fs/app.go:108
msgid "failed to create passwd file: %v"
msgstr ""
#: internal/apps/s3fs/app.go:206
#: internal/apps/s3fs/app.go:210
msgid "failed to delete s3fs mount: %v"
msgstr ""
#: internal/apps/memcached/app.go:37
msgid "failed to get Memcached status: %v"
msgstr ""
#: internal/apps/mysql/app.go:104
msgid "failed to get MySQL status: %v"
msgstr ""
#: internal/apps/postgresql/app.go:120
msgid "failed to get PostgreSQL backend pid: %v"
msgstr ""
#: internal/apps/postgresql/app.go:130
msgid "failed to get PostgreSQL connections: %v"
msgstr ""
#: internal/apps/postgresql/app.go:135
msgid "failed to get PostgreSQL database size: %v"
msgstr ""
#: internal/apps/postgresql/app.go:125
msgid "failed to get PostgreSQL process: %v"
msgstr ""
#: internal/apps/postgresql/app.go:115
msgid "failed to get PostgreSQL start time: %v"
msgstr ""
#: internal/apps/toolbox/app.go:106
#: internal/apps/toolbox/app.go:93
msgid "failed to get SWAP: %v"
msgstr ""
#: internal/apps/toolbox/app.go:207
msgid "failed to get available timezones: %v"
msgstr ""
#: internal/apps/fail2ban/app.go:268
msgid "failed to get banned ip list"
msgstr ""
#: internal/apps/fail2ban/app.go:258
msgid "failed to get current banned list"
msgstr ""
#: internal/apps/toolbox/app.go:151
msgid "failed to get disk space: %v"
msgstr ""
#: internal/apps/supervisor/app.go:218
#: internal/apps/supervisor/app.go:241
#: internal/apps/supervisor/app.go:358
#: internal/apps/supervisor/app.go:368
msgid "failed to get log path for process %s: %v"
msgstr ""
#: internal/apps/nginx/app.go:108
#: internal/apps/nginx/app.go:98
msgid "failed to get nginx workers: %v"
msgstr ""
#: internal/apps/pureftpd/app.go:152
msgid "failed to get port: %v"
msgstr ""
#: internal/apps/redis/app.go:62
msgid "failed to get redis info: %v"
msgstr ""
#: internal/apps/redis/app.go:39
msgid "failed to get redis status: %v"
msgstr ""
#: internal/apps/s3fs/app.go:157
#: internal/apps/s3fs/app.go:161
#: internal/apps/s3fs/app.go:44
#: internal/apps/s3fs/app.go:49
#: internal/apps/s3fs/app.go:90
#: internal/apps/s3fs/app.go:94
msgid "failed to get s3fs list: %v"
msgstr ""
#: internal/apps/rsync/app.go:82
msgid "failed to get the secret key for module %s"
msgstr ""
#: internal/apps/toolbox/app.go:196
msgid "failed to get timezone: %v"
msgstr ""
#: internal/apps/fail2ban/app.go:263
msgid "failed to get total banned list"
msgstr ""
#: internal/apps/mysql/app.go:188
#: internal/apps/mysql/app.go:83
msgid "failed to load MySQL root password: %v"
msgstr ""
#: internal/apps/fail2ban/app.go:327
#: internal/apps/fail2ban/app.go:355
msgid "failed to parse the ignoreip of fail2ban"
msgstr ""
#: internal/apps/memcached/app.go:77
msgid "failed to read from Memcached: %v"
msgstr ""
#: internal/apps/postgresql/app.go:65
#: internal/apps/postgresql/app.go:98
msgid "failed to reload PostgreSQL: %v"
msgstr ""
#: internal/apps/nginx/app.go:65
#: internal/apps/phpmyadmin/app.go:108
#: internal/apps/phpmyadmin/app.go:139
msgid "failed to reload nginx: %v"
msgstr ""
#: internal/apps/supervisor/app.go:108
msgid "failed to restart %s: %v"
msgstr ""
#: internal/apps/mysql/app.go:72
msgid "failed to restart MySQL: %v"
msgstr ""
#: internal/apps/mysql/app.go:99
msgid "failed to set MYSQL_PWD env: %v"
msgstr ""
#: internal/apps/toolbox/app.go:175
msgid "failed to set SWAP permission: %v"
msgstr ""
#: internal/apps/toolbox/app.go:292
msgid "failed to set hostname: %v"
msgstr ""
#: internal/apps/toolbox/app.go:315
msgid "failed to set hosts: %v"
msgstr ""
#: internal/apps/toolbox/app.go:332
msgid "failed to set root password: %v"
msgstr ""
#: internal/apps/toolbox/app.go:79
msgid "failed to update DNS: %v"
msgstr ""
#: internal/apps/memcached/app.go:56
msgid "failed to write to Memcached: %v"
msgstr ""
#: internal/apps/php/app.go:422
msgid "gRPC is a high-performance, open-source, and general-purpose RPC framework"
msgstr ""
#: internal/apps/fail2ban/app.go:184
msgid "get service port failed, please check if it is installed"
msgstr ""
#: internal/apps/php/app.go:472
msgid "ionCube is a professional-grade PHP encryption and decryption tool (must be installed after OPcache)"
msgstr ""
#: internal/apps/rsync/app.go:117
msgid "module %s already exists"
msgstr ""
#: internal/apps/rsync/app.go:162
#: internal/apps/rsync/app.go:204
msgid "module %s does not exist"
msgstr ""
#: internal/apps/s3fs/app.go:122
msgid "mount failed: %v"
msgstr ""
#: internal/apps/s3fs/app.go:173
msgid "mount not found"
msgstr ""
#: internal/apps/s3fs/app.go:100
msgid "mount path already exists"
msgstr ""
#: internal/apps/s3fs/app.go:83
msgid "mount path is not empty"
msgstr ""
#: internal/apps/php/app.go:327
msgid "pdo_pgsql is a PDO driver for connecting to PostgreSQL (requires PostgreSQL installed)"
msgstr ""
#: internal/apps/php/app.go:337
msgid "pdo_sqlsrv is a PDO driver for connecting to SQL Server"
msgstr ""
#: internal/apps/php/app.go:322
msgid "pgsql is a driver for connecting to PostgreSQL (requires PostgreSQL installed)"
msgstr ""
#: internal/apps/phpmyadmin/app.go:43
#: internal/apps/phpmyadmin/app.go:54
msgid "phpMyAdmin directory not found"
msgstr ""
#: internal/apps/phpmyadmin/app.go:65
msgid "phpMyAdmin port not found"
msgstr ""
#: internal/apps/php/app.go:427
msgid "protobuf is a library for serializing and deserializing data"
msgstr ""
#: internal/apps/php/app.go:432
msgid "rdkafka is a library for connecting to Apache Kafka"
msgstr ""
#: internal/apps/fail2ban/app.go:109
msgid "rule already exists"
msgstr ""
#: internal/apps/fail2ban/app.go:228
msgid "rule not found"
msgstr ""
#: internal/apps/php/app.go:332
msgid "sqlsrv is a driver for connecting to SQL Server"
msgstr ""
#: internal/apps/fail2ban/app.go:180
msgid "unknown service"
msgstr ""
#: internal/apps/benchmark/app.go:81
msgid "unknown test type"
msgstr ""
#: internal/apps/php/app.go:442
msgid "xdebug is a library for debugging and profiling PHP code"
msgstr ""
#: internal/apps/php/app.go:437
msgid "xhprof is a library for performance profiling"
msgstr ""
#: internal/apps/php/app.go:447
msgid "yaml is a library for handling YAML"
msgstr ""
#: internal/apps/php/app.go:452
msgid "zstd is a library for compressing and decompressing files"
msgstr ""