Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355092

Summary: Problème interface JavaElementLabels_concat_string
Product: [Technology] Babel Reporter: Missing name <johannlegat>
Component: PluginsAssignee: Babel Bugzilla inbox <babel.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kitlo, mistria, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
barre d'état none

Description Missing name CLA 2011-08-18 10:27:27 EDT
Build Identifier: Build id: 20110615-0604

Bonjour.

Sur l'interface Eclipse, dans la barre d'état, dès que je clique sur un fichier (Agent.java du projet projetWeb) il est indiqué : 
pah.gestdu.Agent.java -JavaElementLabels_comma_string=,JavaElementLabels_declseparator_string= :JavaElementLabels_category_separator_string= projetWeb/src

Des caractères sont donc en trop : JavaElementLabels_comma_string=,JavaElementLabels_declseparator_string= :JavaElementLabels_category_separator_string

Pour corriger le problème il faut enlever les lignes suivantes :
JavaElementLabels_concat_string=\ -\
JavaElementLabels_comma_string=,\
JavaElementLabels_declseparator_string=\ :\
JavaElementLabels_category_separator_string=\ 
du fichier : eclipse\plugins\org.eclipse.jdt.ui.nl_fr_3.7.0.v20110723043401.jar\org\eclipse\jdt\internal\ui\JavaUIMessages_fr.properties

Cela va-t-il être corrigé en standard?

Reproducible: Always

Steps to Reproduce:
1. Installation Eclipse J2ee
2. Mise à jour babel 0.9.0 de la totalité "FRENCH" : http://download.eclipse.org/technology/babel/update-site/R0.9.0/indigo
3.
Comment 1 Missing name CLA 2011-08-18 10:29:27 EDT
Created attachment 201720 [details]
barre d'état
Comment 2 Remy Suen CLA 2011-08-18 10:37:45 EDT
Parlez-vous anglais?
Comment 3 Missing name CLA 2011-08-18 10:47:07 EDT
a little
Comment 4 Mickael Istria CLA 2011-08-18 10:47:56 EDT
Translated and moved
----

Build Identifier: Build id: 20110615-0604

Hello

With Eclipse IDE, in the status bar, when I click on a file (Agent.java from a web projects) I can see : 
  pah.gestdu.Agent.java
  -JavaElementLabels_comma_string=,JavaElementLabels_declseparator_string=
  :JavaElementLabels_category_separator_string= projetWeb/src

Some characters are overhead
  JavaElementLabels_comma_string=,JavaElementLabels_declseparator_string=
  :JavaElementLabels_category_separator_string

In order to fix the issue, one has to remove the following lines
  JavaElementLabels_concat_string=\ -\
  JavaElementLabels_comma_string=,\
  JavaElementLabels_declseparator_string=\ :\
  JavaElementLabels_category_separator_string=\ 
from file
  eclipse\plugins\org.eclipse.jdt.ui.nl_fr_3.7.0.v20110723043401.jar\org\eclipse\jdt\internal\ui\JavaUIMessages_fr.properties

Can it be corrected ?

Reproducible: Always

Steps to Reproduce:
1. Install Eclipse JEE
2. Install Babel French 0.9.0
http://download.eclipse.org/technology/babel/update-site/R0.9.0/indigo
3.
Comment 5 Kit Lo CLA 2011-10-12 09:26:43 EDT
The problem was introduced during the initial import of translations into Babel. The 4 strings in the JDT file are supposed to have a space at the end of each string. For safety reasons, developer added the escape character "\" to escape the space character.

JavaElementLabels_concat_string=\ -\ 
JavaElementLabels_comma_string=,\ 
JavaElementLabels_declseparator_string=\ :\ 
JavaElementLabels_category_separator_string=\ 

During the initial import of translations into Babel, extra spaces at the end of strings were trimmed off. (I remember the problem was later fixed.)

Without the space at the end of the string, Java treated the escape character "\" as a continuation character, and concatenated the next few strings.

I added the space character back to the 4 strings in French and all other languages in Babel. Problem is fixed in latest nightly build: http://build.eclipse.org/technology/babel/babel_language_packs/N20111012-0400/indigo/BabelLanguagePack-eclipse-fr_3.7.0.v20111012043401.zip