X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fi18n%2FI18n.java;h=4647ddc50d57bf20902067e715bd6ed79d7aa497;hb=002fa1191f0a6ee660a88b1eac8f11cecc1b925f;hp=8223a0b772fbdc2abf7193c1f209221267c56353;hpb=cf127faffabd3f07b0acc6de9ea746059d571b56;p=jSite2.git
diff --git a/src/net/pterodactylus/jsite/i18n/I18n.java b/src/net/pterodactylus/jsite/i18n/I18n.java
index 8223a0b..4647ddc 100644
--- a/src/net/pterodactylus/jsite/i18n/I18n.java
+++ b/src/net/pterodactylus/jsite/i18n/I18n.java
@@ -41,7 +41,7 @@ import net.pterodactylus.util.logging.Logging;
/**
* Class that handles i18n.
- *
+ *
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/
public class I18n {
@@ -78,7 +78,7 @@ public class I18n {
/**
* Returns the translated value for a key. The translated values may contain
* placeholders that are replaced with the given parameters.
- *
+ *
* @see MessageFormat
* @param key
* The key to get
@@ -106,7 +106,7 @@ public class I18n {
* Returns the keycode from the value of the given key. You can specify the
* constants in {@link KeyEvent} in the properties file, e.g. VK_S for the
* keycode âsâ when used for mnemonics.
- *
+ *
* @param key
* The key under which the keycode is stored
* @return The keycode
@@ -133,7 +133,7 @@ public class I18n {
/**
* Returns a key stroke for use with swing accelerators.
- *
+ *
* @param key
* The key of the key stroke
* @return The key stroke, or null
if no key stroke could be
@@ -180,7 +180,7 @@ public class I18n {
/**
* Sets the current locale.
- *
+ *
* @param newLocale
* The new locale to use
*/
@@ -190,7 +190,7 @@ public class I18n {
/**
* Sets the current locale.
- *
+ *
* @param newLocale
* The new locale to use
* @param notify
@@ -226,7 +226,7 @@ public class I18n {
/**
* Returns the current locale.
- *
+ *
* @return The current locale
*/
public static Locale getLocale() {
@@ -235,7 +235,7 @@ public class I18n {
/**
* Finds all available locales.
- *
+ *
* @return All available locales
*/
public static List findAvailableLanguages() {
@@ -247,7 +247,7 @@ public class I18n {
/**
* Registers the given I18nable to be updated when the language is changed.
- *
+ *
* @param i18nable
* The i18nable to register
*/
@@ -258,7 +258,7 @@ public class I18n {
/**
* Deregisters the given I18nable to be updated when the language is
* changed.
- *
+ *
* @param i18nable
* The i18nable to register
*/
@@ -274,7 +274,7 @@ public class I18n {
* Notifies all registered {@link I18nable}s that the language was changed.
*/
private static void notifyI18nables() {
- for (I18nable i18nable: i18nables) {
+ for (I18nable i18nable : i18nables) {
i18nable.updateI18n();
}
}