actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
860 stars 86 forks source link

Translation support #45

Closed Mauladen closed 6 years ago

zopieux commented 6 years ago

Pikaur parses the output of pacman --help for its own help,

But when running under another locale, the second operation will fail, eg. options is opciones in Spanish.

Possible solutions:

  1. search for _("options:") instead, but this means adding options: translation to our own catalog for every supported locale.
  2. don't try to replace anything (except maybe pacman that is more or less guaranteed to be pacman in every locale).
  3. change nothing: try to replace options: but accept that this will only work for English or by accident (ie. target locale translates to options: too).
  4. run the pacman subprocess with LANG=C so the replace works, but then pikaur help will have to be in English.

I would advocate 3. Thoughts?

actionless commented 6 years ago

@Zopieux i am up for №1

2 is also fine (ie to replace only s/pacman/pikaur/g