diff --git a/src/js/dialogs/nextLevel.js b/src/js/dialogs/nextLevel.js index 8ea8dcfa..349e85e8 100644 --- a/src/js/dialogs/nextLevel.js +++ b/src/js/dialogs/nextLevel.js @@ -212,5 +212,16 @@ exports.dialog = { }, }, ], + 'tr_TR': [{ + type: 'ModalAlert', + options: { + markdowns: [ + '## Muhteşem!!!', + '', + 'Bu seviyeyi *{numCommands}* komut ile çözdünüz.', + 'İdeal çözüm {best} komuttan oluşuyor.' + ] + } + }], }; diff --git a/src/js/dialogs/sandbox.js b/src/js/dialogs/sandbox.js index 2cd3a720..9f624ff4 100644 --- a/src/js/dialogs/sandbox.js +++ b/src/js/dialogs/sandbox.js @@ -1,3 +1,5 @@ +const { Branch } = require("../git"); + exports.dialog = { 'en_US': [{ type: 'ModalAlert', @@ -815,4 +817,34 @@ exports.dialog = { }, }, ], + 'tr_TR': [{ + type: 'ModalAlert', + options: { + markdowns: [ + '## Learn Git Branching\'e hoşgeldiniz.', + '', + 'Git öğrenmeye ilgi duyuyor musunuz? O zaman doğru yerdesiniz!', + '"Learn Git Branching," Git\'i öğrenmenin en görsel ve etkileşimli yoludur.', + 'web üzerinde; sizi heyecan verici seviyelerle zorlayacak, güçlü özelliklerin adım adım gösterimlerini sunacak', + 've belki de eğlenceli vakit geçirmenizi sağlayacaktır.', + '', + 'Bu iletişim kutusunu geçtikten sonra sunduğumuz çeşitli seviyeleri göreceksiniz. Eğer yeni başlayan biriyseniz, ', + 'sadece ilk seviyeye başlayabilirsiniz. Eğer zaten Git temellerini biliyorsanız, ', + 'daha sonraki daha zorlu seviyeleri deneyebilirsiniz.', + '', + 'Terminalde `show commands` ile mevcut tüm komutları görebilirsiniz.', + '', + 'Not: Bir sonraki seferde doğrudan bir deneme ortamına gitmek mi istiyorsunuz\?', + 'Denemek için bu özel bağlantıyı kullanın: ', + '[özel bağlantı](https://pcottle.github.io/learnGitBranching/?NODEMO)', + '', + 'Not: GitHub, önyargılı terimlerden uzaklaşmak için varsayılan Branch ismini `master` yerine `main` ', + 'olarak adlandırmaya başladı [(daha fazla detay için tıklayın)](https://github.com/github/renaming). ', + 'Biz de sektör genelindeki harekete uygun olarak, "Learn Git Branching" ', + 'derslerimizde de `master` yerine `main` kullanımını güncelledik. Bu adlandırmanın ', + 'şu anda oldukça tutarlı olması gerekiyor, ancak herhangi bir hata fark ederseniz,', + 'lütfen bir PR (veya issue) göndermekten çekinmeyin.' + ] + } + }], }; diff --git a/src/js/intl/strings.js b/src/js/intl/strings.js index 5bde96b5..d9bb67a6 100755 --- a/src/js/intl/strings.js +++ b/src/js/intl/strings.js @@ -20,7 +20,8 @@ exports.strings = { 'sl_SI': 'Wow! Končal si zadnjo stopnjo, fantastično!', 'pl': 'Wow! Ukończono ostatni poziom, świetnie!', 'it_IT': "Wow! Hai concluso l'ultimo livello, grandioso!", - 'ta_IN': 'ஆஹா! நீங்கள் கடைசி நிலையை முடித்துள்ளீர்கள், நன்று!' + 'ta_IN': 'ஆஹா! நீங்கள் கடைசி நிலையை முடித்துள்ளீர்கள், நன்று!', + 'tr_TR': 'Wow! son seviyeyi tamamladın, tebrikler!', }, /////////////////////////////////////////////////////////////////////////// 'finish-dialog-next': { @@ -43,7 +44,8 @@ exports.strings = { 'sl_SI': 'Bi rad nadaljeval na *"{nextLevel}"*, naslednjo stopnjo?', 'pl': 'Czy chcesz przejść do następnego poziomu - *"{nextLevel}"*?', 'it_IT': 'Ti andrebbe di passare al prossimo livello, *"{nextLevel}"*?', - 'ta_IN': 'அடுத்த நிலை * "{nextLevel}" * க்கு செல்ல விரும்புகிறீர்களா?' + 'ta_IN': 'அடுத்த நிலை * "{nextLevel}" * க்கு செல்ல விரும்புகிறீர்களா?', + 'tr_TR': 'Bir sonraki seviye olan *"{nextLevel}"* seviyesine geçmek ister misin?' }, /////////////////////////////////////////////////////////////////////////// 'finish-dialog-win': { @@ -66,7 +68,9 @@ exports.strings = { 'sl_SI': 'Bravo! Izenačil ali celo presegel si našo rešitev.', 'pl': 'Niesamowite! Rozwiązałeś zadanie w ten sam sposób lub lepiej.', 'it_IT': "Grandioso! Hai eguagliato o migliorato la nostra soluzione.", - 'ta_IN': 'அருமை! எங்கள் கொடுக்க பட்ட தீர்வை நிறைவு செய்து விட்டீர்கள்.' + 'ta_IN': 'அருமை! எங்கள் கொடுக்க பட்ட தீர்வை நிறைவு செய்து விட்டீர்கள்.', + 'tr_TR': 'Mükemmel! ideal çözümle aynı veya daha iyi bir çözüm yaptınız.', + }, /////////////////////////////////////////////////////////////////////////// 'finish-dialog-lose': { diff --git a/src/js/react_views/IntlHelperBarView.jsx b/src/js/react_views/IntlHelperBarView.jsx index bbabe887..622d338e 100644 --- a/src/js/react_views/IntlHelperBarView.jsx +++ b/src/js/react_views/IntlHelperBarView.jsx @@ -108,6 +108,12 @@ class IntlHelperBarView extends React.Component{ onClick: function() { this.fireCommand('locale vi; levels'); }.bind(this) + }, { + text: 'Türkçe', + testID: 'turkish', + onClick: function() { + this.fireCommand('locale tr_TR; levels'); + }.bind(this) }, { text: 'Galego', testID: 'galician', diff --git a/src/levels/remote/push.js b/src/levels/remote/push.js index 2c02f17c..727a7278 100644 --- a/src/levels/remote/push.js +++ b/src/levels/remote/push.js @@ -22,7 +22,8 @@ exports.level = { "vi": "Git push", "sl_SI": "Git Push", "pl": "Git push", - "it_IT": "Git Push" + "it_IT": "Git Push", + "tr_TR": "Git Push" }, "hint": { "en_US": "Remember you have to clone before you can push!", @@ -40,7 +41,8 @@ exports.level = { "vi": "Nhớ rằng bạn phải clone trước khi push!", "sl_SI": "Najprej moraš klonirati, preden lahko pushaš!", "pl": "Najpierw sklonuj, potem pushuj!", - "it_IT": "Ricorda di clonare il repository prima di usare push!" + "it_IT": "Ricorda di clonare il repository prima di usare push!", + "tr_TR": "Unutmayın push işlemini yapmadan önce clone işlemini yapmanız gerekiyor!" }, "startDialog": { "en_US": { @@ -768,6 +770,49 @@ exports.level = { } } ] - } + }, + "tr_TR": { + "childViews": [ + { + "type": "ModalAlert", + "options": { + "markdowns": [ + "## Git Push", + "", + "Ok, so I've fetched changes from remote and incorporated them into my work locally. That's great and all... but how do I share _my_ awesome work with everyone else?", + "", + "Well, the way to upload shared work is the opposite of downloading shared work. And what's the opposite of `git pull`? `git push`!", + "", + "`git push` is responsible for uploading _your_ changes to a specified remote and updating that remote to incorporate your new commits. Once `git push` completes, all your friends can then download your work from the remote.", + "", + "You can think of `git push` as a command to \"publish\" your work. It has a bunch of subtleties that we will get into shortly, but let's start with baby steps...", + "", + "*note -- the behavior of `git push` with no arguments varies depending on one of git's settings called `push.default`. The default value for this setting depends on the version of git you're using, but we are going to use the `upstream` value in our lessons. This isn't a huge deal, but it's worth checking your settings before pushing in your own projects.*" + ] + } + }, + { + "type": "GitDemonstrationView", + "options": { + "beforeMarkdowns": [ + "Here we have some changes that the remote does not have. Let's upload them!" + ], + "afterMarkdowns": [ + "There we go -- the remote received commit `C2`, the branch `main` on the remote was updated to point at `C2`, and our *own* reflection of the remote (`o/main`) was updated as well. Everything is in sync!" + ], + "command": "git push", + "beforeCommand": "git clone; git commit" + } + }, + { + "type": "ModalAlert", + "options": { + "markdowns": [ + "To finish this level, simply share two new commits with the remote. Strap in though, because these lessons are about to get a lot harder!" + ] + } + } + ] + }, } };