* Translations: Move country names to a new resource bundle

This commit is contained in:
zzz
2013-10-14 15:29:12 +00:00
parent 0c0a25b038
commit 3ec602865d
54 changed files with 15811 additions and 22706 deletions

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 3;
public final static long BUILD = 4;
/** for example "-test" */
public final static String EXTRA = "";

View File

@@ -323,6 +323,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
}
private static final String BUNDLE_NAME = "net.i2p.router.web.messages";
private static final String COUNTRY_BUNDLE_NAME = "net.i2p.router.countries.messages";
/** Provide a consistent "look" for displaying router IDs in the console */
@Override
@@ -333,7 +334,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
if (c != null) {
String countryName = getCountryName(c);
if (countryName.length() > 2)
countryName = Translate.getString(countryName, _context, BUNDLE_NAME);
countryName = Translate.getString(countryName, _context, COUNTRY_BUNDLE_NAME);
buf.append("<img height=\"11\" width=\"16\" alt=\"").append(c.toUpperCase(Locale.US)).append("\" title=\"");
buf.append(countryName);
buf.append("\" src=\"/flags.jsp?c=").append(c).append("\"> ");