android-finalizer: finish Spanish visible copy
This commit is contained in:
@@ -1,58 +0,0 @@
|
||||
name: Android Spanish cleanup once
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'release/android-0.19.0-final-field-flow'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: release/android-0.19.0-final-field-flow
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Replace remaining visible anglicisms
|
||||
run: |
|
||||
set -Eeuo pipefail
|
||||
python - <<'PY'
|
||||
from pathlib import Path
|
||||
|
||||
def replace(path, old, new):
|
||||
p = Path(path)
|
||||
text = p.read_text()
|
||||
if old not in text:
|
||||
raise SystemExit(f'Pattern not found in {path}: {old!r}')
|
||||
p.write_text(text.replace(old, new))
|
||||
|
||||
replace(
|
||||
'android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/ModernVisitRoot.kt',
|
||||
'El checklist requiere actualización.',
|
||||
'La lista de control requiere actualización.',
|
||||
)
|
||||
replace(
|
||||
'android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/ModernVisitRoot.kt',
|
||||
'Dato equivalente al alta desde el Dashboard.',
|
||||
'Dato equivalente al alta desde el panel web.',
|
||||
)
|
||||
replace(
|
||||
'android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui/FieldFindingScreen.kt',
|
||||
'"GPS + foto del Inventario: ${if (options.capture.readyForFinding) "OK" else "pendiente"}"',
|
||||
'"GPS + foto del Inventario: ${if (options.capture.readyForFinding) "completo" else "pendiente"}"',
|
||||
)
|
||||
PY
|
||||
|
||||
- name: Commit cleanup and remove workflow
|
||||
run: |
|
||||
set -Eeuo pipefail
|
||||
git config user.name 'DH Android Finalizer'
|
||||
git config user.email 'android-finalizer@dhv2.local'
|
||||
git rm .github/workflows/android-spanish-cleanup-once.yml
|
||||
git add android-app/app/src/main/java/com/korexlabs/dhinspeccion/ui
|
||||
git commit -m 'android-finalizer: finish Spanish visible copy'
|
||||
git push origin HEAD:release/android-0.19.0-final-field-flow
|
||||
@@ -185,7 +185,7 @@ fun FieldFindingScreen(model: MainViewModel) {
|
||||
Text(asset.name, fontWeight = FontWeight.Bold)
|
||||
Text("${asset.code} · Acta ${options.act.code}", style = MaterialTheme.typography.bodySmall)
|
||||
Text(
|
||||
"GPS + foto del Inventario: ${if (options.capture.readyForFinding) "OK" else "pendiente"}",
|
||||
"GPS + foto del Inventario: ${if (options.capture.readyForFinding) "completo" else "pendiente"}",
|
||||
color = if (options.capture.readyForFinding) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.error,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
)
|
||||
|
||||
@@ -274,7 +274,7 @@ private fun ModernChecklistCard(visit: VisitDetail) {
|
||||
)
|
||||
}
|
||||
if (checklist.stale) {
|
||||
Text("El checklist requiere actualización.", color = MaterialTheme.colorScheme.error)
|
||||
Text("La lista de control requiere actualización.", color = MaterialTheme.colorScheme.error)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -819,7 +819,7 @@ private fun ModernFieldInventoryScreen(model: MainViewModel, onBack: () -> Unit)
|
||||
value = description,
|
||||
onValueChange = { description = it },
|
||||
label = { Text("Descripción (opcional)") },
|
||||
supportingText = { Text("Dato equivalente al alta desde el Dashboard.") },
|
||||
supportingText = { Text("Dato equivalente al alta desde el panel web.") },
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
minLines = 2,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user