Skip to content

Commit

Permalink
Add Turkish translations (#636)
Browse files Browse the repository at this point in the history
* Add Turkish translations

* Declare Turkish language in backend

* Add missing hardcoded VAT translation

* Adjust a few translations

* Adjust more translations after checking on test server

* Push last modifications
  • Loading branch information
mortendir authored and cbellone committed May 8, 2019
1 parent c038055 commit ca36e42
Show file tree
Hide file tree
Showing 4 changed files with 438 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/alfio/model/ContentLanguage.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public class ContentLanguage {
private static final ContentLanguage FRENCH = new ContentLanguage(Locale.FRENCH,0b10000, Locale.FRENCH, "fr");
private static final ContentLanguage ROMANIAN = new ContentLanguage(new Locale("ro"),0b100000, new Locale("ro"), "ro");
private static final ContentLanguage PORTUGUESE = new ContentLanguage(new Locale("pt"),0b1000000, new Locale("pt"), "pt");
private static final ContentLanguage TURKISH = new ContentLanguage(new Locale("tr"),0b10000000, new Locale("tr"), "tr");

public static final List<ContentLanguage> ALL_LANGUAGES = Arrays.asList(ITALIAN, ENGLISH, GERMAN, DUTCH, FRENCH, ROMANIAN, PORTUGUESE);
public static final List<ContentLanguage> ALL_LANGUAGES = Arrays.asList(ITALIAN, ENGLISH, GERMAN, DUTCH, FRENCH, ROMANIAN, PORTUGUESE, TURKISH);
public static final int ALL_LANGUAGES_IDENTIFIER = ALL_LANGUAGES.stream().mapToInt(ContentLanguage::getValue).reduce(0, (a,b) -> a|b);

public static List<ContentLanguage> findAllFor(int bitMask) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/alfio/model/system/ConfigurationKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ public enum ConfigurationKeys {
TRANSLATION_OVERRIDE_VAT_IT("Override the default tax term IT: IVA", false, SettingCategory.TRANSLATIONS, ComponentType.TEXT, false, EnumSet.of(SYSTEM, ORGANIZATION, EVENT)),
TRANSLATION_OVERRIDE_VAT_NL("Override the default tax term NL: BTW", false, SettingCategory.TRANSLATIONS, ComponentType.TEXT, false, EnumSet.of(SYSTEM, ORGANIZATION, EVENT)),
TRANSLATION_OVERRIDE_VAT_RO("Override the default tax term RO: TVA", false, SettingCategory.TRANSLATIONS, ComponentType.TEXT, false, EnumSet.of(SYSTEM, ORGANIZATION, EVENT)),
TRANSLATION_OVERRIDE_VAT_PT("Override the default tax term PT: IVA", false, SettingCategory.TRANSLATIONS, ComponentType.TEXT, false, EnumSet.of(SYSTEM, ORGANIZATION, EVENT));
TRANSLATION_OVERRIDE_VAT_PT("Override the default tax term PT: IVA", false, SettingCategory.TRANSLATIONS, ComponentType.TEXT, false, EnumSet.of(SYSTEM, ORGANIZATION, EVENT)),
TRANSLATION_OVERRIDE_VAT_TR("Override the default tax term TR: KDV", false, SettingCategory.TRANSLATIONS, ComponentType.TEXT, false, EnumSet.of(SYSTEM, ORGANIZATION, EVENT));

@Getter
public enum SettingCategory {
Expand Down
21 changes: 21 additions & 0 deletions src/main/resources/alfio/i18n/admin_tr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
admin.title=alf.io admin
admin.main.organizations=Varolan Organizasyonlar
admin.main.users=Mevcut Kullanıcılar
admin.main.events=Kayıtlı Etkinlikler
error.shortname=Etkinlik ismi geçerli değil
error.displayname=Etkinlik görüntü ismi geçerli değil
error.organizationId=Organizasyon geçerli değil.
error.location=Konum geçerli değil
error.description=Tanım geçerli değil
error.websiteurl=Web sayfası URL''i geçerli değil
error.termsandconditionsurl=Şartlar ve Koşullar URL''i geçerli değil
error.imageurl=Görüntü URL''i https ile başlamalı
error.allowedpaymentproxies=En az bir ödeme proxy''si seçilmelidir
error.regularprice=Normal fiyat geçerli değil
error.vat=KDV geçerli değil
error.currency=Para birimi geçerli değil
error.availableseats=Maksimum yer seçimi geçerli değil
error.category.name=Kategori ismi geçerli değil
error.category.maxtickets=Maksimum bilet sayısı geçerli değil
error.date=Tarih geçerli değil
error.required=Değer gerekli
Loading

0 comments on commit ca36e42

Please sign in to comment.