Menu

#2 sng i18n

open
nobody
None
5
2012-10-28
2004-03-22
No

Hi Eric,

Attached is a patch to give sng full internationalization
(i18n) capability using gettext. I did this for the sng Debian
package, but I think it would be helpful to all if this was
included upstream.

If you're not familiar with gettext, essentially this allows
anyone to easily contribute a translation of the sng
program's user messages with none, or very little, effort on
your part. (No actual translations are included.)

Note that this is for translating the user interface (error
messages, usage messages, etc) NOT the SNG language itself,
as that would be very silly. =)

To have i18n capability, the a gettext library is required.
GNU gettext is almost always available on any GNU/Linux
system, and Solaris includes it's own gettext implementation
that may work as well, although this is un-tested.

For those users who do not desire i18n and do not wish to
have a dependancy on gettext, your configure script (after
this patch) includes the option '--disable-nls' which will
disable the "nls" (Native Language Services -- i.e. gettext) and
will then not require the library during compilation or
runtime.

I apologize that this patch is a bit monolithic, but that's kind
of the nature of this patch. It should apply cleanly to your
latest sng-1.0.2 tarball.

The actual changes on my part are trivial (mostly a little grunt
work; most of the work was gettextize and a little cleanup
and testing), but in case there is concern, I release any
copyrightable portion of this contribution under the GNU
Lesser General Public License. GNU gettext, portions of
which are included in this patch, fall under the same license.
=)

Discussion

  • Wesley J. Landaker

    Patch for SNG i18n with gettext

     
  • Wesley J. Landaker

    Logged In: YES
    user_id=38984

    Here is a gpg signature for the patch, just in case. =)

     
  • Wesley J. Landaker

    GPG Signature for sng-i18n.diff.gz

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.