Coder Social home page Coder Social logo

Add `Gettext.example` macro about gettext HOT 6 CLOSED

dkuku avatar dkuku commented on June 14, 2024
Add `Gettext.example` macro

from gettext.

Comments (6)

dkuku avatar dkuku commented on June 14, 2024

Adding the available assigns in the comment may be also a good option. Sometimes there is an assign that is not used in English but is still available and may be required in other language.

from gettext.

whatyouhide avatar whatyouhide commented on June 14, 2024

@dkuku thanks for the feature request. Do you know if GNU Gettext provides anything like this? cc @maennchen

from gettext.

dkuku avatar dkuku commented on June 14, 2024

@whatyouhide
I just did a quick search and there are multiple types of comments:

white-space
#  translator-comments
#. extracted-comments
#: reference…
#, flag…
#| msgid previous-untranslated-string
msgid untranslated-string
msgstr translated-string

And the example on wikipedia suggests that there are also common prefixes used which I think can be a good fit for it:

#. TRANSLATORS: %s contains the user's name as specified in Preferences
#, c-format
#: src/name.c:36
msgid "My name is %s.\n"
msgstr ""

from gettext.

whatyouhide avatar whatyouhide commented on June 14, 2024

@dkuku we already support many of those comments. I’m talking about whether GNU Gettext does something specific to examples and binding documentation.

from gettext.

dkuku avatar dkuku commented on June 14, 2024

I'm afraid this is not supported by gettext

from gettext.

whatyouhide avatar whatyouhide commented on June 14, 2024

Gotcha! Then, for now I'd prefer to keep things simple and keep this closer to GNU Gettext. You can still achieve something very close to this with the comment macro. Post 1.0 of Gettext we might revisit this, but for now we really don't have the bandwidth to address this. Thanks for the proposal! 💟

from gettext.

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.