Files
food-ai/client/lib/l10n/app_localizations_pt.dart
dbastrikin 9a6b7800a3 fix: unify date limits, fix ISO week calculation, refactor home screen plan button
- Fix _isoWeek: correct Sunday shift (-3 instead of +4), use floor+1 formula,
  match jan1 timezone to input — planned meals now appear correctly for UTC+ users
- Add kPlanningHorizonDays=28 / kMenuPastWeeks=8 constants; apply to home date
  strip, plan picker (strip + calendar), and menu screen prev/next navigation
- Menu screen week nav: disable arrows at min/max limits using compareTo
- Home screen: replace _GenerateActionCard/_WeekPlannedChip conditional with
  always-visible _FutureDayPlanButton(dateString); show _DayPlannedChip only
  when the specific day has planned meals; remove standalone _PlanMenuButton
- _FutureDayPlanButton uses selected date as defaultStart instead of lastPlanned+1
- Rename weekPlannedLabel -> dayPlannedLabel across all 12 locales

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 23:25:46 +02:00

426 lines
8.5 KiB
Dart

// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';
// ignore_for_file: type=lint
/// The translations for Portuguese (`pt`).
class AppLocalizationsPt extends AppLocalizations {
AppLocalizationsPt([String locale = 'pt']) : super(locale);
@override
String get appTitle => 'FoodAI';
@override
String get greetingMorning => 'Bom dia';
@override
String get greetingAfternoon => 'Boa tarde';
@override
String get greetingEvening => 'Boa noite';
@override
String get caloriesUnit => 'kcal';
@override
String get gramsUnit => 'g';
@override
String get goalLabel => 'meta:';
@override
String get consumed => 'Consumido';
@override
String get remaining => 'Restante';
@override
String get exceeded => 'Excedido';
@override
String get proteinLabel => 'Proteínas';
@override
String get fatLabel => 'Gorduras';
@override
String get carbsLabel => 'Carboidratos';
@override
String get today => 'Hoje';
@override
String get yesterday => 'Ontem';
@override
String get mealsSection => 'Refeições';
@override
String get addDish => 'Adicionar prato';
@override
String get scanDish => 'Escanear';
@override
String get menu => 'Menu';
@override
String get dishHistory => 'Histórico de pratos';
@override
String get recommendCook => 'Recomendamos cozinhar';
@override
String get camera => 'Câmera';
@override
String get gallery => 'Galeria';
@override
String get analyzingPhoto => 'Analisando foto...';
@override
String get inQueue => 'Você está na fila';
@override
String queuePosition(int position) {
return 'Posição $position';
}
@override
String get processing => 'Processando...';
@override
String get upgradePrompt => 'Pular a fila? Faça upgrade →';
@override
String get recognitionFailed => 'Reconhecimento falhou. Tente novamente.';
@override
String get dishRecognition => 'Reconhecimento de pratos';
@override
String get all => 'Todos';
@override
String get dishRecognized => 'Prato reconhecido';
@override
String get recognizing => 'Reconhecendo…';
@override
String get recognitionError => 'Erro de reconhecimento';
@override
String get dishResultTitle => 'Prato reconhecido';
@override
String get selectDish => 'Selecionar prato';
@override
String get dishNotRecognized => 'Prato não reconhecido';
@override
String get tryAgain => 'Tentar novamente';
@override
String get nutritionApproximate =>
'Os valores nutricionais são aproximados — estimados pela foto.';
@override
String get portion => 'Porção';
@override
String get mealType => 'Tipo de refeição';
@override
String get dateLabel => 'Data';
@override
String get addToJournal => 'Adicionar ao diário';
@override
String get addFailed => 'Falha ao adicionar. Tente novamente.';
@override
String get historyTitle => 'Histórico de reconhecimentos';
@override
String get historyLoadError => 'Falha ao carregar o histórico';
@override
String get retry => 'Tentar novamente';
@override
String get noHistory => 'Nenhum reconhecimento ainda';
@override
String get profileTitle => 'Perfil';
@override
String get edit => 'Editar';
@override
String get bodyParams => 'PARÂMETROS CORPORAIS';
@override
String get goalActivity => 'OBJETIVO & ATIVIDADE';
@override
String get nutrition => 'NUTRIÇÃO';
@override
String get settings => 'CONFIGURAÇÕES';
@override
String get height => 'Altura';
@override
String get weight => 'Peso';
@override
String get age => 'Idade';
@override
String get gender => 'Gênero';
@override
String get genderMale => 'Masculino';
@override
String get genderFemale => 'Feminino';
@override
String get goalLoss => 'Perda de peso';
@override
String get goalMaintain => 'Manutenção';
@override
String get goalGain => 'Ganho muscular';
@override
String get activityLow => 'Baixa';
@override
String get activityMedium => 'Média';
@override
String get activityHigh => 'Alta';
@override
String get calorieGoal => 'Meta calórica';
@override
String get mealTypes => 'Tipos de refeição';
@override
String get formulaNote => 'Calculado com a fórmula de Mifflin-St Jeor';
@override
String get language => 'Idioma';
@override
String get notSet => 'Não definido';
@override
String get calorieHint =>
'Insira os parâmetros corporais para calcular a meta calórica';
@override
String get logout => 'Sair';
@override
String get editProfile => 'Editar perfil';
@override
String get cancel => 'Cancelar';
@override
String get save => 'Salvar';
@override
String get nameLabel => 'Nome';
@override
String get heightCm => 'Altura (cm)';
@override
String get weightKg => 'Peso (kg)';
@override
String get birthDate => 'Data de nascimento';
@override
String get nameRequired => 'Insira o nome';
@override
String get profileUpdated => 'Perfil atualizado';
@override
String get profileSaveFailed => 'Falha ao salvar';
@override
String get mealTypeBreakfast => 'Café da manhã';
@override
String get mealTypeSecondBreakfast => 'Segundo café da manhã';
@override
String get mealTypeLunch => 'Almoço';
@override
String get mealTypeAfternoonSnack => 'Lanche da tarde';
@override
String get mealTypeDinner => 'Jantar';
@override
String get mealTypeSnack => 'Petisco';
@override
String get navHome => 'Início';
@override
String get navProducts => 'Produtos';
@override
String get navRecipes => 'Receitas';
@override
String get addFromReceiptOrPhoto => 'Adicionar de recibo ou foto';
@override
String get chooseMethod => 'Escolher método';
@override
String get photoReceipt => 'Fotografar recibo';
@override
String get photoReceiptSubtitle => 'Reconhecemos todos os produtos do recibo';
@override
String get photoProducts => 'Fotografar produtos';
@override
String get photoProductsSubtitle =>
'Geladeira, mesa, prateleira — até 3 fotos';
@override
String get addPackagedFood => 'Adicionar alimento embalado';
@override
String get scanBarcode => 'Escanear código de barras';
@override
String get portionWeightG => 'Peso da porção (g)';
@override
String get productNotFound => 'Produto não encontrado';
@override
String get enterManually => 'Inserir manualmente';
@override
String get perHundredG => 'por 100 g';
@override
String get searchFoodHint => 'Pesquisar produtos e pratos...';
@override
String get recentlyUsedLabel => 'Usados recentemente';
@override
String get productsSection => 'Produtos';
@override
String get dishesSection => 'Pratos';
@override
String noResultsForQuery(String query) {
return 'Nada encontrado para \"$query\"';
}
@override
String get servingsLabel => 'Porções';
@override
String get addToDiary => 'Adicionar ao diário';
@override
String get scanDishPhoto => 'Escanear foto';
@override
String planningForDate(String date) {
return '';
}
@override
String get markAsEaten => 'Marcar como comido';
@override
String get plannedMealLabel => 'Planejado';
@override
String get generateWeekLabel => 'Planejar a semana';
@override
String get generateWeekSubtitle =>
'A IA criará um menu com café da manhã, almoço e jantar para a semana inteira';
@override
String get generatingMenu => 'Gerando menu...';
@override
String get dayPlannedLabel => 'Dia planejado';
@override
String get planMenuButton => 'Planejar refeições';
@override
String get planMenuTitle => 'O que planejar?';
@override
String get planOptionSingleMeal => 'Uma refeição';
@override
String get planOptionSingleMealDesc => 'Escolher dia e tipo de refeição';
@override
String get planOptionDay => 'Um dia';
@override
String get planOptionDayDesc => 'Todas as refeições de um dia';
@override
String get planOptionDays => 'Vários dias';
@override
String get planOptionDaysDesc => 'Personalizar período';
@override
String get planOptionWeek => 'Uma semana';
@override
String get planOptionWeekDesc => '7 dias de uma vez';
@override
String get planSelectDate => 'Selecionar data';
@override
String get planSelectMealType => 'Tipo de refeição';
@override
String get planSelectRange => 'Selecionar período';
@override
String get planGenerateButton => 'Planejar';
@override
String get planGenerating => 'Gerando plano…';
@override
String get planSuccess => 'Menu planejado!';
}