How do I add spanish?
on the info page it says:
‘If you click other label than English, you get a set of all constants, the English definition at the side, and an input box to enter/modify the definition in the selected language.’
If I set LANGUAGE in globals to 3
But I never get this, it just loads.
But if I set it to one I get
‘Warning: Invalid argument supplied for foreach() in /var/www/openemr/interface/language/lang_definition.php on line 9
Warning: Invalid argument supplied for foreach() in /var/www/openemr/interface/language/lang_definition.php on line 25’
After many requests we did provide the translation framwork tool.
This doesn’t mean we have preloaded the system with the translation. We expect this to happen from the user community.
To Add a language.
First make sure you do have the language module and the language tables loaded. Wich are only available from CVS.
They are in sql/2_8_0-to-2_8_1_upgrade.sql
Go to administration -> language
click in add constant.
Constants are all the _ENGLISH_ phrases -one or more word, with or without punctuation marks- which are used along the software, if you look into the scripts, the constants are all those phrases inside the xl() function.
so if you see in the code something like i.e. xl(‘Hello’) makes Hello a constant.
And something like xl(‘Patient Notes:’) makes Patient Notes: a constant.
Once you have identified the constants enter them using the ‘add constant’ option in the language tool menu,
After you added all constants, click on edit definitions: Spanish
you’ll see the list of constants plus an empty definition, load the empty definition field with the Spanish translation an save,
then you can set language to 3 in globals
after that, if you’ll send us the dump from the lang tables, we will include it in the repository so Spanish translation will be ‘built in’
Thanks Andres
Now it makes sense to me and so I have begun. But as I’m going through the files it seems like not all have the xl() function in them. If so then, how can I get those done?
BTW Andres
I will try and keep my spanish translation as generic as possible or when possible make reference to La Real Academia.
for private questions you can always send email using the one at sourceforge, wich forwards to the emails registered at SF, other than that my private is andres at paglayan dot com
I have followed the instructions specified (at least i think i did).
from a stable 2.8.0 release, first i have upgraded the db to version 2.8.1 (which outputed a query error, but executed most of the instructions), then i have upgraded it to version 2.8.2.
Afterwards i have logged in oemr, browsed to administration but there was no "language" link at all.
do i have to install the WHOLE cvs version to have access to this dev functionality?