This fixes missing strings in Weblate translation, although they are
supposedly in the strings.xml files.
Introduce string-array elements matching those from the source
strings.xml, but instead pointing to a `@string` reference. The latter
is to be translated based on the assigned sub item's key.
Weblate does not handle string-arrays, but needs this indirection, see
https://docs.weblate.org/en/latest/formats/android.html
All existing translations are pulled in by migrating the `<string-array
name="..."><item>...` elements to `<string name="...">` elements
instead. This was done using an XSLT stylesheet, so can be easily
reproduced.
**IMPORTANT, MERGING ORDER:**
1. [x] The automated Weblate PR should be merged first, after committing
any outstanding translation changes on Weblate.
2. [x] Then rebase this branch, best re-applying the XSLT in case of
conflicts.
3. [ ] Then merge this PR.
Update all `strings.xml` translation files to replace triple full-stop
with proper Unicode ellipsis. Fix other syntax problems and cosmetics in
translation source `strings.xml`.
The code to calculate this metric has long been removed from the backend upstream, in commit c7d6a6d780.
Thus the GUI element should go away as well, currently always displaying 0 percent anyways.
Ref https://github.com/syncthing/syncthing/pull/6393
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>
* 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
* Added UI experimental option to enable/disable FolderObserver
* Disable android watcher by default.
* WIP - dismiss file watcher notification
todo - SyncthingRunnable has to run and migrate the config v27>28 before the file watcher notification can be dismissed.
* fix object type
* remove unackednotifications instead of altering it
* removed extra blank lines
* fix removeChild
* updated syncthing to v0.14.47-rc.2
* WIP - log remove of unackedNotificationID
* WIP - improved config migration 27>28
Prevent generating the unackedNotification fsWatcher in WebGUI by manual bumping the config version to #28.
* fix typo
* WIP - polish version bump code
* syncthing/imsodin-debugAndroidWatch
* update syncthing to v0.14.47-rc.3
* fix NPE on first app start
* fix pref condition
* add ConfigXML support for fsWatcher transition
Added UI experimental option to enable/disable FolderObserver
Disable android watcher by default.
WIP - dismiss file watcher notification
todo - SyncthingRunnable has to run and migrate the config v27>28 before the file watcher notification can be dismissed.
fix object type
remove unackednotifications instead of altering it
removed extra blank lines
fix removeChild
updated syncthing to v0.14.47-rc.2
WIP - log remove of unackedNotificationID
WIP - improved config migration 27>28
Prevent generating the unackedNotification fsWatcher in WebGUI by manual bumping the config version to #28.
fix typo
WIP - polish version bump code
syncthing/imsodin-debugAndroidWatch
update syncthing to v0.14.47-rc.3
fix NPE on first app start
fix pref condition
* updated syncthing to v0.14.47+3d02fcd notify-fix
* updated ConfigXml, FolderObs explanation, st 0.14.47-rc.4
* fixed string escape
* add restartOnWakeup setting to the UI
* restartOnWakeup = false by default on first app start and config generation
* improved logging of restartOnWakeup option to produce meaningful logs
* restartOnWakeup enabled by default
see discussion in https://github.com/syncthing/syncthing-android/issues/368
* PR improved according to review
* fix intendation - Atom Tab Indent = 4
* move configXml migration to separate function
* changeLocalDeviceName only affects "self device" - fixes https://github.com/syncthing/syncthing-android/issues/1059
* revert changeLocalDeviceName fix
* fixed changed result in migrateSyncthingOptions
* improved dismissing unackedNotificationID
* extend folder settings UI by fsWatcherEnabled checkbox
* remove FolderObserver
+ Constant.PREF_USE_TOR according to AudriusButkevicius' review added instead of static strings
* remove folderchange listener
* WIP - temporary - restApi logging
for better understanding whats going on
* prevent removingthe wrong unackedNotificationID
* fix build
* give me more log
* fix PostConfig REST request not working
due to missing fields in the folder model
* remove unused string
toast_folder_observer_stack_overflow using AndroidStudio
* fix typo
* trigger rebuild
* fix UI icon
* Revert to Syncthing to 0.14.46 and cherry-pick
* improved code according to review
* fix translation indent