Copy language files.

ohaldi

Avatar: ohaldi

2009-09-04 20:38

I read many ideas about the languages, but I still have a problem.
I created a new language with the “de_” prefix.
Quick.Card generated the new 20 language files (QuickCard V3.4).
After, I overwrote the all “de_” files with the “en_” files to have the same page trees.
But now, I can’t start QC in user and in admin mode!
I get the following error message:
Fatal error: Call to undefined function de_pages() in C:\xampp\htdocs\qc\core\pages.php on line 299.
If I write back the original “de_” then every thing work again. But I don’t have any pages.
Question: It is not possible to make a copy from all language files to a another one ?
Many thanks in advance for any help.

» Quick.Cart v3.x

Otto

beholder

Avatar: beholder

2009-09-05 01:14

tell you what. First create your new "de" language. Then copy only the *.php files from the other language.

DO NOT COPY the *.def.php files.

Didier31

Avatar: Didier31

2009-09-05 08:15

I agree with beholder (as usual :-)
I spent days trying to get a fr_ version of the original en_ (and pl_) one and never succeeded.
I finally choose the en_ language and rewrote the whole en_ language file from a French translation I found somewhere (the guy has given up with QC, too bad).

Today, I have a en_ shop with French text and it works fine since two years.

If you ever suceed to make your de_ site fine, please write an entry for the FAQ !

ohaldi

Avatar: ohaldi

2009-09-05 11:46

> DO NOT COPY the *.def.php files.
>
Thanks that was the correct solution.

Otto

beholder

Avatar: beholder

2009-09-05 14:04

Didier >> it's exactly as I wrote:
1. create a new language (fr)
2. save all the fr_*.def.php files somewhere.
3. rename and copy en_*.php files from your working language to overwrite the fr_*.php
4. copy all the fr_*.def.php from step #2 back to the db/ folder (overwrite the existing ones).

Didier31

Avatar: Didier31

2009-09-05 16:39

yep !

Back to top
about us | contact