Code Monkey home page Code Monkey logo

i18n-d's Introduction

i18n-d dub

i18n-d aims to facilitate native language support for applications written in the D programming language. The library currently provides the i18n.text module for translating strings in source code.

Please report bugs and requests to the issue tracker. Thanks!

Automatically generated documentation can be found on the gh-pages branch, or it can be browsed online.

See also the hello-world example for a complete example of using i18n-d with dub.

License

i18n-d is licensed under the terms of the Boost license (see the LICENSE file for details).

i18n-d's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aravol

i18n-d's Issues

Does not work if no translations are defined

When in early stage of development you dont want to work on translations yet but you already want to include the string management. When trying to compile with just a english translation file:

../../.dub/packages/i18n-0.1.0/source/i18n/text.d(347,20): Error: template std.range.zip cannot deduce function from argument types !()(string[], void[]), candidates are:
/usr/include/dmd/phobos/std/range/package.d(3739,6):        std.range.zip(Ranges...)(Ranges ranges) if (Ranges.length && allSatisfy!(isInputRange, Ranges))
/usr/include/dmd/phobos/std/range/package.d(3772,6):        std.range.zip(Ranges...)(StoppingPolicy sp, Ranges ranges) if (Ranges.length && allSatisfy!(isInputRange, Ranges))
../../.dub/packages/i18n-0.1.0/source/i18n/text.d(453,1): Error: template instance i18n.text.Strings!() error instantiating
source/app.d(5,10):        instantiated from here: strings!()

Allow using strings from the primary catalog verbatim in source code

This could improve readability in some cases, and allow the programmer to prepare for internationalization without creating string resources. Additionally, a tool could be provided that uses the -version=list_string_references feature to generate an initial primary catalog, much like xgettext.

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.