Giter VIP home page Giter VIP logo

locale-plugin's Introduction

Locale Plugin for Jenkins

Build Status Coverage LOC Jenkins Plugin GitHub release GitHub license

This plugin controls the language of Jenkins.

Normally, Jenkins honors the browser's language preference if a translation is available for the preferred language, and uses the system default locale for messages during a build. This plugin allows you to:

  • override the system default locale to the language of your choice
  • ignore browser's language preference completely

This feature is sometimes convenient for multi-lingual environment.

Usage

Under Manage Jenkins > Configure System there should be a "Locale" section.

Here you can enter the Default Language: this should be a language code or locale code like "fr" (for French), or "de_AT" (German, in Austria).

This value will be used by the system, for example, for messages that are printed to the log during a build (assuming that the Jenkins features and plugins that you're using have been translated into the specified language).

To additionally force this language on all users, overriding their browser language, you can check the "Ignore browser preference and force this language to all users" option.

JCasC configuration example:

appearance:
  locale:
    systemLocale: en
    ignoreAcceptLanguage: true

Changelog

License

Licensed under MIT, see LICENSE

locale-plugin's People

Contributors

alanharder avatar dependabot[bot] avatar ganesh-sadanala avatar github-actions[bot] avatar icojb25 avatar janfaracik avatar jetersen avatar jonesbusy avatar linuxsuren avatar ndeloof avatar oleg-nenashev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

locale-plugin's Issues

No Saction Locale - Under Manage Jenkins > Configure System there should be a "Locale" section.

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux, only controler - jenkins version 2.459

Reproduction steps

  1. Install latest version of plugin and in Under Manage Jenkins > Configure System there should be a "Locale" section. there is no section Locale

Expected Results

Under Manage Jenkins > Configure System there should be a "Locale" section.

Actual Results

No locale in Under Manage Jenkins > Configure System there should be a "Locale" section.

Anything else?

No response

Are you interested in contributing a fix?

No response

Not working on Jenkins version 2.440.1

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

This plugin not working on Jenkins version 2.440.1 or higher than 2.426.2

Reproduction steps

Upgrade jenkins version to 2.440.1 will see plugin report error

Expected Results

plugin should work

Actual Results

not able to get plugin work and it will lead jenkins upgrade failed

Anything else?

No response

Are you interested in contributing a fix?

No response

Documentation indicates wrong place for locale section

Describe your use-case which is not covered by existing documentation.

In the documentation it is indicated that Locale section is under Manage Jenkins > Configure System however in my case it was under Manage Jenkins >Appearance. I am using version 495.v4606fdb_134ef.

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

Are you interested in contributing to the documentation?

No response

Add help for the locale field

What feature do you want to see added?

It is totally unclear what you have to enter in the locale field. Only from the plugin page I could deduct that en is valid.
But what about e.g. en_US does it work?
So it would be good if the locale field gets some help with samples of allowed values. Ideally the locale field is a dropdown where you select a language but specifying the locale can be quite tricky afaik.

Upstream changes

No response

Are you interested in contributing this feature?

No response

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.