Define backup + make life easier for app translators

pull/12/head
Fox2Code 2 years ago
parent 3e4da0bb77
commit 06942a1dcb

@ -55,6 +55,15 @@ It allow module developers to have a more customizable install experience
For more information please check the [developer documentation](DEVELOPERS.md)
## For translators
See [`app/src/main/res/values/strings.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/strings.xml)
and [`app/src/main/res/values/arrays.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/arrays.xml)
If your language is right to left you should make a copy of [`app/src/main/res/values/bools.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/bools.xml)
and set `lang_support_rtl` to `true`.
Translators are not expected to have any previous coding experience.
## Screenshots
Main activity:

@ -16,13 +16,16 @@
<application
android:name=".MainApplication"
android:allowBackup="false"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:supportsRtl="@bool/lang_support_rtl"
android:testOnly="false"
android:theme="@style/Theme.MagiskModuleManager">
android:theme="@style/Theme.MagiskModuleManager"
android:fullBackupContent="@xml/full_backup_content"
android:dataExtractionRules="@xml/data_extraction_rules"
tools:targetApi="s">
<receiver android:name="com.fox2code.mmm.manager.ModuleBootReceive"
android:exported="true">
<intent-filter>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="lang_support_rtl">false</bool>
</resources>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup>
<include domain="sharedpref" path="mmm.xml"/>
</cloud-backup>
<device-transfer>
<include domain="sharedpref" path="mmm.xml"/>
</device-transfer>
</data-extraction-rules>

@ -0,0 +1,3 @@
<full-backup-content>
<include domain="sharedpref" path="mmm.xml"/>
</full-backup-content>
Loading…
Cancel
Save