Skip to content

Commit

Permalink
Revert "fix: delete wrong translations & fix null error (#4501)"
Browse files Browse the repository at this point in the history
This reverts commit 1bf2517.
  • Loading branch information
VaiTon committed Feb 28, 2022
1 parent f2c125c commit 9b25706
Show file tree
Hide file tree
Showing 289 changed files with 292 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ class PreferencesFragment : PreferenceFragmentCompat(), INavigationItem {
} catch (e: NullPointerException) {
throw IllegalStateException("Preference fragment not attached to AppCompatActivity.")
}
preferenceManager.sharedPreferences?.registerOnSharedPreferenceChangeListener(preferencesListener)
preferenceManager.sharedPreferences.registerOnSharedPreferenceChangeListener(preferencesListener)
}

override fun onPause() {
preferenceManager.sharedPreferences?.unregisterOnSharedPreferenceChangeListener(preferencesListener)
preferenceManager.sharedPreferences.unregisterOnSharedPreferenceChangeListener(preferencesListener)
super.onPause()
}

Expand Down Expand Up @@ -362,7 +362,7 @@ class PreferencesFragment : PreferenceFragmentCompat(), INavigationItem {
// The service will load server resources only if newer than already downloaded...
WorkManager.getInstance(requireContext()).let {
it.enqueue(request)
it.getWorkInfoByIdLiveData(request.id).observe(this@PreferencesFragment) { workInfo: WorkInfo? ->
it.getWorkInfoByIdLiveData(request.id).observe(this@PreferencesFragment, { workInfo: WorkInfo? ->
when (workInfo?.state) {
WorkInfo.State.RUNNING -> {
pref.setTitle(R.string.please_wait)
Expand All @@ -375,7 +375,7 @@ class PreferencesFragment : PreferenceFragmentCompat(), INavigationItem {
}
else -> Unit // Nothing
}
}
})
}
true
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-aa-rER/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-aa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ach-rUG/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ach/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-af-rZA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-af/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ak-rGH/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ak/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-am-rET/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-am/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ar-rSA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@
<string name="notify_channel_description">إشعار لإظهار موقع الملف المستخرج</string>
<string name="products_to_be_completed">مُنتجات مراد إكمالها</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">تمت إضافة المنتج بتاريخ %1$s فى %2$s من قبل%3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">التعديل الأخير من صفحة المنتج على %1$s في %2$s CEST بواسطة %3$s</string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">تم تعديل المنتج أيضاً بواسطة </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@
<string name="products_to_be_completed">مُنتجات مراد إكمالها</string>
<string name="offline_notification_title">المساهمات دون اتصال التي تحتاج إلى إرسالها</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">التعديل الأخير من صفحة المنتج على %1$s في %2$s CEST بواسطة %3$s</string>
<string name="other_editors">تم تعديل المنتج أيضاً بواسطة </string>
<string name="contribution_tab">مساهمات</string>
<string name="pref_contribution_tab_summary">عرض تابه مساهمات المستخدم مع المنتجات</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-as-rIN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-as/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ast-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ast/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-az-rAZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-az/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-be-rBY/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-be/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ber-rDZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ber/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Products to be completed</string>
<string name="offline_notification_title">Offline contributions you need to send</string>
<string name="creator_history">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<string name="other_editors">Product page also edited by </string>
<string name="contribution_tab">Contributions</string>
<string name="synthesis_tab">Synthesis</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-bg-rBG/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<string name="notify_channel_description">Уведомление за показване на местоположението на изнесения файл</string>
<string name="products_to_be_completed">Продукти за завършване</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Продукт добавен в %1$s на %2$s CET от %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Последна редакция на страницата на продукта в %1$s на %2$s CEST от %3$s</string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Страницата на продукта е редактирана също от </string>
<string name="product_states">Product States</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-bg/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@
<string name="products_to_be_completed">Продукти, които трябва да бъдат завършени</string>
<string name="offline_notification_title">Офлайн приноси, които трябва да изпратите</string>
<string name="creator_history">Продукт добавен в %1$s на %2$s CET от %3$s</string>
<string name="last_editor_history">Последна редакция на страницата на продукта в %1$s на %2$s CEST от %3$s</string>
<string name="other_editors">Страницата на продукта е редактирана също от </string>
<string name="contribution_tab">Приноси</string>
<string name="pref_contribution_tab_summary">Показване на раздела с потребителски приноси с продукти</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-bm-rML/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@
<string name="notify_channel_description">Notification to show exported file\'s location</string>
<string name="products_to_be_completed">Products to be completed</string>
<string name="creator_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Product added on %1$s at %2$s CET by %3$s</string>
<string name="last_editor_history" comment="Do not modify the placeholders, and make sure all of them are present in the translation.">Last edit of product page on %1$s at %2$s CEST by %3$s </string>
<!-- TODO: Add the placeholder in the string - important for several languages -->
<string name="other_editors">Product page also edited by </string>
<string name="product_states">Product States</string>
Expand Down

0 comments on commit 9b25706

Please sign in to comment.