Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.23k stars 364 forks source link

Korean translations (ko.po) not properly formatted #2517

Open scarf005 opened 1 month ago

scarf005 commented 1 month ago

Affected Version

yay v12.4.2 - libalpm v15.0.0

Describe the bug

πŸ“¦[scarf@arch-distrobox yay]$ LANG=ko_KR.UTF-8 yay -S tlrc
:: %!s(int=2)에 μ‚¬μš©ν•  수 μžˆλŠ” &{%!d(string=cargo) %!d(string=) %!d(string=) 7059752343256422140 1}개 κ³΅κΈ‰μžκ°€ μžˆμŠ΅λ‹ˆλ‹€:
:: μ €μž₯μ†Œ extra
    1) rust 2) rustup 

숫자λ₯Ό μž…λ ₯ν•˜μ„Έμš” (κΈ°λ³Έκ°’=1): 
==> ^C
πŸ“¦[scarf@arch-distrobox yay]$ LANG=c yay -S tlrc
:: There are 2 providers available for cargo:
:: Repository extra
    1) rust 2) rustup

Reproduction Steps

  1. follow https://github.com/Jguer/yay?tab=readme-ov-file#source
  2. run LANG=ko_KR.UTF-8 yay -S tlrc
  3. the formatting is not properly applied unlike english one.

https://github.com/Jguer/yay/blob/138c2dd6cdf1a3738ee18f6bf94c1e8c37e15dc4/po/ko.po#L433-L435

Expected behavior

expected: cargo에 μ‚¬μš©ν•  수 μžˆλŠ” 2개 κ³΅κΈ‰μžκ°€ μžˆμŠ΅λ‹ˆλ‹€: actual: %!s(int=2)에 μ‚¬μš©ν•  수 μžˆλŠ” &{%!d(string=cargo) %!d(string=) %!d(string=) 7059752343256422140 1}개 κ³΅κΈ‰μžκ°€ μžˆμŠ΅λ‹ˆλ‹€:

Output

{
        "aururl": "https://aur.archlinux.org",
        "aurrpcurl": "https://aur.archlinux.org/rpc?",
        "buildDir": "/home/scarf/.cache/yay",
        "editor": "",
        "editorflags": "",
        "makepkgbin": "makepkg",
        "makepkgconf": "",
        "pacmanbin": "pacman",
        "pacmanconf": "/etc/pacman.conf",
        "redownload": "no",
        "answerclean": "",
        "answerdiff": "",
        "answeredit": "",
        "answerupgrade": "",
        "gitbin": "git",
        "gpgbin": "gpg",
        "gpgflags": "",
        "mflags": "",
        "sortby": "votes",
        "searchby": "name-desc",
        "gitflags": "",
        "removemake": "ask",
        "sudobin": "sudo",
        "sudoflags": "",
        "version": "12.4.2",
        "requestsplitn": 150,
        "completionrefreshtime": 7,
        "maxconcurrentdownloads": 1,
        "bottomup": true,
        "sudoloop": false,
        "timeupdate": false,
        "devel": true,
        "cleanAfter": false,
        "keepSrc": false,
        "provides": true,
        "pgpfetch": true,
        "cleanmenu": true,
        "diffmenu": true,
        "editmenu": false,
        "combinedupgrade": true,
        "useask": false,
        "batchinstall": false,
        "singlelineresults": false,
        "separatesources": true,
        "debug": false,
        "rpc": true,
        "doubleconfirm": true,
        "rebuild": "no"
}