meetling icon indicating copy to clipboard operation
meetling copied to clipboard

Internationalization

Open noyainrain opened this issue 10 years ago • 5 comments

Add support for internationalization, i.e. translation and formatting of times/dates, numbers, etc.

noyainrain avatar Nov 05 '15 17:11 noyainrain

Users should be able to set language and timezone (attributes of User) and browser settings (navigator.language, Intl.DateTimeFormat.resolvedOptions.timeZone) should only be used as suggestions / default values.

noyainrain avatar Dec 03 '15 13:12 noyainrain

i18n toolchain:

noyainrain avatar Feb 03 '17 14:02 noyainrain

Draft:

"""
Types
-----

A *language* is expressed as simplified IETF language code in the form of `{lang}-{region}`, where
both both values consist of two characters, *lang* is lower case and *region* is upper case, e.g.
``en-US``.
"""

class Application:
    """
    .. attribute:: languages

       List of available languages.

       Subclass API: Defaults to ['de-DE', 'en-US'].
    """

    def login(self, code=None, language='en-US'):
    """
    *language* is the selected language of the new user.
    """

class User:
    """
    .. describe:: language

       Selected language from the list of available languages.
    """

noyainrain avatar Feb 17 '17 13:02 noyainrain

Depends on #68 .

noyainrain avatar Jun 02 '17 09:06 noyainrain

Experimental branch: https://github.com/noyainrain/meetling/tree/i18n

noyainrain avatar Jun 02 '17 12:06 noyainrain