Update:Remora Localization: Difference between revisions

No edit summary
Line 49: Line 49:
For example, if I wanted the name of second category in french, I could run:
For example, if I wanted the name of second category in french, I could run:
   SELECT `fr` FROM `translations` WHERE `id`=2 AND `pk_column`="Addontypes" AND `translated_column`="name";
   SELECT `fr` FROM `translations` WHERE `id`=2 AND `pk_column`="Addontypes" AND `translated_column`="name";
There are two methods in the Translation model (again, pulled from PEAR's Translation2): getOne() and getPage().  getOne() will retrieve a single row, and getPage() will retrieve an entire "page" - technically, it's actually retrieving all rows with a matching table name (pk_column).


== Updating locales ==
== Updating locales ==
Confirmed users, Bureaucrats and Sysops emeriti
1,737

edits