News: Move welcome author definition so it doesn't get tagged in the wrong bundle

This commit is contained in:
zzz
2021-05-05 11:26:34 -04:00
parent f77677f1f4
commit 4bfca43e9c

View File

@@ -49,6 +49,7 @@ public class NewsManager implements ClientApp {
public static final String APP_NAME = "news";
private static final String BUNDLE_NAME = "net.i2p.router.news.messages";
private static final String WELCOME_AUTHOR = "I2P Development Team";
/**
* @param args ignored
@@ -211,7 +212,7 @@ public class NewsManager implements ClientApp {
//rv.get(0).updated = RFC3339Date.parse3339Date("2015-01-01");
rv.get(0).updated = _context.clock().now();
// Tagged in initialNews.xml inside a comment
rv.get(0).authorName = Translate.getString("I2P Development Team", _context, BUNDLE_NAME);
rv.get(0).authorName = Translate.getString(WELCOME_AUTHOR, _context, BUNDLE_NAME);
} else {
if (_log.shouldWarn())
_log.warn("failed to load initial news");