GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revive i18n of @name and @description · Issue #3089 · greasemonkey/greasemonkey

Revive i18n of @name and @description #3089

New issue
Copy link
New issue
Copy link
Closed
#3090
Closed
Revive i18n of @name and @description#3089
#3090
Copy link
Milestone
4.11

Description

@esperecyan
esperecyan
opened on Oct 4, 2020
Issue body actions

I would like to see the localization feature that existed in Greasemonkey 3.x implemented.

https://wiki.greasespot.net/Metadata_Block#.40name
https://wiki.greasespot.net/Metadata_Block#.40description

As of Greasemonkey 2.2: can be localized for multiple languages, for example:

// @name       Example Script
// @name:cs    Uživatelské skripty
// @name:es-MX Ejemplo Script 
// @name:ru    Пользовательские скрипты

Add a colon and the locale code, which is the ISO 639 language code and optionally a hyphen and ISO 3166 country code, when disambiguation is necessary. When the user's browser is configured with the matching primary language, that value will be displayed instead.

It has been already implemented in Violentmonkey and Tampermonkey, as well as in the repository “Greasy Fork”.
https://violentmonkey.github.io/api/metadata-block/
https://greasyfork.org/help/meta-keys

Activity

  1. arantius commented on Oct 4, 2020

    @arantius
    arantius
    on Oct 4, 2020
    Collaborator
    More actions

    This should be straightforward, the values are parsed out and saved ( https://github.com/greasemonkey/greasemonkey/blob/master/src/parse-user-script.js#L121 ). They're just never read. Pull requests welcome; please make sure to add unit tests as well (localization is very hard to test by hand).

  2. arantius
    closed this as completedin #3090on Jan 18, 2021
  3. arantius
    added this to the 4.11 milestone on Jan 23, 2021
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

    Projects

    No projects

      Milestone

      • 4.11

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.