Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19430] Android: i18n translations CR+LF not working on 4.1

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-08-13T17:28:43.000+0000
Affected Version/sRelease 4.0.0, Release 4.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, i18n, localization, regression
ReporterManuel Conde Vendrell
AssigneeUnknown
Created2015-08-17T12:30:44.000+0000
Updated2019-08-13T17:28:43.000+0000

Description

Till now (version 3.5.0GA) to do a CR+LF in alerts I was using successfully *\n\n* Now in 4.1.1 it's not working for *Android* at least (only in translations, it works in direct tests). To test it:
// this works
alert('Hi \n\n you'); 

// This works if the text id *hi* is not defined inside i18n folder, 
// but is it's defined, then symply all the text appears, including \n\n
alert(L('hi', 'Hi \n\n you')); 

Comments

  1. Manuel Conde Vendrell 2017-01-05

    More info after all this time. This only happens to me when I'm using Liveview (which is all the time). Without Liveview, /n works fine again. So production apps will work fine. Probably I detected this problem because from SDK 4.1 I started to use Liveview instead of TiShadow.
  2. Alan Hutton 2019-08-13

    Unable to reproduce with 8.0.2.GA SDK.

JSON Source