Skip to content

Commit

Permalink
Externalize the 'difference/s' text eclipse-platform#1236
Browse files Browse the repository at this point in the history
Externalization of text used in "Textmergeviewer.java" related to number
of differences shown in toolbar of compare editor using
MessageFormat.format
Version bump to 3.10.100
  • Loading branch information
lathapatil committed Mar 19, 2024
1 parent c74c800 commit b726c79
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion team/bundles/org.eclipse.compare/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.compare; singleton:=true
Bundle-Version: 3.10.0.qualifier
Bundle-Version: 3.10.100.qualifier
Bundle-Activator: org.eclipse.compare.internal.CompareUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5421,8 +5421,7 @@ private void updateToolbarLabel() {
int differenceCount = fMerger.changesCount();
if (tbm != null) {

String label = differenceCount > 1 ? differenceCount + " Differences" //$NON-NLS-1$
: differenceCount == 1 ? differenceCount + " Difference" : "No Difference"; //$NON-NLS-1$ //$NON-NLS-2$
String label = MessageFormat.format(CompareMessages.TextMergeViewer_differences, differenceCount);
LabelContributionItem labelContributionItem = new LabelContributionItem(DIFF_COUNT_ID,
label);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private CompareMessages() {
public static String TextMergeViewer_atEnd_message;
public static String TextMergeViewer_atBeginning_title;
public static String TextMergeViewer_atBeginning_message;
public static String TextMergeViewer_differences;
public static String CompareNavigator_atEnd_title;
public static String CompareNavigator_atEnd_message;
public static String CompareNavigator_atBeginning_title;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ TextMergeViewer_accessible_right={0} Right: {1}
TextMergeViewer_atBeginning_message= Beginning of document reached. Continue from end?
TextMergeViewer_accessible_ancestor=Ancestor: {0}

TextMergeViewer_differences={0,choice,0#No difference|1#1 difference|1<{0} differences}

CompareNavigator_atEnd_title= End Reached
CompareDialog_commit_button=C&ommit
CompareDialog_error_title=Error Saving Changes
Expand Down

0 comments on commit b726c79

Please sign in to comment.