Droplist of translated month names
Hi Graham,
Does the translation need to happen in Omnis? I prefer to let the Web
Server
handle translations as much as possible (through JavaScript, PHP,
Python,
whatever you fancy). That way, most of the web page content is
centralised on
the server and easy to update by the web designer/developer. Chances are
you
will also have to do some translations for web pages that don’t
necessarily
come from the Omnis ultra-thin server.
In your case, I would set the months as variable names. In JavaScript,
it
would be something like:
The Translate method would do a lookup in an Array with keys “varMonth?”
and the current language.
So it’s probably very similar to what you had in mind with string
tables,
but I feel it will be easier to maintain.
Nick
On 5 Jun 2017, at 15:54, Graham Stevens wrote:
> Hi All,
>
> We have an ultra-thin web application presenting pages in the user’s
> language. I now have a need to present a droplist of months. I don’t
> have a problem with presenting the list to the user but I need to
> populate it with the translated month names. I have a couple of ideas
> involving string tables or database entries to get the translated
> values but was wondering if anybody here has already done this with
> Omnis and would be willing to share any code snippets?
>
> Thanks and regards,
> Graham
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com