Skip to content

Commit

Permalink
Merge pull request #16 from aeri/wip
Browse files Browse the repository at this point in the history
add: App translations and saving preferences
  • Loading branch information
NAVAL authored Sep 27, 2020
2 parents 7d3b84a + 8199bcf commit dd203f6
Show file tree
Hide file tree
Showing 62 changed files with 657 additions and 185 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ doc/api/
android/key.properties
android/local.properties
*.log
.flutter-plugins
.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.flutter.plugins;

import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin;

/**
* Generated file. Do not edit.
Expand All @@ -10,6 +11,7 @@ public static void registerWith(PluginRegistry registry) {
if (alreadyRegisteredWith(registry)) {
return;
}
SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
}

private static boolean alreadyRegisteredWith(PluginRegistry registry) {
Expand Down
57 changes: 52 additions & 5 deletions assets/LICENSES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
Nihonoari
Copyright (C) 2020 Naval Alcalá

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.


THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN THIS APPLICATION.


Expand All @@ -6,8 +23,6 @@ THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY B



The following software may be included in this application:


kana (https://github.com/paulorobertocruz/kana)

Expand Down Expand Up @@ -40,9 +55,7 @@ SOFTWARE.

=====



The following software may be included in this application:


font_awesome_flutter (https://github.com/brianegan/font_awesome_flutter)
Expand All @@ -55,4 +68,38 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


=====




shared_preferences (https://pub.dev/packages/shared_preferences)

Copyright 2017 The Chromium Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* The selected Kana sets are remembered
* Added UI translation
Binary file modified fastlane/metadata/android/en-US/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions fastlane/metadata/android/es/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Se recuerda el conjunto de Kanas seleccionados
* Se incorpora traducción a la interfaz
Binary file modified fastlane/metadata/android/es/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr/changelogs/4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correction des erreurs
4 changes: 4 additions & 0 deletions fastlane/metadata/android/fr/changelogs/5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Ajouter par groupe Hiragana et Katakana
* Algorithme de question amélioré
* Réparé le Katakana "ri"
* Thème sombre amélioré
2 changes: 2 additions & 0 deletions fastlane/metadata/android/fr/changelogs/6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Algorithme de répétition espacée
* Le clavier ne se cache pas quand l'utilisateur accepte
2 changes: 2 additions & 0 deletions fastlane/metadata/android/fr/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Les ensembles Kana sélectionnés sont mémorisés
* Traduction de l'UI ajoutée
4 changes: 4 additions & 0 deletions fastlane/metadata/android/fr/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Nihonoari est un projet Open Source créé pour offrir à la communauté une application simple pour mémoriser et pratiquer l'alphabet Hiragana et Katakana sans publicité, paiements et fonctions inutiles, le plus simple est le mieux.

Veux tu collaborer avec le projet ou reporter un erreur?
https://github.com/aeri/Nihonoari-App
Binary file added fastlane/metadata/android/fr/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Une app petite et minimaliste pour pratiquer les Kana japonais
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Nihonoari: Hiragana & Katakana
1 change: 1 addition & 0 deletions fastlane/metadata/android/ru/changelogs/4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix some errors.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/ru/changelogs/5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Set selection in Hiragana and Katakana
* Improved quiz core
* Fixed "ri" Katakana
* Improved dark style
2 changes: 2 additions & 0 deletions fastlane/metadata/android/ru/changelogs/6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Spaced repetition algorithm
* The keyboard does not close after submit
2 changes: 2 additions & 0 deletions fastlane/metadata/android/ru/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* The selected Kana sets are remembered
* Added UI translation
4 changes: 4 additions & 0 deletions fastlane/metadata/android/ru/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Нихоноари - это проект с открытым исходным кодом, что предоставляет обществу простое приложение для запоминания и практикования алфавитов Хираганы и Катаканы без реклам, внутренних покупок и бесполезных функцый. Чем проще - тем лучше.

Хотите сотрудничать с проектом или известить о некоторых ошибках?
https://github.com/aeri/Nihonoari-App
Binary file added fastlane/metadata/android/ru/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/ru/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Небольшой да простой тренер японских кан
1 change: 1 addition & 0 deletions fastlane/metadata/android/ru/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Нихоноари: Хирагана и Катакана
1 change: 1 addition & 0 deletions fastlane/metadata/android/uk/changelogs/4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix some errors.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/uk/changelogs/5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Set selection in Hiragana and Katakana
* Improved quiz core
* Fixed "ri" Katakana
* Improved dark style
2 changes: 2 additions & 0 deletions fastlane/metadata/android/uk/changelogs/6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Spaced repetition algorithm
* The keyboard does not close after submit
2 changes: 2 additions & 0 deletions fastlane/metadata/android/uk/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* The selected Kana sets are remembered
* Added UI translation
4 changes: 4 additions & 0 deletions fastlane/metadata/android/uk/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Ніхоноарі - це проект з відкритим кодом, що надає спільноті простий застосунок для запам'ятовування та практикування абеток Хіраґани та Катакани без реклам, купівель, чи безтолкових функцій. Чим простіше - тим краще.

Хочете співпрацювати з проектом, або повідомити кілька помилок?
https://github.com/aeri/Nihonoari-App
Binary file added fastlane/metadata/android/uk/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/uk/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Невеличкий та простий тренер японських кан
1 change: 1 addition & 0 deletions fastlane/metadata/android/uk/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ніхоноарі: Хіраґана та Катакана
14 changes: 14 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"main_licenses": "LICENSES",
"main_hiragana" : "Include Hiragana syllabary",
"main_katakana" : "Include Katakana syllabary",
"main_select": "Select one",
"main_start": "Start",
"quiz_stats": "Statistics",
"quiz_total": "Total",
"quiz_passed": "Passed",
"quiz_failed": "Failed",
"quiz_rate": "Success rate",
"quiz_enter": "Enter rōmaji",
"quiz_correct": "Correct answer"
}
14 changes: 14 additions & 0 deletions i18n/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"main_licenses": "LICENCIAS",
"main_hiragana" : "Incluir silabario Hiragana",
"main_katakana" : "Incluir silabario Katakana",
"main_select": "Selecciona",
"main_start": "Inciar",
"quiz_stats": "Estadísticas",
"quiz_total": "Total",
"quiz_passed": "Aciertos",
"quiz_failed": "Fallos",
"quiz_rate": "Tasa de acierto",
"quiz_enter": "Escribe rōmaji",
"quiz_correct": "Respuesta correcta"
}
14 changes: 14 additions & 0 deletions i18n/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"main_licenses": "LICENCES",
"main_hiragana" : "Incorporer syllabaire Hiragana",
"main_katakana" : "Incorporer syllabaire Katakana",
"main_select": "Choisis",
"main_start": "Commencer",
"quiz_stats": "Statistiques",
"quiz_total": "Total",
"quiz_passed": "Coups",
"quiz_failed": "Ratés",
"quiz_rate": "Taux de succès",
"quiz_enter": "Écris rōmaji",
"quiz_correct": "Réponse correcte"
}
14 changes: 14 additions & 0 deletions i18n/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"main_licenses": "ЛИЦЕНЗИИ",
"main_hiragana" : "Включить слоги Хираганы",
"main_katakana" : "Включить слоги Катаканы",
"main_select": "Выберите что-то",
"main_start": "Начать",
"quiz_stats": "Статистика",
"quiz_total": "Всего",
"quiz_passed": "Пройдено",
"quiz_failed": "Провалено",
"quiz_rate": "Процент успеха",
"quiz_enter": "Введите ромадзи",
"quiz_correct": "Ответ верный"
}
14 changes: 14 additions & 0 deletions i18n/uk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"main_licenses": "ЛІЦЕНЗІЇ",
"main_hiragana" : "Включити склади Хіраґани",
"main_katakana" : "Включити склади Катакани",
"main_select": "Виберіть щось",
"main_start": "Почати",
"quiz_stats": "Статистика",
"quiz_total": "Всього",
"quiz_passed": "Правильних",
"quiz_failed": "Помилкових",
"quiz_rate": "Відсоток успіху",
"quiz_enter": "Введіть ромадзі",
"quiz_correct": "Відповідь вірна"
}
4 changes: 2 additions & 2 deletions ios/Flutter/Generated.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build\ios
OTHER_LDFLAGS=$(inherited) -framework Flutter
FLUTTER_FRAMEWORK_DIR=C:\src\flutter\bin\cache\artifacts\engine\ios
FLUTTER_BUILD_NAME=1.3.0
FLUTTER_BUILD_NUMBER=5
FLUTTER_BUILD_NAME=1.5.0
FLUTTER_BUILD_NUMBER=7
11 changes: 11 additions & 0 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\src\flutter"
export "FLUTTER_APPLICATION_PATH=D:\Documentos\Nihonoari-App"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=C:\src\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=1.5.0"
export "FLUTTER_BUILD_NUMBER=7"
7 changes: 7 additions & 0 deletions ios/Runner/GeneratedPluginRegistrant.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@

#import "GeneratedPluginRegistrant.h"

#if __has_include(<shared_preferences/FLTSharedPreferencesPlugin.h>)
#import <shared_preferences/FLTSharedPreferencesPlugin.h>
#else
@import shared_preferences;
#endif

@implementation GeneratedPluginRegistrant

+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
[FLTSharedPreferencesPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTSharedPreferencesPlugin"]];
}

@end
19 changes: 19 additions & 0 deletions lib/Question.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
Copyright (C) 2020 Naval Alcalá
This file is part of Nihonoari.
Nihonoari is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Nihonoari is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Nihonoari. If not, see <https://www.gnu.org/licenses/>.
*/

class Question{

String question;
Expand Down
Loading

0 comments on commit dd203f6

Please sign in to comment.