Localize icon indicating copy to clipboard operation
Localize copied to clipboard

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

Open purepure opened this issue 6 years ago • 3 comments

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 avatar Dec 17 '18 03:12 purepure

Any update on this issue, guy?

purepure avatar Dec 27 '18 15:12 purepure

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

heena-wise avatar Mar 31 '20 12:03 heena-wise

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.

clbemre avatar Feb 27 '23 13:02 clbemre