Created
December 19, 2017 13:58
-
-
Save muzafferkoluman/394899187995b80ca9d7abd24a0ae663 to your computer and use it in GitHub Desktop.
Wordpress functions.php
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
function ra_change_translate_text_multiple( $translated ) { | |
$text = array( | |
'Ask question' => 'Soru Sor', | |
'Add Question' => 'Sorus Ekle', | |
'My Question' => 'Benim Sorularım', | |
'Notifications ' => 'Bildirimler', | |
'View' => 'Görüldü', | |
'Answer' => 'Cevap', | |
'Search' => 'Ara..', | |
'Solved' => 'Soru yanıtlandı', | |
'Processing' => 'İşlemde', | |
'Hold' => 'Soru yanıtlanmadı', | |
'keywords' => 'anahtar kelime', | |
'Question Title' => 'Soru Başlığı', | |
'Question Descriptions' => 'Soru Açıklaması', | |
'Question Status' => 'Soru Durumu', | |
'Question Category' => 'Soru Kategorisi', | |
'Question tags' => 'Soru Etiketi', | |
'Polls' => 'Anketler', | |
'Remove' => 'Sil', | |
'Add more' => 'Ekle', | |
'Submit' => 'Gönder', | |
'Default' => 'Herkes', | |
'Private' => 'Özel', | |
'Register' => 'Kayıt Ol', | |
'Username' => 'Kullanıcı Adı', | |
'Password' => 'Şifre', | |
'Email' => 'E-Posta', | |
'Login' => 'Giriş', | |
'Remember Me' => 'Hatırla', | |
'Read more ' => 'Daha Fazla', | |
); | |
$translated = str_ireplace( array_keys($text), $text, $translated ); | |
return $translated; | |
} | |
add_filter( 'gettext', 'ra_change_translate_text_multiple', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment