Update:Remora Localization: Difference between revisions

Line 53: Line 53:


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 (foeign_table).
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 (foeign_table).
The table looks like this, for reference:
+----------------+------------------+------+-----+---------+-------+
| Field          | Type            | Null | Key | Default | Extra |
+----------------+------------------+------+-----+---------+-------+
| foreign_id    | int(11) unsigned |      | PRI | 0      |      |     
| foreign_table  | varchar(50)      |      | PRI |        |      |     
| foreign_column | varchar(50)      |      | PRI |        |      |     
| en-US          | text            | YES  |    | NULL    |      |     
| en-GB          | text            | YES  |    | NULL    |      |     
| de            | text            | YES  |    | NULL    |      |     
...
...
| zh-CN          | text            | YES  |    | NULL    |      |
| zh-TW          | text            | YES  |    | NULL    |      |     
+----------------+------------------+------+-----+---------+-------+


== Updating locales ==
== Updating locales ==
3,035

edits