diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml index 0d597bf..d1ad93c 100644 --- a/.github/workflows/l10n.yml +++ b/.github/workflows/l10n.yml @@ -26,7 +26,7 @@ jobs: go install github.com/leonelquinteros/gotext/cli/xgotext@latest - name: Generate pot files run: | - ~/go/bin/xgotext -default helper -pkg-tree ./cmd/helper -out ./pkg/embed/locales + ~/go/bin/xgotext -default helper -in ./ -out ./pkg/embed/locales - uses: stefanzweifel/git-auto-commit-action@v7 name: Commit changes with: diff --git a/pkg/embed/locales/helper.pot b/pkg/embed/locales/helper.pot index f013cb6..703fa49 100644 --- a/pkg/embed/locales/helper.pot +++ b/pkg/embed/locales/helper.pot @@ -26,10 +26,26 @@ msgstr "" msgid "Back" msgstr "" +#: internal/system/detector.go:255 +msgid "CPU must support at least x86-64-v2 instruction set" +msgstr "" + #: internal/ui/app.go:582 msgid "Cancel" msgstr "" +#: internal/service/mounter.go:57 +msgid "Cannot operate on system disk" +msgstr "" + +#: internal/service/installer.go:54 +msgid "Checking system requirements" +msgstr "" + +#: internal/service/installer.go:60 +msgid "Configuring firewall" +msgstr "" + #: internal/ui/app.go:306 msgid "Confirm Installation" msgstr "" @@ -46,6 +62,46 @@ msgstr "" msgid "Continue" msgstr "" +#: internal/service/mounter.go:77 +msgid "Creating %s..." +msgstr "" + +#: internal/service/mounter.go:77 +msgid "Creating mount point" +msgstr "" + +#: internal/service/mounter.go:107 +msgid "Creating partition" +msgstr "" + +#: internal/service/mounter.go:107 +msgid "Creating partition on /dev/%s..." +msgstr "" + +#: internal/service/installer.go:58 +msgid "Creating swap file" +msgstr "" + +#: internal/service/installer.go:61 +msgid "Creating systemd service" +msgstr "" + +#: internal/service/installer.go:55 +msgid "Creating www user" +msgstr "" + +#: internal/service/mounter.go:92 +msgid "Deleting existing partitions" +msgstr "" + +#: internal/service/mounter.go:92 +msgid "Deleting existing partitions..." +msgstr "" + +#: internal/service/installer.go:63 +msgid "Detecting installed apps" +msgstr "" + #: internal/ui/app.go:830 msgid "Device" msgstr "" @@ -55,18 +111,114 @@ msgstr "" msgid "Disk Partition" msgstr "" +#: internal/service/mounter.go:52 +msgid "Disk not found" +msgstr "" + +#: internal/service/mounter.go:170 +msgid "Disk partition and mount successful" +msgstr "" + #: internal/ui/app.go:789 msgid "Disk: %s, Mount Point: %s, File System: %s" msgstr "" +#: internal/service/installer.go:59 +msgid "Downloading panel" +msgstr "" + #: internal/ui/app.go:756 msgid "Enter the mount point path (e.g. /opt/ace)" msgstr "" +#: internal/service/installer.go:78 +msgid "Error" +msgstr "" + #: internal/ui/app.go:247 msgid "Exit" msgstr "" +#: internal/system/firewall.go:70 +msgid "Failed to add port" +msgstr "" + +#: internal/system/user.go:66 +msgid "Failed to create group" +msgstr "" + +#: internal/service/mounter.go:111 +msgid "Failed to create partition" +msgstr "" + +#: internal/system/user.go:55 +msgid "Failed to create user" +msgstr "" + +#: internal/system/systemd.go:109 +msgid "Failed to daemon-reload" +msgstr "" + +#: internal/system/systemd.go:82 +msgid "Failed to disable" +msgstr "" + +#: internal/service/installer.go:321 +msgid "Failed to download panel" +msgstr "" + +#: internal/system/systemd.go:71 +msgid "Failed to enable" +msgstr "" + +#: internal/system/firewall.go:55 +msgid "Failed to enable firewalld" +msgstr "" + +#: internal/service/mounter.go:142 +msgid "Failed to get UUID" +msgstr "" + +#: internal/service/installer.go:277 +msgid "Failed to get version info" +msgstr "" + +#: internal/service/installer.go:415 +msgid "Failed to initialize panel" +msgstr "" + +#: internal/service/installer.go:292 +msgid "Failed to parse version info" +msgstr "" + +#: internal/system/firewall.go:93 +msgid "Failed to reload firewall" +msgstr "" + +#: internal/system/firewall.go:82 +msgid "Failed to remove port" +msgstr "" + +#: internal/system/systemd.go:93 +msgid "Failed to restart" +msgstr "" + +#: internal/system/systemd.go:49 +msgid "Failed to start" +msgstr "" + +#: internal/system/systemd.go:60 +msgid "Failed to stop" +msgstr "" + +#: internal/service/installer.go:421 +msgid "Failed to sync panel" +msgstr "" + +#: internal/service/installer.go:327 +msgid "Failed to unzip panel" +msgstr "" + #: internal/ui/app.go:772 #: internal/ui/app.go:832 msgid "File System" @@ -76,15 +228,35 @@ msgstr "" msgid "For safety, please wait before proceeding" msgstr "" +#: internal/service/mounter.go:125 +msgid "Format failed" +msgstr "" + +#: internal/service/mounter.go:115 +msgid "Formatting /dev/%s1 as %s..." +msgstr "" + +#: internal/service/mounter.go:115 +msgid "Formatting partition" +msgstr "" + #: internal/ui/app.go:561 msgid "High-risk operation" msgstr "" +#: internal/service/installer.go:62 +msgid "Initializing panel" +msgstr "" + #: internal/ui/app.go:244 #: internal/ui/app.go:404 msgid "Install Panel" msgstr "" +#: internal/service/installer.go:94 +msgid "Installation complete" +msgstr "" + #: internal/ui/app.go:409 msgid "Installation failed" msgstr "" @@ -93,6 +265,22 @@ msgstr "" msgid "Installation successful" msgstr "" +#: internal/service/installer.go:57 +msgid "Installing dependencies" +msgstr "" + +#: internal/service/mounter.go:61 +msgid "Installing partition tools" +msgstr "" + +#: internal/service/mounter.go:61 +msgid "Installing partition tools..." +msgstr "" + +#: internal/service/installer.go:136 +msgid "Kernel version too old, requires 4.x or above" +msgstr "" + #: internal/ui/app.go:842 msgid "Loading disk list..." msgstr "" @@ -102,6 +290,26 @@ msgstr "" msgid "Mount Point" msgstr "" +#: internal/service/mounter.go:170 +msgid "Mount complete" +msgstr "" + +#: internal/service/mounter.go:135 +msgid "Mount failed" +msgstr "" + +#: internal/service/mounter.go:85 +msgid "Mount point is not empty" +msgstr "" + +#: internal/service/mounter.go:132 +msgid "Mounting /dev/%s1 to %s..." +msgstr "" + +#: internal/service/mounter.go:132 +msgid "Mounting partition" +msgstr "" + #: internal/ui/app.go:309 #: internal/ui/app.go:527 #: internal/ui/app.go:795 @@ -112,10 +320,34 @@ msgstr "" msgid "No available disks found" msgstr "" +#: internal/service/installer.go:311 +msgid "No download URL found for architecture %s" +msgstr "" + #: internal/ui/app.go:822 msgid "Operation failed" msgstr "" +#: internal/service/installer.go:56 +msgid "Optimizing system settings" +msgstr "" + +#: internal/service/installer.go:96 +msgid "Panel installed successfully" +msgstr "" + +#: internal/service/installer.go:148 +msgid "Panel is already installed" +msgstr "" + +#: internal/service/uninstaller.go:47 +msgid "Panel is not installed" +msgstr "" + +#: internal/service/uninstaller.go:84 +msgid "Panel uninstalled successfully" +msgstr "" + #: internal/ui/app.go:307 msgid "Panel will be installed to %s" msgstr "" @@ -132,10 +364,50 @@ msgstr "" msgid "Please enter an absolute path" msgstr "" +#: internal/system/detector.go:237 +msgid "Please run with root privileges" +msgstr "" + #: internal/ui/app.go:775 msgid "Recommended" msgstr "" +#: internal/service/uninstaller.go:81 +msgid "Removing %s..." +msgstr "" + +#: internal/service/uninstaller.go:61 +msgid "Removing /usr/local/sbin/acepanel..." +msgstr "" + +#: internal/service/uninstaller.go:61 +msgid "Removing CLI tool" +msgstr "" + +#: internal/service/uninstaller.go:81 +msgid "Removing installation directory" +msgstr "" + +#: internal/service/uninstaller.go:56 +msgid "Removing service file" +msgstr "" + +#: internal/service/uninstaller.go:65 +msgid "Removing swap file" +msgstr "" + +#: internal/service/uninstaller.go:65 +msgid "Removing swap file..." +msgstr "" + +#: internal/service/uninstaller.go:56 +msgid "Removing systemd service file..." +msgstr "" + +#: internal/service/installer.go:143 +msgid "Requires 64-bit system" +msgstr "" + #: internal/ui/app.go:743 msgid "Select Disk" msgstr "" @@ -156,6 +428,14 @@ msgstr "" msgid "Skip" msgstr "" +#: internal/service/uninstaller.go:51 +msgid "Stopping acepanel service..." +msgstr "" + +#: internal/service/uninstaller.go:51 +msgid "Stopping panel service" +msgstr "" + #: internal/ui/app.go:602 msgid "Thank you for using AcePanel." msgstr "" @@ -165,6 +445,10 @@ msgstr "" msgid "Uninstall Panel" msgstr "" +#: internal/service/uninstaller.go:84 +msgid "Uninstallation complete" +msgstr "" + #: internal/ui/app.go:596 msgid "Uninstallation failed" msgstr "" @@ -173,6 +457,28 @@ msgstr "" msgid "Uninstallation successful" msgstr "" +#: internal/service/installer.go:121 +msgid "Unsupported CPU architecture" +msgstr "" + +#: internal/service/mounter.go:122 +msgid "Unsupported filesystem type: %s" +msgstr "" + +#: internal/service/installer.go:116 +#: internal/service/installer.go:204 +#: internal/system/firewall.go:44 +msgid "Unsupported operating system" +msgstr "" + +#: internal/service/mounter.go:139 +msgid "Updating /etc/fstab for auto-mount..." +msgstr "" + +#: internal/service/mounter.go:139 +msgid "Updating fstab" +msgstr "" + #: internal/ui/app.go:572 msgid "Waiting:" msgstr "" @@ -187,6 +493,42 @@ msgstr "" msgid "Yes" msgstr "" +#: internal/system/package.go:174 +msgid "apt-get install failed" +msgstr "" + +#: internal/system/package.go:186 +msgid "apt-get remove failed" +msgstr "" + +#: internal/system/package.go:162 +msgid "apt-get update failed" +msgstr "" + +#: internal/service/installer.go:89 +msgid "completed" +msgstr "" + +#: internal/system/package.go:64 +msgid "dnf install failed" +msgstr "" + +#: internal/system/package.go:52 +msgid "dnf makecache failed" +msgstr "" + +#: internal/system/package.go:76 +msgid "dnf remove failed" +msgstr "" + +#: internal/service/mounter.go:167 +msgid "fstab configuration error" +msgstr "" + +#: internal/service/uninstaller.go:77 +msgid "fstab configuration error, please check /etc/fstab" +msgstr "" + #: internal/ui/app.go:574 msgid "seconds" msgstr "" \ No newline at end of file