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
Mark-M
6394f887de
Set default field value to current locale
2013-07-17 15:06:42 +01:00
Ingo Schommer
34a171b9dc
Fixed coding conventions
2013-07-15 12:12:09 +02:00
Ingo Schommer
8518d1cf20
Merge pull request #121 from jthomerson/pulls/cms_fields_performance_improvement
...
ENHANCEMENT: significant speed improvement for many locales
2013-07-15 03:10:53 -07:00
Jeremy Thomerson
9771d97e1f
ENHANCEMENT: significant speed improvement for many locales
...
Iterating over an array of locales and querying for each one causes tons
of unnecessary queries. This is especially evident when you get up to
hundreds of translations of a page. It makes the CMS admin UI insufferably
slow. This is a little tweak to query for all of them at once instead of
individually.
2013-07-14 21:08:53 +00:00
Ingo Schommer
42f048f34a
Merge pull request #120 from silverstripe-rebelalliance/esr
...
BUG: with the enforcement of allowed_actions in 3.2 getLocaleForObject is blocked
2013-07-12 01:32:31 -07:00
kmayo-ss
5bfc37748b
Update LanguageDropdownField.php
...
BUG: Corrected allowed_actions to be private not public
2013-07-12 16:59:19 +12:00
Kirk Mayo
0d9bee0a64
BUG: with the enforcement of allowed_actions in 3.2 getLocaleForObject was being blocked
2013-07-12 16:08:20 +12:00
Ingo Schommer
f4a7488fcc
Transifex translation support
2013-07-08 12:30:07 +02:00
Ingo Schommer
5109f80ed9
Merge branch 'pull-117'
2013-06-28 10:18:34 +02:00
Ingo Schommer
c551915745
Merge remote-tracking branch 'origin/1.0'
2013-06-28 10:12:58 +02:00
Jeremy Thomerson
403e6d21a3
FIX: TranslatableSearchFormTest used wrong param for getResults
2013-06-18 18:32:30 +00:00
Ingo Schommer
9d3f2e28db
Merge pull request #115 from jthomerson/fix_gettranslations_when_one_is_subclass
...
FIX: make getTranslations work even when translation classes differ
2013-06-07 08:26:26 -07:00
Jeremy Thomerson
f75a5fd5e3
TEST: adds test for changing class name of default locale translation
...
Adds test case for silverstripe/silverstripe-translatable#97
2013-06-06 02:59:51 +00:00
Jeremy Thomerson
f4e5137392
FIX: make getTranslations work even when translation classes differ
...
Even though it is an edge-case, some sites may allow translation groups to be
composed of different classes. In that case, Translatable->getTranslations()
should still work.
Also, this commit adds a helper function for testing two array for equality
where you don't care about the order of the elements. This cleaned up a lot
of copy and paste boilerplate code that was sorting arrays to test.
2013-06-06 02:59:51 +00:00
Ingo Schommer
51cd0146df
Merge branch '1.0'
...
Conflicts:
.travis.yml
code/model/Translatable.php
2013-06-03 12:06:29 +02:00
Ingo Schommer
3551a94e67
Fixed quoting of test SQL
2013-06-03 12:05:22 +02:00
Ingo Schommer
7d9f0a9e51
Merge pull request #114 from jthomerson/fix_113_locale_filter_lazy_querying
...
Fix #113 locale filter lazy querying
2013-06-03 00:51:06 -07:00
Jeremy Thomerson
cde0f57c43
FIX support disabled locale filter for delayed querying
...
Fixes silverstripe/silverstripe-translatable#113
2013-06-01 14:14:54 +00:00
Jeremy Thomerson
929beb216c
FIX can not access private static variables of i18n
2013-05-31 19:09:03 +00:00
Ingo Schommer
f7eee8596d
Merge pull request #109 from tractorcow/3.1-api-updaterelativelink
...
API Hook into SiteTreeExtension::updateRelativeLink
2013-05-17 05:04:12 -07:00
Sean Harvey
4c6e41441a
Fixing @package declaration to translatable instead of sapphire
2013-05-17 11:09:52 +12:00
Damian Mooyman
22c5098f8e
BUG Cleaner handling of querystring arguments when selecting locale
2013-05-13 00:18:45 +02:00
Damian Mooyman
ea4645af24
API Hook into SiteTreeExtension::updateRelativeLink
2013-05-10 12:23:36 +12:00
Ingo Schommer
742fe8dee8
Fixed composer constraints
2013-05-07 15:07:15 +03:00
Ingo Schommer
709e2fd645
Added GITHUB_API_TOKEN
2013-04-29 11:07:50 +02:00