Code Monkey home page Code Monkey logo

twitterstatus's People

Contributors

andreeaene avatar atlas34 avatar avgils avatar bharatr21 avatar bhctsntrk avatar cfreksen avatar crispg72 avatar dragonhobo avatar edevhg avatar eivindlie avatar godfath3r avatar hipposen avatar hndr91 avatar izzy avatar karate avatar kubatyszko avatar kwint avatar lhruska avatar mape2k avatar maqsyo avatar mkzero avatar narate avatar rafajaques avatar rogersouza avatar suicider avatar svetula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitterstatus's Issues

Split translations into separate files

The current way the translations are stored(a large python dict) becomes quite unhandy the more translations are added.

Translations should have one file per language - no matter the format(Python, gettext, INI) as long as it's easy to load, supports the full unicode charset and easy to translate even for people who don't have a technical background.

Add translations

We're looking for volunteers to translate the messages in wordlist.py into other languages like

  • de_DE
  • el_GR
  • en_GB
  • en_US
  • es_ES
  • fr_FR
  • id_ID
  • it_IT
  • nb_NO
  • nl_NL
  • da_DK
  • pt_BR
  • pl_PL
  • ro_RO
  • ru_RU
  • tr_TR

If you'd like to translate to a specific language please write a comment and when finished PR the changes with a mention to this issue. Please use IETF language tags. You can find a list with region/language examples here.

You don't have to translate all phrases and you don't have to translate everything word by word - every phrase is a possible composite of one list item of every one of the lists(see generate_phrase() on how compositing currently works).

The current en_US version is a mix of en_GB and en_US so both should be separated and the current en_US should be cleaned up.

Make the word-list space-independent

The current word-list still contains Bytespeicher as a synonym for hackspace.

  • Bytespeicher should be removed from all translations
  • A configuration option should be introduced instead

Refactor generate_phrase() to allow for non-SVO languages

Some languages don't work with the current SVO word ordering used by the generate_phrase function. The function should take another optional argument from wordlist that makes it use a different word ordering.

def generate_phrase(open_status=True):
phrase = choice(WORDLIST[0]) + " "
phrase += choice(WORDLIST[1]) + " "
if open_status:
phrase += choice(WORDLIST[2]) + ". "
else:
phrase += choice(WORDLIST[3]) + ". "
if choice([True, False]):
if open_status:
phrase += choice(WORDLIST[4]).title() + "!"
else:
phrase += choice(WORDLIST[5]).title() + "!"
return phrase

Fix README

The README has several issues that need attention:

  • It's missing a short introduction on what this bot does
  • rst for installation instructions is broken, instructions don't show up in Github's web interface
  • A CONTRIBUTING.md file containing a guide to coding standards(see Bytebot/CONTRIBUTING.md)
  • Add information on how translations(see #6) should be added

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.