Revision: 9235
http://languagetool.svn.sourceforge.net/languagetool/?rev=9235&view=rev
Author: dnaber
Date: 2013-01-26 22:46:59 +0000 (Sat, 26 Jan 2013)
Log Message:
-----------
whitespace cleanup only (tab -> spaces)
Modified Paths:
--------------
trunk/languagetool/languagetool-core/src/main/java/org/languagetool/Language.java
Modified:
trunk/languagetool/languagetool-core/src/main/java/org/languagetool/Language.java
===================================================================
---
trunk/languagetool/languagetool-core/src/main/java/org/languagetool/Language.java
2013-01-26 22:45:54 UTC (rev 9234)
+++
trunk/languagetool/languagetool-core/src/main/java/org/languagetool/Language.java
2013-01-26 22:46:59 UTC (rev 9235)
@@ -271,15 +271,15 @@
* if available. Otherwise, get the untranslated name.
*/
public final String getTranslatedName(final ResourceBundle messages) {
- try {
- return messages.getString(getShortNameWithVariant());
- } catch (final MissingResourceException e) {
- try {
- return messages.getString(getShortName());
- } catch (final MissingResourceException e1) {
- return getName();
- }
- }
+ try {
+ return messages.getString(getShortNameWithVariant());
+ } catch (final MissingResourceException e) {
+ try {
+ return messages.getString(getShortName());
+ } catch (final MissingResourceException e1) {
+ return getName();
+ }
+ }
}
/**
@@ -289,11 +289,11 @@
* @since 1.8
*/
public final String getShortNameWithVariant() {
- String name = getShortName();
- if (getCountryVariants().length == 1) {
- name += "-" + getCountryVariants()[0];
- }
- return name;
+ String name = getShortName();
+ if (getCountryVariants().length == 1) {
+ name += "-" + getCountryVariants()[0];
+ }
+ return name;
}
@@ -342,10 +342,10 @@
* @return A list of all languages, including external ones and country
variants (e.g. en-US)
*/
public static List<Language> getAllLanguages() {
- final List<Language> langList = new ArrayList<Language>();
+ final List<Language> langList = new ArrayList<Language>();
Collections.addAll(langList, LANGUAGES);
- langList.addAll(externalLanguages);
- return langList;
+ langList.addAll(externalLanguages);
+ return langList;
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits