Tree module sk-SK translation

Phoca Download - download manager
Drahomir
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 09 Oct 2010, 11:55

Tree module sk-SK translation

Post by Drahomir »

Hi Jan,
I`ve got some translation problem. Phoca Downl. Component uses slovak language. So DOWNLOAD= Stiahnuť. When I enable Download tree module, there is "Download" on top of folders (sections). When I click on a section and it opens Phoca download component, probably download=Stiahnuť is called in and "Download" text on top of the tree module is translated into slovak. OK, but I don`t want english text "download" in tree module outside the component pages.
:) I found a file mod_phocadownload_tree.php with line:

Code: Select all

$output.=''.$treeId.'.add(0,-1,\''.JText::_( 'Download' ).'\',\''.$linkSections.'\');'."\n";
. But when I change the 'Download' to 'Stiahnuť' and convert it to UTF8, very strange think happens... :) It makes on page some free, unusing space between module title and the first module line (that is in this case "Stiahnuť").
This is printscreen of the module outside component-
Image

This one is inside component-
Image

And the last is the module after changing the mod_phocadownload_tree.php to UTF8-
Image

FireBug shows some strange free space between rows-
Image


Should I translate it in some different way?
Thank you,

Drahomir
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Tree module sk-SK translation

Post by Jan »

Hi, Joomla! translate all the string which it finds, it means, if you have e.g. "download" string, it will be translated by currently loaded language string (e.g. by Phoca Download)

This will be changed in Joomla! 1.6 where there will be different types:

COM_PHOCADOWNLOAD_DOWNLOAD="Download"
MOD_PHOCADOWNLOAD_TREE="Download"

so the string will be not translated by other component.

Did you look at the module translation file, this is loaded every time and should take the string from this translation.

If you paste your translation, e.g. unique: "MOD_PHOCADOWNLOAD_TREE" and you will tranlsate it in module language ini file, then this will be not in conflict with component.

Jan
If you find Phoca extensions useful, please support the project
Post Reply