×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Module language

Module language 13 years 11 months ago #9640

  • Nils Ally
  • Nils Ally's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Not sure how to describe this correctly, so here goes...:
I have the 4.1.2 beta 1 component and latest Module installed.
Joomla 1.5.16 etc

In the LatestComments module, the language file has been corrected to (in my case) Norwegian.
Looking on the frontpage, and reading isolated articles including blog entries, the Module follows the language path correctly, and states the correct "Said" and "more" (only in Norwegian).

However, when I suddenly change the component being used to read from, for example Forums, Picture Gallery, Video Gallery, TopSites, Events, Virtuemart, it suddenly says "more" in English, and NOT Norwegian.
At the same time the "said" stays in the correct language.

So the first part (said) is correct at all times, whereas the second linking part (more) defaults to english.

On returning to Frontpage or article, the language is correct again.

I also see that the language file for the Module does not have any language definition for this "more" statement, so it is pulling it from somewhere, only not consistently correct.
Since it is consistently incorrect, I guess this might be an easy fix?
:lol: but even an easy fix is out of my league.

Anyway, this is not crucial, just perhaps worth looking in to...?

Module language 13 years 11 months ago #9647

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I understand. I thought that the "more" string is translated with the main language file, but this is not the case - more exists only in the com_content.ini file.

A way around this would be to define a new language string comment_more and define it in the language file.

Module language 13 years 10 months ago #9679

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, what we have to do.
modules/mod_comment/tmpl/default.php
I have replaced JText::_('more') with JText::_('MODMORE');
and in the your-language.mod_comments.ini I have added a string for MODMORE = more.
This should solve the problem.
  • Page:
  • 1
Time to create page: 0.114 seconds