Home arrow Forum Montag, 6. September 2010 
Home
Hosting
Domain
FAQ
Joomla
AGB
Impressum
Login
Forum
OS:  Unbekannt
IE:  Anderer Browser
ISP:  191.88
IP:  38.107.191.88
link-commander.com - Webmaster Portal
pr-boosti.de - Pagerank Anzeige ohne Toolbar
http://www.intraspace.de
ranking-hits24.de - Pagerank Anzeige ohne Toolbar
Forum
Willkommen, Gast
Bitte anmelden oder registrieren.    Passwort vergessen?
Translation joomla 1.0.10/11 virtuemart joomfish in cyrillic languages (0 Leser) 
Zum Ende gehen Neues Thema Beliebt: 0
THEMA: Translation joomla 1.0.10/11 virtuemart joomfish in cyrillic languages
#13
rtwo (Admin)
Admin
Beiträge: 11
graph
Benutzer jetzt online Hier klicken, um das Profil dieses Benutzers zu sehen
Translation joomla 1.0.10/11 virtuemart joomfish in cyrillic languages 3 Jahrs, 9 Monats ago Karma: 0  
Translation joomla 1.0.10/11 - virtuemart - joomfish in cyrillic languages

1) install joomla 1.0.10/11

2) install virtuemart

3) install joomfish

4)read this hack Definitive Guide for Joomla! + VirtueMart + Joom!Fish (Multilanguage Shop) and make installs

If you want to have a multilanguage shop, you need to do several things.

a). You must have version of Joomla! 1.0.10 - download from www.joomla.org
b). You must have installed VirtueMart 1.0.7 - download from www.virtuemart.net
c). You must have installed Joom!Fish 1.7 Stable - download it from www.joomfish.net
[NOTE] - Even Joom!Fish contains bots and module, it is installed at ONCE as a component.
Please verify before install that your mambots/system folder has permitions to write in.
d). Install the languages you want to use in your Joomla! - Find all available languages
by clicking here.
e). Add the VirtueMart Translations you are going to use in administrator/components/com_virtuemart/languages
f). Configure the languages in Joom!Fish in the standard way. Look at www.joomfish.net
if you experience problems.
g). Add your products in the normal way in VirtueMart
h. Add to the folder administrator/components/com_joomfish/contentelements/ the files,
that you should download by CLICKING HERE. You can upload those files easy with the
Joom!Fish Content Element Installer. Get it from here and upload the files one by one and NOT AS ZIP.
i). Open the translation feature of Joom!Fish. Choose, what to translate from the dropdown
and start translating the products, manufacturers, whatever.
j). Publish the translations.


5)

a)

open administratorcomponentscom_virtuemartclasseshtmlTools.class.php

change following code row 566

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
</span><span style="color: #FF8000">// borrowed from mambo.php
</span><span style="color: #007700">function </span><span style="color: #0000BB">shopMakeHtmlSafe</span><span style="color: #007700">( </span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">$quote_style</span><span style="color: #007700">=</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">, </span><span style="color: #0000BB">$exclude_keys</span><span style="color: #007700">=</span><span style="color: #DD0000">'' </span><span style="color: #007700">) {
</span><span style="color: #0000BB">$string </span><span style="color: #007700">= </span><span style="color: #0000BB">htmlspecialchars</span><span style="color: #007700">( </span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">$quote_style </span><span style="color: #007700">);
return </span><span style="color: #0000BB">$string</span><span style="color: #007700">;
} 
</span>
</span>
</code>


and uncomment :
Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
$string </span><span style="color: #007700">= </span><span style="color: #0000BB">htmlspecialchars</span><span style="color: #007700">( </span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">$quote_style </span><span style="color: #007700">);</span>
</span>
</code>


like this

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
</span><span style="color: #FF8000">// borrowed from mambo.php
</span><span style="color: #007700">function </span><span style="color: #0000BB">shopMakeHtmlSafe</span><span style="color: #007700">( </span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">$quote_style</span><span style="color: #007700">=</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">, </span><span style="color: #0000BB">$exclude_keys</span><span style="color: #007700">=</span><span style="color: #DD0000">'' </span><span style="color: #007700">) {
</span><span style="color: #FF8000">//$string = htmlspecialchars( $string, $quote_style );
</span><span style="color: #007700">return </span><span style="color: #0000BB">$string</span><span style="color: #007700">;
} 
</span>
</span>
</code>


b)

its not necessary, but another way

in globals.php in home-dir add at last before end of file this:
Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: text/html; charset=windows-1251"</span><span style="color: #007700">);
</span>
</span>
</code>


like this

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: text/html; charset=windows-1251"</span><span style="color: #007700">); 
</span><span style="color: #0000BB">?>
</span>
</span>
</code>


c)

Open all russian , bulgarian and other kyrillian languages files in dreamweaver , open in Kyrillic(windows) !!!,
(make change in your settings-> open documents->windows(Kyrillic), unable unicode-signature-bom included)

If open file, you see kyrillic character set of signs.

Open your live-site-administrator and install joomlaxplorer, open joomlaxplorer, go to your language file and copy
all content from your dreamweaver file in language file on your webserver.

Save file. Now if reopen unicode language file characterset is shown. In Frontpage should be translated.

Made the same with all kyrillic virtuemart language files.

d)

If Problem in header _title_ unicode, open joomla.php in main.

Uncomment in row 503

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
</span><span style="color: #007700">function </span><span style="color: #0000BB">setPagetitle</span><span style="color: #007700">( </span><span style="color: #0000BB">$title</span><span style="color: #007700">=</span><span style="color: #0000BB">null </span><span style="color: #007700">) {
if (@</span><span style="color: #0000BB">$GLOBALS</span><span style="color: #007700">[</span><span style="color: #DD0000">'mosConfig_pagetitles'</span><span style="color: #007700">]) {
</span><span style="color: #0000BB">$title </span><span style="color: #007700">= </span><span style="color: #0000BB">trim</span><span style="color: #007700">( </span><span style="color: #0000BB">htmlspecialchars</span><span style="color: #007700">( </span><span style="color: #0000BB">$title </span><span style="color: #007700">) );
</span><span style="color: #0000BB">$title </span><span style="color: #007700">= </span><span style="color: #0000BB">stripslashes</span><span style="color: #007700">(</span><span style="color: #0000BB">$title</span><span style="color: #007700">);
</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_head</span><span style="color: #007700">[</span><span style="color: #DD0000">'title'</span><span style="color: #007700">] = </span><span style="color: #0000BB">$title </span><span style="color: #007700">? </span><span style="color: #0000BB">$GLOBALS</span><span style="color: #007700">[</span><span style="color: #DD0000">'mosConfig_sitename'</span><span style="color: #007700">] . </span><span style="color: #DD0000">' - 
'</span><span style="color: #007700">. </span><span style="color: #0000BB">$title </span><span style="color: #007700">: </span><span style="color: #0000BB">$GLOBALS</span><span style="color: #007700">[</span><span style="color: #DD0000">'mosConfig_sitename'</span><span style="color: #007700">];
}
}
</span>
</span>
</code>


like this

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
</span><span style="color: #007700">function </span><span style="color: #0000BB">setPagetitle</span><span style="color: #007700">( </span><span style="color: #0000BB">$title</span><span style="color: #007700">=</span><span style="color: #0000BB">null </span><span style="color: #007700">) {
if (@</span><span style="color: #0000BB">$GLOBALS</span><span style="color: #007700">[</span><span style="color: #DD0000">'mosConfig_pagetitles'</span><span style="color: #007700">]) {
</span><span style="color: #FF8000">//$title = trim( htmlspecialchars( $title ) );
</span><span style="color: #0000BB">$title </span><span style="color: #007700">= </span><span style="color: #0000BB">stripslashes</span><span style="color: #007700">(</span><span style="color: #0000BB">$title</span><span style="color: #007700">);
</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_head</span><span style="color: #007700">[</span><span style="color: #DD0000">'title'</span><span style="color: #007700">] = </span><span style="color: #0000BB">$title </span><span style="color: #007700">? </span><span style="color: #0000BB">$GLOBALS</span><span style="color: #007700">[</span><span style="color: #DD0000">'mosConfig_sitename'</span><span style="color: #007700">] . </span><span style="color: #DD0000">' - 
'</span><span style="color: #007700">. </span><span style="color: #0000BB">$title </span><span style="color: #007700">: </span><span style="color: #0000BB">$GLOBALS</span><span style="color: #007700">[</span><span style="color: #DD0000">'mosConfig_sitename'</span><span style="color: #007700">];
}
}
</span>
</span>
</code>


e)

For correct signs in translation in admin, if you have translated, make this little hack.

In row 688 of administratorcomponentscom_joomfishadmin.joomfish.html.php uncomment this

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
</span><span style="color: #FF8000">// This causes problems in Japanese/Russian etc.
</span><span style="color: #0000BB">mosMakeHtmlSafe</span><span style="color: #007700">( </span><span style="color: #0000BB">$translationContent </span><span style="color: #007700">); 
</span>
</span>
</code>


like this

Code: :
<code><span style="color: #000000">
<span style="color: #0000BB"> 
</span><span style="color: #FF8000">// This causes problems in Japanese/Russian etc.
//mosMakeHtmlSafe( $translationContent );
</span>
</span>
</code>


Thats it.
 
Moderator informieren   Gespeichert Gespeichert  
 
Letzte Änderung: 2008/11/19 19:45 von rtwo.
  Kein öffentlicher Schreibzugriff erlaubt, bitte erst registrieren!
Zum Anfang gehen Neues Thema
Powered by FireBoarddie neusten Beiträge direkt auf Deinem Desktop erhalten