feat(mobile): added more translations (#1805)

This commit is contained in:
Michel Heusschen 2023-02-20 18:22:35 +01:00 committed by GitHub
parent 9bfb4dfd06
commit e408e8ca4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 60 additions and 31 deletions

View file

@ -43,7 +43,7 @@ class ControlBottomAppBar extends ConsumerWidget {
),
ControlBoxButton(
iconData: Icons.star_rounded,
label: "Favorite",
label: "control_bottom_app_bar_favorite".tr(),
onPressed: () {
onFavorite();
},
@ -140,7 +140,7 @@ class AddToAlbumTitleRow extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text(
"control_bottom_app_bar_add_to_album",
"common_add_to_album",
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
@ -150,7 +150,7 @@ class AddToAlbumTitleRow extends StatelessWidget {
onPressed: onCreateNewAlbum,
icon: const Icon(Icons.add),
label: Text(
"control_bottom_app_bar_create_new_album",
"common_create_new_album",
style: TextStyle(
color: Theme.of(context).primaryColor,
fontWeight: FontWeight.bold,

View file

@ -73,7 +73,7 @@ class ServerInfoBox extends HookConsumerWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"App Version",
"server_info_box_app_version".tr(),
style: TextStyle(
fontSize: 11,
color: Colors.grey[500],
@ -98,7 +98,7 @@ class ServerInfoBox extends HookConsumerWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"Server Version",
"server_info_box_server_version".tr(),
style: TextStyle(
fontSize: 11,
color: Colors.grey[500],

View file

@ -102,7 +102,7 @@ class HomePage extends HookConsumerWidget {
void onFavoriteAssets() {
final remoteAssets = remoteOnlySelection(
localErrorMessage: 'Can not favorite local assets yet, skipping',
localErrorMessage: 'home_page_favorite_err_local'.tr(),
);
if (remoteAssets.isNotEmpty) {
ref.watch(favoriteProvider.notifier).addToFavorites(remoteAssets);
@ -125,7 +125,7 @@ class HomePage extends HookConsumerWidget {
void onAddToAlbum(Album album) async {
final Iterable<Asset> assets = remoteOnlySelection(
localErrorMessage: "Can not add local assets to albums yet, skipping",
localErrorMessage: "home_page_add_to_album_err_local".tr(),
);
if (assets.isEmpty) {
return;
@ -166,7 +166,7 @@ class HomePage extends HookConsumerWidget {
void onCreateNewAlbum() async {
final Iterable<Asset> assets = remoteOnlySelection(
localErrorMessage: "Can not add local assets to albums yet, skipping",
localErrorMessage: "home_page_add_to_album_err_local".tr(),
);
if (assets.isEmpty) {
return;