diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-03-03 11:49:18 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-03-03 11:49:28 +0100 |
commit | 25ed28a254c799d17e7dd4ec55e171cd183e7ad3 (patch) | |
tree | a70865d5e7dfeb738ebf02ebb37e85c64884a2ae /sonar-plugin-api | |
parent | 2a45eebab6c09fb25b4401449a3221c6d931a652 (diff) | |
download | sonarqube-25ed28a254c799d17e7dd4ec55e171cd183e7ad3.tar.gz sonarqube-25ed28a254c799d17e7dd4ec55e171cd183e7ad3.zip |
SONAR-4996 Update work duration message and move code to i18n API
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java index 7c7bdd3495f..c11356bd7c0 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java @@ -102,4 +102,13 @@ public interface I18n extends ServerComponent, BatchComponent { */ String formatDate(Locale locale, Date date); + /** + * Return the formatted work duration. + * <br> + * Example : format(Locale.ENGLISH, WorkDuration.create(10, 2, 0, 8)) -> 10d 2h + * + * @since 4.3 + */ + String formatWorkDuration(Locale locale, long duration); + } |