Commit Graph

11379 Commits

Author SHA1 Message Date
Consul Bot
f778ee7fe0 New translations activerecord.yml (Russian) 2018-10-26 09:50:59 +02:00
Consul Bot
dc08ba4aa3 New translations activerecord.yml (Russian) 2018-10-26 09:40:38 +02:00
Consul Bot
de0186927f New translations activemodel.yml (Russian) 2018-10-26 08:50:35 +02:00
Consul Bot
16b842a80d New translations activemodel.yml (Russian) 2018-10-26 08:40:47 +02:00
Consul Bot
10dd385c7d New translations settings.yml (Chinese Simplified) 2018-10-25 23:38:29 +02:00
Consul Bot
768367d3df New translations pages.yml (Chinese Simplified) 2018-10-25 23:38:28 +02:00
Consul Bot
20f603eb59 New translations rails.yml (Chinese Simplified) 2018-10-25 23:38:26 +02:00
Consul Bot
c7907f13a5 New translations budgets.yml (Russian) 2018-10-25 12:50:59 +02:00
Consul Bot
c4cb02b275 New translations budgets.yml (Russian) 2018-10-25 12:31:19 +02:00
Consul Bot
a0fde70fb9 New translations budgets.yml (Russian) 2018-10-25 12:22:02 +02:00
Consul Bot
62f84cf43a New translations budgets.yml (Russian) 2018-10-25 12:01:32 +02:00
Consul Bot
da27bd417a New translations budgets.yml (Russian) 2018-10-25 11:50:35 +02:00
Consul Bot
1cdfb50632 New translations budgets.yml (Russian) 2018-10-25 11:48:36 +02:00
Consul Bot
b8404f027d New translations budgets.yml (Russian) 2018-10-25 11:42:34 +02:00
Consul Bot
51068dfd8e New translations budgets.yml (Russian) 2018-10-25 11:20:46 +02:00
Consul Bot
2ad456fb19 New translations budgets.yml (Russian) 2018-10-25 11:06:34 +02:00
Consul Bot
d93719da46 New translations budgets.yml (Russian) 2018-10-25 10:50:47 +02:00
Consul Bot
5888e6d6d3 New translations budgets.yml (Russian) 2018-10-25 10:40:55 +02:00
Consul Bot
4b9ed6c041 New translations budgets.yml (Russian) 2018-10-25 10:31:06 +02:00
Consul Bot
89bf1aeefc New translations budgets.yml (Russian) 2018-10-25 10:20:50 +02:00
Consul Bot
fddc632519 New translations budgets.yml (Russian) 2018-10-25 10:10:53 +02:00
Consul Bot
64d181cac3 New translations activerecord.yml (Valencian) 2018-10-25 09:27:19 +02:00
Consul Bot
3d0dbcdf3e New translations settings.yml (Chinese Simplified) 2018-10-25 04:30:36 +02:00
Consul Bot
ad0dfad5e0 New translations settings.yml (Chinese Simplified) 2018-10-25 04:20:27 +02:00
Consul Bot
cb45c7d907 New translations seeds.yml (Chinese Simplified) 2018-10-25 04:10:25 +02:00
Consul Bot
dea96894f6 New translations settings.yml (Chinese Simplified) 2018-10-25 04:10:23 +02:00
Consul Bot
a77b930af1 New translations seeds.yml (Chinese Simplified) 2018-10-25 04:00:27 +02:00
Consul Bot
4ae0f37d41 New translations responders.yml (Chinese Simplified) 2018-10-25 04:00:26 +02:00
Consul Bot
2557852830 New translations responders.yml (Chinese Simplified) 2018-10-25 03:56:51 +02:00
Consul Bot
9cd3c6e6d1 New translations rails.yml (Chinese Simplified) 2018-10-25 03:50:36 +02:00
Consul Bot
8e3b87638c New translations pages.yml (Chinese Simplified) 2018-10-25 03:30:31 +02:00
Consul Bot
2d8794d2c3 New translations rails.yml (Chinese Simplified) 2018-10-25 03:30:29 +02:00
Consul Bot
cc44ecc364 New translations pages.yml (Chinese Simplified) 2018-10-25 03:20:26 +02:00
Consul Bot
487ec20f49 New translations pages.yml (Chinese Simplified) 2018-10-25 03:10:25 +02:00
Consul Bot
5246839ca5 New translations pages.yml (Chinese Simplified) 2018-10-25 02:59:55 +02:00
Consul Bot
8b9a462b7a New translations pages.yml (Chinese Simplified) 2018-10-25 02:50:29 +02:00
Consul Bot
f52810219a New translations pages.yml (Chinese Simplified) 2018-10-25 02:35:08 +02:00
Consul Bot
6791ffd723 New translations pages.yml (Chinese Simplified) 2018-10-25 02:28:28 +02:00
Consul Bot
f49773ba45 New translations pages.yml (Chinese Simplified) 2018-10-25 02:20:57 +02:00
Consul Bot
2f8d705ee2 New translations pages.yml (Chinese Simplified) 2018-10-24 00:40:42 +02:00
Consul Bot
252991de37 New translations moderation.yml (Chinese Simplified) 2018-10-24 00:40:40 +02:00
Consul Bot
5fb40f929f New translations moderation.yml (Chinese Simplified) 2018-10-23 17:50:56 +02:00
Javi Martín
9404cb8b3a Fix bug with non-underscored locales
Ruby can't have hyphens in method names, so sending something like
`record.title_pt-BR` would raise an exception.

Using globalize's `localized_attr_name_for` method fixes the bug.

Thanks Marko for the tip.
2018-10-23 16:29:14 +02:00
Javi Martín
934bce5932 Don't abort the migration if the simulation fails
We think aborting the migration will generate more headaches to system
administrators, who will have to manually check and fix every invalid
record before anything can be migrated.
2018-10-23 16:29:14 +02:00
Javi Martín
7fff57a25f Add task to simulate data migration
This way we can check everything is OK before actually migrating the
data to the translations tables.
2018-10-23 16:29:14 +02:00
Javi Martín
3c48059f07 Log failed data migrations
In theory, it should never happen, but that's why exceptions exist.
2018-10-23 16:29:13 +02:00
Javi Martín
be25e5fc45 Use migrate_data option for globalize
This way the task to migrate the data doesn't have to be run manually if
these migrations weren't already executed.
2018-10-23 16:29:13 +02:00
Javi Martín
a84a0f2b7d Migrate custom pages data to their locale 2018-10-23 16:29:13 +02:00
Javi Martín
ef7be4fc55 Add task to migrate data to translation tables
We forgot to do it when we created the translation tables, and so now we
need to make sure we don't overwrite existing translations.
2018-10-23 16:29:13 +02:00
Javi Martín
ccdbdb26ba Fix poll question with non-underscored locales
Ruby can't have hyphens in method names, so sending something like
`title_pt-BR=` would raise an exception.
2018-10-23 14:23:10 +02:00