Page 1 of 1

build language-files

PostPosted: Mon Apr 18, 2011 3:56 pm
by Michael_N
I have
VERSION: 2.4-307a
BUILD: 110408-0433
clean install

I am trying to build /usr/src/astguiclient/trunk/LANG_www/agc_dk


dialer:/usr/src/astguiclient/trunk/bin #
with this command:
perl ./build_translation_www_files.pl --client-only --language=dk

This is the result, I have a dk_language.txt file in

/usr/src/astguiclient/trunk/translations/

----- LANGUAGE WEB SCRIPT ONLY BUILD -----


----- CLIENT PAGES ONLY BUILD -----

can't open ./translations/dk_language.txt: No such file or directory


What have i done wrong?

Regards

Michael

PostPosted: Mon Apr 18, 2011 3:57 pm
by mflorell
You have to copy the translations directory to your web directory before you run the translations.

PostPosted: Mon Apr 18, 2011 4:02 pm
by Michael_N
like this?

/srv/www/htdocs/translations/

PostPosted: Mon Apr 18, 2011 4:07 pm
by mflorell
that should work, and then you need to run the translation script from the /srv/www/htdocs directory.

Let us know how it goes for you.

PostPosted: Mon Apr 18, 2011 4:33 pm
by DarknessBBB
I use the OP method, and it works flawless!

PostPosted: Mon Apr 18, 2011 4:55 pm
by Michael_N
it did create a agc_dk and a agc_en directory

Copied content to /srv/www/htdocs/agc/ directory

The page will not load after i enter phonelogin and username

and chose campaign

PostPosted: Mon Apr 18, 2011 6:13 pm
by mflorell
Any Firefox Error Console entries?

PostPosted: Mon Apr 18, 2011 10:59 pm
by Michael_N
error: unterminated string literal
sourcesfile: http://10.10.10.103/agc/vicidial.php
line: 2235

error: begin_all_refresh is not defined
sourcefile: http://10.10.10.103/agc/vicidial.php
line: 1

PostPosted: Tue Apr 19, 2011 11:06 am
by mflorell
Can you post the lines around 2235 when you do a "view source" on that page?

This is usually caused by a single word that is also a variable being translated into two separate words. Or maybe something related to an accent.

PostPosted: Tue Apr 19, 2011 1:56 pm
by Michael_N
I did locate error, it was a typo in translationfile.