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.orgb). You must have installed VirtueMart 1.0.7 - download from
www.virtuemart.netc). 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.