Skip to content

Commit

Permalink
Update - Traducciones y cambio de version app
Browse files Browse the repository at this point in the history
  • Loading branch information
GalletaOreo98 committed Sep 14, 2023
1 parent 8787893 commit 7c36af9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
7 changes: 6 additions & 1 deletion lain_chikita/assets/language/labels_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@
"do-not-leave-the-application": "Do not leave the application",
"completed": "Completed",
"progress": "Progress",
"thank-you-for-installing": "Thank you for installing lain_chikita, kind senior"
"thank-you-for-installing": "Thank you for installing lain_chikita, kind senior",
"backup": "Backup",
"paste-backup-data": "Paste your backup data",
"backup-completed": "Backup completed",
"press-and-hold-button-to-see-more": "Press and hold the button to see more options",
"restart-your-app": "Restart your app"
}
7 changes: 6 additions & 1 deletion lain_chikita/assets/language/labels_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@
"do-not-leave-the-application": "No salgas de la aplicación",
"completed": "Completado",
"progress": "Progreso",
"thank-you-for-installing": "Gracias por instalar lain_chikita, amable senior"
"thank-you-for-installing": "Gracias por instalar lain_chikita, amable senior",
"backup": "Backup",
"paste-backup-data": "Pega la data de tu backup",
"backup-completed": "Backup completada",
"press-and-hold-button-to-see-more": "Mantén pulsado el botón para ver más opciones",
"restart-your-app": "Reinicia tu aplicación"
}
2 changes: 1 addition & 1 deletion lain_chikita/lib/global_vars.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Cada vez que se haga un add, delete o update a unlockedInventory se debe aumenta
como cuando se agrega una nueva skin a la app o se quita u modifica una; también cuando modificas
algo de los inventarios en general)
*/
int inventoryVersion = 5;
int inventoryVersion = 6;

List<Map<String, dynamic>> inventory = [
{'name': 'null', 'by': 'NULLUSER'},
Expand Down
14 changes: 7 additions & 7 deletions lain_chikita/lib/screens/encryption_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class MyWidgetState extends State<EncryptionScreen> {
// Copiar la data ya encriptada al clipboard
Clipboard.setData(ClipboardData(text: encryptedData));
setState(() {
_informativeText = languageDataManager.getLabel('clipboard-is-copied');
_informativeText = "${languageDataManager.getLabel('clipboard-is-copied')}\n(${languageDataManager.getLabel('press-and-hold-button-to-see-more')})";
hideInformativeText(2);
});
}
Expand Down Expand Up @@ -139,7 +139,7 @@ class MyWidgetState extends State<EncryptionScreen> {
inventoryVersion = inventoryVersionD;
inventory = inventoryD;
unlockedInventory = unlockedInventoryD;
_informativeText = languageDataManager.getLabel('BACKUP EXITOSA');
_informativeText = "${languageDataManager.getLabel('backup-completed')}\n${languageDataManager.getLabel('restart-your-app')}";
_updateUI();
});
} catch (e) {
Expand Down Expand Up @@ -167,14 +167,14 @@ class MyWidgetState extends State<EncryptionScreen> {
child: Column(children: [
ElevatedButton(
style: ElevatedButton.styleFrom(
minimumSize: const Size(190, 80),
minimumSize: const Size(380, 80),
backgroundColor: appColors.secondaryBtn,
padding: const EdgeInsets.all(20.0)),
onPressed: _backupMyData,
onLongPress: () => setState(() {
_showBackupTextBox = true;
}),
child: Text(languageDataManager.getLabel('BACKUP'),
child: Text(languageDataManager.getLabel('backup'),
style: const TextStyle(
fontSize: 34.0,
),
Expand All @@ -197,7 +197,7 @@ class MyWidgetState extends State<EncryptionScreen> {
},
icon: const Icon(Icons.done),
color: appColors.userInputText),
labelText: languageDataManager.getLabel('YOUR BACKUP DATA'),
labelText: languageDataManager.getLabel('paste-backup-data'),
labelStyle: TextStyle(color: appColors.primaryText, fontSize: 20),
floatingLabelAlignment: FloatingLabelAlignment.center,
focusedBorder: UnderlineInputBorder(borderSide: BorderSide(color: appColors.focusItem)),
Expand All @@ -211,7 +211,7 @@ class MyWidgetState extends State<EncryptionScreen> {
),
ElevatedButton(
style: ElevatedButton.styleFrom(
minimumSize: const Size(340, 80),
minimumSize: const Size(380, 80),
backgroundColor: appColors.primaryBtn,
padding: const EdgeInsets.all(20.0)),
onPressed: () => _encryptImages(),
Expand All @@ -221,7 +221,7 @@ class MyWidgetState extends State<EncryptionScreen> {
const SizedBox(height: 16),
ElevatedButton(
style: ElevatedButton.styleFrom(
minimumSize: const Size(340, 80),
minimumSize: const Size(380, 80),
backgroundColor: appColors.primaryBtn,
padding: const EdgeInsets.all(20.0)),
onPressed: () => _dencryptImages(),
Expand Down
2 changes: 1 addition & 1 deletion lain_chikita/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# Update version:A.B.C+X
# A.B.C represents the versionName such as 1.0.0
# X (the number after the +) represents the versionCode such as 1, 2, 3, etc. (Only int types)
version: 1.5.1+1
version: 2.0.0+1

environment:
sdk: '>=2.19.6 <3.0.0'
Expand Down

0 comments on commit 7c36af9

Please sign in to comment.