Page 1 of 1

french agent screen translation

PostPosted: Fri Jul 22, 2011 4:01 pm
by sofcall
Hi all,
Goautodial 2.1
version 2.4-309a
build:110430-1642
asterisk 1.4.39.1
from iso.
no extra hardware.
no addons.
using eybeam as a softphone.

p3 computer 930 Mhz 512 RAM just to test goautodial.


I managed to get both admin and agent translation but the agent screen i got is a little diferrent from the english (pretty one).so my question is how can get the same screen as the english one.
i have not deleted the english file(agc).

PostPosted: Mon Jul 25, 2011 4:29 am
by DarknessBBB
You have to update the translated pages using the script /usr/share/astguiclient/build_translation_www_files.pl

PostPosted: Tue Jul 26, 2011 3:56 pm
by gardo
You can help us translate the GoAutoDial agent UI to French for starters. You can create an issue (feature) on our project page:



Of course you need to create an account first on our community portal (free of charge). :)

PostPosted: Tue Jul 26, 2011 9:39 pm
by sofcall
hi
You have to update the translated pages using the script /usr/share/astguiclient/build_translation_www_files.pl

please how can i do that.
if by using ssh i did it with no succes.



You can help us translate the GoAutoDial agent UI to French for starters

would love to.

thank you

PostPosted: Wed Jul 27, 2011 4:15 pm
by williamconley
1) You posted your specs! Cool (but your Goautodial installer version 2.1 is mixed in with your vicidial version of 2.4-309a build 110430-1642).

2)
Code: Select all
locate build_translation
should result in something like:
/usr/share/astguiclient/build_translation_www_files.pl
/usr/src/astguiclient/agc_2.2.0/bin/.svn/text-base/build_translation_www_files.pl.svn-base
/usr/src/astguiclient/agc_2.2.0/bin/build_translation_www_files.pl
/usr/src/astguiclient/trunk/bin/.svn/text-base/build_translation_www_files.pl.svn-base
/usr/src/astguiclient/trunk/bin/build_translation_www_files.pl

then:
Code: Select all
perl /usr/share/astguiclient/build_translation_www_files.pl --help


3) Absolutely help with translations, be sure they get posted to the community (I presume gardo does this ...?)

PostPosted: Thu Jul 28, 2011 10:28 am
by sofcall
hi.
(but your Goautodial installer version 2.1 is mixed in with your vicidial version of 2.4-309a build 110430-1642).

did not get it.i verify again and it's

goautodial 2.1
VERSION: 2.4-309a
BUILD: 110430-1642

asterisk 1.4.39.1

locate build_translation

IT GIVES
/usr/share/astguiclient/build_translation_www_files.pl
/usr/src/astguiclient/bin/build_translation_www_files.pl
/usr/src/astguiclient/bin/.svn/text-base/build_translation_www_files.pl.svn-base





perl /usr/share/astguiclient/build_translation_www_files.pl --help


GIVES THIS:
allowed run time options:
[-t] = test
[-debug] = verbose debug messages
[--admin-only] = only translate admin pages
[--client-only] = only translate client pages
[--without-en] = only translate non-english
[--language=] = which language to build, 2 letter code, defaults to es-spanish
[--PATHweb=] = override to use this directory as source

so?
more help is appreciated.

PostPosted: Thu Jul 28, 2011 10:53 am
by williamconley
read the available options. execute the script again without "--help" but with the options you would like. For instance, removing "--help" and adding "--admin-only" to get ONLY the admin screens translated:
Code: Select all
perl /usr/share/astguiclient/build_translation_www_files.pl --admin-only

PostPosted: Sat Jul 30, 2011 9:03 pm
by sofcall
goautodial 2.1
VERSION: 2.4-309a
BUILD: 110430-1642
asterisk 1.4.39.1

locate build_translation

IT GIVES
/usr/share/astguiclient/build_translation_www_files.pl
/usr/src/astguiclient/bin/build_translation_www_files.pl
/usr/src/astguiclient/bin/.svn/text-base/build_translation_www_files.pl.svn-base

perl /usr/share/astguiclient/build_translation_www_files.pl --help


/usr/share/astguiclient/build_translation_www_files.pl
/usr/src/astguiclient/bin/build_translation_www_files.pl
/usr/src/astguiclient/bin/.svn/text-base/build_translation_www_files.pl.svn-base

done this command

perl /usr/share/astguiclient/build_translation_www_files.pl --client-only


then it said :

...CLIENT PAGES ONLY BUILD...
- - process runtime (0 sec) (0 minutes)
DONE and EXITING


but still having the same agent french screen(it has a great translation ;but just to remind you it's not like the english one in design)

my french screen below.
http://www.sendspace.com/file/nh5mvi

PostPosted: Sat Jul 30, 2011 9:43 pm
by williamconley
allowed run time options:
[-t] = test
[-debug] = verbose debug messages
[--admin-only] = only translate admin pages
[--client-only] = only translate client pages
[--without-en] = only translate non-english
[--language=] = which language to build, 2 letter code, defaults to es-spanish
[--PATHweb=] = override to use this directory as source
You should probably include --language=FR

and maybe -debug

and get some sleep.

PostPosted: Sat Jul 30, 2011 10:53 pm
by mflorell
That would need to be a lower-case 'fr', not upper case.

PostPosted: Sun Jul 31, 2011 10:50 am
by williamconley
fairly obvious that i never use languages other than english. 8-)

PostPosted: Mon Aug 01, 2011 8:34 pm
by sofcall
perl /usr/share/astguiclient/build_translation_www_files.pl -language=fr



DONE and EXITING


but still the same.

PostPosted: Mon Aug 01, 2011 8:38 pm
by williamconley
--language

not

-language

Hey, Matt, have you ever considered modifying the "switch routine" to "error out" when a bad switch is passed?

PostPosted: Tue Aug 02, 2011 2:18 am
by mflorell
williamconley wrote:Hey, Matt, have you ever considered modifying the "switch routine" to "error out" when a bad switch is passed?


Sounds like someone just volunteered to write a patch :)


I haven't looked at the code of that build script in a very long time, it wasn't really ever intended to be that user-friendly.

PostPosted: Tue Aug 02, 2011 11:12 am
by williamconley
Actually, since you use the same code in all the perl scripts to "identify switches", I may just do that. 8-)

PostPosted: Tue Aug 02, 2011 6:39 pm
by sofcall
hi,
thanks for your help .

i did it before it gives an error.

perl /usr/share/astguiclient/build_translation_www_files.pl --language=fr

the error:
[root@go ~]# perl /usr/share/astguiclient/build_translation_www_files.pl --language=fr

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


----- LANGUAGE BUILD: fr -----

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


but :
perl /usr/share/astguiclient/build_translation_www_files.pl -language=fr


gives:

[root@go ~]# perl /usr/share/astguiclient/build_translation_www_files.pl -language=fr

- process runtime (0 sec) (0 minutes)


DONE and EXITING

PostPosted: Tue Aug 02, 2011 7:28 pm
by mflorell
You need to be in the directory that is relative to the "translations" folder when you run that script.

PostPosted: Tue Aug 02, 2011 10:34 pm
by williamconley
Just in case we need to go that far:

Code: Select all
cd /usr/src/astguiclient
perl /usr/share/astguiclient/build_translation_www_files.pl --language=fr


[modified for /src/ instead of /share/ for future readers]

PostPosted: Wed Aug 03, 2011 6:11 pm
by sofcall
WILLIAM.you are smart and cool.

but!!!!
[root@go astguiclient]# perl /usr/share/astguiclient/build_translation_www_files.pl --language=fr

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


----- LANGUAGE BUILD: fr -----

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


thank you.

PostPosted: Thu Aug 04, 2011 4:07 pm
by gardo
You need to be in the directory:

/usr/src/astguiclient/

PostPosted: Fri Aug 05, 2011 1:49 am
by DarknessBBB
and you need to add fr_language.txt and fr_language_admin.txt to /usr/share/astguiclient/translations.

Matt, I've updated italian translations and this time I've created buttons too, where have I to upload them?

PostPosted: Fri Aug 05, 2011 7:52 am
by mflorell
You can create a new ticket in the Issue Tracker and upload them all there, then link to it on this ticket. Thank you very much!

PostPosted: Sun Aug 07, 2011 1:45 pm
by sofcall
hi all.
did:

perl /usr/share/astguiclient/build_translation_www_files.pl --language=fr


Took a long time to apply changes.
below is s screenshot of my agent screen.

http://www.sendspace.com/file/66553d

DarknessBBB said:
and you need to add fr_language.txt and fr_language_admin.txt to /usr/share/astguiclient/translations.



No such file or directory