added some camera changes and included IOS support

This commit is contained in:
2025-10-18 19:02:26 +02:00
parent 2e3a69a23e
commit be9b13fb15
7 changed files with 766 additions and 80 deletions
+144
View File
@@ -342,6 +342,94 @@ class AppTranslations {
'Slovenian': 'Ni mogoče naložiti kamere',
},
// Mode Selection
'Select Detection Mode': {
'English': 'Select Detection Mode',
'Slovenian': 'Izberi način zaznavanja',
},
'Capture & Shoot': {
'English': 'Capture & Shoot',
'Slovenian': 'Zajemi in streljaj',
},
'Take single photo and detect bullets': {
'English': 'Take single photo and detect bullets',
'Slovenian': 'Zajemi fotografijo in zazna zadetke',
},
'Live Detection': {
'English': 'Live Detection',
'Slovenian': 'Živa zaznava',
},
'Continuous monitoring with real-time scoring': {
'English': 'Continuous monitoring with real-time scoring',
'Slovenian': 'Neprekinjeno spremljanje z ocenjevanjem v živo',
},
// Live Detection Screen
'Capture Baseline': {
'English': 'Capture Baseline',
'Slovenian': 'Zajemi osnovno sliko',
},
'Position target and capture empty baseline': {
'English': 'Position target and capture empty baseline',
'Slovenian': 'Postavi tarčo in zajemi prazno osnovno sliko',
},
'Start Detection': {
'English': 'Start Detection',
'Slovenian': 'Začni zaznavanje',
},
'Stop Detection': {
'English': 'Stop Detection',
'Slovenian': 'Ustavi zaznavanje',
},
'Bullets Detected': {
'English': 'Bullets Detected',
'Slovenian': 'Zaznani zadetki',
},
'Current Score': {
'English': 'Current Score',
'Slovenian': 'Trenutna ocena',
},
'Monitoring...': {
'English': 'Monitoring...',
'Slovenian': 'Spremljanje...',
},
'Save & Exit': {
'English': 'Save & Exit',
'Slovenian': 'Shrani in zapri',
},
'Capturing baseline...': {
'English': 'Capturing baseline...',
'Slovenian': 'Zajemanje osnove...',
},
'Baseline captured!': {
'English': 'Baseline captured!',
'Slovenian': 'Osnova zajeta!',
},
'Analyzing frame...': {
'English': 'Analyzing frame...',
'Slovenian': 'Analiza slike...',
},
'New bullet detected!': {
'English': 'New bullet detected!',
'Slovenian': 'Nov zadetek zaznan!',
},
'Calculate Score': {
'English': 'Calculate Score',
'Slovenian': 'Izračunaj rezultat',
},
'Target reached': {
'English': 'Target reached',
'Slovenian': 'Cilj dosežen',
},
'bullets': {
'English': 'bullets',
'Slovenian': 'zadetkov',
},
'Click Calculate Score to continue': {
'English': 'Click Calculate Score to continue',
'Slovenian': 'Kliknite Izračunaj rezultat za nadaljevanje',
},
// Delete confirmations
'Are you sure you want to delete this file?': {
'English': 'Are you sure you want to delete this file?',
@@ -367,6 +455,62 @@ class AppTranslations {
'English': 'and all of its contents?',
'Slovenian': 'in vso njeno vsebino?',
},
// Help dialog translations
'Help': {
'English': 'Help',
'Slovenian': 'Pomoč',
},
'Tap camera button to capture and detect bullets': {
'English': 'Tap camera button to capture and detect bullets',
'Slovenian': 'Tapnite gumb kamere za zajem in zaznavanje zadetkov',
},
'Bottom left number: Set expected bullet count (1-5)': {
'English': 'Bottom left number: Set expected bullet count (1-5)',
'Slovenian': 'Spodaj levo številka: Nastavite število zadetkov (1-5)',
},
'Sun icon: Adjust brightness and contrast for better visibility': {
'English': 'Sun icon: Adjust brightness and contrast for better visibility',
'Slovenian': 'Ikona sonca: Prilagodite svetlost in kontrast za boljšo vidljivost',
},
'Filter icon: Apply color filters (None, Greyscale, Invert)': {
'English': 'Filter icon: Apply color filters (None, Greyscale, Invert)',
'Slovenian': 'Ikona filtra: Uporabite barvne filtre (Brez, Sivine, Inverzno)',
},
'Pinch to zoom on the camera stream': {
'English': 'Pinch to zoom on the camera stream',
'Slovenian': 'Povečajte s prstoma na video pretoku',
},
'Align target inside the square frame': {
'English': 'Align target inside the square frame',
'Slovenian': 'Poravnajte tarčo znotraj kvadratnega okvirja',
},
'Got it!': {
'English': 'Got it!',
'Slovenian': 'Razumem!',
},
// Brightness & Contrast dialog translations
'Brightness & Contrast': {
'English': 'Brightness & Contrast',
'Slovenian': 'Svetlost in kontrast',
},
'Brightness': {
'English': 'Brightness',
'Slovenian': 'Svetlost',
},
'Contrast': {
'English': 'Contrast',
'Slovenian': 'Kontrast',
},
'Reset': {
'English': 'Reset',
'Slovenian': 'Ponastavi',
},
'Done': {
'English': 'Done',
'Slovenian': 'Končano',
},
};
static String translate(String key, String language) {