Giter Site home page Giter Site logo

Translation support about pikaur HOT 2 CLOSED

actionless avatar actionless commented on July 23, 2024
Translation support

from pikaur.

Comments (2)

actionless avatar actionless commented on July 23, 2024 1

@zopieux i am up for №1

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

from pikaur.

zopieux avatar zopieux commented on July 23, 2024

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

  • replacing pacman with pikaur
  • replacing options: with something like common pacman options:

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?

from pikaur.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.