From ec9484e931d521ccb97da090a0a91986a6b9a5eb Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Tue, 28 Aug 2012 14:59:53 -0700 Subject: Minor tweaks and typos Change-Id: I46630c51a4f055222fb614d73419cb28272b87de --- .../adt/internal/editors/layout/configuration/LocaleManager.java | 2 +- .../src/com/android/ide/eclipse/adt/internal/lint/LintFix.java | 2 +- .../src/com/android/tools/lint/checks/TranslationDetector.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/LocaleManager.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/LocaleManager.java index 60120ee..e4da6e8 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/LocaleManager.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/LocaleManager.java @@ -758,7 +758,7 @@ public class LocaleManager { // "pa": Panjabi, -> Pakistan, India sLanguageToCountry.put("pa", "PK"); //$NON-NLS-1$ //$NON-NLS-2$ - sLanguageNames.put("pa", "Panjabi,"); //$NON-NLS-1$ + sLanguageNames.put("pa", "Panjabi"); //$NON-NLS-1$ // "pl": Polish -> Poland sLanguageToCountry.put("pl", "PL"); //$NON-NLS-1$ //$NON-NLS-2$ diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/LintFix.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/LintFix.java index 1ab02c3..c02c303 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/LintFix.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/LintFix.java @@ -106,7 +106,7 @@ abstract class LintFix implements ICompletionProposal { public String getAdditionalProposalInfo() { Issue issue = EclipseLintClient.getRegistry().getIssue(mId); if (issue != null) { - return issue.getExplanation().replace("\n", "
"); //$NON-NLS-1$ //$NON-NLS-2$ + return issue.getExplanationAsHtml(); } return null; diff --git a/lint/libs/lint_checks/src/com/android/tools/lint/checks/TranslationDetector.java b/lint/libs/lint_checks/src/com/android/tools/lint/checks/TranslationDetector.java index c796d26..a501e05 100644 --- a/lint/libs/lint_checks/src/com/android/tools/lint/checks/TranslationDetector.java +++ b/lint/libs/lint_checks/src/com/android/tools/lint/checks/TranslationDetector.java @@ -74,7 +74,7 @@ public class TranslationDetector extends ResourceXmlDetector { "If an application has more than one locale, then all the strings declared in " + "one language should also be translated in all other languages.\n" + "\n" + - "If the string should *not* be translated, you can add the attribute\n" + + "If the string should *not* be translated, you can add the attribute " + "`translatable=\"false\"` on the `` element, or you can define all " + "your non-translatable strings in a resource file called `donottranslate.xml`. " + "Or, you can ignore the issue with a `tools:ignore=\"MissingTranslation\"` " + -- cgit v1.1