Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> tlumaczenie wybranego elementu na stronie
peterlan
post
Post #1





Grupa: Zarejestrowani
Postów: 131
Pomógł: 0
Dołączył: 25.10.2012

Ostrzeżenie: (0%)
-----


Witam, czy ktos moze wie jak poprzez google translate tlumaczyc tylko wybranego diva na stronie?

aktualnie pobralem kod z google translate manager, jednak tlumaczy mi cala strone.

  1. <script type="text/javascript">
  2. function googleTranslateElementInit() {
  3. new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'de,da,en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL, multilanguagePage: true}, 'google_translate_element');
  4. }
  5. </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


Mozna w php to jakos zrobic? sa moze jakies klasy dzieki ktorym div tlumaczony bylby automatycznie?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Kshyhoo
post
Post #2





Grupa: Opiekunowie
Postów: 3 855
Pomógł: 317
Dołączył: 4.01.2005
Skąd: że




Jaki to ma związek z PHP?
Go to the top of the page
+Quote Post
peterlan
post
Post #3





Grupa: Zarejestrowani
Postów: 131
Pomógł: 0
Dołączył: 25.10.2012

Ostrzeżenie: (0%)
-----


ok rozumiem,

a zatem czy jest taka mozliwosc by google nie tlumaczylo calej strony?
Go to the top of the page
+Quote Post
trueblue
post
Post #4





Grupa: Zarejestrowani
Postów: 6 809
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


http://stackoverflow.com/a/1900203
Go to the top of the page
+Quote Post
peterlan
post
Post #5





Grupa: Zarejestrowani
Postów: 131
Pomógł: 0
Dołączył: 25.10.2012

Ostrzeżenie: (0%)
-----


czy ktos moze wie - zalaczenie na strone pluginu google translate jest darmowe?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 02:17