diff --git a/app/src/main/res/values/payu.xml b/app/src/main/res/values/payu.xml index 56e9ba8..6512646 100644 --- a/app/src/main/res/values/payu.xml +++ b/app/src/main/res/values/payu.xml @@ -2,8 +2,12 @@ sandbox - - auto + + ukrainian true true true diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/payment/configuration/Locale.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/payment/configuration/Locale.java index 763ee35..e0f2a8e 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/payment/configuration/Locale.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/payment/configuration/Locale.java @@ -11,7 +11,8 @@ public enum Locale { CZECH("cs"), GERMAN("de"), HUNGARIAN("hu"), UKRAINIAN("ua") , SLOVAK("sk"), SPANISH ("es"), FRENCH("fr"), LITHUANIAN("lt"), ROMANIAN("ro"), - SLOVENIAN("sl"); + SLOVENIAN("sl"), BULGARIAN("bg"), GREEK("el"), + CROATIAN("hr"), ITALIAN("it"), RUSSIAN("ru"); private final String mLanguageCode; Locale(String languageCode) { diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationFactory.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationFactory.java index d5d50be..2503e6e 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationFactory.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationFactory.java @@ -4,14 +4,19 @@ import static com.google.common.base.Optional.fromNullable; import com.payu.android.front.sdk.payment_library_core.payment.configuration.Locale; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Bulgarian; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Croatian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Czech; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.English; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.French; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.German; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Greek; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Hungarian; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Italian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Lithuanian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Polish; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Romanian; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Russian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Slovak; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Slovenian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Spanish; @@ -69,8 +74,13 @@ private static Translation getTranslationOrEnglish(Locale locale) { Translation lithuanianTranslation = new Lithuanian(); Translation romanianTranslation = new Romanian(); Translation slovenianTranslation = new Slovenian(); + Translation bulgarianTranslation = new Bulgarian(); + Translation greekTranslation = new Greek(); + Translation croatianTranslation = new Croatian(); + Translation italianTranslation = new Italian(); + Translation russianTranslation = new Russian(); - Map translations = new HashMap(); + Map translations = new HashMap<>(); translations.put(polishTranslation.getLanguage(), polishTranslation); translations.put(englishTranslation.getLanguage(), englishTranslation); translations.put(czechTranslation.getLanguage(), czechTranslation); @@ -83,6 +93,11 @@ private static Translation getTranslationOrEnglish(Locale locale) { translations.put(lithuanianTranslation.getLanguage(), lithuanianTranslation); translations.put(romanianTranslation.getLanguage(), romanianTranslation); translations.put(slovenianTranslation.getLanguage(), slovenianTranslation); + translations.put(bulgarianTranslation.getLanguage(), bulgarianTranslation); + translations.put(greekTranslation.getLanguage(), greekTranslation); + translations.put(croatianTranslation.getLanguage(), croatianTranslation); + translations.put(italianTranslation.getLanguage(), italianTranslation); + translations.put(russianTranslation.getLanguage(), russianTranslation); return fromNullable(translations.get(locale)).or(englishTranslation); } diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationKey.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationKey.java index c5bea3c..bf08d61 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationKey.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/TranslationKey.java @@ -6,7 +6,7 @@ public enum TranslationKey { SELECT_PAYMENT_METHOD, CANCEL, PLEASE_WAIT, OK, DIALOG_CANCEL_PAYMENT_MESSAGE, BANK_TRANSFER, REMOVE_METHOD_DIALOG_TITLE, REMOVE_METHOD_DIALOG_CONTENT, REMOVE, INFORMATIONS, PUBLISHER, PAYU_COMPANY_NAME, APPLICATION_VERSION, SUPPORT_PAYMENT_INFORMATION, COMPLIANCE_URL, DIALOG_CANCEL_PAYMENT_TITLE, DIALOG_CANCEL_PAYMENT_POSITIVE, - DIALOG_CANCEL_PAYMENT_NEGATIVE, WEB_PAYMENT, CANNOT_SHOW_COMPLIANCE_TEXT, PBL_TITLE, PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, + DIALOG_CANCEL_PAYMENT_NEGATIVE, CANNOT_SHOW_COMPLIANCE_TEXT, PBL_TITLE, PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, PAYMENT_METHOD_CARD_DESCRIPTION, EXPIRATION_DATE_HINT_TEXT, INVALID_CVV_ERROR, BLIK_AMBIGUITY_SELECTION, BLIK_HINT, BLIK_BANK_INFORMATION_SAVE_PAYMENT, BLIK_PAYMENT_NAME, BLIK_NOT_DEFINED_PAYMENT_DESCRIPTION, BLIK_INPUT_NEW_CODE, BLIK_DEFINED_PAYMENT_DESCRIPTION, SCAN_CARD, SCAN_FAILED, SCAN_CANCELED, BLIK_AMBIGUITY_DESCRIPTION, SECURE_CHECKOUT, SOFT_ACCEPT_DIALOG_TITLE, diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Bulgarian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Bulgarian.java new file mode 100644 index 0000000..c704ce4 --- /dev/null +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Bulgarian.java @@ -0,0 +1,79 @@ +package com.payu.android.front.sdk.payment_library_core.translation.dictionary; + + +import com.payu.android.front.sdk.payment_library_core.payment.configuration.Locale; +import com.payu.android.front.sdk.payment_library_core.translation.TranslationKey; + +public class Bulgarian extends StringMapTranslation { + + public Bulgarian() { + super(); + add(TranslationKey.OK, "OK"); + add(TranslationKey.CARD_VALIDATION_EMPTY, "Номерът на картата не трябва да е празен"); + add(TranslationKey.CARD_VALIDATION_NUMBER_INCORRECT, "Номерът на картата е грешен"); + add(TranslationKey.INVALID_CVV_ERROR, "Моля, въведете валиден код"); + add(TranslationKey.CVV_CODE, "CVV2/CVC2 код"); + add(TranslationKey.EXPIRATION_DATE_HINT_TEXT, "ММ/ГГ"); + add(TranslationKey.CARD_EXPIRATION_DATE_IS_INVALID, "Моля, въведете валидна дата"); + add(TranslationKey.CARD_EXPIRATION_DATE, "Дата на изтичане на срока"); + add(TranslationKey.CARD_NAME, "Име на картата"); + add(TranslationKey.CARD_NUMBER, "Номер на картата"); + add(TranslationKey.SAVE_AND_USE, "Запазване и използване"); + add(TranslationKey.USE, "Използване"); + add(TranslationKey.ENTER_CVV2, "Посочете CVV2/CVC2 код за Вашата карта"); + add(TranslationKey.NEW_CARD, "Добавяне на карта"); + add(TranslationKey.CREDIT_CARD, "Кредитна карта"); + add(TranslationKey.CANCEL, "Отказ"); + add(TranslationKey.PLEASE_WAIT, "Моля, изчакайте..."); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_TITLE, "Затворете и се върнете обратно"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_POSITIVE, "Да, върнете се обратно"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_NEGATIVE, "Не, останете на страницата за плащане"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_MESSAGE, "Плащането Ви ще бъде отменено. Продължете?"); + add(TranslationKey.BANK_TRANSFER, "Банков превод"); + add(TranslationKey.REMOVE_METHOD_DIALOG_TITLE, "Изтриване на метод на плащане"); + add(TranslationKey.REMOVE_METHOD_DIALOG_CONTENT, "Сигурни ли сте, че искате да премахнете избрания метод на плащане?"); + add(TranslationKey.REMOVE, "Премахване"); + add(TranslationKey.INFORMATIONS, "Относно"); + add(TranslationKey.PUBLISHER, "Издател"); + add(TranslationKey.PAYU_COMPANY_NAME, "PayU S.A."); + add(TranslationKey.APPLICATION_VERSION, "Версия на приложението"); + add(TranslationKey.SELECT_PAYMENT_METHOD, "Изберете метод на плащане"); + add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Приемам условията за плащане на PayU"); + add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); + add(TranslationKey.PBL_TITLE, "Банков превод"); + add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "В устройството няма приложение, което да поддържа това"); + add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "дебит или кредит"); + add(TranslationKey.PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, "Банков превод"); + add(TranslationKey.BLIK_AMBIGUITY_SELECTION, "Изберете как да платите"); + add(TranslationKey.BLIK_HINT, "Въведете BLIK код"); + add(TranslationKey.BLIK_BANK_INFORMATION_SAVE_PAYMENT, "Одобрете и запазете плащането на BLIK в приложението на Вашата банка"); + add(TranslationKey.BLIK_PAYMENT_NAME, "BLIK"); + add(TranslationKey.BLIK_NOT_DEFINED_PAYMENT_DESCRIPTION, "използвайте код от приложението на Вашата банка"); + add(TranslationKey.BLIK_INPUT_NEW_CODE, "Въведете нов BLIK код"); + add(TranslationKey.BLIK_DEFINED_PAYMENT_DESCRIPTION, "плащане с едно докосване"); + add(TranslationKey.BLIK_AMBIGUITY_DESCRIPTION, "запазено плащане на BLIK"); + add(TranslationKey.SCAN_CARD, "Сканиране на карта"); + add(TranslationKey.SCAN_FAILED, "Сканирането на картата е неуспешно, въведете данните на картата ръчно"); + add(TranslationKey.SCAN_CANCELED, "Сканирането на картата е отменено"); + add(TranslationKey.SECURE_CHECKOUT, "СИГУРНО ПЛАЩАНЕ"); + add(TranslationKey.SOFT_ACCEPT_DIALOG_TITLE, "Проверка на плащането..."); + add(TranslationKey.OFFER_INSTALLMENTS_TITLE, "Транзакцията е одобрена"); + add(TranslationKey.OFFER_INSTALLMENTS_HEADER, "Разсрочено плащане"); + add(TranslationKey.OFFER_INSTALLMENTS_SUBTITLE, "Получателят ще получи цялата сума на поръчката."); + add(TranslationKey.OFFER_INSTALLMENTS_BODY, "Можете да разсрочите това плащане на вноски с Mastercard."); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_ACCEPT, "Разсрочено на вноски"); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_NEGATIVE, "Не, благодаря"); + add(TranslationKey.CHOOSE_INSTALLMENTS_SUBTITLE, "Можете да плащате на вноски с Mastercard. Изберете броя на вноските, за да потвърдите."); + add(TranslationKey.CHOOSE_INSTALLMENTS_BUTTON_NEGATIVE, "Не, благодаря"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_PLURAL, "вноски"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_SINGULAR, "вноска"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_MANY, "вноски"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_TOTAL_INSTALLMENTS, "общо"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_1ST_INSTALLMENT, "Първа вноска"); + } + + @Override + public Locale getLanguage() { + return Locale.BULGARIAN; + } +} diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Croatian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Croatian.java new file mode 100644 index 0000000..6234709 --- /dev/null +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Croatian.java @@ -0,0 +1,79 @@ +package com.payu.android.front.sdk.payment_library_core.translation.dictionary; + + +import com.payu.android.front.sdk.payment_library_core.payment.configuration.Locale; +import com.payu.android.front.sdk.payment_library_core.translation.TranslationKey; + +public class Croatian extends StringMapTranslation { + + public Croatian() { + super(); + add(TranslationKey.OK, "U redu"); + add(TranslationKey.CARD_VALIDATION_EMPTY, "Broj kartice ne smije biti prazan"); + add(TranslationKey.CARD_VALIDATION_NUMBER_INCORRECT, "Broj kartice nije točan"); + add(TranslationKey.INVALID_CVV_ERROR, "Unesite valjani kod"); + add(TranslationKey.CVV_CODE, "CVV2/CVC2 kod"); + add(TranslationKey.EXPIRATION_DATE_HINT_TEXT, "MM/GG"); + add(TranslationKey.CARD_EXPIRATION_DATE_IS_INVALID, "Unesite valjani datum"); + add(TranslationKey.CARD_EXPIRATION_DATE, "Datum isteka roka trajanja"); + add(TranslationKey.CARD_NAME, "Naziv kartice"); + add(TranslationKey.CARD_NUMBER, "Broj kartice"); + add(TranslationKey.SAVE_AND_USE, "Spremi i koristi"); + add(TranslationKey.USE, "Koristiti"); + add(TranslationKey.ENTER_CVV2, "Navedite CVV2/CVC2 kod za svoju karticu"); + add(TranslationKey.NEW_CARD, "Dodaj karticu"); + add(TranslationKey.CREDIT_CARD, "Kreditna kartica"); + add(TranslationKey.CANCEL, "Otkazati"); + add(TranslationKey.PLEASE_WAIT, "Pričekajte..."); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_TITLE, "Zatvori i vrati se"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_POSITIVE, "Da, vrati se"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_NEGATIVE, "Ne, ostani na jednoj stranici za plaćanje"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_MESSAGE, "Vaše plaćanje bit će poništeno. Nastaviti?"); + add(TranslationKey.BANK_TRANSFER, "Bankovni transfer"); + add(TranslationKey.REMOVE_METHOD_DIALOG_TITLE, "Brisanje načina plaćanja"); + add(TranslationKey.REMOVE_METHOD_DIALOG_CONTENT, "Jeste li sigurni da želite ukloniti odabrani način plaćanja?"); + add(TranslationKey.REMOVE, "Ukloniti"); + add(TranslationKey.INFORMATIONS, "Otprilike"); + add(TranslationKey.PUBLISHER, "Izdavatelj"); + add(TranslationKey.PAYU_COMPANY_NAME, "PayU S.A."); + add(TranslationKey.APPLICATION_VERSION, "Verzija aplikacije"); + add(TranslationKey.SELECT_PAYMENT_METHOD, "Odaberi način plaćanja"); + add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Prihvaćam PayU uvjete plaćanja"); + add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); + add(TranslationKey.PBL_TITLE, "Bankovni transfer"); + add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Na uređaju ne postoji aplikacija koja to podržava"); + add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "debitno ili kreditno"); + add(TranslationKey.PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, "Bankovni transfer"); + add(TranslationKey.BLIK_AMBIGUITY_SELECTION, "Odaberi način plaćanja"); + add(TranslationKey.BLIK_HINT, "Unesite BLIK kod"); + add(TranslationKey.BLIK_BANK_INFORMATION_SAVE_PAYMENT, "Autorizirajte i pohranite BLIK plaćanje u svojoj bankovnoj aplikaciji"); + add(TranslationKey.BLIK_PAYMENT_NAME, "BLIK"); + add(TranslationKey.BLIK_NOT_DEFINED_PAYMENT_DESCRIPTION, "upotrijebi kod iz aplikacije svoje banke"); + add(TranslationKey.BLIK_INPUT_NEW_CODE, "Unesite novi BLIK kod"); + add(TranslationKey.BLIK_DEFINED_PAYMENT_DESCRIPTION, "plaćanje jednim dodirom"); + add(TranslationKey.BLIK_AMBIGUITY_DESCRIPTION, "spremljeno BLIK plaćanje"); + add(TranslationKey.SCAN_CARD, "Skeniranje kartice"); + add(TranslationKey.SCAN_FAILED, "Ne mogu skenirati karticu,Äì unesite podatke o kartici ručno"); + add(TranslationKey.SCAN_CANCELED, "Skeniranje kartice otkazano"); + add(TranslationKey.SECURE_CHECKOUT, "SIGURNA NAPLATA"); + add(TranslationKey.SOFT_ACCEPT_DIALOG_TITLE, "Provjera plaćanja..."); + add(TranslationKey.OFFER_INSTALLMENTS_TITLE, "Transakcija odobrena"); + add(TranslationKey.OFFER_INSTALLMENTS_HEADER, "Plaćanje na rate"); + add(TranslationKey.OFFER_INSTALLMENTS_SUBTITLE, "Primatelj će dobiti ukupni iznos narudžbe."); + add(TranslationKey.OFFER_INSTALLMENTS_BODY, "Ovu uplatu možete podijeliti u rate s Mastercard karticom."); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_ACCEPT, "Podijeljeno na rate"); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_NEGATIVE, "Ne hvala"); + add(TranslationKey.CHOOSE_INSTALLMENTS_SUBTITLE, "Mastercardom možete platiti na rate. Odaberite broj rata za potvrdu."); + add(TranslationKey.CHOOSE_INSTALLMENTS_BUTTON_NEGATIVE, "Ne hvala"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_PLURAL, "rate"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_SINGULAR, "rata"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_MANY, "rate"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_TOTAL_INSTALLMENTS, "ukupno"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_1ST_INSTALLMENT, "1. rata"); + } + + @Override + public Locale getLanguage() { + return Locale.CROATIAN; + } +} diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Czech.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Czech.java index b258a31..0da6a05 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Czech.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Czech.java @@ -41,7 +41,6 @@ public Czech() { add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Souhlasím s Platebnimi obchodními podmínkami PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_cs.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Bankovní převod"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Chybí mobilní aplikace"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "Debetní nebo kreditní"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/English.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/English.java index 1f6bd27..e1da700 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/English.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/English.java @@ -40,7 +40,6 @@ public English() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Select payment method"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "I accept PayU Payment Terms"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Bank transfer"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "On the device there is no app to support this"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "debit or credit"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/French.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/French.java index 4c841fa..3c4a898 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/French.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/French.java @@ -40,7 +40,6 @@ public French() { add(TranslationKey.APPLICATION_VERSION, "Version de l'application"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "J'accepte les conditions de paiement de PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Virement bancaire"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Nous sommes désolés, mais aucune application sur l'appareil ne prend en charge cette action."); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "débit ou crédit"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/German.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/German.java index f61b91b..b5ad7b8 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/German.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/German.java @@ -40,7 +40,6 @@ public German() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Zahlungsart auswählen"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Ich stimme den Geschäftsbedingungen PayU zu"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Banküberweisung"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Mobile App fehlend"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "Kredit- oder Debitkarte"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Greek.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Greek.java new file mode 100644 index 0000000..c4de9b1 --- /dev/null +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Greek.java @@ -0,0 +1,79 @@ +package com.payu.android.front.sdk.payment_library_core.translation.dictionary; + + +import com.payu.android.front.sdk.payment_library_core.payment.configuration.Locale; +import com.payu.android.front.sdk.payment_library_core.translation.TranslationKey; + +public class Greek extends StringMapTranslation { + + public Greek() { + super(); + add(TranslationKey.OK, "ΟΚ"); + add(TranslationKey.CARD_VALIDATION_EMPTY, "Το πεδίο «αριθμός κάρτας» δεν μπορεί να είναι κενό"); + add(TranslationKey.CARD_VALIDATION_NUMBER_INCORRECT, "Ο αριθμός κάρτας είναι εσφαλμένος"); + add(TranslationKey.INVALID_CVV_ERROR, "Παρακαλώ εισάγετε έναν έγκυρο κωδικό"); + add(TranslationKey.CVV_CODE, "Κωδικός CVV2/CVC2"); + add(TranslationKey.EXPIRATION_DATE_HINT_TEXT, "ΜΜ/ΕΕ"); + add(TranslationKey.CARD_EXPIRATION_DATE_IS_INVALID, "Παρακαλώ εισάγετε μία έγκυρη ημερομηνία"); + add(TranslationKey.CARD_EXPIRATION_DATE, "Ημερομηνία λήξης"); + add(TranslationKey.CARD_NAME, "Όνομα κάρτας"); + add(TranslationKey.CARD_NUMBER, "Αριθμός κάρτας"); + add(TranslationKey.SAVE_AND_USE, "Αποθήκευση και χρήση"); + add(TranslationKey.USE, "Χρήση"); + add(TranslationKey.ENTER_CVV2, "Παρακαλώ καταχωρίστε τον κωδικό CVV2/CVC2 της κάρτας σας"); + add(TranslationKey.NEW_CARD, "Προσθήκη κάρτας"); + add(TranslationKey.CREDIT_CARD, "Πιστωτική κάρτα"); + add(TranslationKey.CANCEL, "Ακύρωση"); + add(TranslationKey.PLEASE_WAIT, "Παρακαλώ περιμένετε…"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_TITLE, "Κλείσιμο και επιστροφή"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_POSITIVE, "Ναι, επιστροφή τώρα"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_NEGATIVE, "Όχι, παραμονή στη σελίδα πληρωμής"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_MESSAGE, "Η πληρωμή σας θα ακυρωθεί. Θέλετε να συνεχίσετε;"); + add(TranslationKey.BANK_TRANSFER, "Τραπεζική μεταφορά"); + add(TranslationKey.REMOVE_METHOD_DIALOG_TITLE, "Διαγραφή μεθόδου πληρωμής"); + add(TranslationKey.REMOVE_METHOD_DIALOG_CONTENT, "Είστε σίγουροι ότι θέλετε να διαγράψετε την επιλεγμένη μέθοδο πληρωμής;"); + add(TranslationKey.REMOVE, "Διαγραφή"); + add(TranslationKey.INFORMATIONS, "Πληροφορίες"); + add(TranslationKey.PUBLISHER, "Εκδότης"); + add(TranslationKey.PAYU_COMPANY_NAME, "PayU S.A."); + add(TranslationKey.APPLICATION_VERSION, "Έκδοση εφαρμογής"); + add(TranslationKey.SELECT_PAYMENT_METHOD, "Επιλογή μεθόδου πληρωμής"); + add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Αποδέχομαι τους Όρους πληρωμής PayU"); + add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); + add(TranslationKey.PBL_TITLE, "Τραπεζική μεταφορά"); + add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Σε αυτή τη συσκευή δεν υπάρχει εφαρμογή που να υποστηρίζει αυτή τη λειτουργία"); + add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "χρεωστική ή πιστωτική"); + add(TranslationKey.PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, "Τραπεζική μεταφορά"); + add(TranslationKey.BLIK_AMBIGUITY_SELECTION, "Επιλογή μεθόδου πληρωμής"); + add(TranslationKey.BLIK_HINT, "Εισάγετε κωδικό BLIK"); + add(TranslationKey.BLIK_BANK_INFORMATION_SAVE_PAYMENT, "Εγκρίνετε και αποθηκεύστε την πληρωμή BLIK στην εφαρμογή της τράπεζάς σας"); + add(TranslationKey.BLIK_PAYMENT_NAME, "BLIK"); + add(TranslationKey.BLIK_NOT_DEFINED_PAYMENT_DESCRIPTION, "χρήση κωδικού από την εφαρμογή της τράπεζας"); + add(TranslationKey.BLIK_INPUT_NEW_CODE, "Εισάγετε έναν νέο κωδικό BLIK"); + add(TranslationKey.BLIK_DEFINED_PAYMENT_DESCRIPTION, "πληρωμή με ένα πάτημα"); + add(TranslationKey.BLIK_AMBIGUITY_DESCRIPTION, "αποθηκευμένη πληρωμή BLIK"); + add(TranslationKey.SCAN_CARD, "Σάρωση κάρτας"); + add(TranslationKey.SCAN_FAILED, "Δεν είναι δυνατή η σάρωση της κάρτας, παρακαλώ εισάγετε τα στοιχεία της κάρτας"); + add(TranslationKey.SCAN_CANCELED, "Η σάρωση της κάρτας ακυρώθηκε"); + add(TranslationKey.SECURE_CHECKOUT, "ΑΣΦΑΛΗΣ ΟΛΟΚΛΗΡΩΣΗ"); + add(TranslationKey.SOFT_ACCEPT_DIALOG_TITLE, "Επαλήθευση πληρωμής…"); + add(TranslationKey.OFFER_INSTALLMENTS_TITLE, "Η συναλλαγή εγκρίθηκε"); + add(TranslationKey.OFFER_INSTALLMENTS_HEADER, "Τμηματική εξόφληση"); + add(TranslationKey.OFFER_INSTALLMENTS_SUBTITLE, "Ο παραλήπτης θα λάβει ολόκληρο το ποσό παραγγελίας."); + add(TranslationKey.OFFER_INSTALLMENTS_BODY, "Μπορείτε να πραγματοποιήσετε την πληρωμή σε δόσεις με κάρτα Mastercard."); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_ACCEPT, "Πληρωμή με δόσεις"); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_NEGATIVE, "Όχι, ευχαριστώ"); + add(TranslationKey.CHOOSE_INSTALLMENTS_SUBTITLE, "Μπορείτε να πραγματοποιήσετε την πληρωμή σε δόσεις με κάρτα Mastercard. Επιλέξτε τον αριθμό δόσεων για να επιβεβαιώσετε."); + add(TranslationKey.CHOOSE_INSTALLMENTS_BUTTON_NEGATIVE, "Όχι, ευχαριστώ"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_PLURAL, "δόσεις"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_SINGULAR, "δόση"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_MANY, "δόσεις"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_TOTAL_INSTALLMENTS, "σύνολο"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_1ST_INSTALLMENT, "1η δόση"); + } + + @Override + public Locale getLanguage() { + return Locale.GREEK; + } +} diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Hungarian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Hungarian.java index 7ff3404..0cc5fab 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Hungarian.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Hungarian.java @@ -40,7 +40,6 @@ public Hungarian() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Válassz fizetési módot!"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Elfogadom a következőt: PayU Payment Terms"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Banki átutalás"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "A készülékeden nincs olyan app, ami meg tudná ezt jeleníteni."); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "Bankkártya vagy hitelkártya"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Italian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Italian.java new file mode 100644 index 0000000..be3f3b3 --- /dev/null +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Italian.java @@ -0,0 +1,79 @@ +package com.payu.android.front.sdk.payment_library_core.translation.dictionary; + + +import com.payu.android.front.sdk.payment_library_core.payment.configuration.Locale; +import com.payu.android.front.sdk.payment_library_core.translation.TranslationKey; + +public class Italian extends StringMapTranslation { + + public Italian() { + super(); + add(TranslationKey.OK, "OK"); + add(TranslationKey.CARD_VALIDATION_EMPTY, "Card number should not be empty"); + add(TranslationKey.CARD_VALIDATION_NUMBER_INCORRECT, "Card number is incorrect"); + add(TranslationKey.INVALID_CVV_ERROR, "Please enter a valid code"); + add(TranslationKey.CVV_CODE, "CVV2/CVC2 code"); + add(TranslationKey.EXPIRATION_DATE_HINT_TEXT, "MM/YY"); + add(TranslationKey.CARD_EXPIRATION_DATE_IS_INVALID, "Please enter a valid date"); + add(TranslationKey.CARD_EXPIRATION_DATE, "Expiration date"); + add(TranslationKey.CARD_NAME, "Card name"); + add(TranslationKey.CARD_NUMBER, "Card number"); + add(TranslationKey.SAVE_AND_USE, "Save and use"); + add(TranslationKey.USE, "Use"); + add(TranslationKey.ENTER_CVV2, "Provide CVV2/CVC2 code for your card"); + add(TranslationKey.NEW_CARD, "Add card"); + add(TranslationKey.CREDIT_CARD, "Credit card"); + add(TranslationKey.CANCEL, "Cancel"); + add(TranslationKey.PLEASE_WAIT, "Please wait..."); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_TITLE, "Close and go back"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_POSITIVE, "Yes, go back"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_NEGATIVE, "No, stay on one payment page"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_MESSAGE, "Your payment will be canceled. Continue?"); + add(TranslationKey.BANK_TRANSFER, "Bank transfer"); + add(TranslationKey.REMOVE_METHOD_DIALOG_TITLE, "Deleting payment method"); + add(TranslationKey.REMOVE_METHOD_DIALOG_CONTENT, "Are you sure to remove selected payment method?"); + add(TranslationKey.REMOVE, "Remove"); + add(TranslationKey.INFORMATIONS, "About"); + add(TranslationKey.PUBLISHER, "Publisher"); + add(TranslationKey.PAYU_COMPANY_NAME, "PayU S.A."); + add(TranslationKey.APPLICATION_VERSION, "Application version"); + add(TranslationKey.SELECT_PAYMENT_METHOD, "Select payment method"); + add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "I accept PayU Payment Terms"); + add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); + add(TranslationKey.PBL_TITLE, "Bank transfer"); + add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "On the device there is no app to support this"); + add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "debit or credit"); + add(TranslationKey.PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, "Bank transfer"); + add(TranslationKey.BLIK_AMBIGUITY_SELECTION, "Choose how to pay"); + add(TranslationKey.BLIK_HINT, "Enter BLIK code"); + add(TranslationKey.BLIK_BANK_INFORMATION_SAVE_PAYMENT, "Authorize and store BLIK payment in your bank app"); + add(TranslationKey.BLIK_PAYMENT_NAME, "BLIK"); + add(TranslationKey.BLIK_NOT_DEFINED_PAYMENT_DESCRIPTION, "use code from your bank app"); + add(TranslationKey.BLIK_INPUT_NEW_CODE, "Enter new BLIK code"); + add(TranslationKey.BLIK_DEFINED_PAYMENT_DESCRIPTION, "one-tap payment"); + add(TranslationKey.BLIK_AMBIGUITY_DESCRIPTION, "saved BLIK payment"); + add(TranslationKey.SCAN_CARD, "Card Scanning"); + add(TranslationKey.SCAN_FAILED, "Unable to scan card – enter card details manually"); + add(TranslationKey.SCAN_CANCELED, "Card scanning cancelled"); + add(TranslationKey.SECURE_CHECKOUT, "SECURE CHECKOUT"); + add(TranslationKey.SOFT_ACCEPT_DIALOG_TITLE, "Verifying payment ..."); + add(TranslationKey.OFFER_INSTALLMENTS_TITLE, "Transaction approved"); + add(TranslationKey.OFFER_INSTALLMENTS_HEADER, "Installment payment"); + add(TranslationKey.OFFER_INSTALLMENTS_SUBTITLE, "The recipient will get the total order amount."); + add(TranslationKey.OFFER_INSTALLMENTS_BODY, "You can split this payment into installments with Mastercard."); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_ACCEPT, "Split into installments"); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_NEGATIVE, "No, thanks"); + add(TranslationKey.CHOOSE_INSTALLMENTS_SUBTITLE, "You can pay in installments with Mastercard. Select the number of installments to confirm."); + add(TranslationKey.CHOOSE_INSTALLMENTS_BUTTON_NEGATIVE, "No, thanks"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_PLURAL, "installments"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_SINGULAR, "installment"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_MANY, "installments"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_TOTAL_INSTALLMENTS, "total"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_1ST_INSTALLMENT, "1st installment"); + } + + @Override + public Locale getLanguage() { + return Locale.ITALIAN; + } +} diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Lithuanian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Lithuanian.java index 52cd268..7dc525e 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Lithuanian.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Lithuanian.java @@ -40,7 +40,6 @@ public Lithuanian() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Izvēlieties maksājuma metodi"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Es piekrītu PayU maksājumu noteikumiem"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Bankas pārskaitījums"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Ierīcē nav lietotnes, kas atbalsta šo formātu"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "kredīts vai debets"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Polish.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Polish.java index 867aa48..5467cbc 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Polish.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Polish.java @@ -40,7 +40,6 @@ public Polish() { add(TranslationKey.APPLICATION_VERSION, "Wersja aplikacji"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Akceptuję Zasady płatności PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_pl.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Płatność przelewem"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Przykro nam, ale na urządzeniu nie znajduje się aplikacja obsługującą tą akcję."); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "debetowa lub kredytowa"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Romanian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Romanian.java index 894b66e..72731cb 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Romanian.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Romanian.java @@ -40,7 +40,6 @@ public Romanian() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Selectaţi metoda de plată"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Sunt de acord cu Termenii de plată PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Transfer bancar"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Pe dispozitiv nu există nicio aplicţie care să accepte aceasta"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "debit sau credit"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Russian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Russian.java new file mode 100644 index 0000000..b2cd3a5 --- /dev/null +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Russian.java @@ -0,0 +1,79 @@ +package com.payu.android.front.sdk.payment_library_core.translation.dictionary; + + +import com.payu.android.front.sdk.payment_library_core.payment.configuration.Locale; +import com.payu.android.front.sdk.payment_library_core.translation.TranslationKey; + +public class Russian extends StringMapTranslation { + + public Russian() { + super(); + add(TranslationKey.OK, "OK"); + add(TranslationKey.CARD_VALIDATION_EMPTY, "Поле с номером карты не должно быть пустым"); + add(TranslationKey.CARD_VALIDATION_NUMBER_INCORRECT, "Неправильный номер карты"); + add(TranslationKey.INVALID_CVV_ERROR, "Введите действительный код"); + add(TranslationKey.CVV_CODE, "Код CVV2/CVC2"); + add(TranslationKey.EXPIRATION_DATE_HINT_TEXT, "ММ/ГГ"); + add(TranslationKey.CARD_EXPIRATION_DATE_IS_INVALID, "Введите действительную дату"); + add(TranslationKey.CARD_EXPIRATION_DATE, "Срок действия"); + add(TranslationKey.CARD_NAME, "Имя владельца карты"); + add(TranslationKey.CARD_NUMBER, "Номер карты"); + add(TranslationKey.SAVE_AND_USE, "Сохранить и использовать"); + add(TranslationKey.USE, "Использовать"); + add(TranslationKey.ENTER_CVV2, "Укажите код CVV2/CVC2 карты"); + add(TranslationKey.NEW_CARD, "Добавить карту"); + add(TranslationKey.CREDIT_CARD, "Кредитная карта"); + add(TranslationKey.CANCEL, "Отменить"); + add(TranslationKey.PLEASE_WAIT, "Подождите..."); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_TITLE, "Закрыть и вернуться"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_POSITIVE, "Да, вернуться"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_NEGATIVE, "Нет, остаться на странице платежа"); + add(TranslationKey.DIALOG_CANCEL_PAYMENT_MESSAGE, "Ваш платеж будет отменен. Продолжить?"); + add(TranslationKey.BANK_TRANSFER, "Банковский перевод"); + add(TranslationKey.REMOVE_METHOD_DIALOG_TITLE, "Удаление способа оплаты"); + add(TranslationKey.REMOVE_METHOD_DIALOG_CONTENT, "Действительно удалить выбранный способ оплаты?"); + add(TranslationKey.REMOVE, "Удалить"); + add(TranslationKey.INFORMATIONS, "Информация"); + add(TranslationKey.PUBLISHER, "Орган, выдавший карту"); + add(TranslationKey.PAYU_COMPANY_NAME, "PayU S.A."); + add(TranslationKey.APPLICATION_VERSION, "Версия приложения"); + add(TranslationKey.SELECT_PAYMENT_METHOD, "Выбрать способ оплаты"); + add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Я принимаю условия оплаты PayU"); + add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); + add(TranslationKey.PBL_TITLE, "Банковский перевод"); + add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "На устройстве не установлено приложение, поддерживающее это действие"); + add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "дебетовая или кредитная"); + add(TranslationKey.PAYMENT_METHOD_BANK_TRANSFER_DESCRIPTION, "Банковский перевод"); + add(TranslationKey.BLIK_AMBIGUITY_SELECTION, "Выберите способ оплаты"); + add(TranslationKey.BLIK_HINT, "Введите код BLIK"); + add(TranslationKey.BLIK_BANK_INFORMATION_SAVE_PAYMENT, "Авторизировать и сохранить платеж BLIK в банковском приложении"); + add(TranslationKey.BLIK_PAYMENT_NAME, "BLIK"); + add(TranslationKey.BLIK_NOT_DEFINED_PAYMENT_DESCRIPTION, "использовать код из банковского приложения"); + add(TranslationKey.BLIK_INPUT_NEW_CODE, "Введите новый код BLIK"); + add(TranslationKey.BLIK_DEFINED_PAYMENT_DESCRIPTION, "оплата одним нажатием"); + add(TranslationKey.BLIK_AMBIGUITY_DESCRIPTION, "сохраненный платеж BLIK"); + add(TranslationKey.SCAN_CARD, "Сканирование карты"); + add(TranslationKey.SCAN_FAILED, "Невозможно отсканировать карту‚Äì введите данные карты вручную"); + add(TranslationKey.SCAN_CANCELED, "Сканирование карты отменено"); + add(TranslationKey.SECURE_CHECKOUT, "БЕЗОПАСНАЯ ОПЛАТА"); + add(TranslationKey.SOFT_ACCEPT_DIALOG_TITLE, "Проверка платежа..."); + add(TranslationKey.OFFER_INSTALLMENTS_TITLE, "Транзакция утверждена"); + add(TranslationKey.OFFER_INSTALLMENTS_HEADER, "Оплата в рассрочку"); + add(TranslationKey.OFFER_INSTALLMENTS_SUBTITLE, "Получатель получит всю сумму заказа."); + add(TranslationKey.OFFER_INSTALLMENTS_BODY, "Можно разделить этот платеж на части, используя карту Mastercard."); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_ACCEPT, "Разделить на платежи"); + add(TranslationKey.OFFER_INSTALLMENTS_BUTTON_NEGATIVE, "Нет, спасибо"); + add(TranslationKey.CHOOSE_INSTALLMENTS_SUBTITLE, "Можно оплатить частями, используя карту Mastercard. Для подтверждения выберите количество платежей."); + add(TranslationKey.CHOOSE_INSTALLMENTS_BUTTON_NEGATIVE, "Нет, спасибо"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_PLURAL, "Количество платежей:"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_SINGULAR, "Количество платежей:"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_SUBTITLE_MANY, "Количество платежей:"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_TOTAL_INSTALLMENTS, "всего"); + add(TranslationKey.CHOOSE_INSTALLMENTS_LIST_1ST_INSTALLMENT, "1-й платеж"); + } + + @Override + public Locale getLanguage() { + return Locale.RUSSIAN; + } +} diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovak.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovak.java index 8cb2538..ca58e9b 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovak.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovak.java @@ -41,7 +41,6 @@ public Slovak() { add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Súhlasím s Platobnými obchodnými podmienkami PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Bankový prevod"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Chýba mobilná aplikácia"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "Debetná alebo kreditná"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovenian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovenian.java index d199c06..2a7a5e1 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovenian.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Slovenian.java @@ -40,7 +40,6 @@ public Slovenian() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Izberite način plačila"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Sprejmem plačilne pogoje PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Bančno nakazilo"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "Na napravi ni aplik., ki to podpira"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "debit ali kredit"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Spanish.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Spanish.java index 1218cb7..781a150 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Spanish.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Spanish.java @@ -40,7 +40,6 @@ public Spanish() { add(TranslationKey.SELECT_PAYMENT_METHOD, "Seleccione el método de pago"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Acepto Condiciones de pago de PayU"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Transferencia Bancaria"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "En el dispositivo no hay ninguna aplicación compatible con esto"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "débito o crédito"); diff --git a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Ukrainian.java b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Ukrainian.java index 5e59420..0bd45d0 100644 --- a/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Ukrainian.java +++ b/payment-library-core/src/main/java/com/payu/android/front/sdk/payment_library_core/translation/dictionary/Ukrainian.java @@ -40,7 +40,6 @@ public Ukrainian() { add(TranslationKey.APPLICATION_VERSION, "Версія застосунку"); add(TranslationKey.SUPPORT_PAYMENT_INFORMATION, "Я приймаю умови оплати"); add(TranslationKey.COMPLIANCE_URL, "https://docs.google.com/viewer?url=https://static.payu.com/sites/terms/files/payu_terms_of_service_single_transaction_pl_en.pdf"); - add(TranslationKey.WEB_PAYMENT, " "); add(TranslationKey.PBL_TITLE, "Банківський переказ"); add(TranslationKey.CANNOT_SHOW_COMPLIANCE_TEXT, "На пристрої немає програми для підтримки"); add(TranslationKey.PAYMENT_METHOD_CARD_DESCRIPTION, "Дебетова або кредитна картка"); diff --git a/payment-library-core/src/test/java/com/payu/android/front/sdk/payment_library_core/payment/translation/StringMapTranslationTest.java b/payment-library-core/src/test/java/com/payu/android/front/sdk/payment_library_core/payment/translation/StringMapTranslationTest.java index dc14129..fcc5fab 100644 --- a/payment-library-core/src/test/java/com/payu/android/front/sdk/payment_library_core/payment/translation/StringMapTranslationTest.java +++ b/payment-library-core/src/test/java/com/payu/android/front/sdk/payment_library_core/payment/translation/StringMapTranslationTest.java @@ -4,14 +4,19 @@ import com.payu.android.front.sdk.payment_library_core.translation.Translation; import com.payu.android.front.sdk.payment_library_core.translation.TranslationKey; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Bulgarian; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Croatian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Czech; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.English; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.French; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.German; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Greek; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Hungarian; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Italian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Lithuanian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Polish; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Romanian; +import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Russian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Slovak; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Slovenian; import com.payu.android.front.sdk.payment_library_core.translation.dictionary.Spanish; @@ -41,6 +46,11 @@ public void shouldHaveAllKeysTranslated() { availableTranslations.add(new Lithuanian()); availableTranslations.add(new Romanian()); availableTranslations.add(new Slovenian()); + availableTranslations.add(new Bulgarian()); + availableTranslations.add(new Croatian()); + availableTranslations.add(new Greek()); + availableTranslations.add(new Italian()); + availableTranslations.add(new Russian()); // expect for (Translation translation : availableTranslations) { diff --git a/payment-library-webview-module/src/main/java/com/payu/android/front/sdk/payment_library_webview_module/web/view/WebPaymentActivity.java b/payment-library-webview-module/src/main/java/com/payu/android/front/sdk/payment_library_webview_module/web/view/WebPaymentActivity.java index 27bce08..3925ce5 100644 --- a/payment-library-webview-module/src/main/java/com/payu/android/front/sdk/payment_library_webview_module/web/view/WebPaymentActivity.java +++ b/payment-library-webview-module/src/main/java/com/payu/android/front/sdk/payment_library_webview_module/web/view/WebPaymentActivity.java @@ -142,7 +142,7 @@ private void setupData() { webPaymentPresenter = new WebPaymentPresenter(addressBarPresenter, cookieManager, postDataEncoder, paymentUrlMatcher, authorizationDetails.getFallbackLink().orNull(), getCurrentRestEnvironment(this)); webPaymentPresenter.setOnAuthorizationFinishedListener(authorizationFinishedListener); webPaymentPresenter.takeView(webPaymentView); - textTitle.setText(translation.translate(TranslationKey.WEB_PAYMENT)); + textTitle.setText(""); }