X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fi18n%2FI18n.java;h=4c1ccebaa4cb59fa6f745c0d09cc4a9ed10043c0;hb=953de352675a4ad91fe307d816a4ea7780c94274;hp=1194473fcbdcda2e3d686fd8c703e6c4b813d67b;hpb=efb64e003c7c2df5317566bbf3fd01e62162f1dc;p=jSite.git diff --git a/src/de/todesbaum/jsite/i18n/I18n.java b/src/de/todesbaum/jsite/i18n/I18n.java index 1194473..4c1cceb 100644 --- a/src/de/todesbaum/jsite/i18n/I18n.java +++ b/src/de/todesbaum/jsite/i18n/I18n.java @@ -1,6 +1,5 @@ /* - * jSite - a tool for uploading websites into Freenet - * Copyright (C) 2006 David Roden + * jSite - I18n.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,7 +24,7 @@ import java.util.ResourceBundle; /** * Maps i18n keys to translated texts, depending on a current locale. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class I18n { @@ -38,7 +37,7 @@ public class I18n { /** * Returns the currently set locale. - * + * * @return The current locale */ public static Locale getLocale() { @@ -50,7 +49,7 @@ public class I18n { /** * Sets the current locale. - * + * * @param locale * The new current locale */ @@ -61,7 +60,7 @@ public class I18n { /** * Returns the resource bundle for the current locale. - * + * * @return The resource bundle for the current locale */ public static ResourceBundle getResourceBundle() { @@ -70,7 +69,7 @@ public class I18n { /** * Returns the resource bundle for the given locale. - * + * * @param locale * The locale to get the resource bundle for * @return The resource bundle for the given locale @@ -83,7 +82,7 @@ public class I18n { * Retrieves a translated text for the given i18n key. If the resource * bundle for the current locale does not have a translation for the given * key, the default locale is tried. If that fails, the key is returned. - * + * * @param key * The key to get the translation for * @return The translated value, or the key itself if not translation can be