001package org.gwtbootstrap3.extras.fullcalendar.client.ui; 002 003/* 004 * #%L 005 * GwtBootstrap3 006 * %% 007 * Copyright (C) 2013 - 2015 GwtBootstrap3 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023import com.google.gwt.resources.client.TextResource; 024import org.gwtbootstrap3.extras.fullcalendar.client.FullCalendarClientBundle; 025 026/** 027 * Convenient encapsulation of all language options for <code>FullCalendar</code> 028 * 029 * @author Jeff Isenhart 030 * @see http://arshaw.com/fullcalendar/docs/text/lang/ 031 */ 032 033public enum Language { 034 ArabicMorocan("ar-ma", FullCalendarClientBundle.INSTANCE.getArabicMorocan()), 035 Arabic("ar", FullCalendarClientBundle.INSTANCE.getArabic()), 036 Bulgarian("bg", FullCalendarClientBundle.INSTANCE.getBulgarian()), 037 Catalan("ca", FullCalendarClientBundle.INSTANCE.getCatalan()), 038 Czech("cs", FullCalendarClientBundle.INSTANCE.getCzech()), 039 Danish("da", FullCalendarClientBundle.INSTANCE.getDanish()), 040 German("de", FullCalendarClientBundle.INSTANCE.getGerman()), 041 Greek("el", FullCalendarClientBundle.INSTANCE.getGreek()), 042 EnglishAustralian("en-au", FullCalendarClientBundle.INSTANCE.getEnglishAustralian()), 043 EnglishCanadian("en-ca", FullCalendarClientBundle.INSTANCE.getEnglishCanadian()), 044 EnglishBritish("en-gb", FullCalendarClientBundle.INSTANCE.getEnglishBritish()), 045 Spanish("es", FullCalendarClientBundle.INSTANCE.getSpanish()), 046 Farsi("fa", FullCalendarClientBundle.INSTANCE.getFarsi()), 047 Finnish("fi", FullCalendarClientBundle.INSTANCE.getFinnish()), 048 FrenchCanadian("fr-ca", FullCalendarClientBundle.INSTANCE.getFrenchCanadian()), 049 French("fr", FullCalendarClientBundle.INSTANCE.getFrench()), 050 Hindi("hi", FullCalendarClientBundle.INSTANCE.getHindi()), 051 Croatian("hr", FullCalendarClientBundle.INSTANCE.getCroatian()), 052 Hungarian("hu", FullCalendarClientBundle.INSTANCE.getHungarian()), 053 Indonesian("id", FullCalendarClientBundle.INSTANCE.getIndonesian()), 054 Islandic("is", FullCalendarClientBundle.INSTANCE.getIslandic()), 055 Italian("it", FullCalendarClientBundle.INSTANCE.getItalian()), 056 Japanese("ja", FullCalendarClientBundle.INSTANCE.getJapanese()), 057 Korean("ko", FullCalendarClientBundle.INSTANCE.getKorean()), 058 Lithuanian("lt", FullCalendarClientBundle.INSTANCE.getLithuanian()), 059 Latvian("lv", FullCalendarClientBundle.INSTANCE.getLatvian()), 060 Dutch("nl", FullCalendarClientBundle.INSTANCE.getDutch()), 061 NowegianBokmal("no", FullCalendarClientBundle.INSTANCE.getNowegianBokmal()), 062 Polish("pl", FullCalendarClientBundle.INSTANCE.getPolish()), 063 PortugeseBrazil("pt-br", FullCalendarClientBundle.INSTANCE.getPortugeseBrazil()), 064 Portugese("pt", FullCalendarClientBundle.INSTANCE.getPortugese()), 065 Romanian("ro", FullCalendarClientBundle.INSTANCE.getRomanian()), 066 Russian("ru", FullCalendarClientBundle.INSTANCE.getRussian()), 067 Slovak("sk", FullCalendarClientBundle.INSTANCE.getSlovak()), 068 Slovenian("sl", FullCalendarClientBundle.INSTANCE.getSlovenian()), 069 SerbianCyrillic("sr-cyr", FullCalendarClientBundle.INSTANCE.getSerbianCyrillic()), 070 Serbian("sr", FullCalendarClientBundle.INSTANCE.getSerbian()), 071 Sweedish("sv", FullCalendarClientBundle.INSTANCE.getSweedish()), 072 Thai("th", FullCalendarClientBundle.INSTANCE.getThai()), 073 Turkish("tr", FullCalendarClientBundle.INSTANCE.getTurkish()), 074 Ukrainian("uk", FullCalendarClientBundle.INSTANCE.getUkrainian()), 075 Vietnamese("vi", FullCalendarClientBundle.INSTANCE.getVietnamese()), 076 ChineseChina("zh-cn", FullCalendarClientBundle.INSTANCE.getChineseChina()), 077 ChineseTaiwan("zh-tw", FullCalendarClientBundle.INSTANCE.getChineseTaiwan()); 078 079 private final String code; 080 private final TextResource resource; 081 082 private Language(final String code, final TextResource resource) { 083 this.code = code; 084 this.resource = resource; 085 } 086 087 public String getCode() { 088 return code; 089 } 090 091 public TextResource getResource() { 092 return resource; 093 } 094 095}