diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6790534..e1db1c7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" + android:localeConfig="@xml/locales_config" android:theme="@style/Theme.MetaPluginDemo"> currently just using demo credentials val selectedUri: URI = chosenEnvironment.uri @@ -103,7 +103,7 @@ internal class MainActivity : AppCompatActivity() { *chosenEnvironment.shaPins ) - writeLog("Core SDK creation successful") + writeLog(getString(R.string.core_sdk_creation_successful)) validateActionId() val selectProductPlugins = getSelectedPlugins() @@ -124,7 +124,7 @@ internal class MainActivity : AppCompatActivity() { * Validates the WebID actionID */ private fun validateActionId() { - writeLog("Validate Action-ID…") + writeLog(getString(R.string.validate_action_id)) try { parseInt(actionId) @@ -132,7 +132,7 @@ internal class MainActivity : AppCompatActivity() { throw NumberFormatException() } } catch (e: NumberFormatException) { - writeLog("Failure: action id was not set to 9-digit number string in MainActivity.kt file") + writeLog(getString(R.string.action_id_not_valid)) } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 652e5ec..b5da5e9 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -13,7 +13,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="13dp" android:layout_marginTop="13dp" - android:text="Choose Plugins To Add:" + android:text="@string/choose_plugins" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -24,7 +24,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="30dp" android:layout_marginTop="13dp" - android:text="AutoIdOnServer" + android:text="@string/autoid" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/tv_plugins_header" /> @@ -33,7 +33,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="30dp" - android:text="PayOnServer" + android:text="@string/accountid" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/cb_plugin_auto_id_on_server" /> @@ -42,7 +42,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="30dp" - android:text="EidOnServer" + android:text="@string/eid" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/cb_plugin_pay_on_server" /> @@ -51,7 +51,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="30dp" - android:text="VideoId" + android:text="@string/videoid" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/cb_plugin_eid_on_server" /> @@ -71,13 +71,13 @@ android:layout_width="0dp" android:layout_height="0dp" android:layout_marginStart="@dimen/grid_margin" - android:layout_marginEnd="@dimen/grid_margin" android:layout_marginTop="@dimen/grid_margin" + android:layout_marginEnd="@dimen/grid_margin" android:layout_marginBottom="@dimen/grid_margin" app:layout_constraintBottom_toTopOf="@id/startButton" - app:layout_constraintTop_toBottomOf="@id/logHeadline" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent"> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/logHeadline"> + android:text="@string/log_placeholder" /> @@ -98,14 +98,14 @@ android:id="@+id/startButton" android:layout_width="match_parent" android:layout_height="@dimen/button_height" - android:text="@string/start_button" - android:backgroundTint="@color/colorBlueWebid" - android:textColor="@color/white" - android:layout_marginBottom="@dimen/grid_margin" - android:layout_marginEnd="@dimen/grid_margin" android:layout_marginStart="@dimen/grid_margin" + android:layout_marginEnd="@dimen/grid_margin" + android:layout_marginBottom="@dimen/grid_margin" + android:backgroundTint="@color/colorBlueWebid" + android:text="@string/start_button" + android:textColor="@color/white" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent"/> + app:layout_constraintStart_toStartOf="parent" /> \ No newline at end of file diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml new file mode 100644 index 0000000..38a8e8b --- /dev/null +++ b/app/src/main/res/values-de/strings.xml @@ -0,0 +1,12 @@ + + + Starte Meta Plugin + Log: + Noch keine Einträge… + Plugins auswählen: + Core SDK wird erstellt… + Meta Plugin wird gestartet… + Core SDK erfolgreich erstellt + Validiere Vorgangsnummer… + Fehler: Die Vorgangsnummer (Action-ID) wurde in der Datei „MainActivity.kt“ nicht auf eine 9-stellige Zahlenfolge gesetzt. + \ No newline at end of file diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml new file mode 100644 index 0000000..e9abb2f --- /dev/null +++ b/app/src/main/res/values-es/strings.xml @@ -0,0 +1,12 @@ + + + Iniciar Meta Plugin + Registro: + Aún nada… + Seleccionar plugins: + Creando Core SDK… + Iniciando Meta Plugin… + Core SDK creado correctamente + Validar número de operación… + Error: El número de operación («action-ID») no se ha establecido en una secuencia numérica de 9 dígitos en el archivo «MainActivity.kt». + \ No newline at end of file diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml new file mode 100644 index 0000000..b0b6721 --- /dev/null +++ b/app/src/main/res/values-fr/strings.xml @@ -0,0 +1,12 @@ + + + Démarrer Meta Plugin + Journal : + Rien pour l’instant… + Sélectionner les plugins : + Création de Core SDK… + Démarrage de Meta Plugin… + Core SDK créé avec succès + Valider le numéro d\'opération… + Erreur : le numéro d\'opération (ActionID) n\'a pas été défini sur une séquence de 9 chiffres dans le fichier « MainActivity.kt ». + \ No newline at end of file diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml new file mode 100644 index 0000000..3282bfc --- /dev/null +++ b/app/src/main/res/values-it/strings.xml @@ -0,0 +1,12 @@ + + + Avvia Meta Plugin + Registro: + Ancora nulla… + Selezionare i plugin: + Creazione di Core SDK… + Avvio di Meta Plugin… + Core SDK creato con successo + Convalida numero operazione… + Errore: il numero dell\'operazione (ActionID) non è stato impostato su una sequenza di 9 cifre nel file “MainActivity.kt”. + \ No newline at end of file diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml new file mode 100644 index 0000000..d7087e0 --- /dev/null +++ b/app/src/main/res/values-nl/strings.xml @@ -0,0 +1,12 @@ + + + Start Meta Plugin + Log: + Nog niets… + Plug-ins selecteren: + Core SDK wordt gemaakt… + Meta Plugin wordt gestart… + Core SDK succesvol aangemaakt + Valideer transactienummer… + Fout: het actienummer (ActionID) is in het bestand “MainActivity.kt” niet ingesteld op een reeks van 9 cijfers. + \ No newline at end of file diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml new file mode 100644 index 0000000..e9649f4 --- /dev/null +++ b/app/src/main/res/values-pl/strings.xml @@ -0,0 +1,12 @@ + + + Uruchom Meta-Plugin + Dziennik: + Na razie nic… + Wybierz wtyczki: + Tworzenie Core SDK… + Uruchamianie Meta Plugin… + Core SDK utworzony pomyślnie + Zatwierdź numer operacji… + Błąd: Numer operacji (Action-ID) nie został ustawiony na 9-cyfrową sekwencję cyfr w pliku „MainActivity.kt”. + \ No newline at end of file diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml new file mode 100644 index 0000000..29687e7 --- /dev/null +++ b/app/src/main/res/values-ro/strings.xml @@ -0,0 +1,12 @@ + + + Pornește Meta Plugin + Jurnal: + Încă nimic… + Selectarea pluginurilor: + Se creează Core SDK… + Se pornește Meta Plugin… + Core SDK creat cu succes + Validați numărul operațiunii… + Eroare: Numărul operațiunii („Action-ID”) nu a fost setat la o secvență de 9 cifre în fișierul „MainActivity.kt”. + \ No newline at end of file diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml new file mode 100644 index 0000000..c515290 --- /dev/null +++ b/app/src/main/res/values-tr/strings.xml @@ -0,0 +1,12 @@ + + + Meta Plugin\'i başlat + Günlük : + Henüz bir şey yok… + Eklentileri seçin: + Core SDK oluşturuluyor… + Meta Plugin başlatılıyor… + Core SDK başarıyla oluşturuldu + İşlem numarasını doğrula… + Hata: İşlem numarası (Action-ID) “MainActivity.kt” dosyasında 9 basamaklı bir sayı dizisi olarak ayarlanmamıştır. + \ No newline at end of file diff --git a/app/src/main/res/values/constants.xml b/app/src/main/res/values/constants.xml new file mode 100644 index 0000000..a8d1eb7 --- /dev/null +++ b/app/src/main/res/values/constants.xml @@ -0,0 +1,8 @@ + + + MetaPluginDemo + AutoID + AccountID + eID + VideoID + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8c79da3..b49bc6f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,11 @@ - MetaPluginDemo Start Meta Plugin Log: Nothing yet… + Choose Plugins To Add: + Creating the Core SDK… + Starting Meta Plugin… + Core SDK creation successful + Validate Action-ID… + Failure: The transaction number (Action-ID) was not set to 9-digit number string in MainActivity.kt file. \ No newline at end of file diff --git a/app/src/main/res/xml/locales_config.xml b/app/src/main/res/xml/locales_config.xml new file mode 100644 index 0000000..c0b5710 --- /dev/null +++ b/app/src/main/res/xml/locales_config.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file