Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Add check for @string/abc_xyz translations

  • /e/ version: N/A
  • Device model(s): N/A
  • Device rooted: N/A

Summary

I have spotted some errors in the German translation, where untranslatable strings of the form @string/abc_xyz have been translated

Technical information

Relevant screenshots

e_string_placeholders

Solutions

Possible fixes

  • Add placeholder regex to Weblate so that they will be flagged up in the checks for proofreaders - r"^@string/[a-zA-Z_]+$" should do the job.
  • Mark them as non-translatable in Android’s strings.xml like this: <string name="settings_key_theme" translatable="false">pref_theme</string>

c.f. forum discussion https://community.e.foundation/t/add-regex-for-string-import-complete-in-weblate/33960