Commit Graph

200 Commits

Author SHA1 Message Date
Damian Mooyman
8563c7cc59 Remove empty translations 2014-08-21 15:26:15 +12:00
Sean Harvey
7c97324ff6 Updating translations 2014-08-20 09:24:05 +12:00
Ingo Schommer
c8c375bd6d Split out 3.1 compatible branch (removed master-based travis configs) 2014-08-01 15:59:44 +12:00
Ingo Schommer
7d8de22d47 Merge pull request #163 from xini/master
BUGFIX support for dropdowns of has_one relations
2014-07-21 23:25:48 +12:00
Florian Thoma
5deae7a8f9 BUGFIX support for dropdowns of has_one relations 2014-05-21 14:39:07 +10:00
Damian Mooyman
7342850139 Updated translations 2014-05-20 15:16:40 +12:00
Ingo Schommer
4d306cda6b Added min stability to composer (for scrutinizer) 2014-03-13 10:15:47 +13:00
Mateusz Uzdowski
f92139a2b7 Add new lang strings, convert to JS. 2014-01-24 14:37:01 +13:00
Mateusz Uzdowski
50a9af2964 Pull language strings from Transifex. 2014-01-23 11:45:35 +13:00
Ingo Schommer
36c4125fbc Merge pull request #153 from Zauberfisch/master
Use lowercase L for ?locale= in TranslatableCMSMainExtension->updateLinkPageAdd()
2013-11-22 12:06:14 -08:00
Ingo Schommer
06ab7c9084 Fixed template entity namespace messing up Transifex 2013-11-14 14:37:24 +01:00
Ingo Schommer
ac3ef53141 Updated language master 2013-11-14 14:04:50 +01:00
Ingo Schommer
6fc22acb99 Updated translations 2013-11-14 13:40:05 +01:00
Zauberfisch
d194b50b94 Use lowercase L for ?locale= in TranslatableCMSMainExtension->updateLinkPageAdd() 2013-10-28 00:26:59 +00:00
Ingo Schommer
03311b4d00 Removed testLocalePersistsInAllPageTypes()
Doesn't respect custom business logic such as
validate() methods denying page creation to certain
users, or page creation on the root level.
The test doesn't add a whole lot of value,
since the baseline translation creation doesn't
really differ between page types.
2013-10-22 00:20:17 +02:00
Ingo Schommer
522dff2487 Merge pull request #152 from mateusz/return-list-bug
BUG Satisfy the API contract - always return SS_List instance.
2013-10-16 12:17:32 -07:00
Mateusz Uzdowski
8cdeb8005e BUG Satisfy the API contract - always return SS_List instance.
Currently returning null in some situations.
2013-10-16 16:45:31 +13:00
Gus King
8f922beff3 Added check to see if the DataObject actually has translation before iterating over. 2013-10-14 19:39:29 +13:00
Ingo Schommer
242acac7dd Updated translations 2013-10-10 12:32:42 +02:00
Ingo Schommer
8002df689f Renamed spanish 2013-10-10 12:32:40 +02:00
Francisco arenas
eaea1ff0a5 Create es_ES.yml
spanish translation
2013-10-10 01:13:50 -04:00
Mateusz U
44584a2721 Merge pull request #146 from hafriedlander/fix/142_malformed_links
FIX 63366327 breaking "Existing Translations" links
2013-09-19 19:31:19 -07:00
Hamish Friedlander
3acb8b9fba FIX 63366327 breaking "Existing Translations" links
CMSEditLink() was changed to always add a locale, but the link
creation for "Existing Translations" in Translatable#updateCMSFields
assumed there was no query string on the end of CMSEditLink()s return
value

Note that youll still end up with duplicate locale parameters after
this patch, but it will work as PHP always takes the last parameter
for preference. A seperate patch for Controller::join_links will
fix the duplicate parameters
2013-09-20 11:21:28 +12:00
Ingo Schommer
a0fab3b7c2 Update composer.json 2013-09-05 23:34:11 +02:00
Ingo Schommer
6336632713 Fall back to global locale state for link updates (#139) 2013-09-05 16:06:58 +02:00
Ingo Schommer
15e9037c1b Only suffix unique URLSegment if enforce_global_unique_urls=true (#138) 2013-09-05 15:55:45 +02:00
Ingo Schommer
69adec9455 Merge pull request #132 from jthomerson/pulls/only_write_translations_when_class_actually_changed
Only write translations when class actually changed
2013-09-05 05:02:50 -07:00
Ingo Schommer
3476a04eb4 Merge pull request #134 from bhongong/patch-1
Correction on documentation regarding Setting the viewer's locale
2013-08-28 07:12:05 -07:00
bhongong
601df819cb Correction on documentation regarding Setting the viewer's locale
Corrected Translatable docs in setting the locale based on $member->Locale to the correct method: Translatable::set_current_locale($member->Locale); instead of Translatable::set_reading_locale($member->Locale)
2013-08-28 16:04:31 +08:00
TeamCity
b0e334d450 Updated master strings 2013-08-23 03:05:34 +12:00
Ingo Schommer
b24316167a Merge pull request #133 from Ekman/master
Links in head will now include translated versions of each page including itself
2013-08-20 12:44:20 -07:00
Niklas Ekman
fa850239f4 Fixed tabs 2013-08-20 21:35:39 +02:00
Niklas Ekman
6f38a21640 Fixed tabs 2013-08-20 21:05:11 +02:00
Niklas Ekman
a66de759bb SilverStripe coding convetions 2013-08-19 10:00:08 +02:00
Niklas Ekman
03722d2a8e MetaTags now includes translated versions of itself including the default translation 2013-08-18 18:41:08 +02:00
Jeremy Thomerson
9e37602ef7 Make publishing default locale node faster
When you publish a node in the default locale it calls forceChange to make
every field behave as if it has changed. The problem in Translatable is then
it would think that you actually changed the class of the default locale node
and it would force a change on every translation. This was unnecessary when you
have not actually changed the class name. If you have a great deal of
translations this was causing a significant lag when you publish anything in
the default locale.
2013-08-18 02:32:07 +00:00
Jeremy Thomerson
7534807137 Test case: class changes propagate to translations when published 2013-08-18 02:03:12 +00:00
Mateusz Uzdowski
fe6696a8f3 Change dependency versions to work for 3.1.0-rc1. 2013-08-13 12:10:21 +12:00
Ingo Schommer
1bb6f5d544 Fixed transifex link 2013-08-03 13:07:03 +02:00
Ingo Schommer
c7c76d8e1d Merge pull request #116 from silverstripe/pulls/configure-valid-urlsegment
NEW Translatable.enforce_global_unique_urls config setting
2013-08-03 04:03:48 -07:00
Ingo Schommer
b898134b11 NEW Translatable.enforce_global_unique_urls config setting
See https://github.com/silverstripe/silverstripe-cms/pull/216
and https://github.com/silverstripe/silverstripe-cms/pull/772
for context
2013-08-03 13:01:39 +02:00
Ingo Schommer
b90e2294b5 Merge pull request #123 from Mark-M/patch-1
Fix Issue #122: Set default field value to current locale
2013-08-03 03:49:52 -07:00
Jeremy Thomerson
a008f928c6 FIX: get_one_by_locale didn't work when filter disabled 2013-08-03 12:43:46 +02:00
Ingo Schommer
69fe99735b Merge pull request #128 from jthomerson/pulls/enhance_disabling_locale_filter
ENHANCEMENT: better pattern for dis-/enabling locale filter
2013-08-03 03:17:38 -07:00
Ingo Schommer
f951e43612 Merge pull request #126 from jthomerson/pulls/fix_populate_site_config_defaults
FIX: don't re-enable the locale filter if it wasn't enabled before
2013-08-03 03:16:17 -07:00
Sean Harvey
832e678d01 Merge pull request #130 from jthomerson/patch-1
Fix typos in latest commit
2013-08-01 16:14:48 -07:00
Jeremy Thomerson
28b693eda7 Update index.md 2013-08-01 08:13:06 -04:00
Ingo Schommer
536b6d45fb Mentioning fluent as an alternative solution
hat tip @tractorcow :)
2013-08-01 00:08:27 +02:00
Jeremy Thomerson
080b9e45ea ENHANCEMENT: better pattern for dis-/enabling locale filter 2013-07-31 15:37:30 +00:00
Jeremy Thomerson
2da48dfd65 FIX: don't re-enable the locale filter if it wasn't enabled before
This breaks code that tries to get all instances of SiteConfig like:

```
Translatable::disable_locale_filter();
$all = SiteConfig::get();
Translatable::enable_locale_filter();
```

What was happening was that our populateSiteConfigDefaults method was
getting called before the actual data list the users uses above is
created, so it was re-enabling the locale filter before the
augmentDataQuery function was called on the data list created for the
user. Thus, they'd get a locale-augmented query and only get the
SiteConfig for the current locale, and not all as clearly intended.
2013-07-24 21:25:42 +00:00