There is a basic variant "de" which is recognized by Weblate and
actually has translated strings in contrast to the specialized de_DE
variant. Seems obvious to keep the former.
There is a basic variant "si" which is recognized by Weblate and much
more complete than the specialized si_LK variant. Seems obvious to
keep the former.
For strings containing escaped newlines (\n), always start a new line
right before that sequence and remove any other whitespace in between.
Let the closing </string> tag follow immediately on the last line.
Keep one-line translations on one line, without arbitrary wrapping.
Actually fix some line-break inconsistencies within the translations
along the way. Some had questionable \n\ sequences, capitalized \N or
the n actually forgotten after an escaping backslash, which lead to
parsing errors. Others simply used two line breaks (which are
collapsed to one space during parsing) instead of the needed \n escape
sequence.
This gets the format much closer to what Weblate generates when
dumping the parsed strings into fresh XML files. Also harmonizes the
formatting in the "source" (English) values/strings.xml though.
Assuming that these are just input errors, as they don't exist in the
English strings and are not explicitly quoted.
Weblate will remove when outputting translated strings anyway.
The option "restartOnWakeup" was removed in Syncthing v1.21.0 [1]. Thus,
remove it from the Android app as well, since the option does not
perform any function anymore. In addition, update the Docs also [2].
[1] https://github.com/syncthing/syncthing/issues/8448
[2] https://github.com/syncthing/docs/pull/815
Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
Co-authored-by: Tomasz Wilczyński <twilczynski@naver.com>
closes#1963
PS: This one has been kinda ugly to spot, ngl. I didn't expect that we
were modifying the welcome activity status bar color programmatically
instead of just with an XML theme ...
* add internal QR Scanner Activity
* add CAMERA permission to Manifest
* add dimension for Button Height
* remove non-existent RestartActivity from Manifest
* accept licenses for Android SDK 29
* rollback gradle to 3.6.3
* add dependency for zxing:core:3.3.0 to support Android API 14+
* Bump com.github.triplet.play from 2.5.0 to 2.7.5
Bumps com.github.triplet.play from 2.5.0 to 2.7.5.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix com.github.triplet.play dependency setup
* gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2
from: 5ad55348b8
* build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3
* gradle.properties: + android.useAndroidX=true
* Migrate to AndroidX: import androidx.databinding.DataBindingUtil
* Create setenv.cmd
* Fix lint error: RtlCompat
Right-to-left text compatibility issues
../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
43 android:paddingLeft="@dimen/desc_padding"
44 android:paddingRight="@dimen/desc_padding"
45 android:text="@string/welcome_text"
46 android:textAlignment="center"
47 android:textColor="@android:color/white"
48 android:textSize="@dimen/slide_desc" />
49
../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
58 android:paddingLeft="@dimen/desc_padding"
59 android:paddingRight="@dimen/desc_padding"
60 android:text="@string/storage_permission_desc"
61 android:textAlignment="center"
62 android:textColor="@android:color/white"
63 android:textSize="@dimen/slide_desc" />
64
../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
58 android:paddingLeft="@dimen/desc_padding"
59 android:paddingRight="@dimen/desc_padding"
60 android:text="@string/location_permission_desc"
61 android:textAlignment="center"
62 android:textColor="@android:color/white"
63 android:textSize="@dimen/slide_desc" />
64
../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
8 android:layout_height="wrap_content"
9 android:layout_margin="10dp"
10 android:text="@string/command"
11 android:textAlignment="center"
12 android:textColor="@android:color/black"
13 android:textSize="18sp"
14 android:textStyle="bold" />
../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
20 android:layout_height="wrap_content"
21 android:layout_margin="10dp"
22 android:text="@string/keep_versions"
23 android:textAlignment="center"
24 android:textColor="@android:color/black"
25 android:textSize="18sp"
26 android:textStyle="bold" />
../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
14 android:layout_width="match_parent"
15 android:layout_height="wrap_content"
16 android:text="@string/maximum_age"
17 android:textAlignment="center"
18 android:textColor="@android:color/black"
19 android:textSize="18sp"
20 android:textStyle="bold"
../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
41 android:layout_height="wrap_content"
42 android:layout_margin="10dp"
43 android:text="@string/versions_path"
44 android:textAlignment="center"
45 android:textColor="@android:color/black"
46 android:textSize="18sp"
47 android:textStyle="bold"
../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
* AndroidManifest: Add permission ACCESS_FINE_LOCATION
Ref.: 5755ed45ad
* Migrate to AndroidX, solves lint error "IncompatibleGradle"
according to:
- b04489e062
* Fix lint error: MissingPermission, catch SecurityException
* Revert "Create setenv.cmd"
This reverts commit e39c460837.
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
* Bump gradle from 3.1.3 to 3.4.2
Bumps gradle from 3.1.3 to 3.4.2.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix mistakes resulting in build errors after gradle upgrade
* WIP - Extend run condition monitor functions
* WIP - Better run conditions UI
* WIP - Allow applying run conditions to foreground and background
execution of the syncthing app
* WIP - Add mobile data run condition
* WIP - Fix RunConditionMonitor#onSharedPreferenceChanged
* WIP - Directly go to SettingsActivity#Run_Conditions screen
after the "change run condition" button has been clicked in
StateDialogActivity during STATE_DISABLED
* Disable Syncthing in flight mode (fixes#1173)
... and allow to enable it on phone that have problems
detecting wifi connection if the user manually enables
one during flight mode.
* Add run condition "Run on metered wifi" (fixes#937)
* Improve string
* Add run condition "Respect Android Auto-sync data quick toggle" (fixes#588)
* Remove SharedPreferences.OnSharedPreferenceChangeListener
* Added SyncthingService#reEvaluateRunConditions
* Implement mPendingRunConditions in SettingsActivity
to queue run condition changes until the user leaves
the preferences screen after making changes. (fixes#1196)
* Rename reEvaluateRunConditions to evaluateRunConditions
according to review
* Fix implementation of ContentResolver.removeStatusChangeListener
* Reordered run conditions
wifi, metered wifi, wifi whitelist, mobile data
* Review 1/2
* Fix logic for metered/non-metered wifi run condition
* Remove PreferenceScreen dividers on API level > 21
* Revert "Remove PreferenceScreen dividers on API level > 21"
This reverts commit ec037b02e4.
* Detect changes made to wifi connections in android's data usage dialog
related to the metered wifi flag.
* Review - Minor string improvements
Removed unused variable from RunConditionMonitor
Move always_run_in_background pref to pref category
"Behaviour".
* Review - "Start service automatically on boot" string
* Remove unused strings
* Prepare welcome wizard related to issues
https://github.com/syncthing/syncthing-android/issues/1129https://github.com/syncthing/syncthing-android/issues/622
* Add drawables and texts
* Disable scrolling the ViewPager, we have buttons for that
* Add welcome wizard code
Ask for storage and location permission
Location permission is required to run the app
Recheck storage permission on each app start, if revoked the
welcome slides show again.
* Review
* Review - Do not quit the app when storage permission is not granted
* Review - Minor string improvements