Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Language files
(1 viewing) (1) Guest
Document management system (DMS) component for Joomla!

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.
  • Page:
  • 1
  • 2

TOPIC: Language files

Language files 9 years, 2 months ago #15148

Hi

First of all thanks for this nice extension JoomDOC.
I want to install JoomDOC 2.0.2 for a Joomla 1.5.20 website in Dutch language.
I did following steps:
1. I translated the language file:
/language/en-GB/en-GB.com_joomdoc.ini
into dutch and saved it as:
/language/nl-NL/nl-NL.com_joomdoc.ini
2. I translated the language files:
/administrator/language/en-GB/en-GB.com_joomdoc_common.ini and
/administrator/language/en-GB/en-GB.com_joomdoc.ini
into dutch and saved it as:
/administrator/language/nl-NL/nl-NL .com_joomdoc_common.ini
/administrator/language/nl-NL/nl-NL.com_joomdoc.ini

I thought the job was done. But apparently not yet. I noticed that in the frontside still some english words are used. They seem to come from the langauage file:
/components/com_joomdoc/views/themes/default/language/english.php

So I translated this file and saved it as:
/components/com_joomdoc/views/themes/default/language/dutch.php
But that did not solve the problem.

Can anybody advise me how to deal with this language files. I think it’s rather confusing.
Thanks in advance.
The topic has been locked.

Re:Language files 9 years, 1 month ago #15268

I'm using -or trying to- JoomDOC 2.0.2 in spanish.

after been translated:
/language/en-GB/en-GB.com_joomdoc.ini
/administrator/language/en-GB/en-GB.com_joomdoc_common.ini and
/administrator/language/en-GB/en-GB.com_joomdoc.ini

see this errors on backend

Warning: Constants may only evaluate to scalar values in /var/www/clients/client50/web140/web/administrator/components/com_joomdoc/language/en-GB.backend.php on line 271
 
Warning: Constants may only evaluate to scalar values in /var/www/clients/client50/web140/web/administrator/components/com_joomdoc/language/en-GB.backend.php on line 278
 
Warning: Constants may only evaluate to scalar values in /var/www/clients/client50/web140/web/administrator/components/com_joomdoc/language/en-GB.backend.php on line 298


I do agree with petham when he says that dealing with language files it’s rather confusing.
The topic has been locked.

Re: Language files 8 years, 12 months ago #19167

I did it :)

First, I translated all the documents that you've mentioned and placed them in the right place.

JoomDoc uses a language file that you can find it on "components/com_joomdoc/views/themes/default/language/english.php"

All you need to do is to copy this file and change the name in xx-XX.php
And you're finished ;)
The topic has been locked.

Re: Language files 8 years, 12 months ago #19171

Hi Apartisan,

I tested your proposal to solve the language file problem. But for me it did not work.
When I rename the file ‘components/com_joomdoc/views/themes/default/language/english.php’ to ‘components/com_joomdoc/views/themes/default/language/nl-NL.php’, Joomla comes with the warning:

Warning: include_once(/home/peterham/public_html/schrift15a/components/com_joomdoc/views/themes/default/language/english.php) [function.include-once]: failed to open stream: No such file or directory in /home/peterham/public_html/schrift15a/administrator/components/com_joomdoc/classes/DOCMAN_theme.class.php on line 105

It’s clear that the software keeps searching for a file named ‘english.php’, even when Joomla is configured for Dutch or another language.

To solve the problem, I make a workaround and keep the name ‘english.php’ for the file with the Dutch translation in it. That works OK, but it is not the way this kind of problems should be solved.
The topic has been locked.

Re: Language files 8 years, 11 months ago #19417

hello,

I'm facing the same problem. I would like the website part of JoomDOC translated in french. I tryed changing the english.php file but that doesn't seem to be enough.
Isn't there a clean way to do this?

Thanks for some help Artio team.

Best regards.
Joannes
Last Edit: 8 years, 11 months ago by dekoster.
The topic has been locked.

Re: Language files 8 years, 11 months ago #19422

Hello Johannes,

To translate your extension JoomDOC 2.0.2 into French you should do tree steps:
1.Translate the language file: /language/en-GB/en-GB.com_joomdoc.ini
into french and saved it as: /language/fr-FR/fr-FR.com_joomdoc.ini
2.Translate the two language files:
/administrator/language/en-GB/en-GB.com_joomdoc_common.ini and
/administrator/language/en-GB/en-GB.com_joomdoc.ini
into french and save it as:
/administrator/language/fr-FR/fr-FR.com_joomdoc_common.ini
/administrator/language/fr-FR/fr-FR.com_joomdoc.ini
3.Translate the language file:
/components/com_joomdoc/views/themes/default/language/english.php
into french, but don’t change the name. Although the content of the file is the french translation, the name of file stays:
/components/com_joomdoc/views/themes/default/language/english.php

The translation is not so much work. If you can find somewhere the french language files of DOCman 1.4.0, you can use them almost completely.

Good luck,
Petham
Last Edit: 8 years, 11 months ago by petham.
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty