hgtonight / Application-Yaga

Yet Another Gamification Application is a Garden application that provides a gamification platform for Vanilla Forums and other Garden applications.
GNU General Public License v2.0
28 stars 23 forks source link

Use new locale conventions #96

Closed bleistivt closed 8 years ago

bleistivt commented 9 years ago
Notice  Locales in /applications/yaga/locale/de-DE/definitions.php is deprecated. Use /applications/yaga/locale/de-DE.php instead. in Z:\web\vanilla-master\library\core\class.locale.php line 253
Notice  Locales in /applications/yaga/locale/en-CA/definitions.php is deprecated. Use /applications/yaga/locale/en-CA.php instead. in Z:\web\vanilla-master\library\core\class.locale.php line 253
Notice  Locales in /applications/yaga/locale/pt-BR/definitions.php is deprecated. Use /applications/yaga/locale/pt-BR.php instead. in Z:\web\vanilla-master\library\core\class.locale.php line 253 
hgtonight commented 9 years ago

Closed by #98

hgtonight commented 9 years ago

It says to use de-DE.php instead of de.php.

Any reason you used de.php?

bleistivt commented 9 years ago

I based this on https://github.com/vanilla/locales where they have a new de locale and marked de-DE as deprecated.

hgtonight commented 9 years ago

The merge borked my 2.1 install.

bleistivt commented 9 years ago

Is it because of the locale?

I assumed you were targeting 2.2, because you merged #89 which requires 2.2

hgtonight commented 9 years ago

I did test it (against a 2.2 install) but I didn't fully read your PR notes.

I wanted to support 2.1 in case of a protracted 2.2 beta period like 2.1.

Guess I should just have 1.1 target 2.2.

bleistivt commented 9 years ago

if you want to release a new version earlier, it could also be rewritten to

// Save the uploaded image
$Parts = $Upload->SaveAs($TmpImage, 'yaga' . DS . $ImageBaseName);
$RelativeUrl = StringBeginsWith($Parts['Url'], Gdn_Url::WebRoot(TRUE), TRUE, TRUE);
if (method_exists('Gdn_Request', 'UrlDomain')) {
    $AssetRoot = Gdn::Request()->UrlDomain(TRUE).Gdn::Request()->AssetRoot();
    $RelativeUrl = StringBeginsWith($Parts['Url'], $AssetRoot, TRUE, TRUE);
}
hgtonight commented 8 years ago

Yaga 1.1 will not support 2.1.