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

System button with default title/change in runtime not localized correctly #47

Open
purepure opened this issue Dec 17, 2018 · 3 comments

Comments

@purepure
Copy link

purepure commented Dec 17, 2018

Issue

System button with default title/change in runtime not localized correctly

Localize Environment

  • Localize version: (2.1.0)
  • Xcode version: 10.1 (10B61)
  • Swift version: 4.0
  • Platform(s) running Localize: iOS
  • macOS version running Xcode: 10.14.2 (18C54)

Localize Config

Localize.update(fileName: "Localization")
Localize.update(defaultLanguage: "en-US")
Localize.update(language: "en-VN")

What did you do?

I had a button (from storyboard) with default title is "Start Reading". In the runtime, that button can be change to "Resume chap.1" for example. It work perfect until I hit that button, the title fade to "Start Reading" instead of "Resume chap.1". The title only change when click and hold the finger on it, after releasing, it fade back to correct title "Resume..." The button I use is system type

Button type: Default system type
Default title: "Start Reading"
Runtime title: "Resume chap.1"
Click & hold button: Fade to "Start Reading"
Release button: Fade to "Resume chap.1"

@purepure
Copy link
Author

Any update on this issue, guy?

@heena-wise
Copy link

Facing the same issue but on third party SDK button. Button string gets converted from Continue to <#Continue#>
Any update on this?

@clbemre
Copy link

clbemre commented Feb 27, 2023

Hi, I have a similar problem, and the reason is that the Autolocalize Flag is set to the true, adding a button on the storyboard and connecting it to the code and settitle (.. for: .normal), even if I do it, it highlights the title written on the storyboard.

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

No branches or pull requests

3 participants