Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #121

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 29 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,70 @@
# Changelog

## Version 30

* Added a link to the project page.

## Version 29

* Updated app icon
* Updated translations
* Updated app icon.
* Updated translations.

## Version 28

* Fixed issue with inconsistent clickable area for counter value.

## Version 27

* Menu styling adjustment
* Menu styling adjustment.

## Version 26

* Styling adjustment
* Styling adjustment.

## Version 25

* Visual refresh
* Visual refresh.

## Version 24

* Counters in the list are now stored alphabetically
* Counters in the list are now stored alphabetically.

## Version 23

* Translation updates
* Fixes for some types of app crashes
* Translation updates.
* Fixes for some types of app crashes.

## Version 22

* Added a way to export all counters in CSV format (this feature can be accessed from app settings)
* Added a way to export all counters in CSV format (this feature can be accessed from app settings).

## Version 21

* Translation updates
* Major refactoring under the hood
* Translation updates.
* Major refactoring under the hood.

## Version 20

* Maximum (and minimum) counter limits are now significantly higher
* Maximum (and minimum) counter limits are now significantly higher.

## Version 19

* Added a way to increment the counter by clicking on the value
* List of counters is now sorted alphabetically
* Translation updates
* Added a way to increment the counter by clicking on the value.
* List of counters is now sorted alphabetically.
* Translation updates.

## Version 18

* Increased minimum Android version requirement to 4.0 (Ice Cream Sandwich)
* Fixed counter visibility in the dark theme
* Added icons into settings
* Translation updates
* Increased minimum Android version requirement to 4.0 (Ice Cream Sandwich).
* Fixed counter visibility in the dark theme.
* Added icons into settings.
* Translation updates.

## Version 17

* Dark theme
* RTL support
* Translation updates
* Dark theme.
* RTL support.
* Translation updates.

## Version 16
* Minor user interface updates (using new Android APIs).
Expand All @@ -77,7 +81,7 @@
* Added Arabic and Finnish translations, updated old ones.

## Version 13
* Fixed broken back button
* Fixed broken back button.

## Version 12
* Removed delay from hardware buttons.
Expand All @@ -95,12 +99,12 @@
* Updated localization (added Czech and updated other languages).

## Version 9
* Added "About" window
* Added "About" window.
* Interface improvements for devices with small screens.
* Updated localization (added German, Spanish, and French).

## Version 8
* Updated app icon
* Updated app icon.

## 2.3.1 (7)
* Added Italian localization (made by Vincenzo Petronio).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
Expand All @@ -28,6 +29,7 @@ public class SettingsActivity extends AppCompatActivity

public static final String KEY_REMOVE_COUNTERS = "removeCounters";
public static final String KEY_EXPORT_COUNTERS = "exportCounters";
public static final String KEY_HOMEPAGE = "homepage";
public static final String KEY_VERSION = "version";

private SharedPreferences sharedPrefs;
Expand All @@ -47,6 +49,7 @@ private void initSettingsFragment() {
settingsFragment = new SettingsFragment();
settingsFragment.setOnRemoveCountersClickListener(getOnRemoveCountersClickListener());
settingsFragment.setOnExportClickListener(getOnExportClickListener());
settingsFragment.setOnHomepageClickListener(getOnHomepageClickListener());
settingsFragment.setAppVersion(getAppVersion());
settingsFragment.setTheme(getCurrentThemeName());

Expand Down Expand Up @@ -86,6 +89,13 @@ private OnPreferenceClickListener getOnExportClickListener() {
};
}

private OnPreferenceClickListener getOnHomepageClickListener() {
return preference -> {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://counter.roman.zone")));
return true;
};
}

@Override
protected void onPostCreate(final Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.tsukanov.counter.view;

import static me.tsukanov.counter.activities.SettingsActivity.KEY_EXPORT_COUNTERS;
import static me.tsukanov.counter.activities.SettingsActivity.KEY_HOMEPAGE;
import static me.tsukanov.counter.activities.SettingsActivity.KEY_REMOVE_COUNTERS;
import static me.tsukanov.counter.activities.SettingsActivity.KEY_VERSION;

Expand All @@ -18,6 +19,7 @@ public final class SettingsFragment extends PreferenceFragmentCompat {

private OnPreferenceClickListener onRemoveCountersClickListener;
private OnPreferenceClickListener onExportClickListener;
private OnPreferenceClickListener onHomepageClickListener;
private String appVersion;
private String theme;

Expand All @@ -31,6 +33,11 @@ public void setOnExportClickListener(
this.onExportClickListener = onExportClickListener;
}

public void setOnHomepageClickListener(
final @NonNull OnPreferenceClickListener onHomepageClickListener) {
this.onHomepageClickListener = onHomepageClickListener;
}

public void setAppVersion(String appVersion) {
this.appVersion = appVersion;
}
Expand All @@ -53,6 +60,8 @@ public void onCreate(final Bundle savedInstanceState) {
.setOnPreferenceClickListener(onRemoveCountersClickListener);
findPreference(KEY_EXPORT_COUNTERS).setOnPreferenceClickListener(onExportClickListener);

findPreference(KEY_HOMEPAGE).setOnPreferenceClickListener(onHomepageClickListener);

} catch (NullPointerException e) {
Log.e(TAG, "Unable to retrieve one of the preferences", e);
}
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_link.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#878787"
android:pathData="M3.9,12c0,-1.71 1.39,-3.1 3.1,-3.1h4L11,7L7,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-1.9L7,15.1c-1.71,0 -3.1,-1.39 -3.1,-3.1zM8,13h8v-2L8,11v2zM17,7h-4v1.9h4c1.71,0 3.1,1.39 3.1,3.1s-1.39,3.1 -3.1,3.1h-4L13,17h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5z" />
</vector>
1 change: 1 addition & 0 deletions app/src/main/res/values-cs-rCZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<string name="settings_wipe_title">Odstranit všechna počítadla</string>
<string name="settings_wipe_confirmation">Jste si jistí, že chcete odstranit všechna počítadla?</string>
<string name="settings_wipe_confirmation_yes">Odstranit vše</string>
<!-- Toasts -->
<!-- Other stuff -->
<string name="unknown">Neznámé</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<string name="settings_wipe_title">Alle Zähler entfernen</string>
<string name="settings_export_title">Zähler exportieren</string>
<string name="settings_export_summary">Alle Zähler im CSV-Format exportieren</string>
<string name="settings_homepage_title">Webseite</string>
<string name="settings_homepage_summary">App-Info und Quellcode</string>
<string name="settings_wipe_confirmation">Möchtest Du wirklich alle Zähler entfernen?</string>
<string name="settings_wipe_confirmation_yes">Alle entfernen</string>
<!-- Toasts -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-el-rGR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<string name="settings_wipe_title">Διαγραφή όλων των μετρητών</string>
<string name="settings_wipe_confirmation">Θέλετε σίγουρα να διαγράψετε όλους τους μετρητές;</string>
<string name="settings_wipe_confirmation_yes">Διαγραφή όλων</string>
<!-- Toasts -->
<!-- Other stuff -->
<string name="unknown">Άγνωστο</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-es-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<string name="settings_wipe_confirmation_yes">Eliminar todos</string>
<!-- Toasts -->
<string name="toast_wipe_success">Se han eliminado todos los contadores.</string>
<string name="toast_delete_success">El contador «%s» se ha eliminado.</string>
<string name="toast_delete_success">El contador «{name}» se ha eliminado.</string>
<string name="toast_unable_to_modify">Algo ha salido mal al actualizar el contador. ¡Lo sentimos!</string>
<string name="toast_unable_to_export">Algo ha salido mal al exportar los contadores. ¡Lo sentimos!</string>
<!-- Other stuff -->
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-et-rEE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<string name="settings_wipe_title">Eemalda kõik loendurid</string>
<string name="settings_export_title">Ekspordi loendurid</string>
<string name="settings_export_summary">Ekspordi kõik loendurid CSV formaati</string>
<string name="settings_homepage_title">Koduleht</string>
<string name="settings_homepage_summary">Rakenduse teave ja lähtekood</string>
<string name="settings_wipe_confirmation">Kas olete kindel, et soovite kõik loendurid kustutada?</string>
<string name="settings_wipe_confirmation_yes">Eemalda kõik</string>
<!-- Toasts -->
Expand Down
21 changes: 21 additions & 0 deletions app/src/main/res/values-fa-rIR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@
<!-- General -->
<string name="app_name">شمارنده</string>
<!-- Menu -->
<string name="drawer_open">باز کردن پیمایش</string>
<string name="drawer_close">بستن پیمایش</string>
<string name="menu_add">افزودن شمارنده</string>
<string name="menu_reset">بازنشانی شمارنده</string>
<string name="menu_edit">ویرایش شمارنده</string>
<string name="menu_delete">حذف شمارنده</string>
<string name="menu_settings">تنظیمات</string>
<!-- Dialogs -->
<string name="dialog_add_title">افزودن شمارنده</string>
<string name="dialog_edit_title">ویرایش شمارنده</string>
<string name="dialog_delete_title">آیا مطمئنید که می‌خواهید این شمارنده را حذف کنید؟</string>
<string name="dialog_reset_title">آیا مطمئنید که می‌خواهید این شمارنده را بازنشانی کنید؟</string>
<string name="dialog_edit_name">عنوان:</string>
<string name="dialog_edit_value">مقدار:</string>
<string name="dialog_button_add">افزودن</string>
<string name="dialog_button_apply">اعمال تغییرات</string>
<string name="dialog_button_reset">بازنشانی</string>
<string name="dialog_button_delete">حذف</string>
<string name="dialog_button_cancel">لغو</string>
<!-- Settings -->
<string name="settings_title">تنظیمات</string>
<string name="settings_display">نمایش</string>
<string name="settings_theme">پوسته</string>
<string name="settings_theme_light">روشن</string>
<string name="settings_theme_dark">تیره</string>
<string name="settings_theme_auto_battery">تنظیم شده توسط ذخیره کننده باتری</string>
Expand All @@ -27,14 +34,28 @@
<string name="settings_keep_on_summary">وقتی برنامه فعال است صفحه را روشن نگه دار</string>
<string name="settings_controls">کنترل ها</string>
<string name="settings_sounds_title">صدا ها را فعال کن</string>
<string name="settings_sounds_summary">هنگام تغییر مقادیر صدا پخش شود</string>
<string name="settings_vibration_title">فعال کردن لرزش</string>
<string name="settings_vibration_summary">لرزش به هنگام تغییر مقادیر</string>
<string name="settings_hard_title">استفاده از دکمه‌های سخت افزاری</string>
<string name="settings_hard_summary">مقادیر شمارنده را با استفاده از دکمه های کنترل صدا تغییر دهید</string>
<string name="settings_label_increment_title">برای افزایش مقدار ضربه بزنید</string>
<string name="settings_label_increment_summary">مقدار یک شمارنده را با ضربه بر روی مقدار فعلی افزایش دهید</string>
<string name="settings_other">غیره</string>
<string name="settings_version_title">نسخه</string>
<string name="settings_wipe_title">حذف همه‌ی شمارنده‌ها</string>
<string name="settings_export_title">صدور شمارنده‌ها</string>
<string name="settings_export_summary">صدور همه شمارنده ها در فرمت CSV</string>
<string name="settings_homepage_title">صفحه اصلی</string>
<string name="settings_homepage_summary">اطلاعات اپلیکیشن و کد منبع</string>
<string name="settings_wipe_confirmation">آیا واقعاً می‌خواهید همه‌ی شمارنده‌ها را حذف کنید؟</string>
<string name="settings_wipe_confirmation_yes">حذف همه</string>
<!-- Toasts -->
<string name="toast_wipe_success">تمامی شمارنده‌ها حذف شدند.</string>
<string name="toast_delete_success">شمارنده \"%1$s\" حذف شد.</string>
<string name="toast_unable_to_modify">هنگام به‌روزرسانی شمارنده مشکلی پیش آمد. متاسفیم!</string>
<string name="toast_unable_to_export">هنگام صدور شمارنده ها مشکلی پیش آمد. متاسفیم!</string>
<!-- Other stuff -->
<string name="default_counter_name">شمارنده جدید</string>
<string name="unknown">ناشناخته</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<string name="settings_wipe_title">Összes számláló eltávolítása</string>
<string name="settings_wipe_confirmation">Biztosan el szeretné távolítani az összes számlálót?</string>
<string name="settings_wipe_confirmation_yes">Összes eltávolítása</string>
<!-- Toasts -->
<!-- Other stuff -->
<string name="unknown">Ismeretlen</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-pl-rPL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<string name="settings_wipe_title">Usuń wszystkie liczniki</string>
<string name="settings_wipe_confirmation">Czy na pewno chcesz usunąć wszystkie liczniki?</string>
<string name="settings_wipe_confirmation_yes">Usuń wszystkie</string>
<!-- Toasts -->
<!-- Other stuff -->
<string name="default_counter_name">Nowy licznik</string>
<string name="unknown">Nieznany</string>
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values-ro-rRO/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<!-- General -->
<string name="app_name">Counter</string>
<!-- Menu -->
<string name="drawer_open">Deschide navigarea</string>
<string name="drawer_close">Închide navigarea</string>
Expand Down Expand Up @@ -45,6 +46,8 @@
<string name="settings_wipe_title">Elimină toate contoarele</string>
<string name="settings_export_title">Exportă contoare</string>
<string name="settings_export_summary">Exportă toate contoarele în format CSV</string>
<string name="settings_homepage_title">Pagină de pornire</string>
<string name="settings_homepage_summary">Informații despre aplicație și codul sursă</string>
<string name="settings_wipe_confirmation">Sigur vrei să elimini toate contoarele?</string>
<string name="settings_wipe_confirmation_yes">Elimină toate</string>
<!-- Toasts -->
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/values-ru-rRU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@
<string name="settings_wipe_title">Удалить все счетчики</string>
<string name="settings_export_title">Экспорт счетчиков</string>
<string name="settings_export_summary">Экспортировать все счетчики в формате CSV</string>
<string name="settings_homepage_title">Домашняя страница</string>
<string name="settings_homepage_summary">Информация о приложении и исходный код</string>
<string name="settings_wipe_confirmation">Вы действительно хотите удалить все счетчики?</string>
<string name="settings_wipe_confirmation_yes">Удалить все</string>
<!-- Toasts -->
<string name="toast_wipe_success">Все счетчики удалены.</string>
<string name="toast_delete_success">Счетчик \"%s\" удален.</string>
<string name="toast_delete_success">Счетчик \"{name}\" удален.</string>
<string name="toast_unable_to_modify">Что-то пошло не так при обновлении счётчика. Извините!</string>
<string name="toast_unable_to_export">Что-то пошло не так во время экспорта.</string>
<!-- Other stuff -->
<string name="default_counter_name">Счетчик</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-sv-rSE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<string name="settings_wipe_title">Ta bort alla räknare</string>
<string name="settings_wipe_confirmation">Vill du verkligen ta bort alla räknare?</string>
<string name="settings_wipe_confirmation_yes">Ta bort alla</string>
<!-- Toasts -->
<!-- Other stuff -->
<string name="unknown">Okänt</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-tr-rTR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<string name="settings_wipe_title">Tüm sayaçları kaldır</string>
<string name="settings_wipe_confirmation">Tüm sayaçları gerçekten silmek istiyor musunuz?</string>
<string name="settings_wipe_confirmation_yes">Tümünü kaldır</string>
<!-- Toasts -->
<!-- Other stuff -->
<string name="unknown">Bilinmiyor</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<string name="settings_wipe_title">移除所有计数器</string>
<string name="settings_export_title">导出计数器</string>
<string name="settings_export_summary">以 CSV 格式导出所有计数器</string>
<string name="settings_homepage_title">网站</string>
<string name="settings_homepage_summary">应用程序信息和源代码</string>
<string name="settings_wipe_confirmation">您是否想移除所有计数器?</string>
<string name="settings_wipe_confirmation_yes">删除全部</string>
<!-- Toasts -->
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<string name="settings_wipe_title">刪除全部計數器</string>
<string name="settings_export_title">匯出計數器</string>
<string name="settings_export_summary">以 CSV 格式匯出全部計數器</string>
<string name="settings_homepage_title">網站</string>
<string name="settings_homepage_summary">應用程式資訊及原始碼</string>
<string name="settings_wipe_confirmation">您確定要刪除全部計數器嗎?</string>
<string name="settings_wipe_confirmation_yes">刪除全部</string>
<!-- Toasts -->
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
<string name="settings_wipe_title">Remove all counters</string>
<string name="settings_export_title">Export counters</string>
<string name="settings_export_summary">Export all counters in CSV format</string>
<string name="settings_homepage_title">Homepage</string>
<string name="settings_homepage_summary">App info and the source code</string>
<string name="settings_wipe_confirmation">Do you really want to remove all counters?</string>
<string name="settings_wipe_confirmation_yes">Remove all</string>

Expand Down
Loading