Ticket #649 (closed Bug: fixed)

Opened 5 months ago

Last modified 4 months ago

Use of i18n breaks ORM because of inflector

Reported by: zextra Owned by: Shadowhand
Priority: major Milestone:
Component: Helpers Version: SVN HEAD
Keywords: orm, inflector, language, i18n Cc:

Description

ORM depends on fact that inflector is language agnostic, which, at present, it is not. Passing model name to ORM, when language other than en_US is in use (I have tried with fr_FR), incorrect plural form is produced, and, as a result, table is not found in database.

Change History

Changed 5 months ago by zextra

Problem is narrowed down to translations: if translators change inflector file to be different from i18n/en_US/inflector.php, ORM is likely to break with that language.

Changed 5 months ago by Shadowhand

  • owner changed from - No owner - to Shadowhand
  • status changed from new to assigned

Changed 5 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r2883, merged in r2884.

Changed 4 months ago by anonymous

  • milestone deleted

Milestone 2.1.3 deleted

Note: See TracTickets for help on using tickets.