Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26667

Windows: Ti.Locale.getString should ignore non-string default value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: Release 8.0.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2018 Sprint 26, 2019 Sprint 1

      Description

      If the supplied "default" value is a non-string, we should now "reject" it and treat it as if no default fallback was given. If no default was given, the original key is returned when no corresponding value is found.

      Ti.API.info(Ti.Locale.getString('this_should_not_be_found', null) + '.eql(this_should_not_be_found)');
      Ti.API.info(L('this_should_not_be_found', null) + '.eql(this_should_not_be_found)');
      Ti.API.info(Ti.Locale.getString('this_should_not_be_found', 123) + '.eql(this_should_not_be_found)');
      Ti.API.info(L('this_should_not_be_found', 123) + '.eql(this_should_not_be_found)');
      

      Expected: key should be returned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
                Tester:
                Keerthi Mahalingam (Inactive)
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6785
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code