ohmyzsh / ohmyzsh

🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

Home Page:https://ohmyz.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin Arch Linux's upgrade command always thinks Arch Linux PGP Keyring is out of date if the system language isn't English.

heipiao233 opened this issue · comments

Describe the bug

The check for the version of archlinux-keyring in command 'upgrade' of plugin archlinux always fails when the system language isn't English.
An example in Chinese that shows pacman -[SQ]i is translated:

$ sudo pacman -Qi archlinux-keyring
名字           : archlinux-keyring
版本           : 20240313-1
描述           : Arch Linux PGP keyring
架构           : any
URL            : https://gitlab.archlinux.org/archlinux/archlinux-keyring/
软件许可       : GPL-3.0-or-later
组             : 无
提供           : 无
依赖于         : pacman
可选依赖       : 无
依赖它         : archlinuxcn-keyring  base  base-devel
被可选依赖     : 无
与它冲突       : 无
取代           : 无
安装后大小     : 1694.96 KiB
打包者         : Christian Hesse <eworm@archlinux.org>
编译日期       : 2024年03月14日 星期四 01时10分23秒
安装日期       : 2024年03月14日 星期四 19时18分23秒
安装原因       : 作为其他软件包的依赖关系安装
安装脚本       : 是
验证者         : 数字签名

$ sudo pacman -Si archlinux-keyring
软件库         : core
名字           : archlinux-keyring
版本           : 20240313-1
描述           : Arch Linux PGP keyring
架构           : any
URL            : https://gitlab.archlinux.org/archlinux/archlinux-keyring/
软件许可       : GPL-3.0-or-later
组             : 无
提供           : 无
依赖于         : pacman
可选依赖       : 无
与它冲突       : 无
取代           : 无
下载大小       : 1188.86 KiB
安装后大小     : 1694.96 KiB
打包者         : Christian Hesse <eworm@archlinux.org>
编译日期       : 2024年03月14日 星期四 01时10分23秒
验证者         : MD5校验值  SHA-256 校验值  数字签名

Note: 版本 means version.

Steps to reproduce

  1. Install Arch, change the system language into any language other than English. (In this language, the word meaning version isn't version.), install oh-my-zsh and enable the archlinux plugin.
  2. Run upgrade.

Expected behavior

It should check that correctly in these languages.

Screenshots and recordings

图片

OS / Linux distribution

Arch Linux

Zsh version

5.9

Oh My Zsh version

130002a

Terminal emulator

Konsole

If using WSL on Windows, which version of WSL

None

Additional context

No response

Thanks for the report, fixed!