[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] Updating dem listings for Brazil
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] Updating dem listings for Brazil |
Date: |
Wed, 16 Nov 2011 23:43:43 +0100 |
no need to JOIN, simply pass whatever you want to translate:
select _('string to translate', 'target language')
this is an SQL function provided by GNUmed
Also, may I suggest using pt rather than pt_BR for the translations.
That way all pt_* locales would benefit from the translations as
opposed to Brazil only. This, btw, also demonstrates the main drawback
of this approach: it will only work for the pt_* locale, users in
other locales won't see the accented strings unless they explicitely
select pt_* at which point they'd also start seeing other database
content being translated to pt_* (say, EMR journal non-data strings).
I'll implement a solution for this: a translation target called "generic"
which is accessed by _() after checking *_*, * but before returning
the untranslated string. So the flow would go
check pt_BR
-> no match?: check pt
-> no match ?: check "generic"
-> no match ?: return original
Karsten
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
- Re: [Gnumed-devel] Updating dem listings for Brazil, (continued)
Re: [Gnumed-devel] Updating dem listings for Brazil, Karsten Hilbert, 2011/11/15
- Re: [Gnumed-devel] Updating dem listings for Brazil, Busser, Jim, 2011/11/15
- Re: [Gnumed-devel] Updating dem listings for Brazil, Busser, Jim, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil, Karsten Hilbert, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil, Busser, Jim, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil, Busser, Jim, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil, Karsten Hilbert, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil, Busser, Jim, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil,
Karsten Hilbert <=
- Re: [Gnumed-devel] Updating dem listings for Brazil, Busser, Jim, 2011/11/16
- Re: [Gnumed-devel] Updating dem listings for Brazil, Karsten Hilbert, 2011/11/17
Re: [Gnumed-devel] Updating dem listings for Brazil, Karsten Hilbert, 2011/11/17