Xamarin.forms: [Bug] Android AppShell TabBar translate "More" menu text

Created on 7 Oct 2019  路  15Comments  路  Source: xamarin/Xamarin.Forms

Description

I am using AppShell with a tab bar to create a simple bottom tab menu.
On Android when more tabs are created then fit within the view, it wraps the non fitting tabs in a menu.
However when the device is in a different language the text of this menu is still the English "More".

Steps to Reproduce

  1. Create an AppShell project
  2. Add more tabs than fit on your android device
  3. Set your device to a difference language then English
  4. Run the app

Expected Behavior

The text on the menu "More" is translated in the language of the device.

Actual Behavior

The text on the menu is always "More" regardless of language.

Basic Information

  • Version with issue: Xamarin forms 4.2
  • IDE: Visual studio (windows)
  • Platform Target Frameworks:

    • Android: 9.0

shell 5 in-progress Android bug

Most helpful comment

7849.zip
Added a simple reproduction project (within the zip file)

All 15 comments

Hi @Riuujin, thanks for the report!

While it might seem like a simple task to create a repro ourselves, I would like to ask you to add one. We do this so we can validate that this happens and is not influenced by anything other that might be at play in your (probably bigger) codebase. Also, this way we can easily see what versions of XF you have installed exactly and some other things as well.

If it's not too much trouble, could you provide a reproduction? Thanks!

7849.zip
Added a simple reproduction project (within the zip file)

Confirmed that this is happening.

Seems to originate here. It is simply set to a hard-coded string "More".

The same thing seems to happen with non-Shell Android apps here.

It seems Android does not have the automatic "overflow" mechanism as iOS has? Meaning that Android does not have a built in translation for this More text? So it seems the most obvious thing we can do here is to get the string from the resources so users can override it themselves?

That would solve the issue for my use case

Any update on this?

Opened a PR for this

Hey any update or ETA on this?

Any ETA? I also see that a test has been running for a long time: 'XFDashboard / DROID-API19-FR started 8d 15h 22m 46s ago'

@Riuujin @pnda489 I see it's merged for 4.8 I think this should see the light somewhere halfway into August!

hi, we checked 'MORE' button on Android and it looks good

Awesome! I think for iOS you just need to add the right supported languages in your info.plist and it should translate together with the UI language.

Oh I see you edited your comment, hopefully because you already found a solution for iOS :)

yes found it )))

I updated my app to Xamarin 4.8 and it continues more.

I can confirm @ivanteles , i upgraded to 4.8 and it is not working.
I am using "German" as "Device Language".

@pnda489 I am using "Portugues" as "Device Language". bug. heheh

Was this page helpful?
0 / 5 - 0 ratings