Code Monkey home page Code Monkey logo

lgettext's Introduction

LGettext - A GNU Gettext binding for Lua 5.3

This is a 'fork' of the original LGettext sources found at gnu-darwin.org

Numerous modifications have been performed, including:

  • Porting from Lua 5.0 to Lua 5.3
  • Adding additional Gettext methods
    • gettext (Renamed from Translate)
    • dgettext
    • dcgettext
    • ngettext
    • dngettext
    • dcngettext
  • Adding LC_* constants for using with the dc* functions
    • If a constant is not defined in the C library for the platform, it will still appear, but have the value -1.
    • LC_MESSAGES is defined by Gettext if it is not otherwise defined, so it is always available.
    • POSIX specific LC_* defines are:
      • LC_PAPER
      • LC_NAME
      • LC_ADDRESS
      • LC_TELEPHONE
      • LC_MEASUREMENT
      • LC_IDENTIFICATION

lgettext's People

Contributors

brisingraerowing avatar

Watchers

 avatar  avatar

lgettext's Issues

Build error

I'm tried to build this package (with correcting lualib path), but I've got compiler errors:
lua_gettext.c:49:31: error: expected ‘;’, ‘,’ or ‘)’ before ‘__unused’
lua_gettext_init(lua_Stlua_gettext.c:49:31: error: expected ‘;’, ‘,’ or ‘)’ before ‘__unused’
lua_gettext_init(lua_State *L __unused)
^
lua_gettext.c:120:40: error: expected ‘;’, ‘,’ or ‘)’ before ‘__unused’
lua_gettext_notify_change(lua_State *L __unused)
^
lua_gettext.c:130:12: error: ‘lua_gettext_init’ undeclared here (not in a function)
{"init", lua_gettext_init },
^
lua_gettext.c:139:20: error: ‘lua_gettext_notify_change’ undeclared here (not in a function)
{"notify_change", lua_gettext_notify_change },
ate *L __unused)
^
lua_gettext.c:120:40: error: expected ‘;’, ‘,’ or ‘)’ before ‘__unused’
lua_gettext_notify_change(lua_State *L __unused)
^
lua_gettext.c:130:12: error: ‘lua_gettext_init’ undeclared here (not in a function)
{"init", lua_gettext_init },
^
lua_gettext.c:139:20: error: ‘lua_gettext_notify_change’ undeclared here (not in a function)
{"notify_change", lua_gettext_notify_change },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.