package org.puller;

import org.kohsuke.args4j.Localizable;

import java.util.Locale;

public class LocalizedString implements Localizable {
    private final String msg;

    public LocalizedString(final String msg) {
        this.msg = msg;
    }

    @Override
    public String formatWithLocale(final Locale locale, final Object... args) {
        return String.format(locale, msg, args);
    }

    @Override
    public String format(final Object... args) {
        return formatWithLocale(Locale.getDefault(), args);
    }
}

@@ -54,16 +54,48 @@
 zable;%0A%0A
+import java.text.MessageFormat;%0A
 import j
@@ -388,30 +388,29 @@
 urn 
-String.format(locale, 
+MessageFormat.format(
 msg,

Use MessageFormat to format localized strings