Yes, it’s definitely useful to have context-specific strings when situations like this arise.  I have added “date_from” and “date_to” strings to account for this situation.  I have left the existing “From” and “To” in place for emails.  It might be better to rename them to message_from and message_to, but for now I decided to implement the least-disruptive fix (in case anybody is relying on those strings in other contexts based on their original meanings).

 

Markus, please take a look at the latest code and let me know if I did anything wrong!  In any case, thanks for catching the problem.

 

- Demian

 

From: Greg Pendlebury [mailto:greg.pendlebury@gmail.com]
Sent: Sunday, March 27, 2011 4:59 AM
To: Markus Fischer
Cc: vufind-general@lists.sourceforge.net
Subject: Re: [VuFind-General] Ambivalent translation key "to"

 

I know it bloats the language files, but I would suggest going even further. Back when the advanced search screen was being overhauled I started putting in strings that showed the screen they came from, or at least context of usage. It adds more control for minor tweaks to individual screens by non-tech staff.

In this context I guess the indexes would be something like: 'date_to', 'date_slider_to', 'email_to' etc.

Greg

On 27 March 2011 18:05, Markus Fischer <info@flyingfischer.ch> wrote:

I stumbeld over a translation issue due to an ambivalent key in Vufind 1.1:

To = "To" has been translated up to now in German with: To = An

This key is now used in pubdate_slider as "from" "to". Here the german
tranlsation should be "Von" "Bis" instead of "Von" "An".

Because the pubdate_slider is very strongly exposed, and the wrong
translation ("An") is very weird, I changed the key to "Bis" and
committed it to the trunk.

I know see that the same key is also used in the context of sending
emails/sms. So the german translation is different and should be "An" as
it was.

To resolve the issue, I think we should use separate keys. E.g.:

To = An
Till = Bis

Sorry for the mess.

Markus


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general