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

Additional language on dialpad #49

Open
wants to merge 78 commits into
base: master
Choose a base branch
from

Conversation

Belyavin
Copy link
Contributor

Fixes #47

@Aga-C
Copy link
Member

Aga-C commented Jan 21, 2024

Letters in both languages should be centered (e.g. 3 looks really bad).

image

@derrohrbach
Copy link

@Aga-C also the height of the lowest row of keys is different, which looks weird.

And also # and * are not vertically aligned with the 0, but this is also the case on the master branch. Might be a different PR?

@Belyavin
Copy link
Contributor Author

I've changed the string to a common one, and aligned the text to the center. I also aligned * and # to 0, though I'm not sure if it became better, need you opinion on this.

@Belyavin
Copy link
Contributor Author

New text alignment

app/src/main/res/raw/t9languages.json Outdated Show resolved Hide resolved
Co-authored-by: HenriDellal <[email protected]>
@Belyavin Belyavin requested a review from Aga-C February 9, 2024 19:04
@Belyavin
Copy link
Contributor Author

Hi, are we waiting for something before merging?

@Aga-C
Copy link
Member

Aga-C commented Feb 23, 2024

@Belyavin You have to wait for the final review from Naveen.

@Aga-C Aga-C removed their request for review March 12, 2024 14:34
naveensingh and others added 12 commits March 18, 2024 05:25
Currently translated at 100.0% (69 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/de/
Currently translated at 100.0% (69 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/es/
Currently translated at 100.0% (69 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/pl/
Currently translated at 100.0% (69 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/zh_Hans/
Currently translated at 75.0% (3 of 4 strings)

Translation: Fossify/Phone metadata
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer-metadata/pl/
Currently translated at 100.0% (4 of 4 strings)

Translation: Fossify/Phone metadata
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer-metadata/de/
naveensingh and others added 24 commits March 18, 2024 05:25
Currently translated at 100.0% (69 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/bg/
Currently translated at 75.0% (3 of 4 strings)

Translation: Fossify/Phone metadata
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer-metadata/it/
Currently translated at 91.3% (63 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/fa/
Currently translated at 100.0% (69 of 69 strings)

Translation: Fossify/Phone
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer/hr/
Currently translated at 75.0% (3 of 4 strings)

Translation: Fossify/Phone metadata
Translate-URL: https://hosted.weblate.org/projects/fossify/dialer-metadata/hr/
Comment on lines +320 to +334

binding.settingsFontSize.text = getFontSizeText()
binding.settingsFontSizeHolder.setOnClickListener {
val items = arrayListOf(
RadioItem(FONT_SIZE_SMALL, getString(R.string.small)),
RadioItem(FONT_SIZE_MEDIUM, getString(R.string.medium)),
RadioItem(FONT_SIZE_LARGE, getString(R.string.large)),
RadioItem(FONT_SIZE_EXTRA_LARGE, getString(R.string.extra_large))
)

RadioGroupDialog(this@SettingsActivity, items, config.fontSize) {
config.fontSize = it as Int
binding.settingsFontSize.text = getFontSizeText()
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated code from setupFontSize()

Comment on lines +14 to +15
public val letters = Array<String>(8) {""}
public val charMap = CharMap()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant public modifier.

languages[LOCALE_EN] = lang
}

public var Initialized = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable name should start with a lowercase letter. Another redundant public modifier.

languages[lang] = language
}

Initialized = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless ;

if (lang != null && lang.charMap.containsKey(c)) {
res += lang.charMap[c]
}
else if (langEn != null && langEn.charMap.containsKey(c)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Read extra languages data from JSON
*/
public fun readFromJson(jsonText: String){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no space between ) and {...

@@ -60,9 +60,9 @@
android:layout_below="@+id/dialpad_2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The attribute android:layout_below is not valid in the LinearLayout. It's there in every button from dialpad_2_holder to dialpad_0_holder except the asterisk.

@@ -271,9 +271,9 @@
android:layout_height="wrap_content"
android:layout_centerInParent="true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android:layout_centerInParent="true" is not valid in the LinearLayout.

@@ -322,9 +322,9 @@
android:layout_centerInParent="true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android:layout_centerInParent="true" is not valid in the LinearLayout.

@@ -343,5 +343,5 @@
android:layout_centerInParent="true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android:layout_centerInParent="true" is not valid in the LinearLayout.

@naveensingh
Copy link
Member

I also aligned * and # to 0, though I'm not sure if it became better, need you opinion on this.

@Belyavin indeed * and # look better when centered, I reverted that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alternative languages on dialpad keys