-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim whitespaces at the end of line in es_ES Messages.properties file (JENKINS-58842) workaround #4145
Conversation
Trim whitespaces at the end of line
The PR title does not represent what the PR really does. It makes sense to trim spaces, but it has nothing to do with IAM roles |
Hello @diegombeltran . First of all, thank you for your contribution, appreciated. Welcome to the Jenkins community. I see a lot of changes in the diff that effectively doesn't change anything. Could you please remove these changes from the PR to leave it cleaner? And change the title as Oleg suggested? Have you checked that the messages in other languages (English for example) don't have these blanks at the end? Maybe the message is concatenated to another one, so the blank at the end is needed. Gracias! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jenkinsci/aws-credentials-plugin#69 for a proper fix of the issue. I do not mind merging this pull request as well since it really cleans up the localization. But it is definitely not a root cause of JENKINS-58842
@@ -120,11 +120,11 @@ Job.NOfMFailed={0} de las {1} \u00faltimas ejecuciones fallaron. | |||
Job.NoRecentBuildFailed=No hay ejecuciones recientes con fallos. | |||
Job.Pronoun=Proyecto | |||
Job.minutes=Min | |||
Job.NoRenameWhileBuilding=No es posible renombrar un proyecto mientras se est� ejecutando. | |||
Job.NoRenameWhileBuilding=No es posible renombrar un proyecto mientras se está ejecutando. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub refuses to show a diff here, but it seems you changed the encoding to UTF-8. It must be ISO-8859-1. Acc. to jshell
,
var p = new Properties()
p.load(new java.io.FileInputStream("/…/jenkinsci/jenkins/core/src/main/resources/hudson/model/Messages_es.properties"))
p.getProperty("Job.NoRenameWhileBuilding")
returns
No es posible renombrar un proyecto mientras se está ejecutando.
while the equivalent passing in the file as patched here produces mojibake
No es posible renombrar un proyecto mientras se está ejecutando.
Safest to throw away this modification and start over with an editor or tool that can safely handle ISO-8859-1 text.
Note that Java supports loading Perhaps we should deprecate use of |
That should be the problem, GitHub is writing the same text, no matter which encoding the file has. Please double-check the encoding of the file. |
Hello, First of all thank you for spending time on this. I'm currently on my holidays far from computers, I will check this on Saturday or so. See you! |
See kohsuke/localizer#20 for example. CC @ikedam |
@diegombeltran did you eventually have the opportunity to spend some time on this? I'm going to propose it for close but please feel free to reach in case you think otherwise. |
No response from author, so closing. |
Trim whitespaces at the end of line.
See JENKINS-58842.
Proposed changelog entries
Submitter checklist
* Use the
Internal:
prefix if the change has no user-visible impact (API, test frameworks, etc.)