Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] pre-translation fixes

Hi Tanya,

Did you test these to make sure they still look correctly. I'm not sure 
where all they string show up and don't really have the time to go check 
them all.

Thanks,
Doug Schaefer
Ottawa Lab, IBM Rational Software Division



Tanya Wolff/Ottawa/IBM@IBMCA 
Sent by: cdt-patch-admin@xxxxxxxxxxx
03/23/2005 10:53 AM
Please respond to
cdt-patch


To
cdt-patch@xxxxxxxxxxx
cc

Subject
[cdt-patch] pre-translation fixes







There is a problem with single quotes in messages which are formatted with 
MessageFormat (message contains a {0}). These single quotes need to be 
escaped with another single quote, not a backslash. If the message is not 
formatted with MessageFormat, then single quotes are ok. 

Thanks,
Tanya 

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt-core/org.eclipse.cdt.ui/ChangeLog,v
retrieving revision 1.660
diff -u -r1.660 ChangeLog
--- ChangeLog	20 Mar 2005 22:45:16 -0000	1.660
+++ ChangeLog	23 Mar 2005 15:45:23 -0000
@@ -1,3 +1,7 @@
+2005-03-23 Tanya wolff
+	Fix for a single quote problem.
+	* refactor/org.eclipse.cdt.internal.corext.refactoring/refactoring.properties
+	
 2005-03-20 Alain Magloire
 	Fix for 77978.
 	* src/org/eclipse/cdt/internal/ui/actions/AddBlockCommentAction.java
Index: refactor/org/eclipse/cdt/internal/corext/refactoring/refactoring.properties
===================================================================
RCS file: /home/tools/org.eclipse.cdt-core/org.eclipse.cdt.ui/refactor/org/eclipse/cdt/internal/corext/refactoring/refactoring.properties,v
retrieving revision 1.9
diff -u -r1.9 refactoring.properties
--- refactor/org/eclipse/cdt/internal/corext/refactoring/refactoring.properties	17 Jun 2004 19:36:03 -0000	1.9
+++ refactor/org/eclipse/cdt/internal/corext/refactoring/refactoring.properties	23 Mar 2005 15:45:30 -0000
@@ -426,7 +426,7 @@
 PullUpRefactoring.method_not_accessible=Method ''{0}'' referenced in one of the pulled elements is not accessible from type ''{1}''
 PullUpRefactoring.different_method_return_type=Method ''{0}'' declared in type''{1}'' has a different return type than its pulled up counterpart, which will result in compile errors if you proceed
 PullUpRefactoring.different_field_type=Field ''{0}'' declared in type ''{1}'' has a different type than its pulled up counterpart
-PullUpRefactoring.static_method=Method ''{0}'' declared in type ''{1}'' is \'static\', which will result in compile errors if you proceed
+PullUpRefactoring.static_method=Method ''{0}'' declared in type ''{1}'' is ''static'', which will result in compile errors if you proceed
 PullUpRefactoring.lower_visibility=Method ''{0}'' declared in type ''{1}'' has visibility lower than \'protected\', which will result in compile errors if you proceed
 PullUpRefactoring.preview=Preparing preview
 PullUpRefactoring.calculating_required=Calculating required members
@@ -454,14 +454,14 @@
 ChangeSignatureRefactoring.duplicate_name=Duplicate parameter name: {0}
 
 MoveMembersRefactoring.Move_Members=Move Members
-MoveMembersRefactoring.compile_errors=Operation can't be performed due to compile errors in ''{0}''. Please fix errors first.
+MoveMembersRefactoring.compile_errors=Operation can''t be performed due to compile errors in ''{0}''. Please fix errors first.
 MoveMembersRefactoring.deleteMembers= delete members
 MoveMembersRefactoring.addMembers= add members
 MoveMembersRefactoring.referenceUpdate= update reference to moved member
 MoveMembersRefactoring.Checking_preconditions=Checking preconditions...
 MoveMembersRefactoring.static_declaration=Static members can be declared only in top level or static types.
 MoveMembersRefactoring.multi_var_fields=Currently, only field declarations with single variable declaration fragments can be moved.
-MoveMembersRefactoring.only_public_static_final=Only ''public static final'' fields with variable initializers can be moved to an interface.
+MoveMembersRefactoring.only_public_static_final=Only 'public static final' fields with variable initializers can be moved to an interface.
 MoveMembersRefactoring.Object=Move is not allowed on members declared in 'java.lang.Object'.
 MoveMembersRefactoring.binary=Pull up is not allowed on members of binary types.
 MoveMembersRefactoring.read_only=Pull up is not allowed on members of read-only types.
@@ -729,7 +729,7 @@
 ReorgUtils.16=class folder ''{0}''
 ReorgUtils.17=package fragment root ''{0}''
 ReorgUtils.18=type ''{0}''
-ReorgUtils.19=new {0}() '{...'}
+ReorgUtils.19=new {0}() ''{...''}
 ReorgUtils.20=anonymous type ''{0}''
 DeleteChangeCreator.1=Delete elements
 DeleteRefactoring.1=Analyzing...
@@ -751,7 +751,7 @@
 IntroduceFactory.examiningSelection=Examining selection...
 IntroduceFactory.notAConstructorInvocation=Selected entity is not a constructor invocation or definition.
 #
-IntroduceFactory.noASTNodeForConstructorSearchHit=Can\'t find AST node for constructor search hit @ [''{0}'', ''{1}'']: <''{2}''> in translation unit ''{3}''
+IntroduceFactory.noASTNodeForConstructorSearchHit=Can''t find AST node for constructor search hit @ [''{0}'', ''{1}'']: <''{2}''> in translation unit ''{3}''
 IntroduceFactory.unexpectedInitializerNodeType=Unexpected AST node type for initializer when searching for constructor call: \'''{0}''\' in translation unit ''{1}''
 IntroduceFactory.noConstructorCallNodeInsideFoundVarbleDecl=Couldn\'t find AST node for constructor call inside ''{0}''
 IntroduceFactory.unexpectedASTNodeTypeForConstructorSearchHit=Unexpected AST node type for constructor search hit: ''{0}'' in translation unit ''{1}''

Back to the top