Mapping of Weblate read-only and "translatable" attribute in Android XML is inconsistent #13256
Open
2 tasks done
Labels
enhancement
Adding or requesting a new feature.
Describe the issue
The current mapping between Android's
translatable
attribute and the read-only state in Weblate seems inconsistent.Android strings that were originally
translatable="false"
:The string is shown as read-only but the Tools dropdown still shows the menu item "Mark as read-only". This menu item can be toggled on and off, but does not seem to change anything . There seems to be no way to ever remove the read-only flag through Weblate.
Android strings that were originally translatable (i.e. did not have a
translatable
attribute)For these strings, read-only can be turned on in Weblate. With PR #12697, this results in
translatable="false"
in the string resource in the repository. However, this happens only if the string has also been modified in Weblate prior to turning on read-only. And once that happens, there seems to be no way to ever remove thattranslatable="false"
attribute anymore through Weblate.I already tried
Steps to reproduce the behavior
translatable="false"
and one withouttranslatable
attribute.Expected behavior
Turning off read-only via Weblate...
translatable="false"
in the original XML (and the Tools menu correctly reflects the current state).translatable="false"
attribute in the XML.Turning on read-only via Weblate...
translatable="false"
in the XML.In all cases, a commit should be created for the change of read-only, even if the string is not otherwise modified.
Screenshots
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
5.8.4 / 5.9-dev
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: