prototype Posted July 3, 2013 Share Posted July 3, 2013 (edited) Arkadaşlar ams ile .tpl uzantılı dosyalarda nasıl çalışabiliriz ?.. Misal olarak o dosya içinde "выхода" (rusça) diye bir sözcük var ve ben bunu ams üzerinden başka bir yazıya çevirmek istiyorum ancak nasıl yapabilirim bilmiyorum. Herhangi bir örnek çalışmam yok yardımcı olursanız çok sevinirim. Örnek bir tpl dosyası: http://pvp-server.p.ht/fullstory.rar Edited July 3, 2013 by prototype Quote Link to comment Share on other sites More sharing options...
reyiz Posted July 3, 2013 Share Posted July 3, 2013 .tpl dosyasının içeriği düz metinse TextFile.ReadToString fonksiyonu ile okutturabilirsiniz. Başka bir yazıya çevirmek istiyorum derken çeviri programı mı yapacaksınız yoksa yazı tipini mi değiştireceksiniz? Quote Link to comment Share on other sites More sharing options...
prototype Posted July 3, 2013 Author Share Posted July 3, 2013 reyiz tpl dosyası dle'de tema dosyaları oluyor. Güzel temalarıda rus siteleri paylaşıyor ve dolayısıyla dilde rusça oluyor. Her temayı tek tek Türkçe'ye çevirmek zor oluyor bunun için ams ile bunları kolayca çevirmek istiyorum. Mesela seçtiğim tpl dosyasındaki rusça dilleri otomatik olarak Türkçe'ye çevirecek. Türkçe anlamlarınıda ben belirteceğim tabii. Quote Link to comment Share on other sites More sharing options...
reyiz Posted July 3, 2013 Share Posted July 3, 2013 .tpl dosyası Dle'ye özel bir uzantı değil. HTML dosyasının uzantısı Dle temalarında tpl olarak kullanılıyor. Tümünü değiştirme özelliği olan bir program mı yapmak istiyorsunuz yani? Quote Link to comment Share on other sites More sharing options...
prototype Posted July 3, 2013 Author Share Posted July 3, 2013 Aynen öyle birşey yalnız uzantı farketmez içindeki içeriği okusun yeter txt olur. Quote Link to comment Share on other sites More sharing options...
reyiz Posted July 3, 2013 Share Posted July 3, 2013 Böyle bir örnek hazırladım: main = TextFile.ReadToString("C:\\MyFile.txt"); mainnew = String.Replace(main, "X", "anasayfa", false); TextFile.WriteFromString("C:\\MyFile.txt", mainnew, false); Programınızı paylaşmak istiyorsanız, programınızın küçük boyutlu olması açısından AutoIt de kullanabilirsiniz. Quote Link to comment Share on other sites More sharing options...
prototype Posted July 3, 2013 Author Share Posted July 3, 2013 yalnız şöyle bir problem var dle выхода şeklinde yazı girince ?????? gibi görünüyor. Yani verdiğin kodda böyle yapmak istediğimde main = TextFile.ReadToString("C:\\MyFile.txt"); mainnew = String.Replace(main, "выхода", "anasayfa", false); TextFile.WriteFromString("C:\\MyFile.txt", mainnew, false); böyle oluyor main = TextFile.ReadToString("C:\\MyFile.txt"); mainnew = String.Replace(main, "?????", "anasayfa", false); TextFile.WriteFromString("C:\\MyFile.txt", mainnew, false); Quote Link to comment Share on other sites More sharing options...
reyiz Posted July 3, 2013 Share Posted July 3, 2013 Aşağıda verdiğim eklenti işinize yarayabilir. IndigoRose forumuna bir türlü kayıt olamadığımdan benim deneme şansım olmadı. Üyeliğiniz varsa ve eklentiyi indirebildiyseniz bana gönderirseniz nasıl kullanacağınız konusunda yardımcı olabilirim. Quote Link to comment Share on other sites More sharing options...
prototype Posted July 3, 2013 Author Share Posted July 3, 2013 Şöyle deneyerek yapabildim. main = TextFile.ReadToString("C:\\MyFile.txt"); mainnew = String.Replace(main, "выхода", "anasayfa", false); TextFile.WriteFromString("C:\\MyFile.txt", mainnew, false); aynen bu kodu dosya.lua şeklinde bir dosyaya atıp ams ye import ettim oldu. ayrıca .lua uzantılı dosyalarıda kabul ediyor .. Quote Link to comment Share on other sites More sharing options...
prototype Posted July 3, 2013 Author Share Posted July 3, 2013 pardon tpl dosyalarıda kabul ediyor. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.