Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.squarespace.cldr.dates._CalendarFormatter_tr_CY Maven / Gradle / Ivy
//
//
// AUTO-GENERATED CLASS - DO NOT EDIT
//
//
package com.squarespace.cldr.dates;
import com.squarespace.cldr.CLDRLocale;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.ZonedDateTime;
/**
* Locale "tr-CY"
* See http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
*/
public class _CalendarFormatter_tr_CY extends CalendarFormatterBase {
public _CalendarFormatter_tr_CY() {
this.locale = new CLDRLocale("tr", "", "CY", "");
this.firstDay = 1;
this.minDays = 1;
this.eras = new FieldVariants(
new String[] {"MÖ", "MS"},
new String[] {"MÖ", "MS"},
new String[] {},
new String[] {"Milattan Önce", "Milattan Sonra"});
this.quartersFormat = new FieldVariants(
new String[] {"Ç1", "Ç2", "Ç3", "Ç4"},
new String[] {"1.", "2.", "3.", "4."},
new String[] {},
new String[] {"1. çeyrek", "2. çeyrek", "3. çeyrek", "4. çeyrek"});
this.quartersStandalone = new FieldVariants(
new String[] {"Ç1", "Ç2", "Ç3", "Ç4"},
new String[] {"1.", "2.", "3.", "4."},
new String[] {},
new String[] {"1. çeyrek", "2. çeyrek", "3. çeyrek", "4. çeyrek"});
this.monthsFormat = new FieldVariants(
new String[] {"Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"},
new String[] {"O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"},
new String[] {},
new String[] {"Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"});
this.monthsStandalone = new FieldVariants(
new String[] {"Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"},
new String[] {"O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"},
new String[] {},
new String[] {"Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"});
this.weekdaysFormat = new FieldVariants(
new String[] {"Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"},
new String[] {"P", "P", "S", "Ç", "P", "C", "C"},
new String[] {"Pa", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"},
new String[] {"Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"});
this.weekdaysStandalone = new FieldVariants(
new String[] {"Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"},
new String[] {"P", "P", "S", "Ç", "P", "C", "C"},
new String[] {"Pa", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"},
new String[] {"Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"});
this.dayPeriodsFormat = new FieldVariants(
new String[] {"ÖÖ", "ÖS"},
new String[] {"öö", "ös"},
new String[] {},
new String[] {"ÖÖ", "ÖS"});
this.dayPeriodsStandalone = new FieldVariants(
new String[] {"ÖÖ", "ÖS"},
new String[] {"ÖÖ", "ÖS"},
new String[] {},
new String[] {"ÖÖ", "ÖS"});
}
@Override
public void formatDate(FormatType type, ZonedDateTime d, StringBuilder b) {
switch (type) {
case SHORT: {
// "d.MM.y"
formatField(d, b, 'd', 1);
b.append(".");
formatField(d, b, 'M', 2);
b.append(".");
formatField(d, b, 'y', 1);
break;
}
case MEDIUM: {
// "d MMM y"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case LONG: {
// "d MMMM y"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case FULL: {
// "d MMMM y EEEE"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'E', 4);
break;
}
}
}
@Override
public void formatTime(FormatType type, ZonedDateTime d, StringBuilder b) {
switch (type) {
case SHORT: {
// "h:mm a"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case MEDIUM: {
// "h:mm:ss a"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'a', 1);
break;
}
case LONG: {
// "h:mm:ss a z"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'z', 1);
break;
}
case FULL: {
// "h:mm:ss a zzzz"
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'z', 4);
break;
}
}
}
@Override
public void formatWrapped(FormatType wrapperType, FormatType dateType, FormatType timeType,
String dateSkel, String timeSkel, ZonedDateTime d, StringBuilder b) {
switch (wrapperType) {
case SHORT:
case MEDIUM:
case LONG:
case FULL:
{
// "{1} {0}"
if (dateType != null) {
formatDate(dateType, d, b);
} else {
formatSkeleton(dateSkel, d, b);
}
b.append(" ");
if (timeType != null) {
formatTime(timeType, d, b);
} else {
formatSkeleton(timeSkel, d, b);
}
break;
}
}
}
@Override
public boolean formatSkeleton(String skeleton, ZonedDateTime d, StringBuilder b) {
switch (skeleton) {
case "d": {
// Pattern: "d"
formatField(d, b, 'd', 1);
break;
}
case "E": {
// Pattern: "ccc"
formatField(d, b, 'c', 3);
break;
}
case "Ed": {
// Pattern: "d E"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "Ehm": {
// Pattern: "E a h:mm"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case "EHm": {
// Pattern: "E HH:mm"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case "Ehms": {
// Pattern: "E a h:mm:ss"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "EHms": {
// Pattern: "E HH:mm:ss"
formatField(d, b, 'E', 1);
b.append(" ");
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "Gy": {
// Pattern: "G y"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "GyMMM": {
// Pattern: "G MMM y"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "GyMMMd": {
// Pattern: "G d MMM y"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "GyMMMEd": {
// Pattern: "G d MMM y E"
formatField(d, b, 'G', 1);
b.append(" ");
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "h": {
// Pattern: "a h"
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
break;
}
case "H": {
// Pattern: "HH"
formatField(d, b, 'H', 2);
break;
}
case "hm": {
// Pattern: "a h:mm"
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case "Hm": {
// Pattern: "HH:mm"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
break;
}
case "hms": {
// Pattern: "a h:mm:ss"
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "Hms": {
// Pattern: "HH:mm:ss"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "hmsv": {
// Pattern: "a h:mm:ss v"
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "Hmsv": {
// Pattern: "HH:mm:ss v"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "hmv": {
// Pattern: "a h:mm v"
formatField(d, b, 'a', 1);
b.append(" ");
formatField(d, b, 'h', 1);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "Hmv": {
// Pattern: "HH:mm v"
formatField(d, b, 'H', 2);
b.append(":");
formatField(d, b, 'm', 2);
b.append(" ");
formatField(d, b, 'v', 1);
break;
}
case "M": {
// Pattern: "L"
formatField(d, b, 'L', 1);
break;
}
case "Md": {
// Pattern: "d/M"
formatField(d, b, 'd', 1);
b.append("/");
formatField(d, b, 'M', 1);
break;
}
case "MEd": {
// Pattern: "d/MM E"
formatField(d, b, 'd', 1);
b.append("/");
formatField(d, b, 'M', 2);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "MMM": {
// Pattern: "LLL"
formatField(d, b, 'L', 3);
break;
}
case "MMMd": {
// Pattern: "d MMM"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 3);
break;
}
case "MMMEd": {
// Pattern: "d MMMM E"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "MMMMd": {
// Pattern: "d MMMM"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 4);
break;
}
case "MMMMEd": {
// Pattern: "d MMMM E"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "MMMMW-count-one": {
// Pattern: "MMMM 'ayının' W. 'haftası'"
formatField(d, b, 'M', 4);
b.append(" ayının ");
formatField(d, b, 'W', 1);
b.append(". haftası");
break;
}
case "MMMMW-count-other": {
// Pattern: "MMMM 'ayının' W. 'haftası'"
formatField(d, b, 'M', 4);
b.append(" ayının ");
formatField(d, b, 'W', 1);
b.append(". haftası");
break;
}
case "mmss": {
// Pattern: "mm:ss"
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "ms": {
// Pattern: "mm:ss"
formatField(d, b, 'm', 2);
b.append(":");
formatField(d, b, 's', 2);
break;
}
case "y": {
// Pattern: "y"
formatField(d, b, 'y', 1);
break;
}
case "yM": {
// Pattern: "MM/y"
formatField(d, b, 'M', 2);
b.append("/");
formatField(d, b, 'y', 1);
break;
}
case "yMd": {
// Pattern: "dd.MM.y"
formatField(d, b, 'd', 2);
b.append(".");
formatField(d, b, 'M', 2);
b.append(".");
formatField(d, b, 'y', 1);
break;
}
case "yMEd": {
// Pattern: "d.M.y E"
formatField(d, b, 'd', 1);
b.append(".");
formatField(d, b, 'M', 1);
b.append(".");
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "yMM": {
// Pattern: "MM.y"
formatField(d, b, 'M', 2);
b.append(".");
formatField(d, b, 'y', 1);
break;
}
case "yMMM": {
// Pattern: "MMM y"
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "yMMMd": {
// Pattern: "d MMM y"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "yMMMEd": {
// Pattern: "d MMM y E"
formatField(d, b, 'd', 1);
b.append(" ");
formatField(d, b, 'M', 3);
b.append(" ");
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'E', 1);
break;
}
case "yMMMM": {
// Pattern: "MMMM y"
formatField(d, b, 'M', 4);
b.append(" ");
formatField(d, b, 'y', 1);
break;
}
case "yQQQ": {
// Pattern: "y QQQ"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'Q', 3);
break;
}
case "yQQQQ": {
// Pattern: "y QQQQ"
formatField(d, b, 'y', 1);
b.append(" ");
formatField(d, b, 'Q', 4);
break;
}
case "yw-count-one": {
// Pattern: "y 'yılının' w. 'haftası'"
formatField(d, b, 'y', 1);
b.append(" yılının ");
formatField(d, b, 'w', 1);
b.append(". haftası");
break;
}
case "yw-count-other": {
// Pattern: "y 'yılının' w. 'haftası'"
formatField(d, b, 'y', 1);
b.append(" yılının ");
formatField(d, b, 'w', 1);
b.append(". haftası");
break;
}
default: {
return false;
}
}
return true;
}
}