[JENKINS-41891] Resource root url cleanup - #4294
Conversation
a rose by any other name may smell as sweet, but no one would know to buy it.
we make an exception for the label itself
MRamonLeon
left a comment
There was a problem hiding this comment.
Why the removal of the root word?
|
It's the string that would make sense to normal people. |
MRamonLeon
left a comment
There was a problem hiding this comment.
I don't feel confident to approve this as I'm not a native speaker. I only want to mention that the user here is the admin, as you know, so maybe this adjective (root) has some sense in this context. Anyway, you missed some resource root words, for example:
- ...resource root URL candidate...
- Can only set resource root URL...
Not sure if it's deliberated.
Thanks
|
There are four things:
The only person who cares about the resource root is the jenkins admin, and therefore using the word Everyone, including users and admins, deal with the Jenkins URL (it's a thing they visit directly). |
|
In cases where developer documentation is concerned i feel as though |
jvz
left a comment
There was a problem hiding this comment.
Reads better now. I like your idea of dropping the word "root" here as it gets confusing what with two different root URL variables in the system that aren't exactly the same thing.
|
Interestingly, there are multiple locations where we call the "Jenkins URL" the "Jenkins root URL" (that are being cleaned up here), I got the impression that "Jenkins URL" was used consistently. The benefit of going with this approach is that the term is simpler. The drawback is that there are many URLs pointing to Jenkins, and this is only the root (there is the term again) of that set of URLs. Just like the resource root URL is the root common to all individual resource URLs; so there could be confusion ("Which Jenkins URL? Which resource URL?"). I'm not convinced this direction is the better choice, but I'm not strongly against it either. |
oleg-nenashev
left a comment
There was a problem hiding this comment.
I think it is a reasonable improvement into the terminology. I do not feel strongly, but why not?
I would recommend to submit a pull request against https://jenkins.io/doc/book/glossary/ for "Jenkins URL" and "Resource Root URL" so that we can document the terms.
| <j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form"> | ||
| <f:section title="${%Serve resource files from another domain}"> | ||
| <f:entry title="${%Resource root URL}" field="url"> | ||
| <f:entry title="${%Resource Root URL}" field="url"> |
There was a problem hiding this comment.
Note that it will break external localizations like Chinese Localization plugin. Heads-up to @LinuxSuRen
There was a problem hiding this comment.
How about just improve it in the English properties?
There was a problem hiding this comment.
@LinuxSuRen: No.
Would it help if I made a PR to update your thing?
There was a problem hiding this comment.
@LinuxSuRen: Imagine we misspelled "Chinese" as _("Cihnese") and that was the localization key. You could say "Why don't you just fix the English properties file to say Chinese?", but that would be wrong. And I'd be shocked if you actually suggested this.
What I'm doing here is effectively fixing the canonical spelling of terms. In part to prevent future confusion. One doesn't do that by wallpapering over it in a localization.
In a past life, I maintained a complete retranslation of a product into fixed English. At a certain point, the product management acknowledged that I was better than they were and agreed to try to accept my input.
If you need help updating your localization, I'm happy to make the changes on your side.
Beyond that, I am not remotely interested in stop energy here.
| a(name: "resource-root-url") | ||
| form(method: "post", action: "${rootURL}/${my.url}/act") { | ||
| f.submit(name: 'redirect', value: _("Go to resource root URL configuration")) | ||
| f.submit(name: 'redirect', value: _("Configure resource root URL")) |
There was a problem hiding this comment.
Impacts localizations if any
There was a problem hiding this comment.
How about just improve it in the English properties?
There was a problem hiding this comment.
@oleg-nenashev: There appear to be 0 in tree localizations.
@LinuxSuRen: I'm trying to change the meaning, so if someone actually did translate this message, I'd like them to think about the new key and try translating the new spirit.
There was a problem hiding this comment.
I was wondering if you could file an issue on localization-zh-cn-plugin when this PR closed. Thanks.
|
@jsoref can you please review the conflicts? Thanks |
|
@alecharp: I'm trying to address all of the items you tagged me on. hopefully i don't need to comment on each... |
|
@oleg-nenashev @LinuxSuRen could you please have a look to @jsoref 's answers? Thanks! |
See JENKINS-41891.
Proposed changelog entries
Submitter checklist
* Use the
Internal:prefix if the change has no user-visible impact (API, test frameworks, etc.)Desired reviewers
@daniel-beck