Skip to content

Footnotes extenssion text not internationalised #610

Closed

Description

@jorgesumle

There is some text in English and no easy way to customize it. Concretely the text Jump back to footnote %d in the text" used in the title attribute in the content of the footnote.

I think the extenssion should detect the language of the user and use a corresponding string. The extenssion is assuming everybody speaks English and doesn't say anything about that in the readme. What do you think?

Activity

  1. facelessuser commented on Dec 15, 2017

    @facelessuser
    Collaborator

    Yeah, I personally think there should be a way to customize it.

    I think the extenssion should detect the language of the user and use a corresponding string.

    I'm personally against such an approach as that pushes a bunch of logic into the extension that I think shouldn't be there. I would argue that you should just be able to customize the string directly via an extension option. That leaves it to the user to explicitly specify what they want instead of the extension trying to detect a language and look for the proper translation (which may not be available) etc.

  2. waylan commented on Dec 15, 2017

    @waylan
    Member

    I agree with @facelessuser. I'm not interested in maintaining a long list of translations. Adding an option for the user to provide their own string both addresses the need and matches the pattern used in other extensions. Of course, PRs are welcome.

  3. jorgesumle commented on Dec 21, 2017

    @jorgesumle
    ContributorAuthor
  4. waylan commented on Dec 21, 2017

    @waylan
    Member

    @jorgesumle we follow the GitHub workflow (we review, commit on and have automated tests that run from GitHub PRs). Please submit your Pull Request here in GitHub.

  5. jorgesumle commented on Dec 21, 2017

    @jorgesumle
    ContributorAuthor

    @jorgesumle we follow the GitHub workflow

    OK, I understand and respect that. But note that I sent the pull request using a standard Git workflow that works for every platform, see the Git documentation: https://www.git-scm.com/docs/git-request-pull

    I tried the GitHub way, but I got a weird error.

    $ hub pull-request -h Python-Markdown:master
    Aborted: 1 commits are not yet pushed to jorgesumle/master
    (use `-f` to force submit a pull request anyway)

    But as you can see the commit is here: https://github.com/jorgesumle/markdown

    Maybe you can help me figure it out. Else you'll have to wait until I sort that out. GitHub is a pain in the ass. Maybe it's a hub bug or I'm doing something wrong.

  6. waylan commented on Dec 21, 2017

    @waylan
    Member

    Hmm, $ hub pull-request -h Python-Markdown:master is not a standard git command so I'm not sure what you were trying to do. I just use standard git on the command line and push my changes to GitHub. The fact that I'm using GitHub is completely transparent, except that once GitHub sees a change to my personal clone, it offers to create a pull request (from the project's home page) which I do with only a couple mouse clicks.

    In any event, I work on Python-Markdown in my spare time which is rather limited these days. I don't have time to go chasing suggested code changes elsewhere, especially for a feature I have no need for. I'm happy to incorporate the feature if you do the work. Or you will have to wait till I have the time and don't have anything higher on my priority list to work on.

  7. jorgesumle commented on Dec 22, 2017

    @jorgesumle
    ContributorAuthor

    For the record, I could solve my issue following the online documentation example of hub. The man page confused me a little bit.

    Correction to myself, it should be 'extension' not extenssion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions