Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #27242

Re: Multi-language support on embedded plarforms

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.arch.embedded, comp.lang.c
Subject Re: Multi-language support on embedded plarforms
Date 2017-09-06 07:50 +1200
Message-ID <f18dgsFgq3rU1@mid.individual.net> (permalink)
References <ooljr9$2kp$1@dont-email.me> <oolo3c$9f9$1@dont-email.me> <83etqc173gvifoa9hpp1ucrnuf481b91tg@4ax.com>

Cross-posted to 2 groups.

Show all headers | View raw


On 09/ 6/17 02:56 AM, Robert Wessel wrote:
> On Tue, 05 Sep 2017 10:43:24 +0200, David Brown
> <david.brown@hesbynett.no> wrote:

>> I think if you are looking for a pure C approach, and you want to keep
>> it efficient, then using the enumerated type as an index is the best choice.
>>
>> But rather than writing all the strings directly in C, I would keep
>> track of them in a spreadsheet saved in tab delimited format, and use a
>> little script to turn it into a C header file declaring the enum, and a
>> C source file initialising the array.  It just makes it easier to keep
>> track of everything, and saves a great deal of effort when you need to
>> get someone else to make the translation strings.
>
>
> We use a preprocessor approach as well, although not from a
> spreadsheet.  An advantage of a preprocessor, is that it makes it easy
> to slot default messages (IOW English) in for items which have missing
> translations, and to build subsets of the supported languages and
> messages to keep space requirements down.
>
> Paul mentioned the difficulty of keeping the different translations in
> sync; the preprocessor can help there too, if you put a version code
> (a timestamp, in our case) on each version of each message.  Then the
> preprocessor can warn if the English message was updated without the
> timestamp being updated (hopefully after being reviewed!) on the
> Italian message.

If you store your spreadsheet in plain text (SCV), your version control 
system can keep track of changes for you!

-- 
Ian

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Multi-language support on embedded plarforms pozz <pozzugno@gmail.com> - 2017-09-05 09:30 +0200
  Re: Multi-language support on embedded plarforms David Brown <david.brown@hesbynett.no> - 2017-09-05 10:43 +0200
    Re: Multi-language support on embedded plarforms Robert Wessel <robertwessel2@yahoo.com> - 2017-09-05 09:56 -0500
      Re: Multi-language support on embedded plarforms Ian Collins <ian-news@hotmail.com> - 2017-09-06 07:50 +1200
        Re: Multi-language support on embedded plarforms Robert Wessel <robertwessel2@yahoo.com> - 2017-09-05 17:11 -0500
          Re: Multi-language support on embedded plarforms Keith Thompson <kst-u@mib.org> - 2017-09-05 15:17 -0700
            Re: Multi-language support on embedded plarforms Robert Wessel <robertwessel2@yahoo.com> - 2017-09-05 19:19 -0500
              Re: Multi-language support on embedded plarforms raltbos@xs4all.nl (Richard Bos) - 2017-09-09 12:37 +0000
                Re: Multi-language support on embedded plarforms Robert Wessel <robertwessel2@yahoo.com> - 2017-09-09 16:16 -0500
                Re: Multi-language support on embedded plarforms raltbos@xs4all.nl (Richard Bos) - 2017-09-15 17:17 +0000
          Re: Multi-language support on embedded plarforms Allan Herriman <allanherriman@hotmail.com> - 2017-09-06 11:27 +0000
  Re: Multi-language support on embedded plarforms Paul <paul@pcserviceselectronics.co.uk> - 2017-09-05 10:04 +0100
    Re: Multi-language support on embedded plarforms Theo Markettos <theom+news@chiark.greenend.org.uk> - 2017-09-06 10:55 +0100
  Re: Multi-language support on embedded plarforms Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-09-05 17:00 -0400
  Re: Multi-language support on embedded plarforms Keith Thompson <kst-u@mib.org> - 2017-09-07 10:55 -0700
    Re: Multi-language support on embedded plarforms scott@slp53.sl.home (Scott Lurndal) - 2017-09-07 18:41 +0000
    Re: Multi-language support on embedded plarforms pozz <pozzugno@gmail.com> - 2017-09-08 11:33 +0200
      Re: Multi-language support on embedded plarforms bartc <bc@freeuk.com> - 2017-09-08 11:32 +0100
        Re: Multi-language support on embedded plarforms David Brown <david.brown@hesbynett.no> - 2017-09-08 13:37 +0200
          Re: Multi-language support on embedded plarforms bartc <bc@freeuk.com> - 2017-09-08 14:48 +0100
            Re: Multi-language support on embedded plarforms David Brown <david.brown@hesbynett.no> - 2017-09-08 16:45 +0200
  Re: Multi-language support on embedded plarforms Richard Damon <Richard@Damon-Family.org> - 2017-09-08 10:43 -0400
    Re: Multi-language support on embedded plarforms Mel Wilson <mwilson@the-wire.com> - 2017-09-08 17:33 +0000

csiph-web