-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from cagatayldzz/dev
Dev
- Loading branch information
Showing
5 changed files
with
102 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Toby Zerner | ||
Copyright (c) 2019 Stichting Flarum (Flarum Foundation) | ||
Copyright (c) 2014-2019 Toby Zerner ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -18,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# Turkish Language Pack for Flarum | ||
|
||
[![Latest Stable Version](https://img.shields.io/badge/packagist-v0.1.0--beta.10-orange.svg)](https://packagist.org/packages/cagatayldzz/lang-turkish) | ||
[![Latest Stable Version](https://img.shields.io/badge/packagist-v0.1.0--beta.11-orange.svg)](https://packagist.org/packages/cagatayldzz/lang-turkish) | ||
[![GitHub license](https://img.shields.io/github/license/cagatayldzz/lang-turkish.svg)](https://raw.githubusercontent.com/cagatayldzz/lang-turkish/master/LICENSE) | ||
|
||
### Installation | ||
composer require cagatayldzz/lang-turkish | ||
|
||
### Update | ||
composer update cagatayldzz/lang-turkish | ||
|
||
### Remove | ||
composer remove cagatayldzz/lang-turkish | ||
|
||
### License | ||
Released under the MIT License. Please see the [license](LICENSE) file. | ||
Released under the MIT License. Please see the [license](LICENSE) file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,8 @@ | |
/* | ||
* This file is part of Flarum. | ||
* | ||
* (c) Toby Zerner <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* For detailed copyright and license information, please view the | ||
* LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
return new Flarum\Extend\LanguagePack; | ||
return new Flarum\Extend\LanguagePack(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,95 @@ | ||
// https://github.com/moment/moment/blob/develop/locale/tr.js | ||
; | ||
(function(global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' && | ||
typeof require === 'function' ? factory(require('../moment')) : | ||
typeof define === 'function' && define.amd ? define(['../moment'], factory) : | ||
factory(global.moment) | ||
}(this, (function(moment) { | ||
'use strict'; | ||
|
||
;(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' | ||
&& typeof require === 'function' ? factory(require('../moment')) : | ||
typeof define === 'function' && define.amd ? define(['../moment'], factory) : | ||
factory(global.moment) | ||
}(this, (function (moment) { 'use strict'; | ||
var suffixes = { | ||
1: '\'inci', | ||
5: '\'inci', | ||
8: '\'inci', | ||
70: '\'inci', | ||
80: '\'inci', | ||
2: '\'nci', | ||
7: '\'nci', | ||
20: '\'nci', | ||
50: '\'nci', | ||
3: '\'üncü', | ||
4: '\'üncü', | ||
100: '\'üncü', | ||
6: '\'ncı', | ||
9: '\'uncu', | ||
10: '\'uncu', | ||
30: '\'uncu', | ||
60: '\'ıncı', | ||
90: '\'ıncı' | ||
}; | ||
|
||
var suffixes = { | ||
1: '\'inci', | ||
5: '\'inci', | ||
8: '\'inci', | ||
70: '\'inci', | ||
80: '\'inci', | ||
2: '\'nci', | ||
7: '\'nci', | ||
20: '\'nci', | ||
50: '\'nci', | ||
3: '\'üncü', | ||
4: '\'üncü', | ||
100: '\'üncü', | ||
6: '\'ncı', | ||
9: '\'uncu', | ||
10: '\'uncu', | ||
30: '\'uncu', | ||
60: '\'ıncı', | ||
90: '\'ıncı' | ||
}; | ||
var tr = moment.defineLocale('tr', { | ||
months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), | ||
monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), | ||
weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), | ||
weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), | ||
weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), | ||
longDateFormat: { | ||
LT: 'HH:mm', | ||
LTS: 'HH:mm:ss', | ||
L: 'DD.MM.YYYY', | ||
LL: 'D MMMM YYYY', | ||
LLL: 'D MMMM YYYY HH:mm', | ||
LLLL: 'dddd, D MMMM YYYY HH:mm' | ||
}, | ||
calendar: { | ||
sameDay: '[bugün saat] LT', | ||
nextDay: '[yarın saat] LT', | ||
nextWeek: '[gelecek] dddd [saat] LT', | ||
lastDay: '[dün] LT', | ||
lastWeek: '[geçen] dddd [saat] LT', | ||
sameElse: 'L' | ||
}, | ||
relativeTime: { | ||
future: '%s sonra', | ||
past: '%s önce', | ||
s: 'birkaç saniye', | ||
ss: '%d saniye', | ||
m: 'bir dakika', | ||
mm: '%d dakika', | ||
h: 'bir saat', | ||
hh: '%d saat', | ||
d: 'bir gün', | ||
dd: '%d gün', | ||
M: 'bir ay', | ||
MM: '%d ay', | ||
y: 'bir yıl', | ||
yy: '%d yıl' | ||
}, | ||
ordinal: function(number, period) { | ||
switch (period) { | ||
case 'd': | ||
case 'D': | ||
case 'Do': | ||
case 'DD': | ||
return number; | ||
default: | ||
if (number === 0) { // special case for zero | ||
return number + '\'ıncı'; | ||
} | ||
var a = number % 10, | ||
b = number % 100 - a, | ||
c = number >= 100 ? 100 : null; | ||
return number + (suffixes[a] || suffixes[b] || suffixes[c]); | ||
} | ||
}, | ||
week: { | ||
dow: 1, // Monday is the first day of the week. | ||
doy: 7 // The week that contains Jan 7th is the first week of the year. | ||
} | ||
}); | ||
|
||
var tr = moment.defineLocale('tr', { | ||
months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), | ||
monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), | ||
weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), | ||
weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), | ||
weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), | ||
longDateFormat : { | ||
LT : 'HH:mm', | ||
LTS : 'HH:mm:ss', | ||
L : 'DD.MM.YYYY', | ||
LL : 'D MMMM YYYY', | ||
LLL : 'D MMMM YYYY HH:mm', | ||
LLLL : 'dddd, D MMMM YYYY HH:mm' | ||
}, | ||
calendar : { | ||
sameDay : '[bugün saat] LT', | ||
nextDay : '[yarın saat] LT', | ||
nextWeek : '[gelecek] dddd [saat] LT', | ||
lastDay : '[dün] LT', | ||
lastWeek : '[geçen] dddd [saat] LT', | ||
sameElse : 'L' | ||
}, | ||
relativeTime : { | ||
future : '%s sonra', | ||
past : '%s önce', | ||
s : 'birkaç saniye', | ||
ss : '%d saniye', | ||
m : 'bir dakika', | ||
mm : '%d dakika', | ||
h : 'bir saat', | ||
hh : '%d saat', | ||
d : 'bir gün', | ||
dd : '%d gün', | ||
M : 'bir ay', | ||
MM : '%d ay', | ||
y : 'bir yıl', | ||
yy : '%d yıl' | ||
}, | ||
ordinal: function (number, period) { | ||
switch (period) { | ||
case 'd': | ||
case 'D': | ||
case 'Do': | ||
case 'DD': | ||
return number; | ||
default: | ||
if (number === 0) { // special case for zero | ||
return number + '\'ıncı'; | ||
} | ||
var a = number % 10, | ||
b = number % 100 - a, | ||
c = number >= 100 ? 100 : null; | ||
return number + (suffixes[a] || suffixes[b] || suffixes[c]); | ||
} | ||
}, | ||
week : { | ||
dow : 1, // Monday is the first day of the week. | ||
doy : 7 // The week that contains Jan 7th is the first week of the year. | ||
} | ||
}); | ||
return tr; | ||
|
||
return tr; | ||
|
||
}))); | ||
}))); |