Skip to content

Commit

Permalink
Fix translation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Nov 20, 2023
1 parent f733425 commit 32807b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,6 @@
<string name="gps_satellites">GPS satelliten</string>
<string name="gps_location_accuracy">GPS positions Genauigkeit</string>
<string name="gps_accuracy_tip">Stelle sicher das du eine freie sicht auf den Himmel hast und bewege dich von großen Gebäuden und bäumen weg.</string>
<string name="restore_failure_newer_version">Diese Wiederherstellungsdatei wurde mit einer neueren Version von %s erstellt. Bitte aktualisiere %s und versuche es erneut.</string>
<string name="invalid_backup_file">Ungültige Wiederherstellungsdatei</string>
<string name="backup_restore">Sichern / Wiederherstellen</string>
<string name="restore_complete_message">Wiederherstellung erfolgreich, startet neu um Änderungen zu übernehmen</string>
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@
<string name="waypoint">Reittipiste</string>
<string name="water_boil_timer_channel_description">Vesi kiehuu</string>
<string name="reduce_map_resolution">Pienennä kartan resoluutiota</string>
<string name="frequency"></string>
<plurals name="beacons_imported">
<item quantity="one">%d majakka tuotu</item>
<item quantity="other">%d majakkaa tuotu</item>
Expand Down Expand Up @@ -726,7 +725,6 @@
<string name="pref_privacy_policy_title">Tietosuojakäytäntö</string>
<string name="guide_thermometer_calibration_title">Lämpömittarin kalibrointi</string>
<string name="season_summer">Kesä</string>
<string name="astronomy_set"></string>
<string name="odometer">Matkamittari</string>
<string name="solar_eclipses">Auringonpimennykset</string>
<string name="battery_health_overheat">Ylikuuma</string>
Expand Down
6 changes: 3 additions & 3 deletions scripts/string-fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class EmptyTranslation(StringDiagnostic):
def check(self, source_tree, tree, element) -> bool:
if source_tree == tree:
return False
return len(element.text.strip()) == 0
return element.text is None or len(element.text.strip()) == 0

def fix(self, source_tree, tree, element) -> bool:
delete_element(tree, element)
Expand All @@ -194,14 +194,14 @@ def is_warning(self) -> bool:
reference_tree = read_xml(reference_file)

diagnostics = [
EmptyTranslation(),
PreferenceKeyTranslatable(),
NonTranslatableTranslated(),
FormattingDoesNotMatch(),
NotInSource(),
PositionalFormattingUnspecified(),
TranslatedAppName(),
HardCodedAppName(),
EmptyTranslation()
HardCodedAppName()
]


Expand Down

0 comments on commit 32807b9

Please sign in to comment.